Description
Return medication-source age and a source/version key.
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 medication-source age and a source/version key.
When to use this tool
Use Medication Record Source Age when reconciling the stated pharmacy record, inventory, timing or financial convention.
How to use the tool and how it works
- Enter recordDay, sourceDay, source, version. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read ageDays, sourceKey. Use the output convention below.
Return medication-source age and a source/version key. ageDays = recordDay-sourceDay; sourceKey serializes [source,version].1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| recordDay | Record Day | Required. Safe integer. |
| sourceDay | Source Day | Required. Safe integer. |
| source | Source | Required. Text; maximum UTF-16 length 8192. |
| version | Version | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| ageDays | Age Days | Required. Safe integer. |
| sourceKey | Source Key | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"recordDay": 130,
"sourceDay": 100,
"source": "system-A",
"version": "v2"
},
"output": {
"ageDays": 30,
"sourceKey": "[\"system-A\",\"v2\"]"
}
} Limitations and assumptions
- Negative age is retained; day coordinates and source labels do not establish authenticity, currency or clinical applicability.
- 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 Record Discontinued Active Conflict
Flag an active record conflicting with effective discontinuation.
- Medication List Duplicate ID Flag
Return unique medication-list IDs and duplicate positions.