Description
Classify a dispensed, returned, pending or cancelled record.
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.
Classify a dispensed, returned, pending or cancelled record.
When to use this tool
Use Pharmacy Record Non Dispensed Status Token when reconciling the stated pharmacy record, inventory, timing or financial convention.
How to use the tool and how it works
- Enter status, quantity. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read dispensed, returned, pending, nonDispensedQuantity. Inspect dispensed, returned, pending before interpreting the associated values.
Classify a dispensed, returned, pending or cancelled record. Require one supported status and nonnegative whole quantity; return three status flags and nonDispensedQuantity zero only for dispensed, otherwise quantity.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| status | Status | Required. Text; one of "dispensed", "returned", "pending", "cancelled"; maximum UTF-16 length 8192. |
| quantity | Quantity | Required. Safe integer; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| dispensed | Dispensed | Required. Boolean. |
| returned | Returned | Required. Boolean. |
| pending | Pending | Required. Boolean. |
| nonDispensedQuantity | Non Dispensed Quantity | Required. Safe integer. |
{
"input": {
"status": "pending",
"quantity": 20
},
"output": {
"dispensed": false,
"returned": false,
"pending": true,
"nonDispensedQuantity": 20
}
} Limitations and assumptions
- Cancelled records have all three flags false; labels do not establish actual supply, return quality or clinical appropriateness.
- 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
- Medicine Source Version Gap
Split a medicine reference at its last version delimiter.
- Medicine Reconciliation Duplicate Package Key
Locate duplicate medicine-package record keys.