Ejemplo n.º 1
0
 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
     });
 }
Ejemplo n.º 2
0
 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()
     });
 }