/// <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> /// Revises the claim. /// </summary> /// <param name="claim">The claim.</param> public virtual void ReviseClaim(Claim claim) { Check.IsNotNull(claim, () => Claim); Claim = claim; }
/// <summary> /// Removes the claim. /// </summary> /// <param name="claim"> The claim. </param> public virtual void RemoveClaim(Claim claim) { Check.IsNotNull ( claim, "Claim is required." ); _claims.Remove ( claim ); NotifyItemRemoved ( () => Claims, claim ); }
/// <summary> /// Adds the claim. /// </summary> /// <param name="claim"> The claim. </param> public virtual void AddClaim(Claim claim) { Check.IsNotNull ( claim, "Claim is required." ); claim.ReviseClaimBatch ( this ); _claims.Add ( claim ); NotifyItemAdded ( () => Claims, claim ); }
/// <summary> /// Destroys the clinical case. /// </summary> /// <param name="claim"> The claim. </param> public void DestroyClinicalCase( Claim claim ) { _claimRepository.MakeTransient ( claim ); }