Class ParticipantController

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

@Controller public class ParticipantController extends Object
  • Constructor Details

  • Method Details

    • participantdetail

      @GetMapping("/participant/info/{studyId}/{participantId}") public String participantdetail(@PathVariable String studyId, @PathVariable String participantId, org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request)
    • participantinfo

      @GetMapping("/participant/{studyId}/{participantId}") public String participantinfo(@PathVariable String studyId, @PathVariable String participantId)
    • getParticipantCGMDates

      @GetMapping("/participant-cgm-dates/{studyId}/{participantId}") @Cacheable(value="participantCgmDatesCache", key="#studyId + \'_\' + #participantId + \'_\' + #startDate + \'_\' + #endDate") @ResponseBody public Object getParticipantCGMDates(@PathVariable String studyId, @PathVariable String participantId)
    • CoefficientOfVariation

      @GetMapping("/glucose-variability/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object CoefficientOfVariation(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate)
    • AmbulatoryGlucoseProfile

      @GetMapping("/ambulatory-glucose-profile/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody @Cacheable(value="ambulatoryGlucoseProfileCache", key="#studyId + \'_\' + #participantId + \'_\' + #startDate + \'_\' + #endDate") public Object AmbulatoryGlucoseProfile(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate)
    • calculateTimeBelowRangeLow

      @GetMapping("/time-below-range-low/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object calculateTimeBelowRangeLow(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate)
    • calculateTimeBelowRangeVeryLow

      @GetMapping("/time-below-range-very-low/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object calculateTimeBelowRangeVeryLow(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate)
    • calculateTimeInRange

      @GetMapping("/time-in-range/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object calculateTimeInRange(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate)
    • calculateTimeAboveRangeVeryHigh

      @GetMapping("/time-above-range-very-high/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object calculateTimeAboveRangeVeryHigh(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate)
    • calculateTimeInTightRange

      @GetMapping("/time-in-tight-range/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object calculateTimeInTightRange(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate)
    • calculateTimeAboveRangeHigh

      @GetMapping("/time-above-range-high/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object calculateTimeAboveRangeHigh(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate)
    • glycemicRiskIndicator

      @GetMapping("/glycemicRiskIndicator/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object glycemicRiskIndicator(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate) throws SQLException
      Throws:
      SQLException
    • liabilityIndex

      @GetMapping("/liabilityIndex/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object liabilityIndex(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate)
    • getMeanAmplitude

      @GetMapping("/mean-amplitude/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object getMeanAmplitude(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate) throws InterruptedException, ExecutionException
      Throws:
      InterruptedException
      ExecutionException
    • calculateMValue

      @GetMapping("/m-value/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object calculateMValue(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate) throws InterruptedException, ExecutionException
      Throws:
      InterruptedException
      ExecutionException
    • getParticipantMetrics

      @GetMapping("/participant-metrics/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object getParticipantMetrics(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate) throws SQLException
      Throws:
      SQLException
    • getTimeRangeStackedData

      @GetMapping("/time-range-stacked-data/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object getTimeRangeStackedData(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate) throws SQLException
      Throws:
      SQLException
    • getParticipantInfo

      @GetMapping("/participant-info/{studyId}/{participantId}") @ResponseBody public Object getParticipantInfo(@PathVariable String studyId, @PathVariable String participantId)
    • calculateAverageDailyRisk

      @GetMapping("/average-daily-risk/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object calculateAverageDailyRisk(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate) throws SQLException, InterruptedException, ExecutionException
      Throws:
      SQLException
      InterruptedException
      ExecutionException
    • calculateJIndex

      @GetMapping("/j-index/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object calculateJIndex(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate) throws SQLException, InterruptedException, ExecutionException, InterruptedException, ExecutionException
      Throws:
      SQLException
      InterruptedException
      ExecutionException
    • calculateLBGIandHBGI

      @GetMapping("/lbgi-hbgi/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object calculateLBGIandHBGI(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate) throws SQLException, InterruptedException, ExecutionException
      Throws:
      SQLException
      InterruptedException
      ExecutionException
    • calculateGRADE

      @GetMapping("/grade/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object calculateGRADE(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate) throws SQLException, InterruptedException, ExecutionException
      Throws:
      SQLException
      InterruptedException
      ExecutionException
    • calculateMeanOfDailyDifferences

      @GetMapping("/mean-of-daily-differences/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object calculateMeanOfDailyDifferences(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate) throws SQLException, InterruptedException, ExecutionException
      Throws:
      SQLException
      InterruptedException
      ExecutionException
    • calculateCONGA

      @GetMapping("/conga/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object calculateCONGA(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate) throws SQLException, InterruptedException, ExecutionException
      Throws:
      SQLException
      InterruptedException
      ExecutionException
    • emptyAmbulatoryGlucoseProfileCache

      @GetMapping("/ambulatoryGlucoseProfile/clear") @CacheEvict(value="ambulatoryGlucoseProfileCache", allEntries=true) public org.springframework.http.ResponseEntity<?> emptyAmbulatoryGlucoseProfileCache()
    • computeAllMetrics

      @GetMapping("/compute-all-metrics/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object computeAllMetrics(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate) throws SQLException
      Throws:
      SQLException
    • getDailyGlucoseProfile

      @GetMapping("/get-daily-glcuose-profile/{studyId}/{participantId}/{startDate}/{endDate}") @ResponseBody public Object getDailyGlucoseProfile(@PathVariable String studyId, @PathVariable String participantId, @PathVariable String startDate, @PathVariable String endDate) throws SQLException
      Throws:
      SQLException
    • emptyParticipantCgmDatesCache

      @GetMapping("/participant-cgm-dates/clear") @CacheEvict(value="participantCgmDatesCache", allEntries=true) public org.springframework.http.ResponseEntity<?> emptyParticipantCgmDatesCache()