/// <summary> /// Creates the claim. /// </summary> /// <param name="encounter">The encounter.</param> /// <param name="payor">The payor.</param> /// <param name="chargeAmount">The charge amount.</param> /// <param name="patientAccount">The patient account.</param> /// <param name="placeOfService">The place of service.</param> /// <param name="serviceDate">The service date.</param> /// <returns> /// A claim object. /// </returns> public Claim CreateClaim(Encounter encounter, Payor payor, Money chargeAmount, PatientAccount patientAccount, Location placeOfService, DateTime serviceDate ) { var claim = new Claim (encounter, payor, chargeAmount, patientAccount, placeOfService, serviceDate ); _claimRepository.MakePersistent ( claim ); return claim; }
/// <summary> /// Initializes a new instance of the <see cref="PayorCoverage"/> class. /// </summary> /// <param name="payor">The payor.</param> /// <param name="payorSubscriber">The payor subscriber.</param> /// <param name="memberNumber">The member number.</param> /// <param name="effectiveCoverageDateRange">The effective coverage date range.</param> /// <param name="payorCoverageType">Type of the payor coverage.</param> public PayorCoverage(Payor payor, PayorSubscriber payorSubscriber, string memberNumber, DateRange effectiveCoverageDateRange, PayorCoverageType payorCoverageType ) { Check.IsNotNull ( payor, ()=> Payor ); Check.IsNotNull ( payorSubscriber, () => PayorSubscriber ); Check.IsNotNull ( memberNumber, () => MemberNumber ); Check.IsNotNull ( effectiveCoverageDateRange, () => EffectiveCoverageDateRange ); Check.IsNotNull ( payorCoverageType, () => PayorCoverageType ); Payor = payor; MemberNumber = memberNumber; EffectiveCoverageDateRange = effectiveCoverageDateRange; PayorSubscriber = payorSubscriber; PayorCoverageType = payorCoverageType; }
/// <summary> /// Initializes a new instance of the <see cref="Claim"/> class. /// </summary> /// <param name="encounter">The encounter.</param> /// <param name="payor">The payor.</param> /// <param name="chargeAmount">The charge amount.</param> /// <param name="patientAccount">The patient account.</param> /// <param name="placeOfService">The place of service.</param> /// <param name="serviceDate">The service date.</param> public Claim(Encounter encounter, Payor payor, Money chargeAmount, PatientAccount patientAccount, Location placeOfService, DateTime serviceDate ) : this() { Check.IsNotNull ( encounter, () => Encounter ); Check.IsNotNull ( payor, () => Payor ); Check.IsNotNull ( chargeAmount, () => ChargeAmount ); Check.IsNotNull ( patientAccount, () => PatientAccount ); Check.IsNotNull ( placeOfService, () => ServiceLocation ); Check.IsNotNull ( serviceDate, () => ServiceDate ); Encounter = encounter; Payor = payor; ChargeAmount = chargeAmount; PatientAccount = patientAccount; ServiceLocation = placeOfService; ServiceDate = serviceDate; }
/// <summary> /// Removes the payor. /// </summary> /// <param name="payor">The payor.</param> public virtual void RemovePayor( Payor payor ) { Check.IsNotNull ( payor, "Payor is required." ); _payors.Remove ( payor ); NotifyItemRemoved ( () => Payors, payor ); }
/// <summary> /// Destroys the payor cache. /// </summary> /// <param name="payor">The payor.</param> public void DestroyPayor( Payor payor ) { _payorRepository.MakeTransient ( payor ); }
/// <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> /// Revises the payor. /// </summary> /// <param name="payor">The payor.</param> public virtual void RevisePayor(Payor payor) { Check.IsNotNull ( payor, () => Payor ); Payor = payor; }
/// <summary> /// Destroys the payor cache. /// </summary> /// <param name="payor">The payor.</param> public void DestroyPayor(Payor payor) { _payorRepository.MakeTransient(payor); }