Description
Return active mass only when its basis is declared known.
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.
Return active mass only when its basis is declared known.
When to use this tool
Use Medicine Strength Mass Basis Token when checking the stated medicine-label amount, unit or component-basis convention.
How to use the tool and how it works
- Enter labeledMass, suppliedActiveFraction, basisKnown. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read activeMassDefined, activeMass. Inspect activeMassDefined before interpreting the associated values.
Return active mass only when its basis is declared known. Require labeledMass >= 0 and suppliedActiveFraction in [0,1]; activeMassDefined = basisKnown, activeMass = labeledMass*fraction when known, otherwise zero.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| labeledMass | Labeled Mass | Required. Finite number; minimum 0. |
| suppliedActiveFraction | Dimensionless caller-supplied active-component mass fraction, not a verified medicine conversion. | Required. Finite number; minimum 0; maximum 1. |
| basisKnown | Basis Known | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| activeMassDefined | Active Mass Defined | Required. Boolean. |
| activeMass | Labeled mass times the supplied active fraction when basisKnown; zero placeholder otherwise. | Required. Finite number. |
{
"input": {
"labeledMass": 100,
"suppliedActiveFraction": 0.8,
"basisKnown": true
},
"output": {
"activeMassDefined": true,
"activeMass": 80
}
} Limitations and assumptions
- Zero with an unknown basis is a placeholder; no medicine identity, salt equivalence, recommended dose or safe administration is established.
- 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 Basis Factor
Scale labeled amount to a supplied target basis.
- Medicine Label Strength Unit Pair
Return labeled strength on a supplied numerator/denominator basis.