Description
Preserve a supplied medicine base/salt fraction with source labels.
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.
Preserve a supplied medicine base/salt fraction with source labels.
When to use this tool
Use Medicine Label Base Salt Source Pair when checking the stated medicine-label amount, unit or component-basis convention.
How to use the tool and how it works
- Enter baseName, saltName, sourceId, sourceEdition, suppliedBaseFraction. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read key, fraction. Use the output convention below.
Preserve a supplied medicine base/salt fraction with source labels. Require nonempty names/source/edition and suppliedBaseFraction in (0,1]; return the fraction and a JSON key of [baseName,saltName,sourceId,sourceEdition].1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| baseName | Base Name | Required. Text; maximum UTF-16 length 8192. |
| saltName | Salt Name | Required. Text; maximum UTF-16 length 8192. |
| sourceId | Source Id | Required. Text; maximum UTF-16 length 8192. |
| sourceEdition | Source Edition | Required. Text; maximum UTF-16 length 8192. |
| suppliedBaseFraction | Supplied Base Fraction | Required. Finite number; maximum 1; strictly above 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| key | Serialized literal record key; uniqueness or matching does not authenticate the source. | Required. Text; maximum UTF-16 length 8192. |
| fraction | The supplied fraction returned unchanged; not inferred from chemical composition. | Required. Finite number. |
{
"input": {
"baseName": "base-A",
"saltName": "salt-A",
"sourceId": "source-A",
"sourceEdition": "v1",
"suppliedBaseFraction": 0.8
},
"output": {
"key": "[\"base-A\",\"salt-A\",\"source-A\",\"v1\"]",
"fraction": 0.8
}
} Limitations and assumptions
- The fraction is not derived from molecular composition or verified against a source; no clinical substitution is authorized.
- 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.