예제 #1
0
파일: DatasetRecord.cs 프로젝트: umcu/leaf
 public PatientDemographic ToAnonymousPatientDemographic()
 {
     return(new PatientDemographic
     {
         PersonId = PersonId,
         AddressPostalCode = AddressPostalCode.ValueElseUnknown(),
         AddressState = AddressState.ValueElseUnknown(),
         Ethnicity = Ethnicity.ValueElseUnknown(),
         Gender = Gender.ValueElseUnknown(),
         Age = Age > 89 ? 89 : Age,
         Language = Language.ValueElseUnknown(),
         MaritalStatus = MaritalStatus.ValueElseUnknown(),
         Race = Race.ValueElseUnknown(),
         Religion = Religion.ValueElseUnknown(),
         IsMarried = IsMarried,
         IsHispanic = IsHispanic,
         IsDeceased = IsDeceased
     });
 }
예제 #2
0
파일: DatasetRecord.cs 프로젝트: umcu/leaf
 public PatientDemographic ToIdentifiedPatientDemographic()
 {
     return(new PatientDemographic
     {
         PersonId = PersonId,
         AddressPostalCode = AddressPostalCode.ValueElseUnknown(),
         AddressState = AddressState.ValueElseUnknown(),
         Ethnicity = Ethnicity.ValueElseUnknown(),
         Gender = Gender.ValueElseUnknown(),
         Age = Age,
         Language = Language.ValueElseUnknown(),
         MaritalStatus = MaritalStatus.ValueElseUnknown(),
         Race = Race.ValueElseUnknown(),
         Religion = Religion.ValueElseUnknown(),
         IsMarried = IsMarried,
         IsHispanic = IsHispanic,
         IsDeceased = IsDeceased,
         BirthDate = BirthDate,
         DeceasedDateTime = DeceasedDateTime,
         Name = Name.ValueElseUnknown(),
         Mrn = Mrn.ValueElseUnknown()
     });
 }