Skip to content

Main content

Medicine Inventory Reserved Available Gap Tool

Calculate medicine inventory reserved available gap from explicit caller-supplied inputs.

Loading tool…

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

  1. Enter physical, quarantined, reserved, backordered. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. 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 fieldMeaning and unitsAccepted input
physicalPhysicalRequired. Safe integer; minimum 0.
quarantinedQuarantinedRequired. Safe integer; minimum 0.
reservedReservedRequired. Safe integer; minimum 0.
backorderedBackorderedRequired. Safe integer; minimum 0.
Output fieldInterpretationReturned shape
usableUsableRequired. Safe integer.
unreservedUnreservedRequired. Safe integer.
promiseGapPromise GapRequired. Safe integer.
json
{
  "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

  1. Calculation and input contract: clinical-pharmacy/medicine-inventory-reserved-available-gap — tool.io

Similar or alternative tools