def get_affections(clinical_records): ehr = EHR(clinical_records) if ehr.matches(DIAGNOSIS_ARCH, DIAGNOSIS_FIELD, T1D_ICD10): t1d = "True" else: t1d = "False" if ehr.matches(DIAGNOSIS_ARCH, DIAGNOSIS_FIELD, MS_ICD10): ms = "True" else: ms = "False" return t1d, ms
def get_affections(clinical_records): ehr = EHR(clinical_records) if ehr.matches(DIAGNOSIS_ARCH, DIAGNOSIS_FIELD, T1D_ICD10): t1d = 'True' else: t1d = 'False' if ehr.matches(DIAGNOSIS_ARCH, DIAGNOSIS_FIELD, MS_ICD10): ms = 'True' else: ms = 'False' return t1d, ms
def get_affections(self, ehr_records): if len(ehr_records) == 0: return None, None, None t1d = False ms = False nefro = False ehr = EHR(ehr_records) if ehr.matches(self.DIAGNOSIS_ARCH, self.DIAGNOSIS_FIELD, self.T1D_ICD10): t1d = True if ehr.matches(self.DIAGNOSIS_ARCH, self.DIAGNOSIS_FIELD, self.MS_ICD10): ms = True if ehr.matches(self.DIAGNOSIS_ARCH, self.DIAGNOSIS_FIELD, self.NEFRO_ICD10): nefro = True return t1d, ms, nefro
def get_affections(self, clinical_records): if len(clinical_records) == 0: return 'none', 'none' ehr = EHR(clinical_records) if ehr.matches(self.DIAGNOSIS_ARCH, self.DIAGNOSIS_FIELD, self.T1D_ICD10): t1d = 'True' else: t1d = 'False' if ehr.matches(self.DIAGNOSIS_ARCH, self.DIAGNOSIS_FIELD, self.MS_ICD10): ms = 'True' else: ms = 'False' return t1d, ms