Skip to main content
Version: v0.0.2

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

readonly category: X12HiCategory


code

readonly code: string


codeSystem

readonly codeSystem: X12HiCodeSystem


date

readonly date: string | undefined


dateQualifier

readonly dateQualifier: string | undefined


monetaryAmount

readonly monetaryAmount: X12Decimal | undefined


poaIndicator

readonly poaIndicator: string | undefined


qualifier

readonly qualifier: string


quantity

readonly quantity: X12Decimal | undefined


versionId

readonly versionId: string | undefined