Description
Parse an amount/unit record and report vocabulary permission.
Clinical research distinguishes supplied protocol metadata, participant/event records, allocation bookkeeping and an analysis target. A local count, permission flag or denominator choice can help reconcile records without establishing valid consent, randomization, regulatory compliance or a reliable treatment-effect estimate.
Parse an amount/unit record and report vocabulary permission.
When to use this tool
Use Trial Dose Record Unit Only Token when checking the stated clinical-research record, allocation, timing, analysis or evidence-basis convention.
How to use the tool and how it works
- Enter amountToken, unitToken, permittedUnits. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read amount, unit, unitPermitted. Inspect unitPermitted before interpreting the associated values.
Parse an amount/unit record and report vocabulary permission. Require canonical nonnegative decimal amountToken with optional fraction and nonempty unitToken; convert amount to finite number, preserve unit and test membership in permittedUnits.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| amountToken | Canonical nonnegative decimal text with optional fractional part; scientific notation, plus signs and leading integer zeros are rejected. | Required. Text; maximum UTF-16 length 8192. |
| unitToken | Literal unit label, without automatic unit conversion or semantic verification. | Required. Text; maximum UTF-16 length 8192. |
| permittedUnits | Permitted Units | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| amount | Amount | Required. Finite number. |
| unit | Unit | Required. Text; maximum UTF-16 length 8192. |
| unitPermitted | Literal vocabulary membership; false is a successful record result, not a dose-safety assessment. | Required. Boolean. |
{
"input": {
"amountToken": "12.5",
"unitToken": "mg",
"permittedUnits": [
"mg",
"g"
]
},
"output": {
"amount": 12.5,
"unit": "mg",
"unitPermitted": true
}
} Limitations and assumptions
- This does not convert units, validate medicine dosing or recommend administration; an unpermitted unit returns false rather than rejecting the record.
- 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
Use the complete approved protocol, authenticated source records and qualified clinical/statistical oversight for actual trial design, conduct and interpretation.
References
Similar or alternative tools
- Medicine Label Original Translated Pair
Compare a medicine label translation's parent and source version.
- Medicine Serialized Pack Reference Check
Compare serialized-pack reference fields literally.