Skip to content

Main content

Pharmacy Record Collection Authority Window Tool

Check supplied collection-authority identity/window fields without identity verification.

Loading tool…

Description

Combine collection identity, time window and revocation flags.

Pharmacy administration separates inventory, document identity, authorization, service timing and financial records from clinical decisions. Matching labels or a positive local predicate can reconcile supplied metadata without authenticating medicine, establishing lawful supply or determining appropriate care.

Combine collection identity, time window and revocation flags.

When to use this tool

Use Pharmacy Record Collection Authority Window when checking the stated pharmacy record, inventory, timing, coverage or cost convention.

How to use the tool and how it works

  1. Enter collectorId, authorizedIds, startDay, endDay, collectionDay, revoked. 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 identityListed, insideWindow, eligible. Inspect identityListed, insideWindow, eligible before interpreting the associated values.

Combine collection identity, time window and revocation flags. Require endDay >= startDay; identityListed checks collectorId in authorizedIds, insideWindow is start-inclusive/end-exclusive, eligible requires both and not revoked.1

Input fieldMeaning and unitsAccepted input
collectorIdCollector IdRequired. Text; maximum UTF-16 length 8192.
authorizedIdsAuthorized IdsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
startDayStart DayRequired. Safe integer.
endDayEnd DayRequired. Safe integer.
collectionDayCollection DayRequired. Safe integer.
revokedRevokedRequired. Boolean.
Output fieldInterpretationReturned shape
identityListedIdentity ListedRequired. Boolean.
insideWindowInside WindowRequired. Boolean.
eligibleSupplied listed identity AND half-open window AND not revoked; no actual access or dispensing is authorized.Required. Boolean.
json
{
  "input": {
    "collectorId": "A",
    "authorizedIds": [
      "A",
      "B"
    ],
    "startDay": 100,
    "endDay": 110,
    "collectionDay": 105,
    "revoked": false
  },
  "output": {
    "identityListed": true,
    "insideWindow": true,
    "eligible": true
  }
}

Limitations and assumptions

  • All authorization records are supplied; eligible is a local predicate, not identity verification or lawful dispensing authority.
  • 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

Use verified medicine/service records and applicable professional procedures; consult a qualified pharmacist or other appropriate professional for clinical, legal or safe-supply decisions.

References

  1. Calculation and input contract: community-pharmacy/pharmacy-record-collection-authority-window — tool.io

Similar or alternative tools