Description
Allocate a pharmacy bill under a supplied voucher/copay order.
Pharmacy administration separates inventory, document identity, authorization, service timing and financial records from clinical decisions. Matching labels or a positive local predicate can reconcile supplied metadata without authenticating medicine, establishing lawful supply or determining appropriate care.
Allocate a pharmacy bill under a supplied voucher/copay order.
When to use this tool
Use Pharmacy Voucher Copay Order Term when checking the stated pharmacy record, inventory, timing, coverage or cost convention.
How to use the tool and how it works
- Enter bill, copay, voucher, voucherBeforeCopay. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read patientPayment, voucherUsed, insurerPayment. Use the output convention below.
Allocate a pharmacy bill under a supplied voucher/copay order. Require bill/copay/voucher >= 0; apply voucher to bill before the copay cap when voucherBeforeCopay, otherwise reduce the capped copay; return patientPayment, voucherUsed and insurerPayment.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| bill | Bill | Required. Finite number; minimum 0. |
| copay | Copay | Required. Finite number; minimum 0. |
| voucher | Voucher | Required. Finite number; minimum 0. |
| voucherBeforeCopay | Selects the explicit bill-first or copay-first allocation; no actual payer policy is inferred. | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| patientPayment | Patient Payment | Required. Finite number. |
| voucherUsed | Voucher Used | Required. Finite number. |
| insurerPayment | Insurer Payment | Required. Finite number. |
{
"input": {
"bill": 100,
"copay": 20,
"voucher": 10,
"voucherBeforeCopay": true
},
"output": {
"patientPayment": 20,
"voucherUsed": 10,
"insurerPayment": 70
}
} Limitations and assumptions
- This is the stated arithmetic allocation, not actual insurance coverage or reimbursement terms; all amounts share currency and billing basis.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Use verified medicine/service records and applicable professional procedures; consult a qualified pharmacist or other appropriate professional for clinical, legal or safe-supply decisions.
References
Similar or alternative tools
- Pharmacy Service Invoice Tax Basis
Calculate invoice tax under a supplied discount basis.
- Pharmacy Package Unit Price Supplement
Return gross and net unit prices with an explicit supplement.