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
- Enter quantities, unitsPerQuantity. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- 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 field | Meaning and units | Accepted input |
|---|---|---|
| quantities | Quantities | Required. Array of safe integer; maximum items 256. |
| unitsPerQuantity | Units Per Quantity | Required. Array of safe integer; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| lineUnits | Line Units | Required. Array of safe integer; maximum items 256. |
| totalUnits | Total Units | Required. Safe integer. |
{
"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
Similar or alternative tools
- Medicine Carton Blister Unit Reconcile
Multiply cartons by blistersPerCarton, add looseBlisters, multiply by unitsPerBlister, and add looseUnits.
- Medicine Pack Content Remainder
Divide nonnegative integer totalUnits by positive unitsPerPack using exact integer arithmetic.