Exemplo n.º 1
0
 def get_trackers(self, req: CamcopsRequest) -> List[TrackerInfo]:
     line_step = 20
     preliminary_cutoff = 33
     return [
         TrackerInfo(
             value=self.total_score(),
             plot_label="PCL-5 total score",
             axis_label=f"Total score ({self.MIN_SCORE}-{self.MAX_SCORE})",
             axis_min=self.MIN_SCORE - 0.5,
             axis_max=self.MAX_SCORE + 0.5,
             axis_ticks=regular_tracker_axis_ticks_int(self.MIN_SCORE,
                                                       self.MAX_SCORE,
                                                       step=line_step),
             horizontal_lines=equally_spaced_int(
                 self.MIN_SCORE + line_step,
                 self.MAX_SCORE - line_step,
                 step=line_step,
             ) + [preliminary_cutoff],
             horizontal_labels=[
                 TrackerLabel(
                     preliminary_cutoff,
                     self.wxstring(req, "preliminary_cutoff"),
                 )
             ],
         )
     ]
Exemplo n.º 2
0
 def get_trackers(self, req: CamcopsRequest) -> List[TrackerInfo]:
     line_step = 20
     threshold_line = self.DEPRESSION_RISK_THRESHOLD - 0.5
     # noinspection PyTypeChecker
     return [
         TrackerInfo(
             value=self.total_score(),
             plot_label="CESD total score",
             axis_label=f"Total score ({self.MIN_SCORE}-{self.MAX_SCORE})",
             axis_min=self.MIN_SCORE - 0.5,
             axis_max=self.MAX_SCORE + 0.5,
             axis_ticks=regular_tracker_axis_ticks_int(self.MIN_SCORE,
                                                       self.MAX_SCORE,
                                                       step=line_step),
             horizontal_lines=equally_spaced_int(
                 self.MIN_SCORE + line_step,
                 self.MAX_SCORE - line_step,
                 step=line_step,
             ) + [threshold_line],
             horizontal_labels=[
                 TrackerLabel(
                     threshold_line,
                     self.wxstring(req, "depression_or_risk_of"),
                 )
             ],
         )
     ]
Exemplo n.º 3
0
 def get_trackers(self, req: CamcopsRequest) -> List[TrackerInfo]:
     return [
         TrackerInfo(
             value=self.health_vas,
             plot_label="EQ-5D-5L health visual analogue scale",
             axis_label="Self-rated health today (out of 100)",
             axis_min=-0.5,
             axis_max=100.5,
             axis_ticks=regular_tracker_axis_ticks_int(0, 100, 25),
             horizontal_lines=equally_spaced_int(0, 100, 25),
         )
     ]