Interface: X12ClaimHiCode
Decoded HI diagnosis or procedure composite. ONE entry per HI composite
(HI-01..HI-12); the parser surfaces the verbatim qualifier AND the
resolved X12HiCodeSystem so consumers can branch by system
without re-deriving the mapping. The category discriminates the role
(diagnosis / procedure / NUBC code-set entry).
poaIndicator (Present-on-Admission) is HI-NN-9 - 837I institutional
inpatient only. CMS-mandated values: Y Yes, N No, U Insufficient
documentation, W Clinically undetermined, 1 Exempt from POA
reporting. Verbatim - the parser preserves the value, never validates
against the spec list (Phase 9 profile may layer enforcement).
Example
import type { X12ClaimHiCode } from "@cosyte/x12";
declare const dx: X12ClaimHiCode;
dx.qualifier; // "ABK" - principal diagnosis ICD-10-CM
dx.codeSystem; // "ICD-10-CM"
dx.category; // "principal-diagnosis"
dx.code; // "J45.50"
dx.poaIndicator; // "Y" (837I only)
Properties
category
readonlycategory:X12HiCategory
code
readonlycode:string
codeSystem
readonlycodeSystem:X12HiCodeSystem
date
readonlydate:string|undefined
dateQualifier
readonlydateQualifier:string|undefined
monetaryAmount
readonlymonetaryAmount:X12Decimal|undefined
poaIndicator
readonlypoaIndicator:string|undefined
qualifier
readonlyqualifier:string
quantity
readonlyquantity:X12Decimal|undefined
versionId
readonlyversionId:string|undefined