def pd_general_criteria_bits(self): return """ <tr><td>{}</td><td><i><b>{}</b></i></td></tr> """.format( WSTRING("icd10pd_general_criteria_must_be_met"), get_yes_no_unknown(self.hasPD()) )
def get_task_html(self): n_csi_symptoms = self.total_score() csi_catatonia = n_csi_symptoms >= 2 h = u""" <div class="summary"> <table class="summary"> {} <tr><td>{}</td><td><b>{}</b> / 14</td></tr> <tr><td>{} <sup>[1]</sup></td><td><b>{}</b></td></tr> </table> </div> <table class="taskdetail"> <tr> <th width="50%">Question</th> <th width="50%">Present?</th> </tr> """.format( self.get_is_complete_tr(), WSTRING("csi_num_symptoms_present"), n_csi_symptoms, WSTRING("csi_catatonia_present"), get_yes_no(csi_catatonia) ) for q in range(1, Csi.NQUESTIONS + 1): h += u"""<tr><td>{}</td><td><b>{}</b></td></tr>""".format( "Q" + str(q) + u" — " + WSTRING("bfcrs_q" + str(q) + "_title"), get_yes_no_unknown(getattr(self, "q" + str(q))) ) h += u""" </table> <div class="footnotes"> [1] Number of CSI symptoms ≥2. </div> """ return h
def ctv_dict_pd(condition, has_it): return {"content": condition + ": " + get_yes_no_unknown(has_it)}