コード例 #1
0
 private static Physician CreatePhysician(HealthcareProviderState state)
 {
     return(new Physician
            (
                state.Identifier,
                FullName.FromState(state.FullName),
                new BelgianPractitionerLicenseNumber(state.LicenseNumber),
                string.IsNullOrWhiteSpace(state.SocialSecurityNumber) ? null : new BelgianSocialSecurityNumber(state.SocialSecurityNumber),
                ContactInformation.FromState(state.ContactInformation),
                state.Speciality,
                state.DisplayName
            ));
 }
コード例 #2
0
 private static Physician CreatePhysician(HealthcareProviderState state)
 {
     return new Physician
     (
         state.Identifier,
         FullName.FromState(state.FullName),
         new BelgianPractitionerLicenseNumber(state.LicenseNumber),
         BelgianSocialSecurityNumber.CreateIfNotEmpty(state.SocialSecurityNumber),
         ContactInformation.FromState(state.ContactInformation),
         state.Speciality,
         state.DisplayName
     );
 }
コード例 #3
0
 public Patient Translate(PatientState state)
 {
     Condition.Requires(state, nameof(state)).IsNotNull();
     return(new Patient
            (
                state.Identifier,
                FullName.FromState(state.FullName),
                Enumeration.FromCode <BelgianSex>(state.Sex),
                string.IsNullOrWhiteSpace(state.SocialSecurityNumber) ? null : new BelgianSocialSecurityNumber(state.SocialSecurityNumber),
                ContactInformation.FromState(state.ContactInformation),
                state.Birthdate
            ));
 }
コード例 #4
0
 public Patient Translate(PatientState state,
                          IDictionary <string, object> options = null)
 {
     Condition.Requires(state, nameof(state)).IsNotNull();
     return(new Patient
            (
                state.Identifier,
                FullName.FromState(state.FullName),
                Enumeration.ParseCode <BelgianSex>(state.Sex),
                BelgianSocialSecurityNumber.CreateIfNotEmpty(state.SocialSecurityNumber),
                ContactInformation.FromState(state.ContactInformation),
                state.Birthdate
            ));
 }