Skip to content

Main content

Medication Record Source Age Tool

Inspect supplied medication-record source/version vintage without evaluating therapy or record validity.

Loading tool…

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

  1. Enter recordDay, sourceDay, source, version. 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 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 fieldMeaning and unitsAccepted input
recordDayRecord DayRequired. Safe integer.
sourceDaySource DayRequired. Safe integer.
sourceSourceRequired. Text; maximum UTF-16 length 8192.
versionVersionRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
ageDaysAge DaysRequired. Safe integer.
sourceKeySource KeyRequired. Text; maximum UTF-16 length 8192.
json
{
  "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

  1. Calculation and input contract: clinical-pharmacy/medication-record-source-age — tool.io

Similar or alternative tools