@cosyte/x12 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -10439,6 +10439,7 @@ interface X12EligibilityTrace {
10439
10439
  * b.serviceTypeCodes[0]?.code; // "30"
10440
10440
  * b.inPlanNetwork; // "Y"
10441
10441
  * b.monetaryAmount?.toString(); // "1000.00"
10442
+ * b.procedure?.code; // "D2150" (EB-13-2, when the line is procedure-specific)
10442
10443
  * ```
10443
10444
  */
10444
10445
  interface X12EligibilityBenefit {
@@ -10454,11 +10455,37 @@ interface X12EligibilityBenefit {
10454
10455
  readonly quantity: X12Decimal | undefined;
10455
10456
  readonly authorizationRequired: string | undefined;
10456
10457
  readonly inPlanNetwork: string | undefined;
10458
+ /** EB-13 - the procedure this line applies to; `undefined` when EB-13 is absent or has no qualifier. */
10459
+ readonly procedure: X12EligibilityProcedure | undefined;
10457
10460
  readonly references: readonly X12EligibilityReference[];
10458
10461
  readonly dates: readonly X12EligibilityDate[];
10459
10462
  readonly messages: readonly string[];
10460
10463
  readonly relatedEntities: readonly X12EligibilityEntity[];
10461
10464
  }
10465
+ /**
10466
+ * The EB-13 composite medical procedure identifier (C003), as its separated
10467
+ * components, split on the component separator the interchange declares.
10468
+ * C003-08 (range end) is not read.
10469
+ *
10470
+ * @example
10471
+ * ```ts
10472
+ * import type { X12EligibilityProcedure } from "@cosyte/x12";
10473
+ * declare const p: X12EligibilityProcedure;
10474
+ * p.qualifier; // "AD" (EB-13-1, product/service id qualifier)
10475
+ * p.code; // "D2150" (EB-13-2)
10476
+ * p.modifiers[0]; // "26" (EB-13-3 onward)
10477
+ * ```
10478
+ */
10479
+ interface X12EligibilityProcedure {
10480
+ /** EB-13-1 - product or service id qualifier. */
10481
+ readonly qualifier: string;
10482
+ /** EB-13-2 - the procedure code. */
10483
+ readonly code: string | undefined;
10484
+ /** EB-13-3 through EB-13-6 - procedure modifiers, in transmitted order. */
10485
+ readonly modifiers: readonly string[];
10486
+ /** EB-13-7 - procedure description, when the sender transmitted one. */
10487
+ readonly description: string | undefined;
10488
+ }
10462
10489
  /**
10463
10490
  * A decoded Service Type Code (EB-03, X12 external code source 1365). The
10464
10491
  * verbatim code is always preserved; `description` resolves from the
@@ -10830,12 +10857,38 @@ interface Build271ServiceTypeSpec {
10830
10857
  /** EB-03 - a single Service Type Code. */
10831
10858
  readonly code: string;
10832
10859
  }
10860
+ /**
10861
+ * The EB-13 composite medical procedure identifier, supplied as its separated
10862
+ * components. The builder joins them with the declared component separator, so
10863
+ * a caller never hand-codes a delimiter. Mirrors
10864
+ * {@link "./types.js".X12EligibilityProcedure} minus the description, which the
10865
+ * builder does not emit.
10866
+ *
10867
+ * Refused via `X12_271_BUILD_INVALID_SPEC`: an empty `qualifier` or `code`, an
10868
+ * empty modifier, or more than four modifiers (C003 has four modifier
10869
+ * positions, and a fifth would land in the description position).
10870
+ *
10871
+ * @example
10872
+ * ```ts
10873
+ * import type { Build271ProcedureSpec } from "@cosyte/x12";
10874
+ * const p: Build271ProcedureSpec = { qualifier: "AD", code: "D2150" };
10875
+ * ```
10876
+ */
10877
+ interface Build271ProcedureSpec {
10878
+ /** EB-13-1 - product or service id qualifier (`AD` for CDT, `HC` for HCPCS, ...). */
10879
+ readonly qualifier: string;
10880
+ /** EB-13-2 - the procedure code. */
10881
+ readonly code: string;
10882
+ /** EB-13-3 through EB-13-6 - up to four procedure modifiers, in order. */
10883
+ readonly modifiers?: readonly string[];
10884
+ }
10833
10885
  /**
10834
10886
  * One eligibility-or-benefit line (EB, Loop 2110C/2110D). EB-01 is the
10835
10887
  * eligibility code; EB-03 carries one-or-more Service Type Codes (emitted
10836
10888
  * as a repeating simple element). Monetary + percent + quantity are
10837
10889
  * {@link X12Decimal}. Mirrors {@link "./types.js".X12EligibilityBenefit}
10838
- * minus each service type's derived `description`.
10890
+ * minus each service type's derived `description` and the procedure's
10891
+ * `description`.
10839
10892
  *
10840
10893
  * @example
10841
10894
  * ```ts
@@ -10873,6 +10926,8 @@ interface Build271BenefitSpec {
10873
10926
  readonly authorizationRequired?: string;
10874
10927
  /** EB-12 - in-plan-network indicator (`Y` / `N` / `U` / `W`). */
10875
10928
  readonly inPlanNetwork?: string;
10929
+ /** EB-13 - the procedure this benefit line applies to. */
10930
+ readonly procedure?: Build271ProcedureSpec;
10876
10931
  /** Loop 2120 benefit-related REF identifiers. */
10877
10932
  readonly references?: readonly Build271ReferenceSpec[];
10878
10933
  /** Loop 2120 benefit-related DTP dates. */
@@ -18914,7 +18969,7 @@ declare const TA1_ACK_CODES: {
18914
18969
  /** String-literal union over {@link TA1_ACK_CODES}. */
18915
18970
  type Ta1AckCode = (typeof TA1_ACK_CODES)[keyof typeof TA1_ACK_CODES];
18916
18971
  /**
18917
- * TA1-05 interchange note code (ASC X12 code list I18). Codes `000`–`028`
18972
+ * TA1-05 interchange note code (ASC X12 code list I18). Codes `000` to `028`
18918
18973
  * are defined by the standard; values past `028` exist in some standard
18919
18974
  * revisions and are accepted on parse (Postel's Law) but not enumerated
18920
18975
  * here - the parsed model carries the un-narrowed string on `noteCodeRaw`,
@@ -18995,7 +19050,7 @@ declare const TA1_NOTE_CODES: {
18995
19050
  };
18996
19051
  /**
18997
19052
  * String-literal union over {@link TA1_NOTE_CODES} - the standard-issued
18998
- * note codes `000`–`028`. Real-world inbound TA1 may carry a value past
19053
+ * note codes `000` to `028`. Real-world inbound TA1 may carry a value past
18999
19054
  * `028` (some revisions extend the list); `parseTA1` exposes the
19000
19055
  * un-narrowed string on `noteCodeRaw` in that case, so the value survives
19001
19056
  * even when the union cannot statically type it. **It is post-`?`-unescape
@@ -19328,7 +19383,7 @@ interface Build999FunctionalGroupSpec {
19328
19383
  * BCBS some shapes use `\\`).
19329
19384
  * - `interchangeControlNumber` is the 9-character ISA-13 value (zero-
19330
19385
  * padded if needed). `groupControlNumber` is the GS-06 numeric string
19331
- * (1–9 digits). `transactionSetControlNumber` is the ST-02 string (4–9
19386
+ * (1 to 9 digits). `transactionSetControlNumber` is the ST-02 string (4 to 9
19332
19387
  * digits per X12 .5).
19333
19388
  */
19334
19389
  interface Build999EnvelopeSpec {
@@ -20499,4 +20554,4 @@ declare const profiles: {
20499
20554
  */
20500
20555
  declare const VERSION: string;
20501
20556
 
20502
- export { AAA_CONDITION_LEVELS, AAA_FOLLOW_UP_ACTION_CODES, AAA_LEVEL_CONTEXTS, AAA_REJECT_REASON_CODES, ACK_BUILD_ERROR_CODES, ALL_WARNING_MESSAGES, ATTACHMENT_275_BUILD_ERROR_CODES, AUTH_278_BUILD_ERROR_CODES, AUTH_278_LOOP_2000A, AUTH_278_LOOP_2000B, AUTH_278_LOOP_2000C, AUTH_278_LOOP_2000D, AUTH_278_LOOP_2000E, AUTH_278_LOOP_2000F, type AaaCodeListMeta, type AaaCodeListSnapshot, AckBuildError, type AckBuildErrorCode, Attachment275BuildError, type Attachment275BuildErrorCode, BALANCE_INVARIANTS, BUILD_REFUSAL_VALUE_MAX_LENGTH, BUILD_REFUSAL_VALUE_MAX_RENDERED, type Build270AddressSpec, type Build270DateSpec, type Build270DependentSpec, type Build270EnvelopeSpec, type Build270HeaderSpec, type Build270InformationReceiverSpec, type Build270InformationSourceSpec, type Build270InquirySpec, type Build270NameSpec, type Build270ProcedureSpec, type Build270ReferenceSpec, type Build270ServiceTypeSpec, type Build270Spec, type Build270SubscriberSpec, type Build270TraceSpec, type Build271AddressSpec, type Build271BenefitSpec, type Build271DateSpec, type Build271DependentSpec, type Build271EntitySpec, type Build271EnvelopeSpec, type Build271InformationReceiverSpec, type Build271InformationSourceSpec, type Build271MemberSpec, type Build271ReferenceSpec, type Build271ServiceTypeSpec, type Build271Spec, type Build271SubscriberSpec, type Build271TraceSpec, type Build275AttachmentSpec, type Build275BeginningSpec, type Build275EntitySpec, type Build275EnvelopeSpec, type Build275LineSpec, type Build275ReferenceSpec, type Build275Spec, type Build275StatusCodeSpec, type Build275StatusSpec, type Build275TraceSpec, type Build276AmountSpec, type Build276ClaimSpec, type Build276DateSpec, type Build276DependentSpec, type Build276EnvelopeSpec, type Build276HeaderSpec, type Build276InformationReceiverSpec, type Build276InformationSourceSpec, type Build276NameSpec, type Build276ProcedureSpec, type Build276ProviderSpec, type Build276ReferenceSpec, type Build276ServiceLineSpec, type Build276Spec, type Build276SubscriberSpec, type Build276TraceSpec, type Build277ClaimSpec, type Build277DateSpec, type Build277DependentSpec, type Build277EntitySpec, type Build277EnvelopeSpec, type Build277InformationReceiverSpec, type Build277InformationSourceSpec, type Build277MemberSpec, type Build277ProviderSpec, type Build277ReferenceSpec, type Build277RfaiAmountSpec, type Build277RfaiDateSpec, type Build277RfaiEntitySpec, type Build277RfaiEnvelopeSpec, type Build277RfaiHeaderSpec, type Build277RfaiLevelSpec, type Build277RfaiQuantitySpec, type Build277RfaiReferenceSpec, type Build277RfaiRequestSpec, type Build277RfaiServiceLineSpec, type Build277RfaiServiceSpec, type Build277RfaiSpec, type Build277RfaiStatusCodeSpec, type Build277RfaiStatusSpec, type Build277RfaiTraceSpec, type Build277ServiceLineSpec, type Build277Spec, type Build277StatusCodeSpec, type Build277StatusSpec, type Build277SubscriberSpec, type Build277TraceSpec, type Build278DateSpec, type Build278DecisionSpec, type Build278DependentSpec, type Build278DiagnosisSpec, type Build278EntitySpec, type Build278EnvelopeSpec, type Build278HeaderSpec, type Build278MemberSpec, type Build278ReferenceSpec, type Build278ReviewSpec, type Build278Spec, type Build278SubscriberSpec, type Build278TraceSpec, type Build820AddressSpec, type Build820AdjustmentSpec, type Build820DateSpec, type Build820EntitySpec, type Build820EnvelopeSpec, type Build820OpenItemSpec, type Build820PartySpec, type Build820PaymentSpec, type Build820PersonSpec, type Build820ReferenceSpec, type Build820RemittanceSpec, type Build820Spec, type Build820TraceSpec, type Build834AddressSpec, type Build834AmountSpec, type Build834CoordinationOfBenefitsSpec, type Build834CoverageSpec, type Build834DateSpec, type Build834EnvelopeSpec, type Build834HeaderSpec, type Build834MemberNameSpec, type Build834MemberSpec, type Build834PartySpec, type Build834ReferenceSpec, type Build834Spec, type Build835AddressSpec, type Build835AdjustmentSpec, type Build835AmountSpec, type Build835ClaimSpec, type Build835ContactSpec, type Build835EnvelopeSpec, type Build835PartySpec, type Build835PaymentSpec, type Build835PersonSpec, type Build835ProviderAdjustmentSpec, type Build835ProviderSpec, type Build835ReferenceSpec, type Build835RemarkSpec, type Build835ServiceLineSpec, type Build835Spec, type Build835TraceSpec, type Build837AddressSpec, type Build837AdjudicationSpec, type Build837AdjustmentSpec, type Build837AmountSpec, type Build837BillingProviderSpec, type Build837ClaimSpec, type Build837ContactSpec, type Build837DateSpec, type Build837DrugSpec, type Build837EntitySpec, type Build837EnvelopeSpec, type Build837HiCodeSpec, type Build837NoteSpec, type Build837OtherSubscriberSpec, type Build837PatientSpec, type Build837ReferenceSpec, type Build837ServiceLineBaseSpec, type Build837ServiceLineDentalSpec, type Build837ServiceLineInstitutionalSpec, type Build837ServiceLineProfessionalSpec, type Build837ServiceLineSpec, type Build837Spec, type Build837SubscriberInfoSpec, type Build837SubscriberSpec, type Build837ToothSpec, type Build999ElementErrorSpec, type Build999EnvelopeSpec, type Build999FunctionalGroupSpec, type Build999SegmentErrorSpec, type Build999Spec, type Build999TransactionResponseSpec, type BuildTA1Options, type BuildTA1Spec, CARC, CLAIM_837D_LOOP_2000A, CLAIM_837D_LOOP_2300, CLAIM_837D_LOOP_2400, CLAIM_837I_LOOP_2000A, CLAIM_837I_LOOP_2300, CLAIM_837I_LOOP_2400, CLAIM_837P_LOOP_2000A, CLAIM_837P_LOOP_2300, CLAIM_837P_LOOP_2400, CLAIM_837P_LOOP_2410, CLAIM_837_BUILD_ERROR_CODES, CLAIM_837_LOOP_1000A, CLAIM_837_LOOP_1000B, CLAIM_837_LOOP_2010AA, CLAIM_837_LOOP_2010BA, CLAIM_837_LOOP_2010BB, CLAIM_837_LOOP_2010CA, CLAIM_837_LOOP_2430, CLAIM_ADJUSTMENT_GROUP_CODES, CLAIM_STATUS_276_BUILD_ERROR_CODES, CLAIM_STATUS_277_BUILD_ERROR_CODES, CLAIM_STATUS_CATEGORY_CODES, CLAIM_STATUS_CODES, CLP_STATUS, CODE_VALIDITY, CODE_VALIDITY_REASONS, CONTROL_NUMBER_PAIRS, CORE_BUSINESS_SCENARIOS, CORE_CODE_COMBINATION_ERROR_CODES, CORE_CODE_COMBINATION_OUTCOMES, CORE_CODE_COMBINATION_UNEVALUATED_REASONS, Claim837BuildError, type Claim837BuildErrorCode, type ClaimAdjustmentGroupCode, ClaimStatus276BuildError, type ClaimStatus276BuildErrorCode, ClaimStatus277BuildError, type ClaimStatus277BuildErrorCode, type CodeListCompleteness, type CodeListEntry, type CodeListEntryDates, type CodeListMeta, type CodeListRedistribution, type CodeListRedistributionStatus, type CodeListSnapshot, type CodeValidity, type CodeValidityReason, type CodeValidityResult, type CoreBusinessScenario, type CoreCodeCombinationErrorCode, type CoreCodeCombinationOutcome, type CoreCodeCombinationQuery, type CoreCodeCombinationResult, type CoreCodeCombinationRow, type CoreCodeCombinationTable, CoreCodeCombinationTableError, type CoreCodeCombinationTableField, type CoreCodeCombinationUnevaluatedReason, DELIMITER_POSITIONS, type DateParts, type DatedCodeListMeta, type DatedCodeListSnapshot, type DefineLoopSpecInput, type Delimiters, ELIGIBILITY_270_BUILD_ERROR_CODES, ELIGIBILITY_271_BUILD_ERROR_CODES, ELIGIBILITY_271_LOOP_2000A, ELIGIBILITY_271_LOOP_2000B, ELIGIBILITY_271_LOOP_2000C, ELIGIBILITY_271_LOOP_2000D, ELIGIBILITY_271_LOOP_2100C, ELIGIBILITY_271_LOOP_2100D, ELIGIBILITY_271_LOOP_2110, ENROLLMENT_834_BUILD_ERROR_CODES, ENROLLMENT_834_LOOP_1000A, ENROLLMENT_834_LOOP_1000B, ENROLLMENT_834_LOOP_2000, ENROLLMENT_834_LOOP_2100A, ENROLLMENT_834_LOOP_2300, ENROLLMENT_834_LOOP_2320, Eligibility270BuildError, type Eligibility270BuildErrorCode, Eligibility271BuildError, type Eligibility271BuildErrorCode, Enrollment834BuildError, type Enrollment834BuildErrorCode, FATAL_CODES, type FunctionalGroupSpec, type GeSegment, type GsSegment, HI_QUALIFIERS, HL_LEVEL_CODES, IK3_SYNTAX_ERROR_CODES, IK4_SYNTAX_ERROR_CODES, INQUIRY_270_LOOP_2000A, INQUIRY_270_LOOP_2000B, INQUIRY_270_LOOP_2000C, INQUIRY_270_LOOP_2000D, INQUIRY_270_LOOP_2100C, INQUIRY_270_LOOP_2100D, INQUIRY_270_LOOP_2110, ISA_MIN_LENGTH, type IeaSegment, type Ik304Code, type Ik403Code, type InterchangeSpec, type IsaSegment, type LoopMax, type LoopSegmentSpec, type LoopSpec, LoopSpecDefinitionError, type LoopUsage, MAINTENANCE_TYPE_CODES, NM1_QUALIFIERS, NON_SPEC_SEGMENT_ID, type OnWarningCallback, PREMIUM_820_BUILD_ERROR_CODES, PREMIUM_820_LOOP_1000A, PREMIUM_820_LOOP_1000B, PREMIUM_820_LOOP_2000A, PREMIUM_820_LOOP_2100A, PREMIUM_820_LOOP_2300A, PREMIUM_820_LOOP_2310A, Premium820BuildError, type Premium820BuildErrorCode, RARC, RELEASE_CHAR, REMIT_835_BUILD_ERROR_CODES, REMIT_835_LOOP_1000A, REMIT_835_LOOP_1000B, REMIT_835_LOOP_2000, REMIT_835_LOOP_2100, REMIT_835_LOOP_2110, REQUIRED_LOOPS, RFAI_277_BUILD_ERROR_CODES, RFAI_277_LOOP_1000, RFAI_277_LOOP_2000, RFAI_277_LOOP_2100, RFAI_277_LOOP_2200, RFAI_277_LOOP_2220, Remit835BuildError, type Remit835BuildErrorCode, Rfai277BuildError, type Rfai277BuildErrorCode, SERVICE_TYPE_CODES, STATUS_276_LOOP_2000A, STATUS_276_LOOP_2000B, STATUS_276_LOOP_2000C, STATUS_276_LOOP_2000D, STATUS_276_LOOP_2000E, STATUS_276_LOOP_2200, STATUS_276_LOOP_2210, STATUS_277_LOOP_2000A, STATUS_277_LOOP_2000B, STATUS_277_LOOP_2000C, STATUS_277_LOOP_2000D, STATUS_277_LOOP_2000E, STATUS_277_LOOP_2200, STATUS_277_LOOP_2220, type SegmentSpec, type SerializeOptions, ServicesReview278BuildError, type ServicesReview278BuildErrorCode, TA1_ACK_CODES, TA1_NOTE_CODES, type Ta1AckCode, type Ta1NoteCode, type Ta1Segment, type ToDateOptions, type TransactionSetSpec, UNEXPECTED_SEGMENT_CONTEXTS, VERSION, WARNING_CODES, type X12AaaCode, type X12AaaCondition, type X12AaaConditionKey, type X12AaaConditionLevel, type X12AaaLevelContext, type X12Ack999, type X12Ack999Ak1, type X12Ack999Ak2, type X12Ack999Ak9, type X12Ack999ElementNote, type X12Ack999Ik3, type X12Ack999Ik4, type X12Ack999Ik4Position, type X12Ack999Ik5, type X12Ack999SegmentNote, type X12Ack999TransactionResponse, type X12AckDispositionCode, type X12AckTA1, type X12AdditionalInformationRequest, type X12AdditionalInformationRequestAmount, type X12AdditionalInformationRequestClaim, type X12AdditionalInformationRequestDate, type X12AdditionalInformationRequestEntity, type X12AdditionalInformationRequestHeader, type X12AdditionalInformationRequestLevel, type X12AdditionalInformationRequestQuantity, type X12AdditionalInformationRequestReference, type X12AdditionalInformationRequestServiceLine, type X12AdditionalInformationRequestStatus, type X12AdditionalInformationRequestStatusCode, type X12AdditionalInformationRequestTrace, type X12Attachment, type X12AttachmentBeginning, X12AttachmentData, type X12AttachmentEntity, type X12AttachmentLine, type X12AttachmentReference, type X12AttachmentStatus, type X12AttachmentStatusCode, type X12AttachmentSubmission, type X12AttachmentTrace, type X12AuthDate, type X12AuthDiagnosis, type X12AuthEntity, type X12AuthHeader, type X12AuthMember, type X12AuthReference, type X12AuthTrace, type X12BalanceInvariant, X12BuildError, type X12BuildErrorCode, type X12Claim, type X12Claim837Variant, type X12ClaimAddress, type X12ClaimAmount, type X12ClaimContact, type X12ClaimDate, type X12ClaimEntity, type X12ClaimHiCode, type X12ClaimMember, type X12ClaimNote, type X12ClaimReference, type X12ClaimStatus, type X12ClaimStatusResponse, type X12ClassifiedQuirk, X12CodeListError, type X12CodeListErrorCode, type X12ControlNumberPair, type X12CoordinationOfBenefits, type X12DateValue, X12Decimal, type X12DecimalRead, type X12DecimalStatus, type X12DecimalWarningSink, type X12Eligibility, type X12EligibilityAddress, type X12EligibilityBenefit, type X12EligibilityDate, type X12EligibilityDependent, type X12EligibilityEntity, type X12EligibilityMember, type X12EligibilityReference, type X12EligibilityServiceType, type X12EligibilitySubscriber, type X12EligibilityTrace, type X12Enrollment, type X12EnrollmentAddress, type X12EnrollmentAmount, type X12EnrollmentDate, type X12EnrollmentHeader, type X12EnrollmentMember, type X12EnrollmentParty, type X12EnrollmentReference, type X12FatalCode, type X12FunctionalGroup, type X12HealthCoverage, type X12HiCategory, type X12HiCodeSystem, type X12HiQualifier, type X12HierarchicalLevel, type X12Hl, type X12Inquiry, type X12InquiryAddress, type X12InquiryDate, type X12InquiryDependent, type X12InquiryHeader, type X12InquiryName, type X12InquiryProcedure, type X12InquiryReceiver, type X12InquiryReference, type X12InquiryRequest, type X12InquiryServiceType, type X12InquirySource, type X12InquirySubscriber, type X12InquiryTrace, type X12Interchange, type X12LineAdjudication, type X12LineDrug, type X12OrphanAnchor, type X12OrphanAnchorKind, type X12OrphanSegment, type X12OtherSubscriber, X12ParseError, type X12ParseOptions, type X12ParseWarning, type X12Position, type X12PremiumAddress, type X12PremiumAdjustment, type X12PremiumDate, type X12PremiumEntity, type X12PremiumOpenItem, type X12PremiumParty, type X12PremiumPaymentHeader, type X12PremiumPayments, type X12PremiumPerson, type X12PremiumReference, type X12PremiumRemittance, type X12PremiumTrace, type X12Profile, type X12ProfileConformance, type X12ProfileConformancePartition, type X12ProfileDescription, type X12ProfileEffect, X12ProfileError, type X12ProfileQuirk, type X12ProfileSpec, type X12RemitAddress, type X12RemitAdjustment, type X12RemitAmount, type X12RemitClaim, type X12RemitContact, type X12RemitParty, type X12RemitPaymentHeader, type X12RemitPerson, type X12RemitProvider, type X12RemitProviderAdjustment, type X12RemitReference, type X12RemitRemark, type X12RemitServiceLine, type X12RemitTrace, type X12Remittance, type X12RequiredLoop, type X12ReviewDecision, type X12Segment, type X12ServiceLineStatus, type X12ServiceReview, type X12ServicesReview, type X12StatusCode, type X12StatusDate, type X12StatusEntity, type X12StatusInfo, type X12StatusInquiry, type X12StatusInquiryAmount, type X12StatusInquiryClaim, type X12StatusInquiryDate, type X12StatusInquiryDependent, type X12StatusInquiryHeader, type X12StatusInquiryName, type X12StatusInquiryProcedure, type X12StatusInquiryProvider, type X12StatusInquiryReceiver, type X12StatusInquiryReference, type X12StatusInquiryServiceLine, type X12StatusInquirySource, type X12StatusInquirySubscriber, type X12StatusInquiryTrace, type X12StatusMember, type X12StatusReference, type X12StatusTrace, type X12SubscriberInfo, type X12ToothInformation, type X12Tr3Adoption, type X12Tr3Conformance, type X12Tr3Direction, type X12TransactionSet, type X12UnexpectedSegmentContext, type X12WarningCode, type X12WarningPartition, type X12_837ServiceLine, type X12_837ServiceLineDental, type X12_837ServiceLineInstitutional, type X12_837ServiceLineProfessional, type X12_837Submission, X12_ACK_DISPOSITION_CODES, X12_BUILD_ERROR_CODES, X12_CODE_LIST_ERROR_CODES, X12_TR3_CONFORMANCE, aaaLoopUnidentified, aaaProvenanceIsComplete, aaaRejectReasonAbsent, aaaSegmentMalformed, aaaUnknownCode, ambiguous837Variant, amountRowDropped, attachmentAbsent, balanceNotEvaluable, binaryDataTruncated, binaryLengthInvalid, binaryLengthMismatch, binaryLengthUnverifiable, build270, build271, build275, build276, build277, build277CA, build277RequestForAdditionalInformation, build278Request, build278Response, build820, build834, build835, build837D, build837I, build837P, build999, buildInterchange, buildTA1, bundleAaaCodes, checkCarcValidity, checkClaimBalance, checkCoreCodeCombination, checkRarcValidity, checkRemitTotalBalance, checkServiceLineBalance, codeListRedistributionIsPermitted, collectElementValues, componentOptional, controlNumberMismatch, danglingReleaseChar, dateRowDropped, decodeSegment, defineLoopSpec, defineProfile, detectDelimiters, duplicateHierarchyId, elementDecimal, elementDecimalOrZero, elementOptional, elementValue, entitySegmentDiscardedAfterLx, escapeRelease, get270Inquiry, get271Eligibility, get275Attachments, get276StatusInquiry, get277CADisposition, get277RequestForAdditionalInformation, get277Status, get278Request, get278Response, get820Payments, get834Enrollments, get834Header, get835, get837Claims, getAllSegmentValues, getDefaultProfile, getSegmentValue, groupCountMismatch, guideNotDeclared, guideNotImplemented, hierarchyCycle, hlParentLevelInvalid, hlParentMismatch, interSegmentLineBreak, isAcceptDisposition, isClaimAdjustmentGroupCode, isDiagnosisQualifier, isProcedureQualifier, isaExtraElementSeparator, levelDetached, lookupAaaFollowUpAction, lookupAaaRejectReason, lookupCarc, lookupClaimStatus, lookupClaimStatusCategory, lookupClpStatus, lookupMaintenanceType, lookupRarc, lookupServiceType, missingGe, missingIea, missingRequiredLoop, missingSe, nonConventionalDelimiter, parse270Inquiries, parse276StatusInquiries, parse999, parseTA1, parseX12, partitionWarnings, payToAddressRepeated, pre005010, profiles, readElementDecimal, remitBalanceMismatch, renderCallerValue, resolveHiQualifier, rfaiHeaderAbsent, rfaiLevelAbsent, rfaiRequestAbsent, segmentCountMismatch, serializeX12, serviceLineDropped, serviceLineNotDecoded, serviceSegmentRepeated, serviceSegmentWithoutLx, setDefaultProfile, statedAmountDiscarded, statusInquiryDateRowDropped, statusInquiryDuplicateHierarchyId, statusInquiryHierarchyCycle, statusInquiryLevelDetached, statusInquiryReferenceRowDropped, toDate, toISO, toObject, trailingGarbage, transactionCountMismatch, unescapeRelease, unexpectedSegment, unknown837Variant, unknownCarc, unknownClaimStatus, unknownClaimStatusCategory, unknownHiQualifier, unknownMaintenanceType, unknownRarc, unparseableDecimal };
20557
+ export { AAA_CONDITION_LEVELS, AAA_FOLLOW_UP_ACTION_CODES, AAA_LEVEL_CONTEXTS, AAA_REJECT_REASON_CODES, ACK_BUILD_ERROR_CODES, ALL_WARNING_MESSAGES, ATTACHMENT_275_BUILD_ERROR_CODES, AUTH_278_BUILD_ERROR_CODES, AUTH_278_LOOP_2000A, AUTH_278_LOOP_2000B, AUTH_278_LOOP_2000C, AUTH_278_LOOP_2000D, AUTH_278_LOOP_2000E, AUTH_278_LOOP_2000F, type AaaCodeListMeta, type AaaCodeListSnapshot, AckBuildError, type AckBuildErrorCode, Attachment275BuildError, type Attachment275BuildErrorCode, BALANCE_INVARIANTS, BUILD_REFUSAL_VALUE_MAX_LENGTH, BUILD_REFUSAL_VALUE_MAX_RENDERED, type Build270AddressSpec, type Build270DateSpec, type Build270DependentSpec, type Build270EnvelopeSpec, type Build270HeaderSpec, type Build270InformationReceiverSpec, type Build270InformationSourceSpec, type Build270InquirySpec, type Build270NameSpec, type Build270ProcedureSpec, type Build270ReferenceSpec, type Build270ServiceTypeSpec, type Build270Spec, type Build270SubscriberSpec, type Build270TraceSpec, type Build271AddressSpec, type Build271BenefitSpec, type Build271DateSpec, type Build271DependentSpec, type Build271EntitySpec, type Build271EnvelopeSpec, type Build271InformationReceiverSpec, type Build271InformationSourceSpec, type Build271MemberSpec, type Build271ProcedureSpec, type Build271ReferenceSpec, type Build271ServiceTypeSpec, type Build271Spec, type Build271SubscriberSpec, type Build271TraceSpec, type Build275AttachmentSpec, type Build275BeginningSpec, type Build275EntitySpec, type Build275EnvelopeSpec, type Build275LineSpec, type Build275ReferenceSpec, type Build275Spec, type Build275StatusCodeSpec, type Build275StatusSpec, type Build275TraceSpec, type Build276AmountSpec, type Build276ClaimSpec, type Build276DateSpec, type Build276DependentSpec, type Build276EnvelopeSpec, type Build276HeaderSpec, type Build276InformationReceiverSpec, type Build276InformationSourceSpec, type Build276NameSpec, type Build276ProcedureSpec, type Build276ProviderSpec, type Build276ReferenceSpec, type Build276ServiceLineSpec, type Build276Spec, type Build276SubscriberSpec, type Build276TraceSpec, type Build277ClaimSpec, type Build277DateSpec, type Build277DependentSpec, type Build277EntitySpec, type Build277EnvelopeSpec, type Build277InformationReceiverSpec, type Build277InformationSourceSpec, type Build277MemberSpec, type Build277ProviderSpec, type Build277ReferenceSpec, type Build277RfaiAmountSpec, type Build277RfaiDateSpec, type Build277RfaiEntitySpec, type Build277RfaiEnvelopeSpec, type Build277RfaiHeaderSpec, type Build277RfaiLevelSpec, type Build277RfaiQuantitySpec, type Build277RfaiReferenceSpec, type Build277RfaiRequestSpec, type Build277RfaiServiceLineSpec, type Build277RfaiServiceSpec, type Build277RfaiSpec, type Build277RfaiStatusCodeSpec, type Build277RfaiStatusSpec, type Build277RfaiTraceSpec, type Build277ServiceLineSpec, type Build277Spec, type Build277StatusCodeSpec, type Build277StatusSpec, type Build277SubscriberSpec, type Build277TraceSpec, type Build278DateSpec, type Build278DecisionSpec, type Build278DependentSpec, type Build278DiagnosisSpec, type Build278EntitySpec, type Build278EnvelopeSpec, type Build278HeaderSpec, type Build278MemberSpec, type Build278ReferenceSpec, type Build278ReviewSpec, type Build278Spec, type Build278SubscriberSpec, type Build278TraceSpec, type Build820AddressSpec, type Build820AdjustmentSpec, type Build820DateSpec, type Build820EntitySpec, type Build820EnvelopeSpec, type Build820OpenItemSpec, type Build820PartySpec, type Build820PaymentSpec, type Build820PersonSpec, type Build820ReferenceSpec, type Build820RemittanceSpec, type Build820Spec, type Build820TraceSpec, type Build834AddressSpec, type Build834AmountSpec, type Build834CoordinationOfBenefitsSpec, type Build834CoverageSpec, type Build834DateSpec, type Build834EnvelopeSpec, type Build834HeaderSpec, type Build834MemberNameSpec, type Build834MemberSpec, type Build834PartySpec, type Build834ReferenceSpec, type Build834Spec, type Build835AddressSpec, type Build835AdjustmentSpec, type Build835AmountSpec, type Build835ClaimSpec, type Build835ContactSpec, type Build835EnvelopeSpec, type Build835PartySpec, type Build835PaymentSpec, type Build835PersonSpec, type Build835ProviderAdjustmentSpec, type Build835ProviderSpec, type Build835ReferenceSpec, type Build835RemarkSpec, type Build835ServiceLineSpec, type Build835Spec, type Build835TraceSpec, type Build837AddressSpec, type Build837AdjudicationSpec, type Build837AdjustmentSpec, type Build837AmountSpec, type Build837BillingProviderSpec, type Build837ClaimSpec, type Build837ContactSpec, type Build837DateSpec, type Build837DrugSpec, type Build837EntitySpec, type Build837EnvelopeSpec, type Build837HiCodeSpec, type Build837NoteSpec, type Build837OtherSubscriberSpec, type Build837PatientSpec, type Build837ReferenceSpec, type Build837ServiceLineBaseSpec, type Build837ServiceLineDentalSpec, type Build837ServiceLineInstitutionalSpec, type Build837ServiceLineProfessionalSpec, type Build837ServiceLineSpec, type Build837Spec, type Build837SubscriberInfoSpec, type Build837SubscriberSpec, type Build837ToothSpec, type Build999ElementErrorSpec, type Build999EnvelopeSpec, type Build999FunctionalGroupSpec, type Build999SegmentErrorSpec, type Build999Spec, type Build999TransactionResponseSpec, type BuildTA1Options, type BuildTA1Spec, CARC, CLAIM_837D_LOOP_2000A, CLAIM_837D_LOOP_2300, CLAIM_837D_LOOP_2400, CLAIM_837I_LOOP_2000A, CLAIM_837I_LOOP_2300, CLAIM_837I_LOOP_2400, CLAIM_837P_LOOP_2000A, CLAIM_837P_LOOP_2300, CLAIM_837P_LOOP_2400, CLAIM_837P_LOOP_2410, CLAIM_837_BUILD_ERROR_CODES, CLAIM_837_LOOP_1000A, CLAIM_837_LOOP_1000B, CLAIM_837_LOOP_2010AA, CLAIM_837_LOOP_2010BA, CLAIM_837_LOOP_2010BB, CLAIM_837_LOOP_2010CA, CLAIM_837_LOOP_2430, CLAIM_ADJUSTMENT_GROUP_CODES, CLAIM_STATUS_276_BUILD_ERROR_CODES, CLAIM_STATUS_277_BUILD_ERROR_CODES, CLAIM_STATUS_CATEGORY_CODES, CLAIM_STATUS_CODES, CLP_STATUS, CODE_VALIDITY, CODE_VALIDITY_REASONS, CONTROL_NUMBER_PAIRS, CORE_BUSINESS_SCENARIOS, CORE_CODE_COMBINATION_ERROR_CODES, CORE_CODE_COMBINATION_OUTCOMES, CORE_CODE_COMBINATION_UNEVALUATED_REASONS, Claim837BuildError, type Claim837BuildErrorCode, type ClaimAdjustmentGroupCode, ClaimStatus276BuildError, type ClaimStatus276BuildErrorCode, ClaimStatus277BuildError, type ClaimStatus277BuildErrorCode, type CodeListCompleteness, type CodeListEntry, type CodeListEntryDates, type CodeListMeta, type CodeListRedistribution, type CodeListRedistributionStatus, type CodeListSnapshot, type CodeValidity, type CodeValidityReason, type CodeValidityResult, type CoreBusinessScenario, type CoreCodeCombinationErrorCode, type CoreCodeCombinationOutcome, type CoreCodeCombinationQuery, type CoreCodeCombinationResult, type CoreCodeCombinationRow, type CoreCodeCombinationTable, CoreCodeCombinationTableError, type CoreCodeCombinationTableField, type CoreCodeCombinationUnevaluatedReason, DELIMITER_POSITIONS, type DateParts, type DatedCodeListMeta, type DatedCodeListSnapshot, type DefineLoopSpecInput, type Delimiters, ELIGIBILITY_270_BUILD_ERROR_CODES, ELIGIBILITY_271_BUILD_ERROR_CODES, ELIGIBILITY_271_LOOP_2000A, ELIGIBILITY_271_LOOP_2000B, ELIGIBILITY_271_LOOP_2000C, ELIGIBILITY_271_LOOP_2000D, ELIGIBILITY_271_LOOP_2100C, ELIGIBILITY_271_LOOP_2100D, ELIGIBILITY_271_LOOP_2110, ENROLLMENT_834_BUILD_ERROR_CODES, ENROLLMENT_834_LOOP_1000A, ENROLLMENT_834_LOOP_1000B, ENROLLMENT_834_LOOP_2000, ENROLLMENT_834_LOOP_2100A, ENROLLMENT_834_LOOP_2300, ENROLLMENT_834_LOOP_2320, Eligibility270BuildError, type Eligibility270BuildErrorCode, Eligibility271BuildError, type Eligibility271BuildErrorCode, Enrollment834BuildError, type Enrollment834BuildErrorCode, FATAL_CODES, type FunctionalGroupSpec, type GeSegment, type GsSegment, HI_QUALIFIERS, HL_LEVEL_CODES, IK3_SYNTAX_ERROR_CODES, IK4_SYNTAX_ERROR_CODES, INQUIRY_270_LOOP_2000A, INQUIRY_270_LOOP_2000B, INQUIRY_270_LOOP_2000C, INQUIRY_270_LOOP_2000D, INQUIRY_270_LOOP_2100C, INQUIRY_270_LOOP_2100D, INQUIRY_270_LOOP_2110, ISA_MIN_LENGTH, type IeaSegment, type Ik304Code, type Ik403Code, type InterchangeSpec, type IsaSegment, type LoopMax, type LoopSegmentSpec, type LoopSpec, LoopSpecDefinitionError, type LoopUsage, MAINTENANCE_TYPE_CODES, NM1_QUALIFIERS, NON_SPEC_SEGMENT_ID, type OnWarningCallback, PREMIUM_820_BUILD_ERROR_CODES, PREMIUM_820_LOOP_1000A, PREMIUM_820_LOOP_1000B, PREMIUM_820_LOOP_2000A, PREMIUM_820_LOOP_2100A, PREMIUM_820_LOOP_2300A, PREMIUM_820_LOOP_2310A, Premium820BuildError, type Premium820BuildErrorCode, RARC, RELEASE_CHAR, REMIT_835_BUILD_ERROR_CODES, REMIT_835_LOOP_1000A, REMIT_835_LOOP_1000B, REMIT_835_LOOP_2000, REMIT_835_LOOP_2100, REMIT_835_LOOP_2110, REQUIRED_LOOPS, RFAI_277_BUILD_ERROR_CODES, RFAI_277_LOOP_1000, RFAI_277_LOOP_2000, RFAI_277_LOOP_2100, RFAI_277_LOOP_2200, RFAI_277_LOOP_2220, Remit835BuildError, type Remit835BuildErrorCode, Rfai277BuildError, type Rfai277BuildErrorCode, SERVICE_TYPE_CODES, STATUS_276_LOOP_2000A, STATUS_276_LOOP_2000B, STATUS_276_LOOP_2000C, STATUS_276_LOOP_2000D, STATUS_276_LOOP_2000E, STATUS_276_LOOP_2200, STATUS_276_LOOP_2210, STATUS_277_LOOP_2000A, STATUS_277_LOOP_2000B, STATUS_277_LOOP_2000C, STATUS_277_LOOP_2000D, STATUS_277_LOOP_2000E, STATUS_277_LOOP_2200, STATUS_277_LOOP_2220, type SegmentSpec, type SerializeOptions, ServicesReview278BuildError, type ServicesReview278BuildErrorCode, TA1_ACK_CODES, TA1_NOTE_CODES, type Ta1AckCode, type Ta1NoteCode, type Ta1Segment, type ToDateOptions, type TransactionSetSpec, UNEXPECTED_SEGMENT_CONTEXTS, VERSION, WARNING_CODES, type X12AaaCode, type X12AaaCondition, type X12AaaConditionKey, type X12AaaConditionLevel, type X12AaaLevelContext, type X12Ack999, type X12Ack999Ak1, type X12Ack999Ak2, type X12Ack999Ak9, type X12Ack999ElementNote, type X12Ack999Ik3, type X12Ack999Ik4, type X12Ack999Ik4Position, type X12Ack999Ik5, type X12Ack999SegmentNote, type X12Ack999TransactionResponse, type X12AckDispositionCode, type X12AckTA1, type X12AdditionalInformationRequest, type X12AdditionalInformationRequestAmount, type X12AdditionalInformationRequestClaim, type X12AdditionalInformationRequestDate, type X12AdditionalInformationRequestEntity, type X12AdditionalInformationRequestHeader, type X12AdditionalInformationRequestLevel, type X12AdditionalInformationRequestQuantity, type X12AdditionalInformationRequestReference, type X12AdditionalInformationRequestServiceLine, type X12AdditionalInformationRequestStatus, type X12AdditionalInformationRequestStatusCode, type X12AdditionalInformationRequestTrace, type X12Attachment, type X12AttachmentBeginning, X12AttachmentData, type X12AttachmentEntity, type X12AttachmentLine, type X12AttachmentReference, type X12AttachmentStatus, type X12AttachmentStatusCode, type X12AttachmentSubmission, type X12AttachmentTrace, type X12AuthDate, type X12AuthDiagnosis, type X12AuthEntity, type X12AuthHeader, type X12AuthMember, type X12AuthReference, type X12AuthTrace, type X12BalanceInvariant, X12BuildError, type X12BuildErrorCode, type X12Claim, type X12Claim837Variant, type X12ClaimAddress, type X12ClaimAmount, type X12ClaimContact, type X12ClaimDate, type X12ClaimEntity, type X12ClaimHiCode, type X12ClaimMember, type X12ClaimNote, type X12ClaimReference, type X12ClaimStatus, type X12ClaimStatusResponse, type X12ClassifiedQuirk, X12CodeListError, type X12CodeListErrorCode, type X12ControlNumberPair, type X12CoordinationOfBenefits, type X12DateValue, X12Decimal, type X12DecimalRead, type X12DecimalStatus, type X12DecimalWarningSink, type X12Eligibility, type X12EligibilityAddress, type X12EligibilityBenefit, type X12EligibilityDate, type X12EligibilityDependent, type X12EligibilityEntity, type X12EligibilityMember, type X12EligibilityProcedure, type X12EligibilityReference, type X12EligibilityServiceType, type X12EligibilitySubscriber, type X12EligibilityTrace, type X12Enrollment, type X12EnrollmentAddress, type X12EnrollmentAmount, type X12EnrollmentDate, type X12EnrollmentHeader, type X12EnrollmentMember, type X12EnrollmentParty, type X12EnrollmentReference, type X12FatalCode, type X12FunctionalGroup, type X12HealthCoverage, type X12HiCategory, type X12HiCodeSystem, type X12HiQualifier, type X12HierarchicalLevel, type X12Hl, type X12Inquiry, type X12InquiryAddress, type X12InquiryDate, type X12InquiryDependent, type X12InquiryHeader, type X12InquiryName, type X12InquiryProcedure, type X12InquiryReceiver, type X12InquiryReference, type X12InquiryRequest, type X12InquiryServiceType, type X12InquirySource, type X12InquirySubscriber, type X12InquiryTrace, type X12Interchange, type X12LineAdjudication, type X12LineDrug, type X12OrphanAnchor, type X12OrphanAnchorKind, type X12OrphanSegment, type X12OtherSubscriber, X12ParseError, type X12ParseOptions, type X12ParseWarning, type X12Position, type X12PremiumAddress, type X12PremiumAdjustment, type X12PremiumDate, type X12PremiumEntity, type X12PremiumOpenItem, type X12PremiumParty, type X12PremiumPaymentHeader, type X12PremiumPayments, type X12PremiumPerson, type X12PremiumReference, type X12PremiumRemittance, type X12PremiumTrace, type X12Profile, type X12ProfileConformance, type X12ProfileConformancePartition, type X12ProfileDescription, type X12ProfileEffect, X12ProfileError, type X12ProfileQuirk, type X12ProfileSpec, type X12RemitAddress, type X12RemitAdjustment, type X12RemitAmount, type X12RemitClaim, type X12RemitContact, type X12RemitParty, type X12RemitPaymentHeader, type X12RemitPerson, type X12RemitProvider, type X12RemitProviderAdjustment, type X12RemitReference, type X12RemitRemark, type X12RemitServiceLine, type X12RemitTrace, type X12Remittance, type X12RequiredLoop, type X12ReviewDecision, type X12Segment, type X12ServiceLineStatus, type X12ServiceReview, type X12ServicesReview, type X12StatusCode, type X12StatusDate, type X12StatusEntity, type X12StatusInfo, type X12StatusInquiry, type X12StatusInquiryAmount, type X12StatusInquiryClaim, type X12StatusInquiryDate, type X12StatusInquiryDependent, type X12StatusInquiryHeader, type X12StatusInquiryName, type X12StatusInquiryProcedure, type X12StatusInquiryProvider, type X12StatusInquiryReceiver, type X12StatusInquiryReference, type X12StatusInquiryServiceLine, type X12StatusInquirySource, type X12StatusInquirySubscriber, type X12StatusInquiryTrace, type X12StatusMember, type X12StatusReference, type X12StatusTrace, type X12SubscriberInfo, type X12ToothInformation, type X12Tr3Adoption, type X12Tr3Conformance, type X12Tr3Direction, type X12TransactionSet, type X12UnexpectedSegmentContext, type X12WarningCode, type X12WarningPartition, type X12_837ServiceLine, type X12_837ServiceLineDental, type X12_837ServiceLineInstitutional, type X12_837ServiceLineProfessional, type X12_837Submission, X12_ACK_DISPOSITION_CODES, X12_BUILD_ERROR_CODES, X12_CODE_LIST_ERROR_CODES, X12_TR3_CONFORMANCE, aaaLoopUnidentified, aaaProvenanceIsComplete, aaaRejectReasonAbsent, aaaSegmentMalformed, aaaUnknownCode, ambiguous837Variant, amountRowDropped, attachmentAbsent, balanceNotEvaluable, binaryDataTruncated, binaryLengthInvalid, binaryLengthMismatch, binaryLengthUnverifiable, build270, build271, build275, build276, build277, build277CA, build277RequestForAdditionalInformation, build278Request, build278Response, build820, build834, build835, build837D, build837I, build837P, build999, buildInterchange, buildTA1, bundleAaaCodes, checkCarcValidity, checkClaimBalance, checkCoreCodeCombination, checkRarcValidity, checkRemitTotalBalance, checkServiceLineBalance, codeListRedistributionIsPermitted, collectElementValues, componentOptional, controlNumberMismatch, danglingReleaseChar, dateRowDropped, decodeSegment, defineLoopSpec, defineProfile, detectDelimiters, duplicateHierarchyId, elementDecimal, elementDecimalOrZero, elementOptional, elementValue, entitySegmentDiscardedAfterLx, escapeRelease, get270Inquiry, get271Eligibility, get275Attachments, get276StatusInquiry, get277CADisposition, get277RequestForAdditionalInformation, get277Status, get278Request, get278Response, get820Payments, get834Enrollments, get834Header, get835, get837Claims, getAllSegmentValues, getDefaultProfile, getSegmentValue, groupCountMismatch, guideNotDeclared, guideNotImplemented, hierarchyCycle, hlParentLevelInvalid, hlParentMismatch, interSegmentLineBreak, isAcceptDisposition, isClaimAdjustmentGroupCode, isDiagnosisQualifier, isProcedureQualifier, isaExtraElementSeparator, levelDetached, lookupAaaFollowUpAction, lookupAaaRejectReason, lookupCarc, lookupClaimStatus, lookupClaimStatusCategory, lookupClpStatus, lookupMaintenanceType, lookupRarc, lookupServiceType, missingGe, missingIea, missingRequiredLoop, missingSe, nonConventionalDelimiter, parse270Inquiries, parse276StatusInquiries, parse999, parseTA1, parseX12, partitionWarnings, payToAddressRepeated, pre005010, profiles, readElementDecimal, remitBalanceMismatch, renderCallerValue, resolveHiQualifier, rfaiHeaderAbsent, rfaiLevelAbsent, rfaiRequestAbsent, segmentCountMismatch, serializeX12, serviceLineDropped, serviceLineNotDecoded, serviceSegmentRepeated, serviceSegmentWithoutLx, setDefaultProfile, statedAmountDiscarded, statusInquiryDateRowDropped, statusInquiryDuplicateHierarchyId, statusInquiryHierarchyCycle, statusInquiryLevelDetached, statusInquiryReferenceRowDropped, toDate, toISO, toObject, trailingGarbage, transactionCountMismatch, unescapeRelease, unexpectedSegment, unknown837Variant, unknownCarc, unknownClaimStatus, unknownClaimStatusCategory, unknownHiQualifier, unknownMaintenanceType, unknownRarc, unparseableDecimal };
package/dist/index.d.ts CHANGED
@@ -10439,6 +10439,7 @@ interface X12EligibilityTrace {
10439
10439
  * b.serviceTypeCodes[0]?.code; // "30"
10440
10440
  * b.inPlanNetwork; // "Y"
10441
10441
  * b.monetaryAmount?.toString(); // "1000.00"
10442
+ * b.procedure?.code; // "D2150" (EB-13-2, when the line is procedure-specific)
10442
10443
  * ```
10443
10444
  */
10444
10445
  interface X12EligibilityBenefit {
@@ -10454,11 +10455,37 @@ interface X12EligibilityBenefit {
10454
10455
  readonly quantity: X12Decimal | undefined;
10455
10456
  readonly authorizationRequired: string | undefined;
10456
10457
  readonly inPlanNetwork: string | undefined;
10458
+ /** EB-13 - the procedure this line applies to; `undefined` when EB-13 is absent or has no qualifier. */
10459
+ readonly procedure: X12EligibilityProcedure | undefined;
10457
10460
  readonly references: readonly X12EligibilityReference[];
10458
10461
  readonly dates: readonly X12EligibilityDate[];
10459
10462
  readonly messages: readonly string[];
10460
10463
  readonly relatedEntities: readonly X12EligibilityEntity[];
10461
10464
  }
10465
+ /**
10466
+ * The EB-13 composite medical procedure identifier (C003), as its separated
10467
+ * components, split on the component separator the interchange declares.
10468
+ * C003-08 (range end) is not read.
10469
+ *
10470
+ * @example
10471
+ * ```ts
10472
+ * import type { X12EligibilityProcedure } from "@cosyte/x12";
10473
+ * declare const p: X12EligibilityProcedure;
10474
+ * p.qualifier; // "AD" (EB-13-1, product/service id qualifier)
10475
+ * p.code; // "D2150" (EB-13-2)
10476
+ * p.modifiers[0]; // "26" (EB-13-3 onward)
10477
+ * ```
10478
+ */
10479
+ interface X12EligibilityProcedure {
10480
+ /** EB-13-1 - product or service id qualifier. */
10481
+ readonly qualifier: string;
10482
+ /** EB-13-2 - the procedure code. */
10483
+ readonly code: string | undefined;
10484
+ /** EB-13-3 through EB-13-6 - procedure modifiers, in transmitted order. */
10485
+ readonly modifiers: readonly string[];
10486
+ /** EB-13-7 - procedure description, when the sender transmitted one. */
10487
+ readonly description: string | undefined;
10488
+ }
10462
10489
  /**
10463
10490
  * A decoded Service Type Code (EB-03, X12 external code source 1365). The
10464
10491
  * verbatim code is always preserved; `description` resolves from the
@@ -10830,12 +10857,38 @@ interface Build271ServiceTypeSpec {
10830
10857
  /** EB-03 - a single Service Type Code. */
10831
10858
  readonly code: string;
10832
10859
  }
10860
+ /**
10861
+ * The EB-13 composite medical procedure identifier, supplied as its separated
10862
+ * components. The builder joins them with the declared component separator, so
10863
+ * a caller never hand-codes a delimiter. Mirrors
10864
+ * {@link "./types.js".X12EligibilityProcedure} minus the description, which the
10865
+ * builder does not emit.
10866
+ *
10867
+ * Refused via `X12_271_BUILD_INVALID_SPEC`: an empty `qualifier` or `code`, an
10868
+ * empty modifier, or more than four modifiers (C003 has four modifier
10869
+ * positions, and a fifth would land in the description position).
10870
+ *
10871
+ * @example
10872
+ * ```ts
10873
+ * import type { Build271ProcedureSpec } from "@cosyte/x12";
10874
+ * const p: Build271ProcedureSpec = { qualifier: "AD", code: "D2150" };
10875
+ * ```
10876
+ */
10877
+ interface Build271ProcedureSpec {
10878
+ /** EB-13-1 - product or service id qualifier (`AD` for CDT, `HC` for HCPCS, ...). */
10879
+ readonly qualifier: string;
10880
+ /** EB-13-2 - the procedure code. */
10881
+ readonly code: string;
10882
+ /** EB-13-3 through EB-13-6 - up to four procedure modifiers, in order. */
10883
+ readonly modifiers?: readonly string[];
10884
+ }
10833
10885
  /**
10834
10886
  * One eligibility-or-benefit line (EB, Loop 2110C/2110D). EB-01 is the
10835
10887
  * eligibility code; EB-03 carries one-or-more Service Type Codes (emitted
10836
10888
  * as a repeating simple element). Monetary + percent + quantity are
10837
10889
  * {@link X12Decimal}. Mirrors {@link "./types.js".X12EligibilityBenefit}
10838
- * minus each service type's derived `description`.
10890
+ * minus each service type's derived `description` and the procedure's
10891
+ * `description`.
10839
10892
  *
10840
10893
  * @example
10841
10894
  * ```ts
@@ -10873,6 +10926,8 @@ interface Build271BenefitSpec {
10873
10926
  readonly authorizationRequired?: string;
10874
10927
  /** EB-12 - in-plan-network indicator (`Y` / `N` / `U` / `W`). */
10875
10928
  readonly inPlanNetwork?: string;
10929
+ /** EB-13 - the procedure this benefit line applies to. */
10930
+ readonly procedure?: Build271ProcedureSpec;
10876
10931
  /** Loop 2120 benefit-related REF identifiers. */
10877
10932
  readonly references?: readonly Build271ReferenceSpec[];
10878
10933
  /** Loop 2120 benefit-related DTP dates. */
@@ -18914,7 +18969,7 @@ declare const TA1_ACK_CODES: {
18914
18969
  /** String-literal union over {@link TA1_ACK_CODES}. */
18915
18970
  type Ta1AckCode = (typeof TA1_ACK_CODES)[keyof typeof TA1_ACK_CODES];
18916
18971
  /**
18917
- * TA1-05 interchange note code (ASC X12 code list I18). Codes `000`–`028`
18972
+ * TA1-05 interchange note code (ASC X12 code list I18). Codes `000` to `028`
18918
18973
  * are defined by the standard; values past `028` exist in some standard
18919
18974
  * revisions and are accepted on parse (Postel's Law) but not enumerated
18920
18975
  * here - the parsed model carries the un-narrowed string on `noteCodeRaw`,
@@ -18995,7 +19050,7 @@ declare const TA1_NOTE_CODES: {
18995
19050
  };
18996
19051
  /**
18997
19052
  * String-literal union over {@link TA1_NOTE_CODES} - the standard-issued
18998
- * note codes `000`–`028`. Real-world inbound TA1 may carry a value past
19053
+ * note codes `000` to `028`. Real-world inbound TA1 may carry a value past
18999
19054
  * `028` (some revisions extend the list); `parseTA1` exposes the
19000
19055
  * un-narrowed string on `noteCodeRaw` in that case, so the value survives
19001
19056
  * even when the union cannot statically type it. **It is post-`?`-unescape
@@ -19328,7 +19383,7 @@ interface Build999FunctionalGroupSpec {
19328
19383
  * BCBS some shapes use `\\`).
19329
19384
  * - `interchangeControlNumber` is the 9-character ISA-13 value (zero-
19330
19385
  * padded if needed). `groupControlNumber` is the GS-06 numeric string
19331
- * (1–9 digits). `transactionSetControlNumber` is the ST-02 string (4–9
19386
+ * (1 to 9 digits). `transactionSetControlNumber` is the ST-02 string (4 to 9
19332
19387
  * digits per X12 .5).
19333
19388
  */
19334
19389
  interface Build999EnvelopeSpec {
@@ -20499,4 +20554,4 @@ declare const profiles: {
20499
20554
  */
20500
20555
  declare const VERSION: string;
20501
20556
 
20502
- export { AAA_CONDITION_LEVELS, AAA_FOLLOW_UP_ACTION_CODES, AAA_LEVEL_CONTEXTS, AAA_REJECT_REASON_CODES, ACK_BUILD_ERROR_CODES, ALL_WARNING_MESSAGES, ATTACHMENT_275_BUILD_ERROR_CODES, AUTH_278_BUILD_ERROR_CODES, AUTH_278_LOOP_2000A, AUTH_278_LOOP_2000B, AUTH_278_LOOP_2000C, AUTH_278_LOOP_2000D, AUTH_278_LOOP_2000E, AUTH_278_LOOP_2000F, type AaaCodeListMeta, type AaaCodeListSnapshot, AckBuildError, type AckBuildErrorCode, Attachment275BuildError, type Attachment275BuildErrorCode, BALANCE_INVARIANTS, BUILD_REFUSAL_VALUE_MAX_LENGTH, BUILD_REFUSAL_VALUE_MAX_RENDERED, type Build270AddressSpec, type Build270DateSpec, type Build270DependentSpec, type Build270EnvelopeSpec, type Build270HeaderSpec, type Build270InformationReceiverSpec, type Build270InformationSourceSpec, type Build270InquirySpec, type Build270NameSpec, type Build270ProcedureSpec, type Build270ReferenceSpec, type Build270ServiceTypeSpec, type Build270Spec, type Build270SubscriberSpec, type Build270TraceSpec, type Build271AddressSpec, type Build271BenefitSpec, type Build271DateSpec, type Build271DependentSpec, type Build271EntitySpec, type Build271EnvelopeSpec, type Build271InformationReceiverSpec, type Build271InformationSourceSpec, type Build271MemberSpec, type Build271ReferenceSpec, type Build271ServiceTypeSpec, type Build271Spec, type Build271SubscriberSpec, type Build271TraceSpec, type Build275AttachmentSpec, type Build275BeginningSpec, type Build275EntitySpec, type Build275EnvelopeSpec, type Build275LineSpec, type Build275ReferenceSpec, type Build275Spec, type Build275StatusCodeSpec, type Build275StatusSpec, type Build275TraceSpec, type Build276AmountSpec, type Build276ClaimSpec, type Build276DateSpec, type Build276DependentSpec, type Build276EnvelopeSpec, type Build276HeaderSpec, type Build276InformationReceiverSpec, type Build276InformationSourceSpec, type Build276NameSpec, type Build276ProcedureSpec, type Build276ProviderSpec, type Build276ReferenceSpec, type Build276ServiceLineSpec, type Build276Spec, type Build276SubscriberSpec, type Build276TraceSpec, type Build277ClaimSpec, type Build277DateSpec, type Build277DependentSpec, type Build277EntitySpec, type Build277EnvelopeSpec, type Build277InformationReceiverSpec, type Build277InformationSourceSpec, type Build277MemberSpec, type Build277ProviderSpec, type Build277ReferenceSpec, type Build277RfaiAmountSpec, type Build277RfaiDateSpec, type Build277RfaiEntitySpec, type Build277RfaiEnvelopeSpec, type Build277RfaiHeaderSpec, type Build277RfaiLevelSpec, type Build277RfaiQuantitySpec, type Build277RfaiReferenceSpec, type Build277RfaiRequestSpec, type Build277RfaiServiceLineSpec, type Build277RfaiServiceSpec, type Build277RfaiSpec, type Build277RfaiStatusCodeSpec, type Build277RfaiStatusSpec, type Build277RfaiTraceSpec, type Build277ServiceLineSpec, type Build277Spec, type Build277StatusCodeSpec, type Build277StatusSpec, type Build277SubscriberSpec, type Build277TraceSpec, type Build278DateSpec, type Build278DecisionSpec, type Build278DependentSpec, type Build278DiagnosisSpec, type Build278EntitySpec, type Build278EnvelopeSpec, type Build278HeaderSpec, type Build278MemberSpec, type Build278ReferenceSpec, type Build278ReviewSpec, type Build278Spec, type Build278SubscriberSpec, type Build278TraceSpec, type Build820AddressSpec, type Build820AdjustmentSpec, type Build820DateSpec, type Build820EntitySpec, type Build820EnvelopeSpec, type Build820OpenItemSpec, type Build820PartySpec, type Build820PaymentSpec, type Build820PersonSpec, type Build820ReferenceSpec, type Build820RemittanceSpec, type Build820Spec, type Build820TraceSpec, type Build834AddressSpec, type Build834AmountSpec, type Build834CoordinationOfBenefitsSpec, type Build834CoverageSpec, type Build834DateSpec, type Build834EnvelopeSpec, type Build834HeaderSpec, type Build834MemberNameSpec, type Build834MemberSpec, type Build834PartySpec, type Build834ReferenceSpec, type Build834Spec, type Build835AddressSpec, type Build835AdjustmentSpec, type Build835AmountSpec, type Build835ClaimSpec, type Build835ContactSpec, type Build835EnvelopeSpec, type Build835PartySpec, type Build835PaymentSpec, type Build835PersonSpec, type Build835ProviderAdjustmentSpec, type Build835ProviderSpec, type Build835ReferenceSpec, type Build835RemarkSpec, type Build835ServiceLineSpec, type Build835Spec, type Build835TraceSpec, type Build837AddressSpec, type Build837AdjudicationSpec, type Build837AdjustmentSpec, type Build837AmountSpec, type Build837BillingProviderSpec, type Build837ClaimSpec, type Build837ContactSpec, type Build837DateSpec, type Build837DrugSpec, type Build837EntitySpec, type Build837EnvelopeSpec, type Build837HiCodeSpec, type Build837NoteSpec, type Build837OtherSubscriberSpec, type Build837PatientSpec, type Build837ReferenceSpec, type Build837ServiceLineBaseSpec, type Build837ServiceLineDentalSpec, type Build837ServiceLineInstitutionalSpec, type Build837ServiceLineProfessionalSpec, type Build837ServiceLineSpec, type Build837Spec, type Build837SubscriberInfoSpec, type Build837SubscriberSpec, type Build837ToothSpec, type Build999ElementErrorSpec, type Build999EnvelopeSpec, type Build999FunctionalGroupSpec, type Build999SegmentErrorSpec, type Build999Spec, type Build999TransactionResponseSpec, type BuildTA1Options, type BuildTA1Spec, CARC, CLAIM_837D_LOOP_2000A, CLAIM_837D_LOOP_2300, CLAIM_837D_LOOP_2400, CLAIM_837I_LOOP_2000A, CLAIM_837I_LOOP_2300, CLAIM_837I_LOOP_2400, CLAIM_837P_LOOP_2000A, CLAIM_837P_LOOP_2300, CLAIM_837P_LOOP_2400, CLAIM_837P_LOOP_2410, CLAIM_837_BUILD_ERROR_CODES, CLAIM_837_LOOP_1000A, CLAIM_837_LOOP_1000B, CLAIM_837_LOOP_2010AA, CLAIM_837_LOOP_2010BA, CLAIM_837_LOOP_2010BB, CLAIM_837_LOOP_2010CA, CLAIM_837_LOOP_2430, CLAIM_ADJUSTMENT_GROUP_CODES, CLAIM_STATUS_276_BUILD_ERROR_CODES, CLAIM_STATUS_277_BUILD_ERROR_CODES, CLAIM_STATUS_CATEGORY_CODES, CLAIM_STATUS_CODES, CLP_STATUS, CODE_VALIDITY, CODE_VALIDITY_REASONS, CONTROL_NUMBER_PAIRS, CORE_BUSINESS_SCENARIOS, CORE_CODE_COMBINATION_ERROR_CODES, CORE_CODE_COMBINATION_OUTCOMES, CORE_CODE_COMBINATION_UNEVALUATED_REASONS, Claim837BuildError, type Claim837BuildErrorCode, type ClaimAdjustmentGroupCode, ClaimStatus276BuildError, type ClaimStatus276BuildErrorCode, ClaimStatus277BuildError, type ClaimStatus277BuildErrorCode, type CodeListCompleteness, type CodeListEntry, type CodeListEntryDates, type CodeListMeta, type CodeListRedistribution, type CodeListRedistributionStatus, type CodeListSnapshot, type CodeValidity, type CodeValidityReason, type CodeValidityResult, type CoreBusinessScenario, type CoreCodeCombinationErrorCode, type CoreCodeCombinationOutcome, type CoreCodeCombinationQuery, type CoreCodeCombinationResult, type CoreCodeCombinationRow, type CoreCodeCombinationTable, CoreCodeCombinationTableError, type CoreCodeCombinationTableField, type CoreCodeCombinationUnevaluatedReason, DELIMITER_POSITIONS, type DateParts, type DatedCodeListMeta, type DatedCodeListSnapshot, type DefineLoopSpecInput, type Delimiters, ELIGIBILITY_270_BUILD_ERROR_CODES, ELIGIBILITY_271_BUILD_ERROR_CODES, ELIGIBILITY_271_LOOP_2000A, ELIGIBILITY_271_LOOP_2000B, ELIGIBILITY_271_LOOP_2000C, ELIGIBILITY_271_LOOP_2000D, ELIGIBILITY_271_LOOP_2100C, ELIGIBILITY_271_LOOP_2100D, ELIGIBILITY_271_LOOP_2110, ENROLLMENT_834_BUILD_ERROR_CODES, ENROLLMENT_834_LOOP_1000A, ENROLLMENT_834_LOOP_1000B, ENROLLMENT_834_LOOP_2000, ENROLLMENT_834_LOOP_2100A, ENROLLMENT_834_LOOP_2300, ENROLLMENT_834_LOOP_2320, Eligibility270BuildError, type Eligibility270BuildErrorCode, Eligibility271BuildError, type Eligibility271BuildErrorCode, Enrollment834BuildError, type Enrollment834BuildErrorCode, FATAL_CODES, type FunctionalGroupSpec, type GeSegment, type GsSegment, HI_QUALIFIERS, HL_LEVEL_CODES, IK3_SYNTAX_ERROR_CODES, IK4_SYNTAX_ERROR_CODES, INQUIRY_270_LOOP_2000A, INQUIRY_270_LOOP_2000B, INQUIRY_270_LOOP_2000C, INQUIRY_270_LOOP_2000D, INQUIRY_270_LOOP_2100C, INQUIRY_270_LOOP_2100D, INQUIRY_270_LOOP_2110, ISA_MIN_LENGTH, type IeaSegment, type Ik304Code, type Ik403Code, type InterchangeSpec, type IsaSegment, type LoopMax, type LoopSegmentSpec, type LoopSpec, LoopSpecDefinitionError, type LoopUsage, MAINTENANCE_TYPE_CODES, NM1_QUALIFIERS, NON_SPEC_SEGMENT_ID, type OnWarningCallback, PREMIUM_820_BUILD_ERROR_CODES, PREMIUM_820_LOOP_1000A, PREMIUM_820_LOOP_1000B, PREMIUM_820_LOOP_2000A, PREMIUM_820_LOOP_2100A, PREMIUM_820_LOOP_2300A, PREMIUM_820_LOOP_2310A, Premium820BuildError, type Premium820BuildErrorCode, RARC, RELEASE_CHAR, REMIT_835_BUILD_ERROR_CODES, REMIT_835_LOOP_1000A, REMIT_835_LOOP_1000B, REMIT_835_LOOP_2000, REMIT_835_LOOP_2100, REMIT_835_LOOP_2110, REQUIRED_LOOPS, RFAI_277_BUILD_ERROR_CODES, RFAI_277_LOOP_1000, RFAI_277_LOOP_2000, RFAI_277_LOOP_2100, RFAI_277_LOOP_2200, RFAI_277_LOOP_2220, Remit835BuildError, type Remit835BuildErrorCode, Rfai277BuildError, type Rfai277BuildErrorCode, SERVICE_TYPE_CODES, STATUS_276_LOOP_2000A, STATUS_276_LOOP_2000B, STATUS_276_LOOP_2000C, STATUS_276_LOOP_2000D, STATUS_276_LOOP_2000E, STATUS_276_LOOP_2200, STATUS_276_LOOP_2210, STATUS_277_LOOP_2000A, STATUS_277_LOOP_2000B, STATUS_277_LOOP_2000C, STATUS_277_LOOP_2000D, STATUS_277_LOOP_2000E, STATUS_277_LOOP_2200, STATUS_277_LOOP_2220, type SegmentSpec, type SerializeOptions, ServicesReview278BuildError, type ServicesReview278BuildErrorCode, TA1_ACK_CODES, TA1_NOTE_CODES, type Ta1AckCode, type Ta1NoteCode, type Ta1Segment, type ToDateOptions, type TransactionSetSpec, UNEXPECTED_SEGMENT_CONTEXTS, VERSION, WARNING_CODES, type X12AaaCode, type X12AaaCondition, type X12AaaConditionKey, type X12AaaConditionLevel, type X12AaaLevelContext, type X12Ack999, type X12Ack999Ak1, type X12Ack999Ak2, type X12Ack999Ak9, type X12Ack999ElementNote, type X12Ack999Ik3, type X12Ack999Ik4, type X12Ack999Ik4Position, type X12Ack999Ik5, type X12Ack999SegmentNote, type X12Ack999TransactionResponse, type X12AckDispositionCode, type X12AckTA1, type X12AdditionalInformationRequest, type X12AdditionalInformationRequestAmount, type X12AdditionalInformationRequestClaim, type X12AdditionalInformationRequestDate, type X12AdditionalInformationRequestEntity, type X12AdditionalInformationRequestHeader, type X12AdditionalInformationRequestLevel, type X12AdditionalInformationRequestQuantity, type X12AdditionalInformationRequestReference, type X12AdditionalInformationRequestServiceLine, type X12AdditionalInformationRequestStatus, type X12AdditionalInformationRequestStatusCode, type X12AdditionalInformationRequestTrace, type X12Attachment, type X12AttachmentBeginning, X12AttachmentData, type X12AttachmentEntity, type X12AttachmentLine, type X12AttachmentReference, type X12AttachmentStatus, type X12AttachmentStatusCode, type X12AttachmentSubmission, type X12AttachmentTrace, type X12AuthDate, type X12AuthDiagnosis, type X12AuthEntity, type X12AuthHeader, type X12AuthMember, type X12AuthReference, type X12AuthTrace, type X12BalanceInvariant, X12BuildError, type X12BuildErrorCode, type X12Claim, type X12Claim837Variant, type X12ClaimAddress, type X12ClaimAmount, type X12ClaimContact, type X12ClaimDate, type X12ClaimEntity, type X12ClaimHiCode, type X12ClaimMember, type X12ClaimNote, type X12ClaimReference, type X12ClaimStatus, type X12ClaimStatusResponse, type X12ClassifiedQuirk, X12CodeListError, type X12CodeListErrorCode, type X12ControlNumberPair, type X12CoordinationOfBenefits, type X12DateValue, X12Decimal, type X12DecimalRead, type X12DecimalStatus, type X12DecimalWarningSink, type X12Eligibility, type X12EligibilityAddress, type X12EligibilityBenefit, type X12EligibilityDate, type X12EligibilityDependent, type X12EligibilityEntity, type X12EligibilityMember, type X12EligibilityReference, type X12EligibilityServiceType, type X12EligibilitySubscriber, type X12EligibilityTrace, type X12Enrollment, type X12EnrollmentAddress, type X12EnrollmentAmount, type X12EnrollmentDate, type X12EnrollmentHeader, type X12EnrollmentMember, type X12EnrollmentParty, type X12EnrollmentReference, type X12FatalCode, type X12FunctionalGroup, type X12HealthCoverage, type X12HiCategory, type X12HiCodeSystem, type X12HiQualifier, type X12HierarchicalLevel, type X12Hl, type X12Inquiry, type X12InquiryAddress, type X12InquiryDate, type X12InquiryDependent, type X12InquiryHeader, type X12InquiryName, type X12InquiryProcedure, type X12InquiryReceiver, type X12InquiryReference, type X12InquiryRequest, type X12InquiryServiceType, type X12InquirySource, type X12InquirySubscriber, type X12InquiryTrace, type X12Interchange, type X12LineAdjudication, type X12LineDrug, type X12OrphanAnchor, type X12OrphanAnchorKind, type X12OrphanSegment, type X12OtherSubscriber, X12ParseError, type X12ParseOptions, type X12ParseWarning, type X12Position, type X12PremiumAddress, type X12PremiumAdjustment, type X12PremiumDate, type X12PremiumEntity, type X12PremiumOpenItem, type X12PremiumParty, type X12PremiumPaymentHeader, type X12PremiumPayments, type X12PremiumPerson, type X12PremiumReference, type X12PremiumRemittance, type X12PremiumTrace, type X12Profile, type X12ProfileConformance, type X12ProfileConformancePartition, type X12ProfileDescription, type X12ProfileEffect, X12ProfileError, type X12ProfileQuirk, type X12ProfileSpec, type X12RemitAddress, type X12RemitAdjustment, type X12RemitAmount, type X12RemitClaim, type X12RemitContact, type X12RemitParty, type X12RemitPaymentHeader, type X12RemitPerson, type X12RemitProvider, type X12RemitProviderAdjustment, type X12RemitReference, type X12RemitRemark, type X12RemitServiceLine, type X12RemitTrace, type X12Remittance, type X12RequiredLoop, type X12ReviewDecision, type X12Segment, type X12ServiceLineStatus, type X12ServiceReview, type X12ServicesReview, type X12StatusCode, type X12StatusDate, type X12StatusEntity, type X12StatusInfo, type X12StatusInquiry, type X12StatusInquiryAmount, type X12StatusInquiryClaim, type X12StatusInquiryDate, type X12StatusInquiryDependent, type X12StatusInquiryHeader, type X12StatusInquiryName, type X12StatusInquiryProcedure, type X12StatusInquiryProvider, type X12StatusInquiryReceiver, type X12StatusInquiryReference, type X12StatusInquiryServiceLine, type X12StatusInquirySource, type X12StatusInquirySubscriber, type X12StatusInquiryTrace, type X12StatusMember, type X12StatusReference, type X12StatusTrace, type X12SubscriberInfo, type X12ToothInformation, type X12Tr3Adoption, type X12Tr3Conformance, type X12Tr3Direction, type X12TransactionSet, type X12UnexpectedSegmentContext, type X12WarningCode, type X12WarningPartition, type X12_837ServiceLine, type X12_837ServiceLineDental, type X12_837ServiceLineInstitutional, type X12_837ServiceLineProfessional, type X12_837Submission, X12_ACK_DISPOSITION_CODES, X12_BUILD_ERROR_CODES, X12_CODE_LIST_ERROR_CODES, X12_TR3_CONFORMANCE, aaaLoopUnidentified, aaaProvenanceIsComplete, aaaRejectReasonAbsent, aaaSegmentMalformed, aaaUnknownCode, ambiguous837Variant, amountRowDropped, attachmentAbsent, balanceNotEvaluable, binaryDataTruncated, binaryLengthInvalid, binaryLengthMismatch, binaryLengthUnverifiable, build270, build271, build275, build276, build277, build277CA, build277RequestForAdditionalInformation, build278Request, build278Response, build820, build834, build835, build837D, build837I, build837P, build999, buildInterchange, buildTA1, bundleAaaCodes, checkCarcValidity, checkClaimBalance, checkCoreCodeCombination, checkRarcValidity, checkRemitTotalBalance, checkServiceLineBalance, codeListRedistributionIsPermitted, collectElementValues, componentOptional, controlNumberMismatch, danglingReleaseChar, dateRowDropped, decodeSegment, defineLoopSpec, defineProfile, detectDelimiters, duplicateHierarchyId, elementDecimal, elementDecimalOrZero, elementOptional, elementValue, entitySegmentDiscardedAfterLx, escapeRelease, get270Inquiry, get271Eligibility, get275Attachments, get276StatusInquiry, get277CADisposition, get277RequestForAdditionalInformation, get277Status, get278Request, get278Response, get820Payments, get834Enrollments, get834Header, get835, get837Claims, getAllSegmentValues, getDefaultProfile, getSegmentValue, groupCountMismatch, guideNotDeclared, guideNotImplemented, hierarchyCycle, hlParentLevelInvalid, hlParentMismatch, interSegmentLineBreak, isAcceptDisposition, isClaimAdjustmentGroupCode, isDiagnosisQualifier, isProcedureQualifier, isaExtraElementSeparator, levelDetached, lookupAaaFollowUpAction, lookupAaaRejectReason, lookupCarc, lookupClaimStatus, lookupClaimStatusCategory, lookupClpStatus, lookupMaintenanceType, lookupRarc, lookupServiceType, missingGe, missingIea, missingRequiredLoop, missingSe, nonConventionalDelimiter, parse270Inquiries, parse276StatusInquiries, parse999, parseTA1, parseX12, partitionWarnings, payToAddressRepeated, pre005010, profiles, readElementDecimal, remitBalanceMismatch, renderCallerValue, resolveHiQualifier, rfaiHeaderAbsent, rfaiLevelAbsent, rfaiRequestAbsent, segmentCountMismatch, serializeX12, serviceLineDropped, serviceLineNotDecoded, serviceSegmentRepeated, serviceSegmentWithoutLx, setDefaultProfile, statedAmountDiscarded, statusInquiryDateRowDropped, statusInquiryDuplicateHierarchyId, statusInquiryHierarchyCycle, statusInquiryLevelDetached, statusInquiryReferenceRowDropped, toDate, toISO, toObject, trailingGarbage, transactionCountMismatch, unescapeRelease, unexpectedSegment, unknown837Variant, unknownCarc, unknownClaimStatus, unknownClaimStatusCategory, unknownHiQualifier, unknownMaintenanceType, unknownRarc, unparseableDecimal };
20557
+ export { AAA_CONDITION_LEVELS, AAA_FOLLOW_UP_ACTION_CODES, AAA_LEVEL_CONTEXTS, AAA_REJECT_REASON_CODES, ACK_BUILD_ERROR_CODES, ALL_WARNING_MESSAGES, ATTACHMENT_275_BUILD_ERROR_CODES, AUTH_278_BUILD_ERROR_CODES, AUTH_278_LOOP_2000A, AUTH_278_LOOP_2000B, AUTH_278_LOOP_2000C, AUTH_278_LOOP_2000D, AUTH_278_LOOP_2000E, AUTH_278_LOOP_2000F, type AaaCodeListMeta, type AaaCodeListSnapshot, AckBuildError, type AckBuildErrorCode, Attachment275BuildError, type Attachment275BuildErrorCode, BALANCE_INVARIANTS, BUILD_REFUSAL_VALUE_MAX_LENGTH, BUILD_REFUSAL_VALUE_MAX_RENDERED, type Build270AddressSpec, type Build270DateSpec, type Build270DependentSpec, type Build270EnvelopeSpec, type Build270HeaderSpec, type Build270InformationReceiverSpec, type Build270InformationSourceSpec, type Build270InquirySpec, type Build270NameSpec, type Build270ProcedureSpec, type Build270ReferenceSpec, type Build270ServiceTypeSpec, type Build270Spec, type Build270SubscriberSpec, type Build270TraceSpec, type Build271AddressSpec, type Build271BenefitSpec, type Build271DateSpec, type Build271DependentSpec, type Build271EntitySpec, type Build271EnvelopeSpec, type Build271InformationReceiverSpec, type Build271InformationSourceSpec, type Build271MemberSpec, type Build271ProcedureSpec, type Build271ReferenceSpec, type Build271ServiceTypeSpec, type Build271Spec, type Build271SubscriberSpec, type Build271TraceSpec, type Build275AttachmentSpec, type Build275BeginningSpec, type Build275EntitySpec, type Build275EnvelopeSpec, type Build275LineSpec, type Build275ReferenceSpec, type Build275Spec, type Build275StatusCodeSpec, type Build275StatusSpec, type Build275TraceSpec, type Build276AmountSpec, type Build276ClaimSpec, type Build276DateSpec, type Build276DependentSpec, type Build276EnvelopeSpec, type Build276HeaderSpec, type Build276InformationReceiverSpec, type Build276InformationSourceSpec, type Build276NameSpec, type Build276ProcedureSpec, type Build276ProviderSpec, type Build276ReferenceSpec, type Build276ServiceLineSpec, type Build276Spec, type Build276SubscriberSpec, type Build276TraceSpec, type Build277ClaimSpec, type Build277DateSpec, type Build277DependentSpec, type Build277EntitySpec, type Build277EnvelopeSpec, type Build277InformationReceiverSpec, type Build277InformationSourceSpec, type Build277MemberSpec, type Build277ProviderSpec, type Build277ReferenceSpec, type Build277RfaiAmountSpec, type Build277RfaiDateSpec, type Build277RfaiEntitySpec, type Build277RfaiEnvelopeSpec, type Build277RfaiHeaderSpec, type Build277RfaiLevelSpec, type Build277RfaiQuantitySpec, type Build277RfaiReferenceSpec, type Build277RfaiRequestSpec, type Build277RfaiServiceLineSpec, type Build277RfaiServiceSpec, type Build277RfaiSpec, type Build277RfaiStatusCodeSpec, type Build277RfaiStatusSpec, type Build277RfaiTraceSpec, type Build277ServiceLineSpec, type Build277Spec, type Build277StatusCodeSpec, type Build277StatusSpec, type Build277SubscriberSpec, type Build277TraceSpec, type Build278DateSpec, type Build278DecisionSpec, type Build278DependentSpec, type Build278DiagnosisSpec, type Build278EntitySpec, type Build278EnvelopeSpec, type Build278HeaderSpec, type Build278MemberSpec, type Build278ReferenceSpec, type Build278ReviewSpec, type Build278Spec, type Build278SubscriberSpec, type Build278TraceSpec, type Build820AddressSpec, type Build820AdjustmentSpec, type Build820DateSpec, type Build820EntitySpec, type Build820EnvelopeSpec, type Build820OpenItemSpec, type Build820PartySpec, type Build820PaymentSpec, type Build820PersonSpec, type Build820ReferenceSpec, type Build820RemittanceSpec, type Build820Spec, type Build820TraceSpec, type Build834AddressSpec, type Build834AmountSpec, type Build834CoordinationOfBenefitsSpec, type Build834CoverageSpec, type Build834DateSpec, type Build834EnvelopeSpec, type Build834HeaderSpec, type Build834MemberNameSpec, type Build834MemberSpec, type Build834PartySpec, type Build834ReferenceSpec, type Build834Spec, type Build835AddressSpec, type Build835AdjustmentSpec, type Build835AmountSpec, type Build835ClaimSpec, type Build835ContactSpec, type Build835EnvelopeSpec, type Build835PartySpec, type Build835PaymentSpec, type Build835PersonSpec, type Build835ProviderAdjustmentSpec, type Build835ProviderSpec, type Build835ReferenceSpec, type Build835RemarkSpec, type Build835ServiceLineSpec, type Build835Spec, type Build835TraceSpec, type Build837AddressSpec, type Build837AdjudicationSpec, type Build837AdjustmentSpec, type Build837AmountSpec, type Build837BillingProviderSpec, type Build837ClaimSpec, type Build837ContactSpec, type Build837DateSpec, type Build837DrugSpec, type Build837EntitySpec, type Build837EnvelopeSpec, type Build837HiCodeSpec, type Build837NoteSpec, type Build837OtherSubscriberSpec, type Build837PatientSpec, type Build837ReferenceSpec, type Build837ServiceLineBaseSpec, type Build837ServiceLineDentalSpec, type Build837ServiceLineInstitutionalSpec, type Build837ServiceLineProfessionalSpec, type Build837ServiceLineSpec, type Build837Spec, type Build837SubscriberInfoSpec, type Build837SubscriberSpec, type Build837ToothSpec, type Build999ElementErrorSpec, type Build999EnvelopeSpec, type Build999FunctionalGroupSpec, type Build999SegmentErrorSpec, type Build999Spec, type Build999TransactionResponseSpec, type BuildTA1Options, type BuildTA1Spec, CARC, CLAIM_837D_LOOP_2000A, CLAIM_837D_LOOP_2300, CLAIM_837D_LOOP_2400, CLAIM_837I_LOOP_2000A, CLAIM_837I_LOOP_2300, CLAIM_837I_LOOP_2400, CLAIM_837P_LOOP_2000A, CLAIM_837P_LOOP_2300, CLAIM_837P_LOOP_2400, CLAIM_837P_LOOP_2410, CLAIM_837_BUILD_ERROR_CODES, CLAIM_837_LOOP_1000A, CLAIM_837_LOOP_1000B, CLAIM_837_LOOP_2010AA, CLAIM_837_LOOP_2010BA, CLAIM_837_LOOP_2010BB, CLAIM_837_LOOP_2010CA, CLAIM_837_LOOP_2430, CLAIM_ADJUSTMENT_GROUP_CODES, CLAIM_STATUS_276_BUILD_ERROR_CODES, CLAIM_STATUS_277_BUILD_ERROR_CODES, CLAIM_STATUS_CATEGORY_CODES, CLAIM_STATUS_CODES, CLP_STATUS, CODE_VALIDITY, CODE_VALIDITY_REASONS, CONTROL_NUMBER_PAIRS, CORE_BUSINESS_SCENARIOS, CORE_CODE_COMBINATION_ERROR_CODES, CORE_CODE_COMBINATION_OUTCOMES, CORE_CODE_COMBINATION_UNEVALUATED_REASONS, Claim837BuildError, type Claim837BuildErrorCode, type ClaimAdjustmentGroupCode, ClaimStatus276BuildError, type ClaimStatus276BuildErrorCode, ClaimStatus277BuildError, type ClaimStatus277BuildErrorCode, type CodeListCompleteness, type CodeListEntry, type CodeListEntryDates, type CodeListMeta, type CodeListRedistribution, type CodeListRedistributionStatus, type CodeListSnapshot, type CodeValidity, type CodeValidityReason, type CodeValidityResult, type CoreBusinessScenario, type CoreCodeCombinationErrorCode, type CoreCodeCombinationOutcome, type CoreCodeCombinationQuery, type CoreCodeCombinationResult, type CoreCodeCombinationRow, type CoreCodeCombinationTable, CoreCodeCombinationTableError, type CoreCodeCombinationTableField, type CoreCodeCombinationUnevaluatedReason, DELIMITER_POSITIONS, type DateParts, type DatedCodeListMeta, type DatedCodeListSnapshot, type DefineLoopSpecInput, type Delimiters, ELIGIBILITY_270_BUILD_ERROR_CODES, ELIGIBILITY_271_BUILD_ERROR_CODES, ELIGIBILITY_271_LOOP_2000A, ELIGIBILITY_271_LOOP_2000B, ELIGIBILITY_271_LOOP_2000C, ELIGIBILITY_271_LOOP_2000D, ELIGIBILITY_271_LOOP_2100C, ELIGIBILITY_271_LOOP_2100D, ELIGIBILITY_271_LOOP_2110, ENROLLMENT_834_BUILD_ERROR_CODES, ENROLLMENT_834_LOOP_1000A, ENROLLMENT_834_LOOP_1000B, ENROLLMENT_834_LOOP_2000, ENROLLMENT_834_LOOP_2100A, ENROLLMENT_834_LOOP_2300, ENROLLMENT_834_LOOP_2320, Eligibility270BuildError, type Eligibility270BuildErrorCode, Eligibility271BuildError, type Eligibility271BuildErrorCode, Enrollment834BuildError, type Enrollment834BuildErrorCode, FATAL_CODES, type FunctionalGroupSpec, type GeSegment, type GsSegment, HI_QUALIFIERS, HL_LEVEL_CODES, IK3_SYNTAX_ERROR_CODES, IK4_SYNTAX_ERROR_CODES, INQUIRY_270_LOOP_2000A, INQUIRY_270_LOOP_2000B, INQUIRY_270_LOOP_2000C, INQUIRY_270_LOOP_2000D, INQUIRY_270_LOOP_2100C, INQUIRY_270_LOOP_2100D, INQUIRY_270_LOOP_2110, ISA_MIN_LENGTH, type IeaSegment, type Ik304Code, type Ik403Code, type InterchangeSpec, type IsaSegment, type LoopMax, type LoopSegmentSpec, type LoopSpec, LoopSpecDefinitionError, type LoopUsage, MAINTENANCE_TYPE_CODES, NM1_QUALIFIERS, NON_SPEC_SEGMENT_ID, type OnWarningCallback, PREMIUM_820_BUILD_ERROR_CODES, PREMIUM_820_LOOP_1000A, PREMIUM_820_LOOP_1000B, PREMIUM_820_LOOP_2000A, PREMIUM_820_LOOP_2100A, PREMIUM_820_LOOP_2300A, PREMIUM_820_LOOP_2310A, Premium820BuildError, type Premium820BuildErrorCode, RARC, RELEASE_CHAR, REMIT_835_BUILD_ERROR_CODES, REMIT_835_LOOP_1000A, REMIT_835_LOOP_1000B, REMIT_835_LOOP_2000, REMIT_835_LOOP_2100, REMIT_835_LOOP_2110, REQUIRED_LOOPS, RFAI_277_BUILD_ERROR_CODES, RFAI_277_LOOP_1000, RFAI_277_LOOP_2000, RFAI_277_LOOP_2100, RFAI_277_LOOP_2200, RFAI_277_LOOP_2220, Remit835BuildError, type Remit835BuildErrorCode, Rfai277BuildError, type Rfai277BuildErrorCode, SERVICE_TYPE_CODES, STATUS_276_LOOP_2000A, STATUS_276_LOOP_2000B, STATUS_276_LOOP_2000C, STATUS_276_LOOP_2000D, STATUS_276_LOOP_2000E, STATUS_276_LOOP_2200, STATUS_276_LOOP_2210, STATUS_277_LOOP_2000A, STATUS_277_LOOP_2000B, STATUS_277_LOOP_2000C, STATUS_277_LOOP_2000D, STATUS_277_LOOP_2000E, STATUS_277_LOOP_2200, STATUS_277_LOOP_2220, type SegmentSpec, type SerializeOptions, ServicesReview278BuildError, type ServicesReview278BuildErrorCode, TA1_ACK_CODES, TA1_NOTE_CODES, type Ta1AckCode, type Ta1NoteCode, type Ta1Segment, type ToDateOptions, type TransactionSetSpec, UNEXPECTED_SEGMENT_CONTEXTS, VERSION, WARNING_CODES, type X12AaaCode, type X12AaaCondition, type X12AaaConditionKey, type X12AaaConditionLevel, type X12AaaLevelContext, type X12Ack999, type X12Ack999Ak1, type X12Ack999Ak2, type X12Ack999Ak9, type X12Ack999ElementNote, type X12Ack999Ik3, type X12Ack999Ik4, type X12Ack999Ik4Position, type X12Ack999Ik5, type X12Ack999SegmentNote, type X12Ack999TransactionResponse, type X12AckDispositionCode, type X12AckTA1, type X12AdditionalInformationRequest, type X12AdditionalInformationRequestAmount, type X12AdditionalInformationRequestClaim, type X12AdditionalInformationRequestDate, type X12AdditionalInformationRequestEntity, type X12AdditionalInformationRequestHeader, type X12AdditionalInformationRequestLevel, type X12AdditionalInformationRequestQuantity, type X12AdditionalInformationRequestReference, type X12AdditionalInformationRequestServiceLine, type X12AdditionalInformationRequestStatus, type X12AdditionalInformationRequestStatusCode, type X12AdditionalInformationRequestTrace, type X12Attachment, type X12AttachmentBeginning, X12AttachmentData, type X12AttachmentEntity, type X12AttachmentLine, type X12AttachmentReference, type X12AttachmentStatus, type X12AttachmentStatusCode, type X12AttachmentSubmission, type X12AttachmentTrace, type X12AuthDate, type X12AuthDiagnosis, type X12AuthEntity, type X12AuthHeader, type X12AuthMember, type X12AuthReference, type X12AuthTrace, type X12BalanceInvariant, X12BuildError, type X12BuildErrorCode, type X12Claim, type X12Claim837Variant, type X12ClaimAddress, type X12ClaimAmount, type X12ClaimContact, type X12ClaimDate, type X12ClaimEntity, type X12ClaimHiCode, type X12ClaimMember, type X12ClaimNote, type X12ClaimReference, type X12ClaimStatus, type X12ClaimStatusResponse, type X12ClassifiedQuirk, X12CodeListError, type X12CodeListErrorCode, type X12ControlNumberPair, type X12CoordinationOfBenefits, type X12DateValue, X12Decimal, type X12DecimalRead, type X12DecimalStatus, type X12DecimalWarningSink, type X12Eligibility, type X12EligibilityAddress, type X12EligibilityBenefit, type X12EligibilityDate, type X12EligibilityDependent, type X12EligibilityEntity, type X12EligibilityMember, type X12EligibilityProcedure, type X12EligibilityReference, type X12EligibilityServiceType, type X12EligibilitySubscriber, type X12EligibilityTrace, type X12Enrollment, type X12EnrollmentAddress, type X12EnrollmentAmount, type X12EnrollmentDate, type X12EnrollmentHeader, type X12EnrollmentMember, type X12EnrollmentParty, type X12EnrollmentReference, type X12FatalCode, type X12FunctionalGroup, type X12HealthCoverage, type X12HiCategory, type X12HiCodeSystem, type X12HiQualifier, type X12HierarchicalLevel, type X12Hl, type X12Inquiry, type X12InquiryAddress, type X12InquiryDate, type X12InquiryDependent, type X12InquiryHeader, type X12InquiryName, type X12InquiryProcedure, type X12InquiryReceiver, type X12InquiryReference, type X12InquiryRequest, type X12InquiryServiceType, type X12InquirySource, type X12InquirySubscriber, type X12InquiryTrace, type X12Interchange, type X12LineAdjudication, type X12LineDrug, type X12OrphanAnchor, type X12OrphanAnchorKind, type X12OrphanSegment, type X12OtherSubscriber, X12ParseError, type X12ParseOptions, type X12ParseWarning, type X12Position, type X12PremiumAddress, type X12PremiumAdjustment, type X12PremiumDate, type X12PremiumEntity, type X12PremiumOpenItem, type X12PremiumParty, type X12PremiumPaymentHeader, type X12PremiumPayments, type X12PremiumPerson, type X12PremiumReference, type X12PremiumRemittance, type X12PremiumTrace, type X12Profile, type X12ProfileConformance, type X12ProfileConformancePartition, type X12ProfileDescription, type X12ProfileEffect, X12ProfileError, type X12ProfileQuirk, type X12ProfileSpec, type X12RemitAddress, type X12RemitAdjustment, type X12RemitAmount, type X12RemitClaim, type X12RemitContact, type X12RemitParty, type X12RemitPaymentHeader, type X12RemitPerson, type X12RemitProvider, type X12RemitProviderAdjustment, type X12RemitReference, type X12RemitRemark, type X12RemitServiceLine, type X12RemitTrace, type X12Remittance, type X12RequiredLoop, type X12ReviewDecision, type X12Segment, type X12ServiceLineStatus, type X12ServiceReview, type X12ServicesReview, type X12StatusCode, type X12StatusDate, type X12StatusEntity, type X12StatusInfo, type X12StatusInquiry, type X12StatusInquiryAmount, type X12StatusInquiryClaim, type X12StatusInquiryDate, type X12StatusInquiryDependent, type X12StatusInquiryHeader, type X12StatusInquiryName, type X12StatusInquiryProcedure, type X12StatusInquiryProvider, type X12StatusInquiryReceiver, type X12StatusInquiryReference, type X12StatusInquiryServiceLine, type X12StatusInquirySource, type X12StatusInquirySubscriber, type X12StatusInquiryTrace, type X12StatusMember, type X12StatusReference, type X12StatusTrace, type X12SubscriberInfo, type X12ToothInformation, type X12Tr3Adoption, type X12Tr3Conformance, type X12Tr3Direction, type X12TransactionSet, type X12UnexpectedSegmentContext, type X12WarningCode, type X12WarningPartition, type X12_837ServiceLine, type X12_837ServiceLineDental, type X12_837ServiceLineInstitutional, type X12_837ServiceLineProfessional, type X12_837Submission, X12_ACK_DISPOSITION_CODES, X12_BUILD_ERROR_CODES, X12_CODE_LIST_ERROR_CODES, X12_TR3_CONFORMANCE, aaaLoopUnidentified, aaaProvenanceIsComplete, aaaRejectReasonAbsent, aaaSegmentMalformed, aaaUnknownCode, ambiguous837Variant, amountRowDropped, attachmentAbsent, balanceNotEvaluable, binaryDataTruncated, binaryLengthInvalid, binaryLengthMismatch, binaryLengthUnverifiable, build270, build271, build275, build276, build277, build277CA, build277RequestForAdditionalInformation, build278Request, build278Response, build820, build834, build835, build837D, build837I, build837P, build999, buildInterchange, buildTA1, bundleAaaCodes, checkCarcValidity, checkClaimBalance, checkCoreCodeCombination, checkRarcValidity, checkRemitTotalBalance, checkServiceLineBalance, codeListRedistributionIsPermitted, collectElementValues, componentOptional, controlNumberMismatch, danglingReleaseChar, dateRowDropped, decodeSegment, defineLoopSpec, defineProfile, detectDelimiters, duplicateHierarchyId, elementDecimal, elementDecimalOrZero, elementOptional, elementValue, entitySegmentDiscardedAfterLx, escapeRelease, get270Inquiry, get271Eligibility, get275Attachments, get276StatusInquiry, get277CADisposition, get277RequestForAdditionalInformation, get277Status, get278Request, get278Response, get820Payments, get834Enrollments, get834Header, get835, get837Claims, getAllSegmentValues, getDefaultProfile, getSegmentValue, groupCountMismatch, guideNotDeclared, guideNotImplemented, hierarchyCycle, hlParentLevelInvalid, hlParentMismatch, interSegmentLineBreak, isAcceptDisposition, isClaimAdjustmentGroupCode, isDiagnosisQualifier, isProcedureQualifier, isaExtraElementSeparator, levelDetached, lookupAaaFollowUpAction, lookupAaaRejectReason, lookupCarc, lookupClaimStatus, lookupClaimStatusCategory, lookupClpStatus, lookupMaintenanceType, lookupRarc, lookupServiceType, missingGe, missingIea, missingRequiredLoop, missingSe, nonConventionalDelimiter, parse270Inquiries, parse276StatusInquiries, parse999, parseTA1, parseX12, partitionWarnings, payToAddressRepeated, pre005010, profiles, readElementDecimal, remitBalanceMismatch, renderCallerValue, resolveHiQualifier, rfaiHeaderAbsent, rfaiLevelAbsent, rfaiRequestAbsent, segmentCountMismatch, serializeX12, serviceLineDropped, serviceLineNotDecoded, serviceSegmentRepeated, serviceSegmentWithoutLx, setDefaultProfile, statedAmountDiscarded, statusInquiryDateRowDropped, statusInquiryDuplicateHierarchyId, statusInquiryHierarchyCycle, statusInquiryLevelDetached, statusInquiryReferenceRowDropped, toDate, toISO, toObject, trailingGarbage, transactionCountMismatch, unescapeRelease, unexpectedSegment, unknown837Variant, unknownCarc, unknownClaimStatus, unknownClaimStatusCategory, unknownHiQualifier, unknownMaintenanceType, unknownRarc, unparseableDecimal };
package/dist/index.mjs CHANGED
@@ -6638,6 +6638,26 @@ function validateHl2(hl, index, expectedParentLevel, position, warnings) {
6638
6638
  }
6639
6639
  }
6640
6640
 
6641
+ // src/transactions/shared/procedure.ts
6642
+ var FIRST_MODIFIER = 3;
6643
+ var LAST_MODIFIER = 6;
6644
+ var DESCRIPTION = 7;
6645
+ function decodeProcedure(seg, elementIndex, delimiters) {
6646
+ const qualifier = componentOptional(seg, elementIndex, 1, delimiters);
6647
+ if (qualifier === void 0) return void 0;
6648
+ const modifiers = [];
6649
+ for (let p = FIRST_MODIFIER; p <= LAST_MODIFIER; p += 1) {
6650
+ const modifier = componentOptional(seg, elementIndex, p, delimiters);
6651
+ if (modifier !== void 0) modifiers.push(modifier);
6652
+ }
6653
+ return Object.freeze({
6654
+ qualifier,
6655
+ code: componentOptional(seg, elementIndex, 2, delimiters),
6656
+ modifiers: Object.freeze(modifiers),
6657
+ description: componentOptional(seg, elementIndex, DESCRIPTION, delimiters)
6658
+ });
6659
+ }
6660
+
6641
6661
  // src/transactions/eligibility/get-270.ts
6642
6662
  var INQUIRY_270 = "270";
6643
6663
  var IMPLEMENTED_GUIDES_270 = implementedGuides(INQUIRY_270);
@@ -6966,7 +6986,7 @@ function openInquiry(seg, delimiters) {
6966
6986
  }
6967
6987
  return {
6968
6988
  serviceTypeCodes,
6969
- procedure: decodeProcedure(seg, delimiters),
6989
+ procedure: decodeProcedure(seg, 2, delimiters),
6970
6990
  coverageLevelCode: elementOptional(seg, 3, delimiters),
6971
6991
  insuranceTypeCode: elementOptional(seg, 4, delimiters),
6972
6992
  diagnosisCodePointers,
@@ -6974,21 +6994,6 @@ function openInquiry(seg, delimiters) {
6974
6994
  dates: []
6975
6995
  };
6976
6996
  }
6977
- function decodeProcedure(seg, delimiters) {
6978
- const qualifier = componentOptional(seg, 2, 1, delimiters);
6979
- if (qualifier === void 0) return void 0;
6980
- const modifiers = [];
6981
- for (let p = 3; p <= 6; p += 1) {
6982
- const modifier = componentOptional(seg, 2, p, delimiters);
6983
- if (modifier !== void 0) modifiers.push(modifier);
6984
- }
6985
- return Object.freeze({
6986
- qualifier,
6987
- code: componentOptional(seg, 2, 2, delimiters),
6988
- modifiers: Object.freeze(modifiers),
6989
- description: componentOptional(seg, 2, 7, delimiters)
6990
- });
6991
- }
6992
6997
  function freezeInquiry(acc) {
6993
6998
  return Object.freeze({
6994
6999
  serviceTypeCodes: Object.freeze(acc.serviceTypeCodes.slice()),
@@ -7471,7 +7476,7 @@ function emitInquiry(inquiry, body, ctx, locator) {
7471
7476
  refuseHierarchy2
7472
7477
  ).map((s) => ctx.esc(s.code)).join(ctx.repetitionSeparator);
7473
7478
  const procedure = absentIfNull(inquiry.procedure);
7474
- const procedureElement = procedure === void 0 ? "" : trimComponents([
7479
+ const procedureElement2 = procedure === void 0 ? "" : trimComponents([
7475
7480
  ctx.esc(procedure.qualifier),
7476
7481
  ctx.esc(procedure.code ?? ""),
7477
7482
  ...leafList(procedure.modifiers, `${locator}.procedure.modifiers`).map(ctx.esc),
@@ -7484,7 +7489,7 @@ function emitInquiry(inquiry, body, ctx, locator) {
7484
7489
  ctx.seg([
7485
7490
  "EQ",
7486
7491
  serviceTypeElement,
7487
- procedureElement,
7492
+ procedureElement2,
7488
7493
  ctx.esc(inquiry.coverageLevelCode ?? ""),
7489
7494
  ctx.esc(inquiry.insuranceTypeCode ?? ""),
7490
7495
  pointerElement
@@ -7995,6 +8000,7 @@ function openBenefit(seg, delimiters, sink) {
7995
8000
  quantity: elementDecimal(seg, 10, delimiters, sink),
7996
8001
  authorizationRequired: elementOptional(seg, 11, delimiters),
7997
8002
  inPlanNetwork: elementOptional(seg, 12, delimiters),
8003
+ procedure: decodeProcedure(seg, 13, delimiters),
7998
8004
  references: [],
7999
8005
  dates: [],
8000
8006
  messages: [],
@@ -8037,6 +8043,7 @@ function freezeBenefit(acc) {
8037
8043
  quantity: acc.quantity,
8038
8044
  authorizationRequired: acc.authorizationRequired,
8039
8045
  inPlanNetwork: acc.inPlanNetwork,
8046
+ procedure: acc.procedure,
8040
8047
  references: Object.freeze(acc.references.slice()),
8041
8048
  dates: Object.freeze(acc.dates.slice()),
8042
8049
  messages: Object.freeze(acc.messages.slice()),
@@ -8102,6 +8109,7 @@ var X279A1_VERSION_RELEASE2 = "005010X279A1";
8102
8109
  var X12_271_FUNCTIONAL_ID = "HB";
8103
8110
  var X12_AGENCY_CODE4 = "X";
8104
8111
  var HL_LEVEL3 = { SOURCE: "20", RECEIVER: "21", SUBSCRIBER: "22", DEPENDENT: "23" };
8112
+ var MAX_PROCEDURE_MODIFIERS = 4;
8105
8113
  function build271(spec) {
8106
8114
  const { envelope } = spec;
8107
8115
  enforceStructuralSpec4(spec);
@@ -8122,7 +8130,7 @@ function build271(spec) {
8122
8130
  while (end > 1 && parts[end - 1] === "") end -= 1;
8123
8131
  return parts.slice(0, end).join(elementSeparator) + segmentTerminator;
8124
8132
  };
8125
- const ctx = { seg, esc, repetitionSeparator };
8133
+ const ctx = { seg, esc, repetitionSeparator, componentSeparator };
8126
8134
  const senderQualifier = envelope.senderQualifier ?? "ZZ";
8127
8135
  const receiverQualifier = envelope.receiverQualifier ?? "ZZ";
8128
8136
  const usageIndicator = envelope.usageIndicator ?? "P";
@@ -8352,7 +8360,8 @@ function emitBenefit(benefit, body, ctx) {
8352
8360
  ctx.esc(benefit.quantityQualifier ?? ""),
8353
8361
  benefit.quantity === void 0 ? "" : escDec3(benefit.quantity, ctx.esc),
8354
8362
  ctx.esc(benefit.authorizationRequired ?? ""),
8355
- ctx.esc(benefit.inPlanNetwork ?? "")
8363
+ ctx.esc(benefit.inPlanNetwork ?? ""),
8364
+ benefit.procedure === void 0 ? "" : procedureElement(benefit.procedure, ctx)
8356
8365
  ])
8357
8366
  );
8358
8367
  for (const related of benefit.relatedEntities ?? []) emitEntity2(related, body, ctx);
@@ -8362,6 +8371,32 @@ function emitBenefit(benefit, body, ctx) {
8362
8371
  body.push(ctx.seg(["MSG", ctx.esc(message)]));
8363
8372
  }
8364
8373
  }
8374
+ function procedureElement(procedure, ctx) {
8375
+ const qualifier = ctx.esc(procedure.qualifier);
8376
+ const code = ctx.esc(procedure.code);
8377
+ if (qualifier === "" || code === "") {
8378
+ refuseSpec4("build271: a benefit procedure (EB-13) requires a non-empty qualifier and code.");
8379
+ }
8380
+ const modifiers = requireCallerArray(
8381
+ procedure.modifiers,
8382
+ "build271: benefit procedure (EB-13) modifiers",
8383
+ refuseSpec4
8384
+ );
8385
+ if (modifiers.length > MAX_PROCEDURE_MODIFIERS) {
8386
+ refuseSpec4(
8387
+ `build271: a benefit procedure (EB-13) carries at most ${String(MAX_PROCEDURE_MODIFIERS)} modifiers; got ${String(modifiers.length)}.`
8388
+ );
8389
+ }
8390
+ const escapedModifiers = [];
8391
+ for (let i = 0; i < modifiers.length; i += 1) {
8392
+ const modifier = ctx.esc(modifiers[i] ?? "");
8393
+ if (modifier === "") {
8394
+ refuseSpec4(`build271: benefit procedure (EB-13) modifier at index ${String(i)} is empty.`);
8395
+ }
8396
+ escapedModifiers.push(modifier);
8397
+ }
8398
+ return [qualifier, code, ...escapedModifiers].join(ctx.componentSeparator);
8399
+ }
8365
8400
  function emitTrace2(trace, body, ctx) {
8366
8401
  body.push(
8367
8402
  ctx.seg([
@@ -9345,7 +9380,7 @@ function emitClaim3(claim, body, ctx, locator) {
9345
9380
  }
9346
9381
  function emitServiceLine3(line, body, ctx, locator) {
9347
9382
  const procedure = absentIfNull2(line.procedure);
9348
- const procedureElement = procedure === void 0 ? "" : ctx.comp([
9383
+ const procedureElement2 = procedure === void 0 ? "" : ctx.comp([
9349
9384
  procedure.qualifier,
9350
9385
  procedure.code ?? "",
9351
9386
  ...leafList2(procedure.modifiers, `${locator}.procedure.modifiers`),
@@ -9354,7 +9389,7 @@ function emitServiceLine3(line, body, ctx, locator) {
9354
9389
  body.push(
9355
9390
  ctx.seg([
9356
9391
  "SVC",
9357
- procedureElement,
9392
+ procedureElement2,
9358
9393
  line.lineChargeAmount === void 0 ? "" : escDec4(line.lineChargeAmount, ctx.esc),
9359
9394
  "",
9360
9395
  ctx.esc(line.revenueCode ?? ""),
@@ -15358,7 +15393,7 @@ var profiles = Object.freeze({
15358
15393
  });
15359
15394
 
15360
15395
  // src/index.ts
15361
- var VERSION = "0.1.0";
15396
+ var VERSION = "0.1.2";
15362
15397
 
15363
15398
  export { AAA_CONDITION_LEVELS, AAA_FOLLOW_UP_ACTION_CODES, AAA_LEVEL_CONTEXTS, AAA_REJECT_REASON_CODES, ACK_BUILD_ERROR_CODES, ALL_WARNING_MESSAGES, ATTACHMENT_275_BUILD_ERROR_CODES, AUTH_278_BUILD_ERROR_CODES, AUTH_278_LOOP_2000A, AUTH_278_LOOP_2000B, AUTH_278_LOOP_2000C, AUTH_278_LOOP_2000D, AUTH_278_LOOP_2000E, AUTH_278_LOOP_2000F, AckBuildError, Attachment275BuildError, BALANCE_INVARIANTS, BUILD_REFUSAL_VALUE_MAX_LENGTH, BUILD_REFUSAL_VALUE_MAX_RENDERED, CARC, CLAIM_837D_LOOP_2000A, CLAIM_837D_LOOP_2300, CLAIM_837D_LOOP_2400, CLAIM_837I_LOOP_2000A, CLAIM_837I_LOOP_2300, CLAIM_837I_LOOP_2400, CLAIM_837P_LOOP_2000A, CLAIM_837P_LOOP_2300, CLAIM_837P_LOOP_2400, CLAIM_837P_LOOP_2410, CLAIM_837_BUILD_ERROR_CODES, CLAIM_837_LOOP_1000A, CLAIM_837_LOOP_1000B, CLAIM_837_LOOP_2010AA, CLAIM_837_LOOP_2010BA, CLAIM_837_LOOP_2010BB, CLAIM_837_LOOP_2010CA, CLAIM_837_LOOP_2430, CLAIM_ADJUSTMENT_GROUP_CODES, CLAIM_STATUS_276_BUILD_ERROR_CODES, CLAIM_STATUS_277_BUILD_ERROR_CODES, CLAIM_STATUS_CATEGORY_CODES, CLAIM_STATUS_CODES, CLP_STATUS, CODE_VALIDITY, CODE_VALIDITY_REASONS, CONTROL_NUMBER_PAIRS, CORE_BUSINESS_SCENARIOS, CORE_CODE_COMBINATION_ERROR_CODES, CORE_CODE_COMBINATION_OUTCOMES, CORE_CODE_COMBINATION_UNEVALUATED_REASONS, Claim837BuildError, ClaimStatus276BuildError, ClaimStatus277BuildError, CoreCodeCombinationTableError, DELIMITER_POSITIONS, ELIGIBILITY_270_BUILD_ERROR_CODES, ELIGIBILITY_271_BUILD_ERROR_CODES, ELIGIBILITY_271_LOOP_2000A, ELIGIBILITY_271_LOOP_2000B, ELIGIBILITY_271_LOOP_2000C, ELIGIBILITY_271_LOOP_2000D, ELIGIBILITY_271_LOOP_2100C, ELIGIBILITY_271_LOOP_2100D, ELIGIBILITY_271_LOOP_2110, ENROLLMENT_834_BUILD_ERROR_CODES, ENROLLMENT_834_LOOP_1000A, ENROLLMENT_834_LOOP_1000B, ENROLLMENT_834_LOOP_2000, ENROLLMENT_834_LOOP_2100A, ENROLLMENT_834_LOOP_2300, ENROLLMENT_834_LOOP_2320, Eligibility270BuildError, Eligibility271BuildError, Enrollment834BuildError, FATAL_CODES, HI_QUALIFIERS, HL_LEVEL_CODES, IK3_SYNTAX_ERROR_CODES, IK4_SYNTAX_ERROR_CODES, INQUIRY_270_LOOP_2000A, INQUIRY_270_LOOP_2000B, INQUIRY_270_LOOP_2000C, INQUIRY_270_LOOP_2000D, INQUIRY_270_LOOP_2100C, INQUIRY_270_LOOP_2100D, INQUIRY_270_LOOP_2110, ISA_MIN_LENGTH, LoopSpecDefinitionError, MAINTENANCE_TYPE_CODES, NM1_QUALIFIERS, NON_SPEC_SEGMENT_ID, PREMIUM_820_BUILD_ERROR_CODES, PREMIUM_820_LOOP_1000A, PREMIUM_820_LOOP_1000B, PREMIUM_820_LOOP_2000A, PREMIUM_820_LOOP_2100A, PREMIUM_820_LOOP_2300A, PREMIUM_820_LOOP_2310A, Premium820BuildError, RARC, RELEASE_CHAR, REMIT_835_BUILD_ERROR_CODES, REMIT_835_LOOP_1000A, REMIT_835_LOOP_1000B, REMIT_835_LOOP_2000, REMIT_835_LOOP_2100, REMIT_835_LOOP_2110, REQUIRED_LOOPS, RFAI_277_BUILD_ERROR_CODES, RFAI_277_LOOP_1000, RFAI_277_LOOP_2000, RFAI_277_LOOP_2100, RFAI_277_LOOP_2200, RFAI_277_LOOP_2220, Remit835BuildError, Rfai277BuildError, SERVICE_TYPE_CODES, STATUS_276_LOOP_2000A, STATUS_276_LOOP_2000B, STATUS_276_LOOP_2000C, STATUS_276_LOOP_2000D, STATUS_276_LOOP_2000E, STATUS_276_LOOP_2200, STATUS_276_LOOP_2210, STATUS_277_LOOP_2000A, STATUS_277_LOOP_2000B, STATUS_277_LOOP_2000C, STATUS_277_LOOP_2000D, STATUS_277_LOOP_2000E, STATUS_277_LOOP_2200, STATUS_277_LOOP_2220, ServicesReview278BuildError, TA1_ACK_CODES, TA1_NOTE_CODES, UNEXPECTED_SEGMENT_CONTEXTS, VERSION, WARNING_CODES, X12AttachmentData, X12BuildError, X12CodeListError, X12Decimal, X12ParseError, X12ProfileError, X12_ACK_DISPOSITION_CODES, X12_BUILD_ERROR_CODES, X12_CODE_LIST_ERROR_CODES, X12_TR3_CONFORMANCE, aaaLoopUnidentified, aaaProvenanceIsComplete, aaaRejectReasonAbsent, aaaSegmentMalformed, aaaUnknownCode, ambiguous837Variant, amountRowDropped, attachmentAbsent, balanceNotEvaluable, binaryDataTruncated, binaryLengthInvalid, binaryLengthMismatch, binaryLengthUnverifiable, build270, build271, build275, build276, build277, build277CA, build277RequestForAdditionalInformation, build278Request, build278Response, build820, build834, build835, build837D, build837I, build837P, build999, buildInterchange, buildTA1, bundleAaaCodes, checkCarcValidity, checkClaimBalance, checkCoreCodeCombination, checkRarcValidity, checkRemitTotalBalance, checkServiceLineBalance, codeListRedistributionIsPermitted, collectElementValues, componentOptional, controlNumberMismatch, danglingReleaseChar, dateRowDropped, decodeSegment, defineLoopSpec, defineProfile, detectDelimiters, duplicateHierarchyId, elementDecimal, elementDecimalOrZero, elementOptional, elementValue, entitySegmentDiscardedAfterLx, escapeRelease, get270Inquiry, get271Eligibility, get275Attachments, get276StatusInquiry, get277CADisposition, get277RequestForAdditionalInformation, get277Status, get278Request, get278Response, get820Payments, get834Enrollments, get834Header, get835, get837Claims, getAllSegmentValues, getDefaultProfile, getSegmentValue, groupCountMismatch, guideNotDeclared, guideNotImplemented, hierarchyCycle, hlParentLevelInvalid, hlParentMismatch, interSegmentLineBreak, isAcceptDisposition, isClaimAdjustmentGroupCode, isDiagnosisQualifier, isProcedureQualifier, isaExtraElementSeparator, levelDetached, lookupAaaFollowUpAction, lookupAaaRejectReason, lookupCarc, lookupClaimStatus, lookupClaimStatusCategory, lookupClpStatus, lookupMaintenanceType, lookupRarc, lookupServiceType, missingGe, missingIea, missingRequiredLoop, missingSe, nonConventionalDelimiter, parse270Inquiries, parse276StatusInquiries, parse999, parseTA1, parseX12, partitionWarnings, payToAddressRepeated, pre005010, profiles, readElementDecimal, remitBalanceMismatch, renderCallerValue, resolveHiQualifier, rfaiHeaderAbsent, rfaiLevelAbsent, rfaiRequestAbsent, segmentCountMismatch, serializeX12, serviceLineDropped, serviceLineNotDecoded, serviceSegmentRepeated, serviceSegmentWithoutLx, setDefaultProfile, statedAmountDiscarded, statusInquiryDateRowDropped, statusInquiryDuplicateHierarchyId, statusInquiryHierarchyCycle, statusInquiryLevelDetached, statusInquiryReferenceRowDropped, toDate, toISO, toObject, trailingGarbage, transactionCountMismatch, unescapeRelease, unexpectedSegment, unknown837Variant, unknownCarc, unknownClaimStatus, unknownClaimStatusCategory, unknownHiQualifier, unknownMaintenanceType, unknownRarc, unparseableDecimal };
15364
15399
  //# sourceMappingURL=index.mjs.map