Description
Return unique medication-list IDs and duplicate positions.
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 unique medication-list IDs and duplicate positions.
When to use this tool
Use Medication List Duplicate ID Flag when reconciling the stated pharmacy record, inventory, timing or financial convention.
How to use the tool and how it works
- Enter recordIds. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read duplicatePositions, uniqueIds. Use the output convention below.
Return unique medication-list IDs and duplicate positions. Preserve first-seen order in uniqueIds; duplicatePositions contains every later occurrence of an identical ID.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| recordIds | Record Ids | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| duplicatePositions | Duplicate Positions | Required. Array of safe integer; maximum items 256. |
| uniqueIds | Unique Ids | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
{
"input": {
"recordIds": [
"M1",
"M2",
"M1"
]
},
"output": {
"duplicatePositions": [
2
],
"uniqueIds": [
"M1",
"M2"
]
}
} Limitations and assumptions
- No ingredient, patient, prescription or medicine identity is resolved; repeated labels are not proof of duplicate therapy.
- 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
- Medication List Active Ingredient Token Pair
Compare two supplied active-ingredient token sets.
- Medication Record Discontinued Active Conflict
Flag an active record conflicting with effective discontinuation.