Skip to main content
Version: v0.0.4

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?

readonly optional amount?: number

RXC-3 component amount (strict-parsed; never NaN).


code?

readonly optional code?: CWE

RXC-2 component code.


type?

readonly optional type?: string

RXC-1 component type (e.g. "B"=base, "A"=additive: HL7 Table 0166).


units?

readonly optional units?: CWE

RXC-4 component units.