Class StudyVanityMatricsController
java.lang.Object
org.diabetestechnology.drh.service.http.hub.prime.ux.StudyVanityMatricsController
-
Constructor Summary
ConstructorsConstructorDescriptionStudyVanityMatricsController
(Presentation presentation, UdiPrimeDbConfig udiPrimeDbConfig) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<?> getAllParticipants
(String studyId) org.springframework.http.ResponseEntity
<?> getAllStudyAvgGlucose
(String extension) org.springframework.http.ResponseEntity
<?> getAllStudyDetailMetrics
(String metrics, String extension) org.springframework.http.ResponseEntity
<?> getAllStudyTotalCgmFiles
(String extension) org.springframework.http.ResponseEntity
<?> getAllStudyTotalCgmWear
(String extension) org.springframework.http.ResponseEntity
<?> getAllStudyTotalDataPoints
(String extension) org.springframework.http.ResponseEntity
<?> getAllStudyVanityMetrics
(String metrics, String extension) org.springframework.http.ResponseEntity
<?> getDeviceNameAndCount
(String studyId) org.springframework.http.ResponseEntity
<?> getEachMetricsDetails
(String metric) org.springframework.http.ResponseEntity
<?> getEachMetricsDetailsFromView
(String metric) getEachStudyDetails
(String studyId) org.springframework.http.ResponseEntity
<?> getStudyAverageAge
(String studyId, String extension) getStudyCGMFileNames
(String studyId, TabularRowsRequest payload, boolean includeGeneratedSqlInResp, boolean includeGeneratedSqlInErrorResp) getStudyCGMFiles
(String studyId, String fileName, TabularRowsRequest payload, boolean includeGeneratedSqlInResp, boolean includeGeneratedSqlInErrorResp) getStudyDetails
(String schemaName, TabularRowsRequest payload, boolean includeGeneratedSqlInResp, boolean includeGeneratedSqlInErrorResp) org.springframework.http.ResponseEntity
<?> getStudyTotalCgmFiles
(String studyId, String extension) org.springframework.http.ResponseEntity
<?> getStudyTotalParticipants
(String studyId, String extension) org.springframework.http.ResponseEntity
<?> getStudyTotalPercentageFemale
(String studyId, String extension) studyDetails
(ServerRowsRequest payload) studySearchInfo
(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request) svmFinal
(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request)
-
Constructor Details
-
StudyVanityMatricsController
-
-
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) -
getStudyDetails
@PostMapping("/study/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="/study/allstudy-total-data-points.{extension}", produces="application/json") @ResponseBody public org.springframework.http.ResponseEntity<?> getAllStudyTotalDataPoints(@PathVariable String extension) throws SQLException - Throws:
SQLException
-
getAllStudyTotalCgmWear
@GetMapping(value="/study/allstudy-total-cgm-wear.{extension}", produces="text/html") @ResponseBody public org.springframework.http.ResponseEntity<?> getAllStudyTotalCgmWear(@PathVariable String extension) throws SQLException - Throws:
SQLException
-
getEachStudyDetails
-
getAllStudyVanityMetrics
@GetMapping(value="/study/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="/study/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="/study/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/each-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/each-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/each-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
-
getAllStudyAvgGlucose
@GetMapping(value="/study/allstudy-avg-glucose.{extension}", produces="text/html") @ResponseBody public org.springframework.http.ResponseEntity<?> getAllStudyAvgGlucose(@PathVariable String extension) throws SQLException - Throws:
SQLException
-
studySearchInfo
@GetMapping("/search-studies/info") public String studySearchInfo(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request) -
getEachMetricsDetails
@GetMapping("/study/each-metrics-details/{metric}") @ResponseBody public org.springframework.http.ResponseEntity<?> getEachMetricsDetails(@PathVariable String metric) -
getEachMetricsDetailsFromView
@GetMapping("/study/each-metrics-details-view/{metric}") @ResponseBody public org.springframework.http.ResponseEntity<?> getEachMetricsDetailsFromView(@PathVariable String metric) -
getAllStudyDetailMetrics
@GetMapping(value="/study/allstudy-detail-metrics/{metrics}.{extension}", produces="application/json") @ResponseBody public org.springframework.http.ResponseEntity<?> getAllStudyDetailMetrics(@PathVariable String metrics, @PathVariable String extension) throws SQLException - Throws:
SQLException
-
getDeviceNameAndCount
@GetMapping("/study/device-name-count/{studyId}") @ResponseBody public org.springframework.http.ResponseEntity<?> getDeviceNameAndCount(@PathVariable String studyId) -
getAllParticipants
@PostMapping("/study/device-name-count/getAllParticipants/{studyId}") @ResponseBody public org.springframework.http.ResponseEntity<?> getAllParticipants(@PathVariable String studyId)
-