コード例 #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()
     });
 }