Skip to content

Main content

Pharmacy Tote Mixed Unit Line Expander Tool

Expand supplied mixed packaging quantities into base inventory units without medication dose conversion.

Loading tool…

Description

Multiply each pair with exact integer intermediates and sum, exporting lineUnits and totalUnits as numbers.

Pharmacy inventory distinguishes physical stock, reservations, holds, lots, package units, and expiry records. A stock calculation describes supplied records and cannot establish that a medicine is suitable or authorized for use.

Multiply each pair with exact integer intermediates and sum, exporting lineUnits and totalUnits as numbers.

When to use this tool

Use Pharmacy Tote Mixed Unit Line Expander when you need one explicit pharmacy stock-accounting component.

How to use the tool and how it works

  1. Enter quantities, unitsPerQuantity. Keep parallel arrays aligned. 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 lineUnits, totalUnits. Use the output convention below.

Require aligned nonnegative integer quantities and unitsPerQuantity at least one. Multiply each pair with exact integer intermediates and sum, exporting lineUnits and totalUnits as numbers.1

Input fieldMeaning and unitsAccepted input
quantitiesQuantitiesRequired. Array of safe integer; maximum items 256.
unitsPerQuantityUnits Per QuantityRequired. Array of safe integer; maximum items 256.
Output fieldInterpretationReturned shape
lineUnitsLine UnitsRequired. Array of safe integer; maximum items 256.
totalUnitsTotal UnitsRequired. Safe integer.
json
{
  "input": {
    "quantities": [
      2,
      3,
      5
    ],
    "unitsPerQuantity": [
      10,
      4,
      1
    ]
  },
  "output": {
    "lineUnits": [
      20,
      12,
      5
    ],
    "totalUnits": 37
  }
}

Limitations and assumptions

  • Unit relationships must already be correct; conversion to output numbers is subject to the finite safe-integer contract and does not validate package identity or dispensing quantities.
  • 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

Reconcile verified inventory and product records within the pharmacy's controlled workflow before purchasing, releasing, or dispensing stock.

References

  1. Calculation and input contract: hospital-pharmacy/pharmacy-tote-mixed-unit-line-expander — tool.io

Similar or alternative tools