export declare function isDiscountsValid(billingItemData: any, isTaxExclusive?: boolean): boolean; /** * This will compute the total price per billing item. * Total price will be computed by multiplying billing item price to the specified quantity * If there is an override coverage, the total price will be the override amount. (not applicable if has discount(s)) * If there are discounts, total price will deduct the total discounts. (not applicable if has coverage(s)) * * @param billingItemData - BillingInoviceItem data * @param isTaxExclusive - If true and if has specified tax, add tax exclusive computation. */ export declare function computeBillItemTotalPrice(billingItemData: any, isTaxExclusive?: boolean): number; /** * This will compute the total amount to be paid by the payor per billing item. * Total amount will be computed by multiplying billing item price to the specified quantity * If there is an override coverage, the total price will 0. (not applicable if has discount(s)) * If there are deduction coverages, total price will deduct the total deductions. (not applicable if has discount(s)) * If there are discounts, total price will deduct the total discounts. (not applicable if has coverage(s)) * * @param billingItemData - BillingInoviceItem data * @param isTaxExclusive - If true and if has specified tax, add tax exclusive computation. */ export declare function computeBillItemResolvedPrice(billingItemData: any, isTaxExclusive?: boolean): number; /** * This will compute the total amount paid by the payor (PRIVATE) per billing item. * billingItemData._payments are populated from BillingPayment (type: private) * @param billingItemData - BillingInoviceItem data */ export declare function computeBillItemPaidPrice(billingItemData: any): number; /** * This will compute the total balance amount (PRIVATE) per billing item. * @param billingItemData - BillingInoviceItem data */ export declare function computeBillItemBalancePrice(billingItemData: any): number; /** * This will compute the total coverage amount per billing item. * If coverages has override, total coverage amount will be the override amount * Else, total all coverage deduction amount * @param billingItemData - BillingInoviceItem data */ export declare function getBillingItemCoveragePrice(billingItemData: any, isTaxExclusive?: boolean): number; /** * This will compute the total coverage amount of the specific contract's id per billing item. * If coverages has override, total coverage amount will be the override amount * Else, total all coverage deduction amount * @param billingItemData - BillingInoviceItem data * @param contractId - BillingCoverage.contract * @param isTaxExclusive - If true and if has specified tax, add tax exclusive computation. */ export declare function getBillingItemCoverageByContractIdPrice(billingItemData: any, contractId: string, isTaxExclusive?: boolean): number; /** * This will compute the total coverage amount of the specific contract's insurerType per billing item. * If coverages has override, total coverage amount will be the override amount * Else, total all coverage deduction amount * @param billingItemData - BillingInoviceItem data * @param insurerType - BillingCoverage.insurerType * @param insurerSubtype - BillingCoverage.insurerSubtype * @param isTaxExclusive - If true and if has specified tax, add tax exclusive computation. */ export declare function getBillingItemCoverageByInsurerTypePrice(billingItemData: any, insurerType: string, insurerSubtype: string, isTaxExclusive?: boolean): number; /** * This will compute the total paid amount of the specific contract's id per billing item. * billingItemData._payments are populated from BillingPayment (type: insurance-coverage || corporate-partner-coverage) * @param billingItemData - BillingInoviceItem data * @param contractId - BillingCoverage.contract */ export declare function getBillingItemCoverageByContractIdPaidAmount(billingItemData: any, contractId: string): number; /** * This will compute the total paid amount of the specific contract's id per billing item. * billingItemData._payments are populated from BillingPayment (type: insurance-coverage || corporate-partner-coverage) * @param billingItemData - BillingInoviceItem data * @param insurerType - BillingCoverage.insurerType * @param insurerSubtype - BillingCoverage.insurerSubtype * @param contractId - BillingCoverage.contract */ export declare function getBillingItemCoverageByInsurerTypePaidAmount(billingItemData: any, insurerType: string, insurerSubtype: string): number; /** * This will compute the total deduction amount of all the coverages per billing item. * @param billingItemData - BillingInoviceItem data * @param isTaxExclusive - If true and if has specified tax, add tax exclusive computation. */ export declare function getBillingItemCoverageDeductions(billingItemData: any, isTaxExclusive?: boolean): number; /** * This will merge all the total tax per tax code used in billing items. * @param billingItems - BillingInoviceItem data * @param isTaxExclusive - If true and if has specified tax, add tax exclusive computation. */ export declare function getBillingItemsTaxes(billingItems: any[], isTaxExclusive: boolean): any[]; /** * This will populate 'totalPrice', 'resolvedPrice', 'paid', and 'balance' in a billing item * @param billingItemData - BillingInoviceItem data */ export declare function populateBillingItemComputations(billingItem: any): any; /** * This will populate 'totalPrice', 'resolvedPrice', 'paid', and 'balance' in billing items * @param billingItems - BillingInoviceItem data */ export declare function populateBillingItemsComputations(billingItems: any[]): any[]; /** * This will compute total amount of the billing items * @param billingItems - BillingInoviceItem data * @param isTaxExclusive - If true and if has specified tax, add tax exclusive computation. */ export declare function computeTotalAmount(billingItems: any[], isTaxExclusive: boolean): number; /** * This will compute sub total amount of the billing items (excluding tax) * @param billingItems - BillingInoviceItem data * @param isTaxExclusive - If true and if has specified tax, add tax exclusive computation. */ export declare function computeSubTotalAmount(billingItems: any[], isTaxExclusive?: boolean): number; /** * This will compute private total amount of the billing items * @param billingItems - BillingInoviceItem data * @param isTaxExclusive - If true and if has specified tax, add tax exclusive computation. */ export declare function computePatientTotalAmount(billingItems: any[], isTaxExclusive?: boolean): number; /** * This will compute private total paid amount of the billing items * @param billingItems - BillingInoviceItem data */ export declare function computePatientTotalPaidAmount(billingItems: any[]): number; /** * This will compute private total balance amount of the billing items * @param billingItems - BillingInoviceItem data */ export declare function computePatientTotalBalanceAmount(billingItems: any[], isTaxExclusive?: boolean): number; /** * This will compute coverages total amount of the billing items * @param billingItems - BillingInoviceItem data */ export declare function computeCoveragesTotalAmount(billingItems: any[], isTaxExclusive?: boolean): number; /** * This will compute insurance coverage total paid amount of the billing items * @param billingItems - BillingInoviceItem data */ export declare function computeCoveragesTotalPaidAmount(billingItems: any[], isTaxExclusive?: boolean): number; /** * This will compute insurance coverage total balance amount of the billing items * @param billingItems - BillingInoviceItem data */ export declare function computeCoveragesTotalBalanceAmount(billingItems: any[], isTaxExclusive?: boolean): number; /** * This will compute insurance coverage total amount of the billing items by contract id * @param billingItems - BillingInoviceItem data */ export declare function computeContractIdTotalAmount(billingItems: any[], contractId: string, isTaxExclusive?: boolean): number; /** * This will compute insurance coverage total paid amount of the billing items by contract id * @param billingItems - BillingInoviceItem data */ export declare function computeContractIdTotalPaidAmount(billingItems: any[], contractId: string): number; /** * This will compute insurance coverage total balance amount of the billing items by contract id * @param billingItems - BillingInoviceItem data */ export declare function computeContractIdTotalBalanceAmount(billingItems: any[], contractId: string, isTaxExclusive?: boolean): number; export declare function populateTransactions(billingItems: any[], isPrivateViewDisabled: boolean, isCoverageViewDisabled: boolean, isTaxExclusive?: boolean): any[]; export declare function populatePatientTransaction(billingItems: any[], isTaxExclusive?: boolean): any; export declare function populateCoveragesTransactions(billingItems: any[], isTaxExclusive?: boolean): any[]; export declare function computeBillItemDoctorCommissions(billingItemData: any, isTaxExclusive?: boolean): number; export declare function populateDoctorCommissions(billingItems: any[], isTaxExclusive?: boolean): any[];