Multiple interchanges in one payload
Scenario
Section titled “Scenario”This file contains two complete interchanges: the single-benefit example
followed by the Medicare Advantage example. Each has its own ISA/IEA,
functional group, and transaction set.
Complete response
Section titled “Complete response”ISA*00* *00* *ZZ*CEDARVALLEYHP *ZZ*OAKSTMEDGROUP *990101*1201*^*00501*000000101*0*P*:~
GS*HB*CEDARVALLEYHP*OAKSTMEDGROUP*20990101*1201*101*X*005010X279A1~
ST*271*0101*005010X279A1~
BHT*0022*11*ELIG1010001*20990101*1201~
HL*1**20*1~
NM1*PR*2*CEDAR VALLEY HEALTH PLAN~
HL*2*1*21*1~
NM1*1P*2*OAK STREET MEDICAL GROUP~
HL*3*2*22*0~
NM1*IL*1*REED*JORDAN~
EB*1**30**SILVER PPO~
SE*10*0101~
GE*1*101~
IEA*1*000000101~
ISA*00* *00* *ZZ*PINECRESTMAP *ZZ*WILLOWCREEKMG *990104*1204*^*00501*000000404*0*P*:~
GS*HB*PINECRESTMAP*WILLOWCREEKMG*20990101*1204*404*X*005010X279A1~
ST*271*0404*005010X279A1~
BHT*0022*11*ELIG4040001*20990101*1204~
HL*1**20*1~
NM1*PR*2*PINECREST ADVANTAGE PLAN~
HL*2*1*21*1~
NM1*1P*2*WILLOW CREEK MEDICAL GROUP~
HL*3*2*22*0~
NM1*IL*1*BROOKS*TAYLOR~
EB*1**30**MEDICARE ADVANTAGE PLAN~
DTP*291*D8*20990101~
MSG*MEDICARE ADVANTAGE COVERAGE REPORTED~
SE*12*0404~
GE*1*404~
IEA*1*000000404~Segment breakdown
The entries below follow the source order. Empty fields are shown as(empty); fields not present in a source segment are not added. Stedi links identify public field references; the licensed X279A1 implementation guide supplies the complete transaction rules.
Interchange 1
ISA
Raw segment:
ISA*00* *00* *ZZ*CEDARVALLEYHP *ZZ*OAKSTMEDGROUP *990101*1201*^*00501*000000101*0*P*:~Opens an interchange and establishes its fixed control and delimiter positions. Its control number is 000000101.
ISA fields Position Raw value Field name Explanation ISA0100Authorization Information Qualifier Identifies the format of the authorization information. The value 00 means no authorization information is present. ISA02(blank: 10 spaces)Authorization Information Carries the authorization value; this example leaves the fixed-width value blank. ISA0300Security Information Qualifier Identifies the format of the security information. The value 00 means no security information is present. ISA04(blank: 10 spaces)Security Information Carries the security value; this example leaves the fixed-width value blank. ISA05ZZInterchange ID Qualifier Identifies the type of sender identifier. The value ZZ identifies a mutually defined sender identifier. ISA06CEDARVALLEYHPInterchange Sender ID Identifies the sender of this interchange. ISA07ZZInterchange ID Qualifier Identifies the type of receiver identifier. The value ZZ identifies a mutually defined receiver identifier. ISA08OAKSTMEDGROUPInterchange Receiver ID Identifies the receiver of this interchange. ISA09990101Interchange Date Records the interchange date in YYMMDD format. ISA101201Interchange Time Records the interchange time in HHMM format. ISA11^Repetition Separator Separates repeated composite values in this interchange. ISA1200501Interchange Control Version Number Identifies the interchange control version, 00501 here. ISA13000000101Interchange Control Number Identifies this interchange and must match IEA02. ISA140Acknowledgment Requested Indicates whether an interchange acknowledgment is requested. The value 0 means no interchange acknowledgment is requested. ISA15PInterchange Usage Indicator Indicates whether the interchange is for test, production, or information data. The value P is the code for production data. ISA16:Component Element Separator Separates component values within a composite element. Field reference: Stedi ISA segment reference.
GS
Raw segment:
GS*HB*CEDARVALLEYHP*OAKSTMEDGROUP*20990101*1201*101*X*005010X279A1~Opens a functional group inside the interchange. Its group control number is 101.
GS fields Position Raw value Field name Explanation GS01HBFunctional Identifier Code Identifies a group of application-related transaction sets. The value HB means Eligibility, Coverage or Benefit Information. GS02CEDARVALLEYHPApplication Sender's Code Identifies the party sending the transmission. GS03OAKSTMEDGROUPApplication Receiver's Code Identifies the party receiving the transmission. GS0420990101Date Records the functional group date. GS051201Time Records the functional group time. GS06101Group Control Number Identifies this group and must match GE02. GS07XResponsible Agency Code Identifies the agency responsible for the implementation convention. The value X identifies the responsible agency as X12. GS08005010X279A1Version / Release / Industry Identifier Code Identifies the implementation convention used by the group. Field reference: Stedi GS segment reference.
ST
Raw segment:
ST*271*0101*005010X279A1~Opens a transaction set inside the functional group. This transaction is 271 with control number 0101.
ST fields Position Raw value Field name Explanation ST01271Transaction Set Identifier Code Identifies this response as transaction set 271. The value 271 identifies an eligibility, coverage, or benefit response. ST020101Transaction Set Control Number Identifies this transaction and must match SE02. ST03005010X279A1Implementation Convention Reference Identifies the implementation convention used by the transaction. Field reference: Stedi ST segment reference.
BHT
Raw segment:
BHT*0022*11*ELIG1010001*20990101*1201~Supplies beginning-of-hierarchical-transaction context.
BHT fields Position Raw value Field name Explanation BHT010022Hierarchical Structure Code Identifies the hierarchical structure used by the transaction. The value 0022 means Information Source, Information Receiver, Subscriber, Dependent. BHT0211Transaction Set Purpose Code States the purpose of this transaction set. The value 11 means Response. BHT03ELIG1010001Reference Identification Provides the transaction reference used in this response. BHT0420990101Date Records the date the transaction was created in the business application. BHT051201Time Records the time the transaction was created in the business application. Field reference: Stedi BHT segment reference.
HL
Raw segment:
HL*1**20*1~Establishes one hierarchical level and its optional parent relationship. This level is 1 at the top of the hierarchy.
HL fields Position Raw value Field name Explanation HL011Hierarchical ID Number Identifies this hierarchy level. HL02(empty)Hierarchical Parent ID Number Identifies the parent level; an empty value marks the top level. HL0320Hierarchical Level Code Identifies the kind of entity represented by this level. The value 20 identifies an information-source hierarchy level. HL041Hierarchical Child Code Indicates whether this level has subordinate levels. The value 1 indicates that this level has child levels. Field reference: Stedi HL segment reference.
NM1
Raw segment:
NM1*PR*2*CEDAR VALLEY HEALTH PLAN~Identifies the party attached to the current hierarchy level.
NM1 fields Position Raw value Field name Explanation NM101PREntity Identifier Code Identifies the party role represented by this name loop. The value PR identifies the payer party. NM1022Entity Type Qualifier Identifies whether the party is an individual or organization. The value 2 identifies an organization. NM103CEDAR VALLEY HEALTH PLANName Last or Organization Name Supplies the party name used in this response. Field reference: Stedi NM1 segment reference.
HL
Raw segment:
HL*2*1*21*1~Establishes one hierarchical level and its optional parent relationship. This level is 2 under parent 1.
HL fields Position Raw value Field name Explanation HL012Hierarchical ID Number Identifies this hierarchy level. HL021Hierarchical Parent ID Number Identifies the parent level; an empty value marks the top level. HL0321Hierarchical Level Code Identifies the kind of entity represented by this level. The value 21 identifies an information-receiver hierarchy level. HL041Hierarchical Child Code Indicates whether this level has subordinate levels. The value 1 indicates that this level has child levels. Field reference: Stedi HL segment reference.
NM1
Raw segment:
NM1*1P*2*OAK STREET MEDICAL GROUP~Identifies the party attached to the current hierarchy level.
NM1 fields Position Raw value Field name Explanation NM1011PEntity Identifier Code Identifies the party role represented by this name loop. The value 1P identifies the provider party. NM1022Entity Type Qualifier Identifies whether the party is an individual or organization. The value 2 identifies an organization. NM103OAK STREET MEDICAL GROUPName Last or Organization Name Supplies the party name used in this response. Field reference: Stedi NM1 segment reference.
HL
Raw segment:
HL*3*2*22*0~Establishes one hierarchical level and its optional parent relationship. This level is 3 under parent 2.
HL fields Position Raw value Field name Explanation HL013Hierarchical ID Number Identifies this hierarchy level. HL022Hierarchical Parent ID Number Identifies the parent level; an empty value marks the top level. HL0322Hierarchical Level Code Identifies the kind of entity represented by this level. The value 22 identifies a subscriber hierarchy level. HL040Hierarchical Child Code Indicates whether this level has subordinate levels. The value 0 indicates that this level has no child levels. Field reference: Stedi HL segment reference.
NM1
Raw segment:
NM1*IL*1*REED*JORDAN~Identifies the party attached to the current hierarchy level.
NM1 fields Position Raw value Field name Explanation NM101ILEntity Identifier Code Identifies the party role represented by this name loop. The value IL identifies the insured or subscriber party. NM1021Entity Type Qualifier Identifies whether the party is an individual or organization. The value 1 identifies an individual person. NM103REEDName Last or Organization Name Supplies the party name used in this response. NM104JORDANName First Supplies the person’s first name when present. Field reference: Stedi NM1 segment reference.
EB
Raw segment:
EB*1**30**SILVER PPO~Reports one qualified eligibility or benefit statement in the current subscriber context. Its status is 1 and its service type is 30.
EB fields Position Raw value Field name Explanation EB011Eligibility or Benefit Information Code States the eligibility or benefit status represented by this statement. The value 1 means Active Coverage. EB02(empty)Coverage Level Code Identifies the coverage level when supplied. EB0330Service Type Code Identifies the service type covered by this statement. The value 30 identifies health benefit plan coverage as the service type. EB04(empty)Insurance Type Code Identifies the insurance type when supplied. EB05SILVER PPOPlan Coverage Description Provides the plan or coverage description used in this response. Field reference: Stedi EB segment reference.
SE
Raw segment:
SE*10*0101~Closes a transaction set and declares its segment count. It closes transaction 0101.
SE fields Position Raw value Field name Explanation SE0110Number of Included Segments Counts segments from ST through SE. SE020101Transaction Set Control Number Matches ST02 for this transaction. Field reference: Stedi SE segment reference.
GE
Raw segment:
GE*1*101~Closes a functional group and declares its transaction count. It closes group 101.
GE fields Position Raw value Field name Explanation GE011Number of Transaction Sets Included Counts transaction sets in this functional group. GE02101Group Control Number Matches GS06 for this functional group. Field reference: Stedi GE segment reference.
IEA
Raw segment:
IEA*1*000000101~Closes an interchange and declares its group count. It closes the interchange with control number 000000101.
IEA fields Position Raw value Field name Explanation IEA011Number of Included Functional Groups Counts functional groups in this interchange. IEA02000000101Interchange Control Number Matches ISA13 for this interchange. Field reference: Stedi IEA segment reference.
Interchange 2
ISA
Raw segment:
ISA*00* *00* *ZZ*PINECRESTMAP *ZZ*WILLOWCREEKMG *990104*1204*^*00501*000000404*0*P*:~Opens an interchange and establishes its fixed control and delimiter positions. Its control number is 000000404.
ISA fields Position Raw value Field name Explanation ISA0100Authorization Information Qualifier Identifies the format of the authorization information. The value 00 means no authorization information is present. ISA02(blank: 10 spaces)Authorization Information Carries the authorization value; this example leaves the fixed-width value blank. ISA0300Security Information Qualifier Identifies the format of the security information. The value 00 means no security information is present. ISA04(blank: 10 spaces)Security Information Carries the security value; this example leaves the fixed-width value blank. ISA05ZZInterchange ID Qualifier Identifies the type of sender identifier. The value ZZ identifies a mutually defined sender identifier. ISA06PINECRESTMAPInterchange Sender ID Identifies the sender of this interchange. ISA07ZZInterchange ID Qualifier Identifies the type of receiver identifier. The value ZZ identifies a mutually defined receiver identifier. ISA08WILLOWCREEKMGInterchange Receiver ID Identifies the receiver of this interchange. ISA09990104Interchange Date Records the interchange date in YYMMDD format. ISA101204Interchange Time Records the interchange time in HHMM format. ISA11^Repetition Separator Separates repeated composite values in this interchange. ISA1200501Interchange Control Version Number Identifies the interchange control version, 00501 here. ISA13000000404Interchange Control Number Identifies this interchange and must match IEA02. ISA140Acknowledgment Requested Indicates whether an interchange acknowledgment is requested. The value 0 means no interchange acknowledgment is requested. ISA15PInterchange Usage Indicator Indicates whether the interchange is for test, production, or information data. The value P is the code for production data. ISA16:Component Element Separator Separates component values within a composite element. Field reference: Stedi ISA segment reference.
GS
Raw segment:
GS*HB*PINECRESTMAP*WILLOWCREEKMG*20990101*1204*404*X*005010X279A1~Opens a functional group inside the interchange. Its group control number is 404.
GS fields Position Raw value Field name Explanation GS01HBFunctional Identifier Code Identifies a group of application-related transaction sets. The value HB means Eligibility, Coverage or Benefit Information. GS02PINECRESTMAPApplication Sender's Code Identifies the party sending the transmission. GS03WILLOWCREEKMGApplication Receiver's Code Identifies the party receiving the transmission. GS0420990101Date Records the functional group date. GS051204Time Records the functional group time. GS06404Group Control Number Identifies this group and must match GE02. GS07XResponsible Agency Code Identifies the agency responsible for the implementation convention. The value X identifies the responsible agency as X12. GS08005010X279A1Version / Release / Industry Identifier Code Identifies the implementation convention used by the group. Field reference: Stedi GS segment reference.
ST
Raw segment:
ST*271*0404*005010X279A1~Opens a transaction set inside the functional group. This transaction is 271 with control number 0404.
ST fields Position Raw value Field name Explanation ST01271Transaction Set Identifier Code Identifies this response as transaction set 271. The value 271 identifies an eligibility, coverage, or benefit response. ST020404Transaction Set Control Number Identifies this transaction and must match SE02. ST03005010X279A1Implementation Convention Reference Identifies the implementation convention used by the transaction. Field reference: Stedi ST segment reference.
BHT
Raw segment:
BHT*0022*11*ELIG4040001*20990101*1204~Supplies beginning-of-hierarchical-transaction context.
BHT fields Position Raw value Field name Explanation BHT010022Hierarchical Structure Code Identifies the hierarchical structure used by the transaction. The value 0022 means Information Source, Information Receiver, Subscriber, Dependent. BHT0211Transaction Set Purpose Code States the purpose of this transaction set. The value 11 means Response. BHT03ELIG4040001Reference Identification Provides the transaction reference used in this response. BHT0420990101Date Records the date the transaction was created in the business application. BHT051204Time Records the time the transaction was created in the business application. Field reference: Stedi BHT segment reference.
HL
Raw segment:
HL*1**20*1~Establishes one hierarchical level and its optional parent relationship. This level is 1 at the top of the hierarchy.
HL fields Position Raw value Field name Explanation HL011Hierarchical ID Number Identifies this hierarchy level. HL02(empty)Hierarchical Parent ID Number Identifies the parent level; an empty value marks the top level. HL0320Hierarchical Level Code Identifies the kind of entity represented by this level. The value 20 identifies an information-source hierarchy level. HL041Hierarchical Child Code Indicates whether this level has subordinate levels. The value 1 indicates that this level has child levels. Field reference: Stedi HL segment reference.
NM1
Raw segment:
NM1*PR*2*PINECREST ADVANTAGE PLAN~Identifies the party attached to the current hierarchy level.
NM1 fields Position Raw value Field name Explanation NM101PREntity Identifier Code Identifies the party role represented by this name loop. The value PR identifies the payer party. NM1022Entity Type Qualifier Identifies whether the party is an individual or organization. The value 2 identifies an organization. NM103PINECREST ADVANTAGE PLANName Last or Organization Name Supplies the party name used in this response. Field reference: Stedi NM1 segment reference.
HL
Raw segment:
HL*2*1*21*1~Establishes one hierarchical level and its optional parent relationship. This level is 2 under parent 1.
HL fields Position Raw value Field name Explanation HL012Hierarchical ID Number Identifies this hierarchy level. HL021Hierarchical Parent ID Number Identifies the parent level; an empty value marks the top level. HL0321Hierarchical Level Code Identifies the kind of entity represented by this level. The value 21 identifies an information-receiver hierarchy level. HL041Hierarchical Child Code Indicates whether this level has subordinate levels. The value 1 indicates that this level has child levels. Field reference: Stedi HL segment reference.
NM1
Raw segment:
NM1*1P*2*WILLOW CREEK MEDICAL GROUP~Identifies the party attached to the current hierarchy level.
NM1 fields Position Raw value Field name Explanation NM1011PEntity Identifier Code Identifies the party role represented by this name loop. The value 1P identifies the provider party. NM1022Entity Type Qualifier Identifies whether the party is an individual or organization. The value 2 identifies an organization. NM103WILLOW CREEK MEDICAL GROUPName Last or Organization Name Supplies the party name used in this response. Field reference: Stedi NM1 segment reference.
HL
Raw segment:
HL*3*2*22*0~Establishes one hierarchical level and its optional parent relationship. This level is 3 under parent 2.
HL fields Position Raw value Field name Explanation HL013Hierarchical ID Number Identifies this hierarchy level. HL022Hierarchical Parent ID Number Identifies the parent level; an empty value marks the top level. HL0322Hierarchical Level Code Identifies the kind of entity represented by this level. The value 22 identifies a subscriber hierarchy level. HL040Hierarchical Child Code Indicates whether this level has subordinate levels. The value 0 indicates that this level has no child levels. Field reference: Stedi HL segment reference.
NM1
Raw segment:
NM1*IL*1*BROOKS*TAYLOR~Identifies the party attached to the current hierarchy level.
NM1 fields Position Raw value Field name Explanation NM101ILEntity Identifier Code Identifies the party role represented by this name loop. The value IL identifies the insured or subscriber party. NM1021Entity Type Qualifier Identifies whether the party is an individual or organization. The value 1 identifies an individual person. NM103BROOKSName Last or Organization Name Supplies the party name used in this response. NM104TAYLORName First Supplies the person’s first name when present. Field reference: Stedi NM1 segment reference.
EB
Raw segment:
EB*1**30**MEDICARE ADVANTAGE PLAN~Reports one qualified eligibility or benefit statement in the current subscriber context. Its status is 1 and its service type is 30.
EB fields Position Raw value Field name Explanation EB011Eligibility or Benefit Information Code States the eligibility or benefit status represented by this statement. The value 1 means Active Coverage. EB02(empty)Coverage Level Code Identifies the coverage level when supplied. EB0330Service Type Code Identifies the service type covered by this statement. The value 30 identifies health benefit plan coverage as the service type. EB04(empty)Insurance Type Code Identifies the insurance type when supplied. EB05MEDICARE ADVANTAGE PLANPlan Coverage Description Provides the plan or coverage description used in this response. Field reference: Stedi EB segment reference.
DTP
Raw segment:
DTP*291*D8*20990101~Supplies a date or date period related to the current benefit context.
DTP fields Position Raw value Field name Explanation DTP01291Date/Time Qualifier Identifies what the date represents. The value 291 means Plan (date/range for which plan is in effect). DTP02D8Date Time Period Format Qualifier Identifies the format of the date value. The value D8 identifies a single date in CCYYMMDD format. DTP0320990101Date Time Period Supplies the date or date period. Field reference: Stedi DTP segment reference.
MSG
Raw segment:
MSG*MEDICARE ADVANTAGE COVERAGE REPORTED~Carries explanatory text associated with the surrounding response context.
MSG fields Position Raw value Field name Explanation MSG01MEDICARE ADVANTAGE COVERAGE REPORTEDFree-Form Message Text Provides the explanatory text carried by this response. Field reference: Stedi MSG segment reference.
SE
Raw segment:
SE*12*0404~Closes a transaction set and declares its segment count. It closes transaction 0404.
SE fields Position Raw value Field name Explanation SE0112Number of Included Segments Counts segments from ST through SE. SE020404Transaction Set Control Number Matches ST02 for this transaction. Field reference: Stedi SE segment reference.
GE
Raw segment:
GE*1*404~Closes a functional group and declares its transaction count. It closes group 404.
GE fields Position Raw value Field name Explanation GE011Number of Transaction Sets Included Counts transaction sets in this functional group. GE02404Group Control Number Matches GS06 for this functional group. Field reference: Stedi GE segment reference.
IEA
Raw segment:
IEA*1*000000404~Closes an interchange and declares its group count. It closes the interchange with control number 000000404.
IEA fields Position Raw value Field name Explanation IEA011Number of Included Functional Groups Counts functional groups in this interchange. IEA02000000404Interchange Control Number Matches ISA13 for this interchange. Field reference: Stedi IEA segment reference.
Sources
Section titled “Sources”- X12-RFI-1585 supports multiple interchanges in one physical file.
- X12-EXAMPLES-005010X279 supports the public 271 interchange and hierarchy pattern.
- STEDI-ISA, STEDI-IEA, STEDI-GS, STEDI-GE, STEDI-ST, STEDI-SE, and STEDI-EB provide public field cross-references.