Exemplo n.º 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
            ));
 }
 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
     );
 }
Exemplo n.º 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
            ));
 }
Exemplo n.º 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
            ));
 }