Skip to content

Main content

Medication List Active Ingredient Token Pair Tool

Compare explicitly supplied ingredient tokens without equivalence or interaction inference.

Loading tool…

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

  1. Enter first, second, normalizeCase. Follow any array-alignment requirements below. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. 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 fieldMeaning and unitsAccepted input
firstFirstRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
secondSecondRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
normalizeCaseNormalize CaseRequired. Boolean.
Output fieldInterpretationReturned shape
sharedSharedRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
firstOnlyFirst OnlyRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
secondOnlySecond OnlyRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
json
{
  "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

  1. Calculation and input contract: clinical-pharmacy/medication-list-active-ingredient-token-pair — tool.io

Similar or alternative tools