Beispiel #1
0
 public Physician(int identifier,
                  FullName fullName,
                  PractitionerLicenseNumber licenseNumber,
                  SocialSecurityNumber socialSecurityNumber = null,
                  ContactInformation contactInformation     = null,
                  string speciality  = null,
                  string displayName = null)
     : base(identifier, fullName, licenseNumber, socialSecurityNumber, contactInformation, speciality, displayName)
 {
 }
Beispiel #2
0
 protected HealthcareProvider(int identifier,
                              FullName fullName,
                              PractitionerLicenseNumber licenseNumber,
                              SocialSecurityNumber socialSecurityNumber = null,
                              ContactInformation contactInformation     = null,
                              string speciality  = null,
                              string displayName = null)
 {
     Condition.Requires(identifier, nameof(identifier)).IsGreaterThan(0);
     Condition.Requires(fullName, nameof(fullName)).IsNotNull();
     Condition.Requires(licenseNumber, nameof(licenseNumber)).IsNotNull();
     this.Identifier           = identifier;
     this.FullName             = fullName;
     this.LicenseNumber        = licenseNumber;
     this.SocialSecurityNumber = socialSecurityNumber;
     this.ContactInformation   = contactInformation;
     if (!string.IsNullOrWhiteSpace(speciality))
     {
         this.Speciality = speciality;
     }
     this.DisplayName = string.IsNullOrWhiteSpace(displayName) ? fullName.AsFormattedName() : displayName;
 }