Interface: Insurance
IN1-derived insurance entry (HELPERS-06) with positional IN2/IN3 presence
flags (D-05 extension). hasIn2 / hasIn3 are ALWAYS present booleans;
callers who need the full IN2/IN3 surface can walk msg.segments("IN2").
Example
import type { Insurance } from "@cosyte/hl7";
const ins: Insurance = {
planId: { identifier: "PLAN1", text: "Aetna PPO" },
policyNumber: "POL123",
groupNumber: "GRP1",
hasIn2: false,
hasIn3: false,
};
Properties
companyId?
readonlyoptionalcompanyId?:CX
IN1-3 insurance company id.
companyName?
readonlyoptionalcompanyName?:string
IN1-4 insurance company name (first repetition, first component).
effectiveDate?
readonlyoptionaleffectiveDate?:DtmParts
IN1-12 plan effective date as the fidelity TS.
expirationDate?
readonlyoptionalexpirationDate?:DtmParts
IN1-13 plan expiration date as the fidelity TS.
groupNumber?
readonlyoptionalgroupNumber?:string
IN1-8 group number.
hasIn2
readonlyhasIn2:boolean
true iff an IN2 segment follows this IN1 before the next IN1.
hasIn3
readonlyhasIn3:boolean
true iff an IN3 segment follows this IN1 before the next IN1.
insuredName?
readonlyoptionalinsuredName?:XPN
IN1-16 insured's name.
planId?
readonlyoptionalplanId?:CWE
IN1-2 insurance plan id.
policyNumber?
readonlyoptionalpolicyNumber?:string
IN1-36 policy number.