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 }); }
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() }); }