/// <summary> /// Initializes a new instance of the <see cref="PayorType"/> class. /// </summary> /// <param name="name">The name.</param> /// <param name="billingOffice">The billing office.</param> /// <param name="billingForm">The billing form.</param> public PayorType(string name, BillingOffice billingOffice, BillingForm billingForm ) : this() { Check.IsNotNullOrWhitespace ( name, () => Name ); Check.IsNotNull ( billingOffice, () => BillingOffice ); Check.IsNotNull ( billingForm, () => BillingForm ); Name = name; BillingOffice = billingOffice; BillingForm = billingForm; }
/// <summary> /// Initializes a new instance of the <see cref="Payor"/> class. /// </summary> /// <param name="name">The name.</param> /// <param name="billingOffice">The billing office.</param> /// <param name="electronicTransmitterIdentificationNumber">The electronic transmitter identification number.</param> public Payor( string name, BillingOffice billingOffice, string electronicTransmitterIdentificationNumber ) : this() { Check.IsNotNull ( name, () => Name ); Check.IsNotNull ( billingOffice, () => BillingOffice ); Check.IsNotNull ( electronicTransmitterIdentificationNumber, () => ElectronicTransmitterIdentificationNumber ); Name = name; BillingOffice = billingOffice; ElectronicTransmitterIdentificationNumber = electronicTransmitterIdentificationNumber; }
/// <summary> /// Creates the billing office. /// </summary> /// <param name="agency">The agency.</param> /// <param name="administratorStaff">The administrator staff.</param> /// <param name="electronicTransmitterIdentificationNumber">The electronic transmitter identification number.</param> /// <param name="profile">The profile.</param> /// <returns>The Billing Office.</returns> public BillingOffice CreateBillingOffice( Agency agency, Staff administratorStaff, string electronicTransmitterIdentificationNumber, BillingOfficeProfile profile ) { Check.IsNotNull ( agency, "Agency is required." ); Check.IsNotNull ( administratorStaff, "Administrator Staff is required." ); Check.IsNotNull ( electronicTransmitterIdentificationNumber, "Electronic Transmitter Identification Number is required." ); var billingOffice = new BillingOffice ( agency, administratorStaff, electronicTransmitterIdentificationNumber, profile ); _billingOfficeRepository.MakePersistent ( billingOffice ); return billingOffice; }
/// <summary> /// Creates the billing office. /// </summary> /// <param name="agency">The agency.</param> /// <param name="administratorStaff">The administrator staff.</param> /// <param name="electronicTransmitterIdentificationNumber">The electronic transmitter identification number.</param> /// <param name="profile">The profile.</param> /// <returns>The Billing Office.</returns> public BillingOffice CreateBillingOffice( Agency agency, Staff administratorStaff, string electronicTransmitterIdentificationNumber, BillingOfficeProfile profile) { Check.IsNotNull(agency, "Agency is required."); Check.IsNotNull(administratorStaff, "Administrator Staff is required."); Check.IsNotNull(electronicTransmitterIdentificationNumber, "Electronic Transmitter Identification Number is required."); var billingOffice = new BillingOffice(agency, administratorStaff, electronicTransmitterIdentificationNumber, profile); _billingOfficeRepository.MakePersistent(billingOffice); return(billingOffice); }
/// <summary> /// Initializes a new instance of the <see cref="PatientAccount"/> class. /// </summary> /// <param name="billingOffice">The billing office.</param> /// <param name="medicalRecordNumber">The medical record number.</param> /// <param name="name">The name.</param> /// <param name="birthDate">The birth date.</param> /// <param name="homeAddress">The home address.</param> /// <param name="administrativeGender">The administrative gender.</param> protected internal PatientAccount( BillingOffice billingOffice, long medicalRecordNumber, PersonName name, DateTime? birthDate, Address homeAddress, AdministrativeGender administrativeGender ) : this() { Check.IsNotNull ( billingOffice, "Billing office is required." ); Check.IsNotNull ( name, "Name is required." ); Check.IsNotNull ( medicalRecordNumber, "Medical record number is required." ); Check.IsNotNull ( homeAddress, () => HomeAddress ); Check.IsNotNull( administrativeGender, "Gender is required."); BillingOffice = billingOffice; MedicalRecordNumber = medicalRecordNumber; Name = name; BirthDate = birthDate; HomeAddress = homeAddress; AdministrativeGender = administrativeGender; }
/// <summary> /// Creates the payor. /// </summary> /// <param name="name">The name.</param> /// <param name="billingOffice">The billing office.</param> /// <param name="electronicTransmitterIdentificationNumber">The electronic transmitter identification number.</param> /// <returns>A payor.</returns> public Payor CreatePayor( string name, BillingOffice billingOffice, string electronicTransmitterIdentificationNumber ) { var payor = new Payor( name, billingOffice, electronicTransmitterIdentificationNumber); _payorRepository.MakePersistent(payor); return payor; }
/// <summary> /// Creates the patient account. /// </summary> /// <param name="billingOffice">The billing office.</param> /// <param name="medicalRecordNumber">The medical record number.</param> /// <param name="name">The name.</param> /// <param name="birthDate">The birth date.</param> /// <param name="homeAddress">The home address.</param> /// <param name="administrativeGender">The administrative gender.</param> /// <returns>A patient account.</returns> public virtual PatientAccount CreatePatientAccount( BillingOffice billingOffice, long medicalRecordNumber, PersonName name, DateTime? birthDate, Address homeAddress, AdministrativeGender administrativeGender) { var patientAccount = new PatientAccount ( billingOffice, medicalRecordNumber, name, birthDate, homeAddress, administrativeGender ); _patientAccountRepository.MakePersistent ( patientAccount ); return patientAccount; }
/// <summary> /// Creates the type of the payor. /// </summary> /// <param name="name">The name.</param> /// <param name="billingOffice">The billing office.</param> /// <param name="billingForm">The billing form.</param> /// <returns>A payor type.</returns> public PayorType CreatePayorType( string name, BillingOffice billingOffice, BillingForm billingForm ) { var payorType = new PayorType ( name, billingOffice, billingForm ); _payorTypeRepository.MakePersistent ( payorType ); return payorType; }
/// <summary> /// Revises the billing office. /// </summary> /// <param name="billingOffice">The billing office.</param> public virtual void ReviseBillingOffice(BillingOffice billingOffice) { Check.IsNotNull(billingOffice, () => BillingOffice); BillingOffice = billingOffice; }