Beispiel #1
0
 def get_clinical_text(self, req: CamcopsRequest) -> List[CtvInfo]:
     if not self.is_complete():
         return CTV_INCOMPLETE
     return [
         CtvInfo(content=(
             "NART predicted WAIS FSIQ {n_fsiq}, WAIS VIQ {n_viq}, "
             "WAIS PIQ {n_piq}, WAIS-R FSIQ {nw_fsiq}, "
             "WAIS-IV FSIQ {b_fsiq}, WAIS-IV GAI {b_gai}, "
             "WAIS-IV VCI {b_vci}, WAIS-IV PRI {b_pri}, "
             "WAIS_IV WMI {b_wmi}, WAIS-IV PSI {b_psi}".format(
                 n_fsiq=self.nelson_full_scale_iq(),
                 n_viq=self.nelson_verbal_iq(),
                 n_piq=self.nelson_performance_iq(),
                 nw_fsiq=self.nelson_willison_full_scale_iq(),
                 b_fsiq=self.bright_full_scale_iq(),
                 b_gai=self.bright_general_ability(),
                 b_vci=self.bright_verbal_comprehension(),
                 b_pri=self.bright_perceptual_reasoning(),
                 b_wmi=self.bright_working_memory(),
                 b_psi=self.bright_perceptual_speed(),
             )))
     ]
Beispiel #2
0
 def get_clinical_text(self, req: CamcopsRequest) -> List[CtvInfo]:
     if not self.is_complete():
         return CTV_INCOMPLETE
     return [CtvInfo(
         content=(
             "CGI-SCH. Severity: positive {}, negative {}, "
             "depressive {}, cognitive {}, overall {}. Change: "
             "positive {}, negative {}, depressive {}, "
             "cognitive {}, overall {}.".format(
                 self.severity1,
                 self.severity2,
                 self.severity3,
                 self.severity4,
                 self.severity5,
                 self.change1,
                 self.change2,
                 self.change3,
                 self.change4,
                 self.change5,
             )
         )
     )]
Beispiel #3
0
 def get_clinical_text(self, req: CamcopsRequest) -> List[CtvInfo]:
     if not self.is_complete():
         return CTV_INCOMPLETE
     return [CtvInfo(content=f"CESD total score {self.total_score()}")]
Beispiel #4
0
def ctv_info_pd(req: CamcopsRequest, condition: str,
                has_it: Optional[bool]) -> CtvInfo:
    return CtvInfo(content=condition + ": " + get_yes_no_unknown(req, has_it))
Beispiel #5
0
 def get_clinical_text(self, req: CamcopsRequest) -> List[CtvInfo]:
     if not self.is_complete():
         return CTV_INCOMPLETE
     return [CtvInfo(content="ZBI-12 total score {}/{}".format(
         self.total_score(), self.MAX_TOTAL))]
Beispiel #6
0
 def get_clinical_text(self, req: CamcopsRequest) -> List[CtvInfo]:
     return [CtvInfo(content=self.reason)]
Beispiel #7
0
 def get_clinical_text(self, req: CamcopsRequest) -> List[CtvInfo]:
     return [
         CtvInfo(heading=ws.webify(self.wxstring(req,
                                                 "f_referral_reason_t")),
                 content=self.referral_reason)
     ]
 def get_clinical_text(self, req: CamcopsRequest) -> List[CtvInfo]:
     if self.distress is None:
         return CTV_INCOMPLETE
     return [CtvInfo(content=f"Overall distress: {self.distress}/10")]
Beispiel #9
0
 def get_clinical_text(self, req: CamcopsRequest) -> List[CtvInfo]:
     if not self.is_complete():
         return CTV_INCOMPLETE
     if not self.description:
         return []
     return [CtvInfo(content=self.description)]
Beispiel #10
0
 def get_clinical_text(self, req: CamcopsRequest) -> List[CtvInfo]:
     infolist = [CtvInfo(content=self.sequence_description)]
     for p in self.photos:
         infolist.append(CtvInfo(content=p.description))
     return infolist
Beispiel #11
0
 def get_ctv_description_content(self, req: CamcopsRequest,
                                 x: str) -> CtvInfo:
     return CtvInfo(description=self.wxstring(req, x),
                    content=ws.webify(getattr(self, x)))
Beispiel #12
0
 def get_ctv_subheading(self, req: CamcopsRequest,
                        wstringname: str) -> CtvInfo:
     return CtvInfo(subheading=self.wxstring(req, wstringname),
                    skip_if_no_content=False)
Beispiel #13
0
 def get_clinical_text(self, req: CamcopsRequest) -> List[CtvInfo]:
     if not self.is_complete():
         return CTV_INCOMPLETE
     text = f"EPDS total: {self.total_score()}/{self.MAX_TOTAL}"
     return [CtvInfo(content=text)]
Beispiel #14
0
 def get_clinical_text(self, req: CamcopsRequest) -> List[CtvInfo]:
     return [CtvInfo(content=ws.webify(self.note))]
Beispiel #15
0
 def get_clinical_text(self, req: CamcopsRequest) -> List[CtvInfo]:
     if not self.is_complete():
         return CTV_INCOMPLETE
     return [CtvInfo(
         content="CGI-I rating: {}".format(self.get_rating_text(req))
     )]