Description
Compare recorded cabinet occupancy with a supplied pocket capacity.
Pharmacy records connect requests, lots, release references, stock movements, receipt states and storage observations. A ward-perspective issue balance differs from a central-store balance, while a time gap does not assess a temperature excursion. Recorded labels and flags do not authorize dispensing or establish safe medication supply.
Compare recorded cabinet occupancy with a supplied pocket capacity.
When to use this tool
Use Cabinet Pocket Capacity Margin when you already have capacity, recordedOccupancy and need to compare recorded cabinet occupancy with a supplied pocket capacity.
How to use the tool and how it works
- Enter capacity, recordedOccupancy. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read remainingSpaces, overCapacity. Inspect overCapacity before interpreting the associated values.
Require nonnegative safe whole capacity/occupancy; remaining=capacity-occupancy and overCapacity means occupancy>capacity.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| capacity | Capacity | Required. Safe integer; minimum 0. |
| recordedOccupancy | Recorded Occupancy | Required. Safe integer; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| remainingSpaces | capacity-recordedOccupancy; negative when overCapacity=true. | Required. Safe integer. |
| overCapacity | Over Capacity | Required. Boolean. |
{
"input": {
"capacity": 24,
"recordedOccupancy": 18
},
"output": {
"remainingSpaces": 6,
"overCapacity": false
}
} Limitations and assumptions
- Negative spaces are retained; no actual fit, inventory, product compatibility or safe medication storage is assessed.
- 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
Review the complete stock, traceability, release and storage records when actual supply or product status matters. Use the controlled workflow and verified evidence; local issue/return signs and receipt flags do not establish readiness or clinical suitability.
References
Similar or alternative tools
- Dispensing Request To Ready Gap
Measure signed time from a dispensing request to a ready marker.
- Hospital Pharmacy Batch Release Reference
Qualify an explicit pharmacy batch-release reference by version.