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