Skip to main content
Version: v0.0.2

Interface: X12ClaimStatusResponse

Top-level result of the 277 / 277CA walker. Claims are flattened: each X12ClaimStatus carries its enclosing information source (payer), information receiver, service provider, and subscriber / dependent context resolved from the HL tree, mirroring how get835 flattens claim payment loops.

Example

import { parseX12, get277Status } from "@cosyte/x12";
const ix = parseX12(raw);
const tx = ix.groups[0]?.transactions.find((t) => t.st.elements[1] === "277");
if (tx !== undefined) {
const status = get277Status(ix.delimiters, tx);
for (const claim of status?.claims ?? []) {
claim.traces[0]?.referenceId; // echoed 276 trace
claim.statuses[0]?.statuses[0]?.categoryCode; // "A2" (acknowledgment)
}
}

Properties

claims

readonly claims: readonly X12ClaimStatus[]


hierarchies

readonly hierarchies: readonly X12Hl[]


implementationConventionReference

readonly implementationConventionReference: string | undefined


transactionType

readonly transactionType: "claim-status" | "claim-acknowledgment"


warnings

readonly warnings: readonly X12ParseWarning[]