Skip to main content
Version: v0.0.2

Interface: X12LineDrug

Decoded LIN + CTP - Drug Identification (837P Loop 2410). Surfaces the NDC and the optional dispensed-quantity + UCUM unit. qualifier = N4 NDC (overwhelmingly common), EN EAN/UCC-13, HI HIBC.

Example

import type { X12LineDrug } from "@cosyte/x12";
declare const d: X12LineDrug;
d.qualifier; // "N4"
d.code; // verbatim NDC
d.quantity?.toString(); // "1.50"
d.unitOfMeasure; // "ML" UCUM milliliter

Properties

code

readonly code: string


qualifier

readonly qualifier: string


quantity

readonly quantity: X12Decimal | undefined


unitOfMeasure

readonly unitOfMeasure: string | undefined