Example #1
0
 /// <summary>
 /// Removes the type of the payor.
 /// </summary>
 /// <param name="payorType">Type of the payor.</param>
 public virtual void RemovePayorType(PayorType payorType)
 {
     Check.IsNotNull(payorType, "Payor Type is required.");
     _payorTypes.Remove(payorType);
     NotifyItemRemoved(() => PayorTypes, payorType);
 }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ClaimBatch"/> class.
        /// </summary>
        /// <param name="chargeAmount">The charge amount.</param>
        /// <param name="payorType">Type of the payor.</param>
        protected internal ClaimBatch( Money chargeAmount, PayorType payorType )
            : this()
        {
            Check.IsNotNull ( chargeAmount, () => ChargeAmount );
            Check.IsNotNull ( payorType, () => PayorType );

            ChargeAmount = chargeAmount;
            PayorType = payorType;

            var lookupValueRepository = IoC.CurrentContainer.Resolve<ILookupValueRepository>();
            ClaimBatchStatus = lookupValueRepository.GetLookupByWellKnownName<ClaimBatchStatus>(WellKnownNames.ClaimModule.ClaimBatchStatus.Active);
        }
Example #3
0
 /// <summary>
 /// Revises the type of the payor.
 /// </summary>
 /// <param name="payorType">Type of the payor.</param>
 public virtual void RevisePayorType(PayorType payorType)
 {
     Check.IsNotNull ( payorType, () => PayorType );
     PayorType = payorType;
 }
Example #4
0
 /// <summary>
 /// Destroys the type of the payor.
 /// </summary>
 /// <param name="payorType">Type of the payor.</param>
 public void DestroyPayorType( PayorType payorType )
 {
     _payorTypeRepository.MakeTransient ( payorType );
 }
Example #5
0
 /// <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;
 }
Example #6
0
 /// <summary>
 /// Destroys the type of the payor.
 /// </summary>
 /// <param name="payorType">Type of the payor.</param>
 public void DestroyPayorType(PayorType payorType)
 {
     _payorTypeRepository.MakeTransient(payorType);
 }
Example #7
0
        /// <summary>
        /// Revises the primary payor type member.
        /// </summary>
        /// <param name="payorType">Type of the payor.</param>
        public virtual void RevisePrimaryPayorTypeMember(PayorType payorType)
        {
            Check.IsNotNull ( payorType, "Primary Payor Type is required." );

            var payorTypeMember = _payorTypeMembers.FirstOrDefault ( m => m.PayorType.Key == payorType.Key );
            if (payorTypeMember != null)
            {
                PrimaryPayorTypeMember = payorTypeMember;
            }
        }
Example #8
0
 /// <summary>
 /// Adds the payor type member.
 /// </summary>
 /// <param name="payorType">Type of the payor.</param>
 public virtual void AddPayorTypeMember(PayorType payorType)
 {
     var payorTypeMember = new PayorTypeMember(payorType, this);
     _payorTypeMembers.Add(payorTypeMember);
     NotifyItemAdded(() => PayorTypeMembers, payorTypeMember);
 }