Description
Compare two supplied active-ingredient token sets.
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.
Compare two supplied active-ingredient token sets.
When to use this tool
Use Medication List Active Ingredient Token Pair when reconciling the stated pharmacy record, inventory, timing or financial convention.
How to use the tool and how it works
- Enter first, second, normalizeCase. 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 shared, firstOnly, secondOnly. Use the output convention below.
Compare two supplied active-ingredient token sets. Optionally lowercase, deduplicate in first-occurrence order and return shared, firstOnly and secondOnly labels.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| first | First | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| second | Second | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| normalizeCase | Normalize Case | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| shared | Shared | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| firstOnly | First Only | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| secondOnly | Second Only | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
{
"input": {
"first": [
"A",
"B"
],
"second": [
"b",
"C"
],
"normalizeCase": true
},
"output": {
"shared": [
"b"
],
"firstOnly": [
"a"
],
"secondOnly": [
"c"
]
}
} Limitations and assumptions
- No spelling normalization, substance equivalence, interaction check or clinical duplication assessment is performed.
- 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 Duplicate ID Flag
Return unique medication-list IDs and duplicate positions.
- Medication Record Discontinued Active Conflict
Flag an active record conflicting with effective discontinuation.