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
readonlyclaims: readonlyX12ClaimStatus[]
hierarchies
readonlyhierarchies: readonlyX12Hl[]
implementationConventionReference
readonlyimplementationConventionReference:string|undefined
transactionType
readonlytransactionType:"claim-status"|"claim-acknowledgment"
warnings
readonlywarnings: readonlyX12ParseWarning[]