Description
Apply a supplied cap to eligible visit costs.
Pharmacy administration distinguishes medicine and document identifiers, service records, stock balances and payment conventions from decisions about care. Literal labels and supplied status flags help reconcile records, while medicine identity, appropriate treatment and actual availability require independent verification.
Apply a supplied cap to eligible visit costs.
When to use this tool
Use Pharmacy Visit Cost Cap Gap when reconciling the stated pharmacy record, inventory, timing or financial convention.
How to use the tool and how it works
- Enter grossCost, eligibleCost, suppliedCap. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read cappedEligible, unreimbursedCost, capHeadroom. Use the output convention below.
Apply a supplied cap to eligible visit costs. Require 0 <= eligibleCost <= grossCost and cap >= 0; cappedEligible = min(eligible,cap), unreimbursedCost = gross-capped, capHeadroom = max(0,cap-eligible).1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| grossCost | Gross Cost | Required. Finite number; minimum 0. |
| eligibleCost | Eligible Cost | Required. Finite number; minimum 0. |
| suppliedCap | Supplied Cap | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| cappedEligible | Capped Eligible | Required. Finite number. |
| unreimbursedCost | Unreimbursed Cost | Required. Finite number. |
| capHeadroom | max(0,suppliedCap-eligibleCost), not cap minus the gross cost. | Required. Finite number. |
{
"input": {
"grossCost": 100,
"eligibleCost": 80,
"suppliedCap": 60
},
"output": {
"cappedEligible": 60,
"unreimbursedCost": 40,
"capHeadroom": 0
}
} Limitations and assumptions
- Costs share a currency; eligibility, actual reimbursement and enforceable payment terms are not verified.
- 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
Inspect verified medicine and service records and the applicable professional procedures; use appropriate clinical systems and qualified professional judgment for care or supply decisions.
References
Similar or alternative tools
- Pharmacy Service Contact Time Cost Term
Return pharmacy contact/preparation cost after reimbursement.
- Clinical Order Unit Convention
Preserve an explicit order unit convention without interpreting or converting a medication order.