Description
Scale labeled amount to a supplied target basis.
A medicine label expresses an amount on a particular mass, volume or other quantity basis. Ratios are meaningful only when numerator, denominator and active-component conventions match; a supplied conversion or fraction does not establish medicine equivalence or an appropriate dose.
Scale labeled amount to a supplied target basis.
When to use this tool
Use Medicine Label Strength Basis Factor when checking the stated medicine-label amount, unit or component-basis convention.
How to use the tool and how it works
- Enter labelAmount, labelBasis, targetBasis, suppliedAmountUnit, suppliedBasisUnit. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read amountAtTargetBasis, amountUnit, basisUnit. Use the output convention below.
Scale labeled amount to a supplied target basis. Require labelAmount/targetBasis >= 0, labelBasis > 0 and nonempty unit labels; amountAtTargetBasis = labelAmount*targetBasis/labelBasis, retaining both unit labels.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| labelAmount | Label Amount | Required. Finite number; minimum 0. |
| labelBasis | Positive labeled denominator quantity in suppliedBasisUnit. | Required. Finite number; strictly above 0. |
| targetBasis | Nonnegative target denominator quantity on that same basis. | Required. Finite number; minimum 0. |
| suppliedAmountUnit | Supplied Amount Unit | Required. Text; maximum UTF-16 length 8192. |
| suppliedBasisUnit | Supplied Basis Unit | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| amountAtTargetBasis | Amount At Target Basis | Required. Finite number. |
| amountUnit | Amount Unit | Required. Text; maximum UTF-16 length 8192. |
| basisUnit | Basis Unit | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"labelAmount": 20,
"labelBasis": 10,
"targetBasis": 5,
"suppliedAmountUnit": "mg",
"suppliedBasisUnit": "mL"
},
"output": {
"amountAtTargetBasis": 10,
"amountUnit": "mg",
"basisUnit": "mL"
}
} Limitations and assumptions
- Label and target bases must already share units; no medicine equivalence, dose suitability or administration recommendation is inferred.
- 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.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Verify the original label, ingredient identity and source edition with a qualified pharmacist; use verified unit conversion and clinical assessment for any actual medicine decision.
References
Similar or alternative tools
- Medicine Label Strength Unit Pair
Return labeled strength on a supplied numerator/denominator basis.
- Medicine Strength Mass Basis Token
Return active mass only when its basis is declared known.