コード例 #1
0
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
コード例 #2
0
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
コード例 #3
0
 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
コード例 #4
0
 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
コード例 #5
0
 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