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
- Enter collectorId, authorizedIds, startDay, endDay, collectionDay, revoked. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- 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 field | Meaning and units | Accepted input |
|---|---|---|
| collectorId | Collector Id | Required. Text; maximum UTF-16 length 8192. |
| authorizedIds | Authorized Ids | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| startDay | Start Day | Required. Safe integer. |
| endDay | End Day | Required. Safe integer. |
| collectionDay | Collection Day | Required. Safe integer. |
| revoked | Revoked | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| identityListed | Identity Listed | Required. Boolean. |
| insideWindow | Inside Window | Required. Boolean. |
| eligible | Supplied listed identity AND half-open window AND not revoked; no actual access or dispensing is authorized. | Required. Boolean. |
{
"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
Similar or alternative tools
- Collection Authority Unknown Token
Combine supplied collection-authority and identity knowledge flags.
- Pharmacy Return To Stockelapsed Window Tool
Audit explicit return-record timing without determining product usability.