Description
Return usable, unreserved and promised stock gaps.
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.
Return usable, unreserved and promised stock gaps.
When to use this tool
Use Medicine Inventory Reserved Available Gap when reconciling the stated pharmacy record, inventory, timing or financial convention.
How to use the tool and how it works
- Enter physical, quarantined, reserved, backordered. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read usable, unreserved, promiseGap. Use the output convention below.
Return usable, unreserved and promised stock gaps. Require whole physical >= quarantined >= 0 and nonnegative reserved/backordered; usable = physical-quarantined, unreserved subtracts reserved, promiseGap subtracts backordered too.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| physical | Physical | Required. Safe integer; minimum 0. |
| quarantined | Quarantined | Required. Safe integer; minimum 0. |
| reserved | Reserved | Required. Safe integer; minimum 0. |
| backordered | Backordered | Required. Safe integer; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| usable | Usable | Required. Safe integer. |
| unreserved | Unreserved | Required. Safe integer. |
| promiseGap | Promise Gap | Required. Safe integer. |
{
"input": {
"physical": 100,
"quarantined": 10,
"reserved": 40,
"backordered": 60
},
"output": {
"usable": 90,
"unreserved": 50,
"promiseGap": -10
}
} Limitations and assumptions
- Negative promise/unreserved balances are retained; actual medicine condition, availability and dispensing authorization 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
- Medication Package Remaining Unit Balance
Reconcile package units with returns and reservations.
- Medication Record Date Gap Tool
Compare explicit deidentified record dates without inferring medicine use.