Class StudyVanityMatricsController

java.lang.Object
org.diabetestechnology.drh.service.http.hub.prime.ux.StudyVanityMatricsController

@Controller public class StudyVanityMatricsController extends Object
  • Constructor Details

  • Method Details

    • studyDetails

      @PostMapping(value="/svm.json", consumes="application/json") @ResponseBody public ServerRowsResponse studyDetails(@RequestBody @Nonnull ServerRowsRequest payload)
    • svmfinal

      @GetMapping("/svm/info") public String svmfinal(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request)
    • docs

      @GetMapping("/svm") public String docs()
    • getStudyDetails

      @PostMapping("/each-study-details/{schemaName}") @ResponseBody public TabularRowsResponse<?> getStudyDetails(@PathVariable String schemaName, @RequestBody @Nonnull TabularRowsRequest payload, @RequestHeader(value="X-Include-Generated-SQL-In-Response",required=false) boolean includeGeneratedSqlInResp, @RequestHeader(value="X-Include-Generated-SQL-In-Error-Response",required=false,defaultValue="true") boolean includeGeneratedSqlInErrorResp)
    • getAllStudyTotalDataPoints

      @GetMapping(value="/allstudy-total-data-points.{extension}", produces="application/json") @ResponseBody public org.springframework.http.ResponseEntity<?> getAllStudyTotalDataPoints(@PathVariable String extension) throws SQLException
      Throws:
      SQLException
    • getMeanGlucose

      @GetMapping("/mean-glucose-daterange/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object getMeanGlucose(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate)
    • getNumberOfDaysCGMWorn

      @GetMapping("/number-days-cgm-worn-daterange/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object getNumberOfDaysCGMWorn(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate)
    • getPercentageTimeCGMActive

      @GetMapping("/percentage-time-cgm-active/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object getPercentageTimeCGMActive(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate)
    • getGlucoseManagementIndicator

      @GetMapping("/glucose-management-indicator/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object getGlucoseManagementIndicator(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate)
    • getAllStudyTotalCgmWear

      @GetMapping(value="/allstudy-total-cgm-wear.{extension}", produces="text/html") @ResponseBody public org.springframework.http.ResponseEntity<?> getAllStudyTotalCgmWear(@PathVariable String extension) throws SQLException
      Throws:
      SQLException
    • getEachStudyDetails

      @GetMapping("/each-study-details/{studyId}") @ResponseBody public Object getEachStudyDetails(@PathVariable String studyId)
    • getAllStudyVanityMetrics

      @GetMapping(value="/allstudy-vanity-metrics/{metrics}.{extension}", produces="application/json") @ResponseBody public org.springframework.http.ResponseEntity<?> getAllStudyVanityMetrics(@PathVariable String metrics, @PathVariable String extension) throws SQLException
      Throws:
      SQLException
    • getAllStudyTotalCgmFiles

      @GetMapping(value="/allstudy-total-cgm-files.{extension}", produces="text/html") @ResponseBody public org.springframework.http.ResponseEntity<?> getAllStudyTotalCgmFiles(@PathVariable String extension) throws SQLException
      Throws:
      SQLException
    • getStudyTotalCgmFiles

      @GetMapping(value="/allstudy-total-cgm-files/{studyId}.{extension}", produces="text/html") @ResponseBody public org.springframework.http.ResponseEntity<?> getStudyTotalCgmFiles(@PathVariable String studyId, @PathVariable String extension) throws SQLException
      Throws:
      SQLException
    • getStudyCGMFileNames

      @PostMapping(value="/each-study-cgm-file_names/{studyId}", consumes="application/json", produces="application/json") @ResponseBody public Object getStudyCGMFileNames(@PathVariable(required=true) String studyId, @RequestBody TabularRowsRequest payload, @RequestHeader(value="X-Include-Generated-SQL-In-Response",required=false) boolean includeGeneratedSqlInResp, @RequestHeader(value="X-Include-Generated-SQL-In-Error-Response",required=false,defaultValue="true") boolean includeGeneratedSqlInErrorResp) throws SQLException
      Throws:
      SQLException
    • getStudyCGMFiles

      @PostMapping(value="/each-study-cgm-files/{studyId}/{fileName}", consumes="application/json", produces="application/json") @ResponseBody public Object getStudyCGMFiles(@PathVariable(required=true) String studyId, @PathVariable(required=true) String fileName, @RequestBody TabularRowsRequest payload, @RequestHeader(value="X-Include-Generated-SQL-In-Response",required=false) boolean includeGeneratedSqlInResp, @RequestHeader(value="X-Include-Generated-SQL-In-Error-Response",required=false,defaultValue="true") boolean includeGeneratedSqlInErrorResp) throws SQLException
      Throws:
      SQLException
    • getStudyTotalParticipants

      @GetMapping(value="/study-total-participants/{studyId}.{extension}", produces="text/html") @ResponseBody public org.springframework.http.ResponseEntity<?> getStudyTotalParticipants(@PathVariable String studyId, @PathVariable String extension) throws SQLException
      Throws:
      SQLException
    • getStudyTotalPercentageFemale

      @GetMapping(value="/study-percentage-female/{studyId}.{extension}", produces="text/html") @ResponseBody public org.springframework.http.ResponseEntity<?> getStudyTotalPercentageFemale(@PathVariable String studyId, @PathVariable String extension) throws SQLException
      Throws:
      SQLException
    • getStudyAverageAge

      @GetMapping(value="/study-average-age/{studyId}.{extension}", produces="text/html") @ResponseBody public org.springframework.http.ResponseEntity<?> getStudyAverageAge(@PathVariable String studyId, @PathVariable String extension) throws SQLException
      Throws:
      SQLException