def get_task_html(self): h = self.get_standard_clinician_block(True, self.comments) + u""" <div class="summary"> <table class="summary"> """ + self.get_is_complete_tr() h += tr_qa(WSTRING("date_pertains_to"), format_datetime_string(self.date_pertains_to, DATEFORMAT.LONG_DATE, default=None)) h += tr_qa(WSTRING("category") + u" <sup>[1,2]</sup>", self.get_description()) h += tr_qa(WSTRING("icd10manic_psychotic_symptoms") + u" <sup>[2]</sup>", get_present_absent_none(self.psychosis_present())) h += u""" </table> </div> <div class="explanation"> """ h += WSTRING("icd10_symptomatic_disclaimer") h += u""" </div> <table class="taskdetail"> <tr> <th width="80%">Question</th> <th width="20%">Answer</th> </tr> """ h += self.text_row("icd10manic_core") for x in Icd10Manic.CORE_NAMES: h += self.row_true_false(x) h += self.text_row("icd10manic_hypomania_mania") for x in Icd10Manic.HYPOMANIA_MANIA_NAMES: h += self.row_true_false(x) h += self.text_row("icd10manic_other_mania") for x in Icd10Manic.MANIA_NAMES: h += self.row_true_false(x) h += self.text_row("icd10manic_other_criteria") for x in Icd10Manic.OTHER_CRITERIA_NAMES: h += self.row_true_false(x) h += subheading_spanning_two_columns(WSTRING("icd10manic_psychosis")) for x in Icd10Manic.PSYCHOSIS_NAMES: h += self.row_true_false(x) h += u""" </table> <div class="footnotes"> [1] Hypomania: elevated/irritable mood + sustained for ≥4 days + at least 3 of the “other hypomania” symptoms + some interference with functioning. Mania: elevated/irritable mood + sustained for ≥7 days or hospital admission required + at least 3 of the “other mania/hypomania” symptoms (4 if mood only irritable) + severe interference with functioning. [2] ICD-10 nonpsychotic mania requires mania without hallucinations/delusions. ICD-10 psychotic mania requires mania plus hallucinations/delusions other than those that are “typically schizophrenic”. ICD-10 does not clearly categorize mania with only schizophreniform psychotic symptoms; however, Schneiderian first-rank symptoms can occur in manic psychosis (e.g. Conus P et al., 2004, PMID 15337330.). </div> """ + ICD10_COPYRIGHT_DIV return h
def get_task_html(self): h = self.get_standard_clinician_block(True, self.comments) + u""" <div class="summary"> <table class="summary"> """ + self.get_is_complete_tr() h += tr_qa(WSTRING("date_pertains_to"), format_datetime_string(self.date_pertains_to, DATEFORMAT.LONG_DATE, default=None)) h += tr_qa(WSTRING("category") + u" <sup>[1,2]</sup>", self.get_full_description()) h += tr(WSTRING("icd10depressive_n_core"), answer(self.n_core()) + " / 3") h += tr(WSTRING("icd10depressive_n_total"), answer(self.n_total()) + " / 10") h += tr(WSTRING("icd10depressive_n_somatic"), answer(self.n_somatic()) + " / 8") h += tr(WSTRING("icd10depressive_psychotic_symptoms_or_stupor") + u" <sup>[2]</sup>", answer(get_present_absent_none(self.is_psychotic_or_stupor()))) h += u""" </table> </div> <div class="explanation"> """ h += WSTRING("icd10_symptomatic_disclaimer") h += u""" </div> <table class="taskdetail"> <tr> <th width="80%">Question</th> <th width="20%">Answer</th> </tr> """ h += self.text_row("icd10depressive_duration_text") h += self.row_true_false("duration_at_least_2_weeks") h += self.text_row("icd10depressive_core") for x in Icd10Depressive.CORE_NAMES: h += self.row_present_absent(x) h += self.text_row("icd10depressive_additional") for x in Icd10Depressive.ADDITIONAL_NAMES: h += self.row_present_absent(x) h += self.text_row("icd10depressive_clinical_text") h += self.row_true_false("severe_clinically") h += self.text_row("icd10depressive_somatic") for x in Icd10Depressive.SOMATIC_NAMES: h += self.row_present_absent(x) h += self.text_row("icd10depressive_psychotic") for x in Icd10Depressive.PSYCHOSIS_NAMES: h += self.row_present_absent(x) h += u""" </table> <div class="footnotes"> [1] Mild depression requires ≥2 core symptoms and ≥4 total diagnostic symptoms. Moderate depression requires ≥2 core and ≥6 total. Severe depression requires 3 core and ≥8 total. All three require a duration of ≥2 weeks. In addition, the diagnosis of severe depression is allowed with a clinical impression of “severe” in a patient unable/unwilling to describe symptoms in detail. [2] ICD-10 nonpsychotic severe depression requires severe depression without hallucinations/delusions/depressive stupor. ICD-10 psychotic depression requires severe depression plus hallucinations/delusions other than those that are “typically schizophrenic”, or stupor. ICD-10 does not clearly categorize severe depression with only schizophreniform psychotic symptoms; however, such symptoms can occur in severe depression with psychosis (e.g. Tandon R & Greden JF, 1987, PMID 2884810). Moreover, psychotic symptoms can occur in mild/moderate depression (Maj M et al., 2007, PMID 17915981). </div> """ + ICD10_COPYRIGHT_DIV return h