Description
Find repeated active product/fill-day records.
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.
Find repeated active product/fill-day records.
When to use this tool
Use Medicine Refill Record Duplicate Date when checking the stated pharmacy record, inventory, timing, coverage or cost convention.
How to use the tool and how it works
- Enter productIds, fillDays, cancelled. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read duplicateIndices, activeCount. Use the output convention below.
Find repeated active product/fill-day records. Require aligned productIds/fillDays/cancelled; ignore cancelled rows, count active rows and return zero-based indexes after the first matching product/day pair.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| productIds | Product Ids | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| fillDays | Fill Days | Required. Array of safe integer; maximum items 256. |
| cancelled | Cancelled | Required. Array of boolean; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| duplicateIndices | Duplicate Indices | Required. Array of safe integer; maximum items 256. |
| activeCount | Active Count | Required. Safe integer. |
{
"input": {
"productIds": [
"A",
"A",
"B",
"A"
],
"fillDays": [
100,
100,
100,
100
],
"cancelled": [
false,
false,
false,
true
]
},
"output": {
"duplicateIndices": [
1
],
"activeCount": 3
}
} Limitations and assumptions
- Day labels and product identities are supplied; repeats are not proof of duplicate dispensing, fraud or an invalid prescription.
- 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
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
- Medicine Serialized Pack Reference Check
Compare serialized-pack reference fields literally.
- Medicine Label Original Translated Pair
Compare a medicine label translation's parent and source version.