Description
Locate duplicate medicine-package record keys.
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.
Locate duplicate medicine-package record keys.
When to use this tool
Use Medicine Reconciliation Duplicate Package Key when reconciling the stated pharmacy record, inventory, timing or financial convention.
How to use the tool and how it works
- Enter productIds, serials, lots. Follow any array-alignment requirements below. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read keys, duplicateIndices. Use the output convention below.
Locate duplicate medicine-package record keys. Require aligned productIds/serials/lots; serialize [product,lot,serial] per row, return keys and indexes of every repeated key after its first occurrence.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| productIds | Product Ids | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| serials | Serials | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| lots | Lots | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| keys | Keys | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| duplicateIndices | Duplicate Indices | Required. Array of safe integer; maximum items 256. |
{
"input": {
"productIds": [
"P",
"P",
"P"
],
"serials": [
"001",
"002",
"001"
],
"lots": [
"L",
"L",
"L"
]
},
"output": {
"keys": [
"[\"P\",\"L\",\"001\"]",
"[\"P\",\"L\",\"002\"]",
"[\"P\",\"L\",\"001\"]"
],
"duplicateIndices": [
2
]
}
} Limitations and assumptions
- Literal duplicate metadata does not establish duplicate dispensing, physical authentication or a reconciliation decision.
- 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
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
- Medicine Source Version Gap
Split a medicine reference at its last version delimiter.
- Medication List Duplicate ID Flag
Return unique medication-list IDs and duplicate positions.