Interface: MedicationComponent
One RXC (Pharmacy/Treatment Component Order) grouped under its parent RX* segment: a component of a compound/IV. Surfaced STRUCTURALLY (the component list as authored), NOT pharmacologically resolved.
Example
import type { MedicationComponent } from "@cosyte/hl7";
const c: MedicationComponent = { type: "B", code: { identifier: "D5W", text: "Dextrose 5%" }, amount: 1000 };
Properties
amount?
readonlyoptionalamount?:number
RXC-3 component amount (strict-parsed; never NaN).
code?
readonlyoptionalcode?:CWE
RXC-2 component code.
type?
readonlyoptionaltype?:string
RXC-1 component type (e.g. "B"=base, "A"=additive: HL7 Table 0166).
units?
readonlyoptionalunits?:CWE
RXC-4 component units.