Description
Return a date envelope for a labeled expiry token.
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 a date envelope for a labeled expiry token.
When to use this tool
Use Medication Label Expiry Precision Envelope when reconciling the stated pharmacy record, inventory, timing or financial convention.
How to use the tool and how it works
- Enter token. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read firstDay, lastDay, precision. Use the output convention below.
Return a date envelope for a labeled expiry token. Accept Gregorian YYYY-MM or YYYY-MM-DD with years 1-9999; validate month/day and return identical endpoints for day precision, otherwise the month's first and last days.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| token | Token | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| firstDay | First possible written day under the accepted precision, not an authorized use date. | Required. Text; maximum UTF-16 length 8192. |
| lastDay | Last written-precision day; not a clinical or legal expiry determination. | Required. Text; maximum UTF-16 length 8192. |
| precision | Precision | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"token": "2028-02"
},
"output": {
"firstDay": "2028-02-01",
"lastDay": "2028-02-29",
"precision": "month"
}
} Limitations and assumptions
- This is written-precision bookkeeping, not a legal expiry interpretation, stability assessment or authorization to use medicine.
- 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.
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 Record Date Gap
Return signed elapsed days between two medication-record dates.
- Pharmacy Care Action Owner Due Gap
Return action age and overdue time against a supplied due day.