Sample ER7 Messages

Order Message Structure

Repeating segments are listed in { }, optional segments are listed in [].

Segment Usage Cardinality Description
MSH   [1..1] Message Header
PID Required [1..1] Patient Identification
PV1 Required [1..1] Patient Visit
[IN1] Optional [0..3] Insurance
[GT1] Conditional [0..1] Guarantor - required when IN1 is included
{ Required [1..*] --- Order Begin
   ORC Required [1..1] Order Common
   OBR Required [1..1] Order
   [{NTE}] Optional [0..*] Notes and comments
   {DG1} Required [1..*] Diagnosis
   [{OBX}] Optional [0..*] Observation - Ask at Order Entry (AOE) Questions
}     --- Order End

Sample ER7 Order Messages

PlaceBase64Order requires an ER7 formatted message (see below) base64 encoded.
1 2 3 4 5 6 7 8 9 10 MSH|^~\&|7000|DrSmith|1101|PAML|20121204105753||ORM^O01^ORM_O01|42513186:13838e5a5ba:-1be8|P|2.5| PID|1||0123456789||PATIENT01^TEST||19700101|M||ASA|1234 Here Street^^Spokane^WA^99202||(509) 555-1212^^^jdoe@paml.com| PV1|1||^^^DrSmith^^^Building1^^Description||||||||||||||||||||||||||||||||||||654321| IN1|1|PLANID|INSCOMPANYID|Insurance Company, Inc.|123 Ins Way^^Spokane^WA^99202|||GROUP1234|||Worldwide Widgets||20141001|||PATIENT01^TEST|SEL^Self^HL70063|19700101|1234 Here Street^^Spokane^WA^99202||||||||||||S|||||POLICY1234 GT1|1||PATIENT01^TEST||1234 Here Street^^Spokane^WA^99202||||||||||||||||Guarantor Organization Name ORC|NW|123456|||||||20130607103421||||I123O OBR|1|123456||80100.DA33^DAT Apolipoprotein A|R||201307220009|0||||||||1234567890|||C| NTE|1||Order Note DG1|1||700^Diagnosis Description^I9C|||F|||||||||1 OBX|1|ST|99199.Z56^Specimen Source||AOE Value|Units|||||F

Sample Base64 Encoded ER7 Order Message

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 TVNIfF5+XCZ8NzAwMHxEclNtaXRofDExMDF8UEFNTHwyMDEyMTIwNDEwNTc1M3x8 T1JNXk8wMV5PUk1fTzAxfDQyNTEzMTg2OjEzODM4ZTVhNWJhOi0xYmU4fFB8Mi41 fA0KUElEfDF8fDAxMjM0NTY3ODl8fFBBVElFTlQwMV5URVNUfHwxOTcwMDEwMXxN fHxBU0F8MTIzNCBIZXJlIFN0cmVldF5eU3Bva2FuZV5XQV45OTIwMnx8KDUwOSkg NTU1LTEyMTJeXl5qZG9lQHBhbWwuY29tfA0KUFYxfDF8fF5eXkRyU21pdGheXl5C dWlsZGluZzFeXkRlc2NyaXB0aW9ufHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8 fHx8fHx8fHx8NjU0MzIxfA0KSU4xfDF8UExBTklEfElOU0NPTVBBTllJRHxJbnN1 cmFuY2UgQ29tcGFueSwgSW5jLnwxMjMgSW5zIFdheV5eU3Bva2FuZV5XQV45OTIw Mnx8fEdST1VQMTIzNHx8fFdvcmxkd2lkZSBXaWRnZXRzfHwyMDE0MTAwMXx8fFBB VElFTlQwMV5URVNUfFNFTF5TZWxmXkhMNzAwNjN8MTk3MDAxMDF8MTIzNCBIZXJl IFN0cmVldF5eU3Bva2FuZV5XQV45OTIwMnx8fHx8fHx8fHx8fFN8fHx8fFBPTElD WTEyMzQNCkdUMXwxfHxQQVRJRU5UMDFeVEVTVHx8MTIzNCBIZXJlIFN0cmVldF5e U3Bva2FuZV5XQV45OTIwMnx8fHx8fHx8fHx8fHx8fHxHdWFyYW50b3IgT3JnYW5p emF0aW9uIE5hbWUNCk9SQ3xOV3wxMjM0NTZ8fHx8fHx8MjAxMzA2MDcxMDM0MjF8 fHx8STEyM08NCk9CUnwxfDEyMzQ1Nnx8ODAxMDAuREEzM15EQVQgQXBvbGlwb3By b3RlaW4gQXxSfHwyMDEzMDcyMjAwMDl8MHx8fHx8fHx8MTIzNDU2Nzg5MHx8fEN8 DQpOVEV8MXx8T3JkZXIgTm90ZQ0KREcxfDF8fDcwMF5EaWFnbm9zaXMgRGVzY3Jp cHRpb25eSTlDfHx8Rnx8fHx8fHx8fDENCk9CWHwxfFNUfDk5MTk5Llo1Nl5TcGVj aW1lbiBTb3VyY2V8fEFPRSBWYWx1ZXxVbml0c3x8fHx8Rg==

Sample SOAP Envelope (PlaceBase64Order)

1 2 3 4 5 6 7 8 9 10 11 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://hl7.paml.com/ws/"> <soapenv:Header/> <soapenv:Body> <ws:PlaceBase64Order> <ws:orderRequest> <ws:HL7Message>[[Base64 Encoded ER7 Message]]</ws:HL7Message> <ws:SiteID>[[PAML Site Identifier]]</ws:SiteID> </ws:orderRequest> </ws:PlaceBase64Order> </soapenv:Body> </soapenv:Envelope>

Sample ER7 Result Message

GetBase64Results will return an array of base64 encoded ER7 formatted messages.
1 2 3 4 5 6 MSH|^~\&|1101|PAML|7000|DrSmith|20130909133853|-5d4a2583:140c1764186:-255e|ORU^R01^ORU_R01|-5d4a2583:140c1764186:-255e|P|2.5| PID|1||0123456789||PATIENT01^TEST||19700101|M||ASA|1234 Here Street^^Spokane^WA^99202||(509)555-1212^^^^^509^5551212|||||EEPATIENT01 PV1|1||^^^DrSmith^^^Building1^^Description||||1234567890^DR SMITH||||||||||||||||||||||||||||||||654321| ORC|RE|123456|||||||20130607103421| OBR|1|123456|M1026954|80100.DA33^DAT Apolipoprotein A|R||201309091313|||||||||1234567890^DR SMITH|||C||||||F OBX|1|NM|1869-7^Apolipoprotein A 1||154|mg/dL|79-169||||F||||50D0661605^PAML, 110 W. Cliff Dr, Spokane, WA 99204

Sample v2.xml Messages

Sample v2.xml Order Message

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 <ORM_O01 xmlns="urn:hl7-org:v2xml"> <MSH> <MSH.1>|</MSH.1> <MSH.2>^~\&</MSH.2> <MSH.3> <HD.1>7000</HD.1> </MSH.3> <MSH.4> <HD.1>DRSMITH</HD.1> </MSH.4> <MSH.5> <HD.1>1101</HD.1> </MSH.5> <MSH.6> <HD.1>PAML</HD.1> </MSH.6> <MSH.7> <TS.1>20121204105753.865-0800</TS.1> </MSH.7> <MSH.9> <MSG.1>ORM</MSG.1> <MSG.2>O01</MSG.2> <MSG.3>ORM_O01</MSG.3> </MSH.9> <MSH.10>42513186:13838e5a5ba:-1be8</MSH.10> <MSH.11> <PT.1>P</PT.1> </MSH.11> <MSH.12> <VID.1>2.5</VID.1> </MSH.12> </MSH> <ORM_O01.PATIENT> <PID> <PID.1>1</PID.1> <PID.3> <CX.1>0123456789</CX.1> </PID.3> <PID.5> <XPN.1> <FN.1>PATIENT01</FN.1> </XPN.1> <XPN.2>TEST</XPN.2> </PID.5> <PID.7> <TS.1>19700101</TS.1> </PID.7> <PID.8>M</PID.8> <PID.10> <CE.1>ASA</CE.1> </PID.10> <PID.11> <XAD.1> <SAD.1>1234 Here Street</SAD.1> </XAD.1> <XAD.3>Spokane</XAD.3> <XAD.4>WA</XAD.4> <XAD.5>99202</XAD.5> </PID.11> <PID.13> <XTN.1>(509) 555-1212</XTN.1> <XTN.4>jdoe@paml.com</XTN.4> </PID.13> </PID> <ORM_O01.PATIENT_VISIT> <PV1> <PV1.1>1</PV1.1> <PV1.3> <PL.4> <HD.1>DrSmith</HD.1> </PL.4> <PL.7>Building1</PL.7> <PL.9>Description</PL.9> </PV1.3> <PV1.39>654321</PV1.39> </PV1> </ORM_O01.PATIENT_VISIT> <ORM_O01.INSURANCE> <IN1> <IN1.1>1</IN1.1> <IN1.2> <CE.1>PLANID</CE.1> </IN1.2> <IN1.3> <CX.1>INSCOMPANYID</CX.1> </IN1.3> <IN1.4> <XON.1>Insurance Company, Inc.</XON.1> </IN1.4> <IN1.5> <XAD.1> <SAD.1>123 Ins Way</SAD.1> </XAD.1> <XAD.3>Spokane</XAD.3> <XAD.4>WA</XAD.4> <XAD.5>99202</XAD.5> </IN1.5> <IN1.8>GROUP1234</IN1.8> <IN1.11> <XON.1>Worldwide Widgets</XON.1> </IN1.11> <IN1.13>20141001</IN1.13> <IN1.16> <XPN.1> <FN.1>PATIENT01</FN.1> </XPN.1> <XPN.2>TEST</XPN.2> </IN1.16> <IN1.17> <CE.1>SEL</CE.1> <CE.2>Self</CE.2> <CE.3>HL70063</CE.3> </IN1.17> <IN1.18> <TS.1>19700101</TS.1> </IN1.18> <IN1.19> <XAD.1> <SAD.1>1234 Here Street</SAD.1> </XAD.1> <XAD.3>Spokane</XAD.3> <XAD.4>WA</XAD.4> <XAD.5>99202</XAD.5> </IN1.19> <IN1.31>S</IN1.31> <IN1.36>POLICY1234</IN1.36> </IN1> </ORM_O01.INSURANCE> <GT1> <GT1.1>1</GT1.1> <GT1.3> <XPN.1> <FN.1>PATIENT01</FN.1> </XPN.1> <XPN.2>TEST</XPN.2> </GT1.3> <GT1.5> <XAD.1> <SAD.1>1234 Here Street</SAD.1> </XAD.1> <XAD.3>Spokane</XAD.3> <XAD.4>WA</XAD.4> <XAD.5>99202</XAD.5> </GT1.5> <GT1.21> <XON.1>Guarantor Organization Name</XON.1> </GT1.21> </GT1> </ORM_O01.PATIENT> <ORM_O01.ORDER> <ORC> <ORC.1>NW</ORC.1> <ORC.2> <EI.1>123456</EI.1> </ORC.2> <ORC.9> <TS.1>20130607103421</TS.1> </ORC.9> <ORC.13> <PL.1>I123O</PL.1> </ORC.13> </ORC> <ORM_O01.ORDER_DETAIL> <OBR> <OBR.1>1</OBR.1> <OBR.2> <EI.1>123456</EI.1> </OBR.2> <OBR.4> <CE.1>80100.DA33</CE.1> <CE.2>DAT Apolipoprotein A</CE.2> </OBR.4> <OBR.5>R</OBR.5> <OBR.7> <TS.1>201307220009</TS.1> </OBR.7> <OBR.8> <TS.1>0</TS.1> </OBR.8> <OBR.16> <XCN.1>1234567890</XCN.1> </OBR.16> <OBR.19>C</OBR.19> </OBR> <NTE> <NTE.1>1</NTE.1> <NTE.3>Order Note</NTE.3> </NTE> <DG1> <DG1.1>1</DG1.1> <DG1.3> <CE.1>700</CE.1> <CE.2>Diagnosis Description</CE.2> <CE.3>I9C</CE.3> </DG1.3> <DG1.6>F</DG1.6> <DG1.15>1</DG1.15> </DG1> <ORM_O01.OBSERVATION> <OBX> <OBX.1>1</OBX.1> <OBX.2>ST</OBX.2> <OBX.3> <CE.1>99199.Z56</CE.1> <CE.2>Specimen Source</CE.2> </OBX.3> <OBX.5>AOE Value</OBX.5> <OBX.6> <CE.1>Units</CE.1> </OBX.6> <OBX.11>F</OBX.11> </OBX> </ORM_O01.OBSERVATION> </ORM_O01.ORDER_DETAIL> </ORM_O01.ORDER> </ORM_O01>

Sample SOAP Envelope (PlaceOrder)

1 2 3 4 5 6 7 8 9 10 11 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://hl7.paml.com/ws/"> <soapenv:Header/> <soapenv:Body> <ws:PlaceOrder> <ws:orderRequest> <ws:HL7Message><![CDATA[[[v2.Xml Encoded Order Message]]]]></ws:HL7Message> <ws:SiteID>[[PAML Site Identifier]]</ws:SiteID> </ws:orderRequest> </ws:PlaceOrder> </soapenv:Body> </soapenv:Envelope>

Sample v2.xml Result Message

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148<ORU_R01 xmlns="urn:hl7-org:v2xml"> <MSH> <MSH.1>|</MSH.1> <MSH.2>^~\&amp;</MSH.2> <MSH.3> <HD.1>1101</HD.1> </MSH.3> <MSH.4> <HD.1>PAML</HD.1> </MSH.4> <MSH.5> <HD.1>7000</HD.1> </MSH.5> <MSH.6> <HD.1>DrSmith</HD.1> </MSH.6> <MSH.7> <TS.1>20130909133853</TS.1> </MSH.7> <MSH.8>-5d4a2583:140c1764186:-255e</MSH.8> <MSH.9> <MSG.1>ORU</MSG.1> <MSG.2>R01</MSG.2> <MSG.3>ORU_R01</MSG.3> </MSH.9> <MSH.10>-5d4a2583:140c1764186:-255e</MSH.10> <MSH.11> <PT.1>P</PT.1> </MSH.11> <MSH.12> <VID.1>2.5</VID.1> </MSH.12> </MSH> <ORU_R01.PATIENT_RESULT> <ORU_R01.PATIENT> <PID> <PID.1>1</PID.1> <PID.3> <CX.1>0123456789</CX.1> </PID.3> <PID.5> <XPN.1> <FN.1>PATIENT01</FN.1> </XPN.1> <XPN.2>TEST</XPN.2> </PID.5> <PID.7> <TS.1>19700101</TS.1> </PID.7> <PID.8>M</PID.8> <PID.10> <CE.1>ASA</CE.1> </PID.10> <PID.11> <XAD.1> <SAD.1>1234 Here Street</SAD.1> </XAD.1> <XAD.3>Spokane</XAD.3> <XAD.4>WA</XAD.4> <XAD.5>99202</XAD.5> </PID.11> <PID.13> <XTN.1>(509)555-1212</XTN.1> <XTN.6>509</XTN.6> <XTN.7>5551212</XTN.7> </PID.13> <PID.18> <CX.1>EEPATIENT01</CX.1> </PID.18> </PID> <ORU_R01.VISIT> <PV1> <PV1.1>1</PV1.1> <PV1.3> <PL.4> <HD.1>DrSmith</HD.1> </PL.4> <PL.7>Building1</PL.7> <PL.9>Description</PL.9> </PV1.3> <PV1.7> <XCN.1>1234567890</XCN.1> <XCN.2> <FN.1>DR SMITH</FN.1> </XCN.2> </PV1.7> <PV1.39>654321</PV1.39> </PV1> </ORU_R01.VISIT> </ORU_R01.PATIENT> <ORU_R01.ORDER_OBSERVATION> <ORC> <ORC.1>RE</ORC.1> <ORC.2> <EI.1>123456</EI.1> </ORC.2> <ORC.9> <TS.1>20130607103421</TS.1> </ORC.9> </ORC> <OBR> <OBR.1>1</OBR.1> <OBR.2> <EI.1>123456</EI.1> </OBR.2> <OBR.3> <EI.1>M1026954</EI.1> </OBR.3> <OBR.4> <CE.1>80100.DA33</CE.1> <CE.2>DAT Apolipoprotein A</CE.2> </OBR.4> <OBR.5>R</OBR.5> <OBR.7> <TS.1>201309091313</TS.1> </OBR.7> <OBR.16> <XCN.1>1234567890</XCN.1> <XCN.2> <FN.1>DR SMITH</FN.1> </XCN.2> </OBR.16> <OBR.19>C</OBR.19> <OBR.25>F</OBR.25> </OBR> <ORU_R01.OBSERVATION> <OBX> <OBX.1>1</OBX.1> <OBX.2>NM</OBX.2> <OBX.3> <CE.1>1869-7</CE.1> <CE.2>Apolipoprotein A 1</CE.2> </OBX.3> <OBX.5>154</OBX.5> <OBX.6> <CE.1>mg/dL</CE.1> </OBX.6> <OBX.7>79-169</OBX.7> <OBX.11>F</OBX.11> <OBX.15> <CE.1>50D0661605</CE.1> <CE.2>PAML, 110 W. Cliff Dr, Spokane, WA 99204</CE.2> </OBX.15> </OBX> </ORU_R01.OBSERVATION> </ORU_R01.ORDER_OBSERVATION> </ORU_R01.PATIENT_RESULT> </ORU_R01>

MSH - Message Header

MSH.3.1 - Sending Application. PAML Assigned Interface Identifier.

The 4-digit interface identifier assigned by PAML. For orders, you must use the PAML assigned identifier that is included in your client certificate and the SOAP message. For results, this will be the PAML assigned identifier for the laboratory.

MSH.4.1 - Sending Facility

Should be alphanumeric only. For orders, this should be the client or account name. This value will be returned in MSH.6.1 in the result message(s). For results, this will be the laboratory facility.

MSH.5.1 - Receiving Application. PAML Assigned Interface Identifier.

The 4-digit interface identifier assigned by PAML. For orders, you must use the PAML assigned identifier for the laboratory. For results, this will be the PAML assigned identifier that is included in your client certificate and the SOAP message.

MSH.6.1 - Receiving Facility

Should be alphanumeric only. For orders, this should be "PAML". For results, this will be the value provided in MSH4.1 in the order message.

MSH.7.1 - Date/Time of Message

CCYYMMDDHHMMSS (4-digit year, month, day, hour, minute, second)

MSH.8

MSH.9.1 - Message Type

For orders, this should be: "ORM"

MSH.9.2 - Message Type

For orders, this should be: "O01"

MSH.9.3 - Message Type

For orders, this should be: "ORM_O01"

MSH.10 - Message Control Identifier

Unique message identifier.

MSH.11.1 - Processing Identifier

Accepted Values:
Value Description
D Debugging
P Production
T Training

MSH.12.1.1 - HL7 Message Version

Should be: 2.5

PID - Patient Identification

PID.1 - Set ID

This should be: 1

PID.3.1 - Client Assigned Patient Identifier

PID.5.1 - Patient Last Name

PID.5.2 - Patient First Name

PID.7.1 - Patient Date of Birth (DOB)

CCYYMMDD (4-digit year, month, day)

PID.8 - Patient Gender

Accepted Values:
Value Description
M Male
F Female
U Unknown

PID.10.1 - Patient Race

Accepted Values:
Value Description
AF Black (AF)
ASA Asian
CAU Caucasian
HIS Hispanic
NAT Native American
OTH Other

PID.11.1 - Patient Address

PID.11.3 - City

PID.11.4 - State

PID.11.5 - Zip Code

PID.13.1 - Patient Area Code and Phone Number

Example: (509) 555-1212

PID.13.4 - Patient Email Address

PID.13.6 - Patient Area Code

PID.13.7 - Patient Phone Number

PID.18.1 - Laboratory Assigned Patient Identifier

PV1 - Patient Visit

PV1.1.1 - Set ID

This should be: 1

PV1.3.1 -

PV1.3.4 - Patient Location Facility

PV1.3.7 - Patient Location Building

PV1.3.9 - Patient Location Description

PV1.7.1.1 - Attending Provider Identifier

This value will be set equal to OBR.16.1.1 on result messages, if no value is provided on the order.

PV1.7.2.1 - Attending Provider Description

This value will be set equal to OBR.16.2.1 on result messages, if no value is provided on the order.

PV1.39 - Laboratory Assigned Patient Visit Facility Identifier

IN1 - Insurance

The IN1 segment contains insurance policy coverage information necessary to produce properly prorated and patient insurance bills. The IN1 segment is "C" (conditional) and is required OBR.19 is "T" (third-party bill). If OBR.19 is not equal to "T", the IN1 segment should not be sent. When lab services are to be billed to a third party, information for a primary, secondary, and tertiary insurance may be provided (i.e., up to 3 IN1 segments may be sent). The information for the primary insurance plan must be reported in the first IN1 segment.

IN1.1 - Set ID

Up to 3 occurrences of the IN1 segment cans be sent to accommodate a patient's primary, secondary and tertiary insurance information. The information for the primary insurance plan must be reported in the first IN1 segment and the IN1.1 Set ID field must be populated with the value "1". If information for a secondary or tertiary insurance is transmitted in the order, the IN1 Set ID field must be populated with a value of "2" and "3", respectively. Accepted Values:
Value Description
1 1st IN1 segment providing patient's primary insurance information
2 2nd IN1 segment providing patient's secondary insurance information
3 3rd IN1 segment providing patient's tertiary insurance information

IN1.2.1 - Insurance Plan ID

The ordering system must use the Insurance Plan ID field to send an indicator of the specific type of policy that the ensured holds (e.g. PPO, HMO, etc.). There is a great deal of variety in how insurance companies define the format for their plan IDs.

Note: See IN1.36 Policy Number for information on sending the patient's unique subscriber ID. See IN1.3 Insurance Company ID and IN1.4 Insurance Company Name for information on sending the identifier and name of the patient's insurance carrier.

IN1.3.1 - Insurance Company ID

The ordering EHR system must provide the identifier of the patient’s insurance company. This identifier may be the lab’s proprietary identifier, the ordering systems proprietary identifier, or an insurance company identifier from a third party intermediary (e.g., a clearinghouse). Despite the name of this component, the actual insurance company identifier may be an alphanumeric text string, not just a numeric identifier. See http://billingcodes.paml.com/ for a list of valid Insurance Company Identifiers.

IN1.4.1 - Insurance Company Name

The ordering system must include the name of the third-party payer/insurance company when the lab test is billed to a third-party. Only the Organization Name component (IN1.4.1) must be populated to indicate the name of the insurance company.

IN1.5.1 - Insurance Company Address

The ordering system must include the address of the patient's insurance carrier when the lab test is billed to a third-party. Only a single insurance company address may be sent.

IN1.5.3 - Insurance Company City

Insurance Company city.

IN1.5.4 - Insurance Company State

Insurance Company state.

IN1.5.5 - Insurance Company Zip Code

Insurance Company zip code.

IN1.8 - Insurance Group Number

If a lab test is billed to a third-party payer, and the patient's insurance carrier has assigned a group number for the patient's coverage, and the ordering system has a record of the group number, the ordering system must send this group number in this field.

IN1.11.1 - Insured's Group Employer Name

When an insurance claim is related to a workman’s compensation claim, the lab may need to provide the name of the employer providing the coverage for the workman’s compensation claim. Only the Organization Name component (IN1.8.1) must be populated when indicating the employer name.

Condition: The IN1.8 Insured’s Group Employer Name is required when the IN1.31 Type of Agreement Code field is populated with the value "W", indicating that the insurer is providing coverage as part of a workman’s compensation claim. Otherwise, this field must be empty.

IN1.13 - Insurance Plan Expiration Date

This field is optional. If provided, it must confirm to the DT data type.

IN1.16.1 - Last Name of Insured

The ordering system must include the name of the policy holder (subscriber) for the insurance policy when the lab test is billed to a third-party payer. Both a first (IN1.16.2) and last name (IN1.16.1) must be provided at a minimum.

IN1.16.2 - First Name of Insured

The ordering system must include the name of the policy holder (subscriber) for the insurance policy when the lab test is billed to a third-party payer. Both a first (IN1.16.2) and last name (IN1.16.1) must be provided at a minimum.

IN1.17.1 - Insured's Relationship to Patient Identifier

Accepted Values:
Value Description
SEL Self
SPO Spouse
DEP Dependent

IN1.17.2 - Insured's Relationship to Patient Description

This description must match the value provided in IN1.17.1.

Accepted Values:
Value Description
Self Use when providing SEL in IN1.17.1.
Spouse Use when providing SPO in IN1.17.1.
Dependent Use when providing DEP in IN1.17.1.

IN1.17.3 - Insured's Relationship to Patient Coding System

Must be "HL70063".

IN1.18 - Insured's Date of Birth

If known, the ordering system, the subscribers' date of birth must be reported in this field when the lab test is billed to a third party. The time of birth or time zone indicator must not be transmitted.

Format: YYYYMMDD

IN1.19.1 - Insured's Address

Insured's street or mailing address.

IN1.19.3 - Insured's City

Insured's city.

IN1.19.4 - Insured's State

Insured's state.

IN1.19.5 - Insured's Zip Code

Insured's zip code.

IN1.31 - Insurance Type of Agreement Code

If an Insurance company is providing coverage for a patient as part of a workman’s compensation claim and the ordering system is aware of this fact, the ordering system must populate this field with a value of "W" (Workman’s compensation). This flag informs the performing lab that the insurance information transmitted in the current IN1 segment is covering the patient under a special type of agreement and may not be the patient’s regular insurance provider.

Accepted Values:
Value Description
S Standard
U Unified
M Maternity
W Workman's Compensation

IN1.36 - Insurance Policy Number

The ordering system must include the policy number, Medicare ID, Medicaid ID, case number, or member ID of the insured person when the lab test is billed to a third-party. The actual content of this field depends on the type of third-party payer.

GT1 - Guarantor Segment

The GT1 segment contains guarantor data for patient and insurance billing purposes (i.e., data about the person or the organization with financial responsibility for payment of a patient account). The GT1 segment is required in all order messages. Only a single instance of a GT1 segment is allowed in an order message.

GT1.1 - Guarantor Set ID

This specification allows a maximum of 1 occurrence of the GT1 segment. Hence, this field must be populated with the value "1".

GT1.3.1.1 - Guarantor Last Name

If the guarantor for payment of lab services is an individual, the ordering system must provide that person's name when placing an order for lab service. The first and last name of the guarantor must be sent at minimum.

If the guarantor is an organization rather than an individual, then this field must be empty and the GT1.21 Guarantor Organization Name must be populated instead.

GT1.3.2 - Guarantor First Name

If the guarantor for payment of lab services is an individual, the ordering system must provide that person's name when placing an order for lab service. The first (GT1.3.2) and last (GT1.3.1) name of the guarantor must be sent at minimum.

If the guarantor is an organization rather than an individual, then this field must be empty and the GT1.21 Guarantor Organization Name must be populated instead.

GT1.5.1.1 - Guarantor Address

Guarantor street or mailing address.

GT1.5.3 - Guarantor City

Guarantor city.

GT1.5.4 - Guarantor State

Guarantor state.

GT1.5.5 - Guarantor Zip Code

Guarantor zip code.

GT1.21.1 - Guarantor Organization Name

If the guarantor for payment of lab service is an organization, the ordering system must provide that organization’s name when placing an order for lab service. If the guarantor is an individual rather than an organization, then this field shall be empty and the GT1.3 Guarantor Name must be populated instead.

ORC - Order

The ORC and OBR segments are used together to represent an order. Each test order should have corresponding ORC and OBR segments.

ORC.1 - Order Control (Type)

Accepted Values:
Value Description
NW New Order
CA Cancel

ORC.2.1 - Unique Test Order Number

Unique test order identifier. This value must match exactly the corresponding OBR.2.1 value.

ORC.9.1 - Date/Time of Order

CCYYMMDDHHMMSS (4-digit year, month, day, hour, minute, second)

ORC.13.1 - Enterer's Location

PAML Assigned Location of the person placing the order. This field is optional and is used when the location of the person entering the order is required. For example, when printing PAML generated specimen labels.

OBR - Observation Request (Order Detail)

The OBR and ORC segments are used together to represent an order. Each test order should have corresponding OBR and ORC segments.

OBR.1 - Set ID

Should be: 1

OBR.2.1 - Unique Test Order Number

Unique test order identifier. This value must match exactly the corresponding ORC.2.1 value.

OBR.3.1 - Laboratory Accession Number

Laboratory accession number.

OBR.4.1 - Laboratory Test Order Code

See PAML Test Directory for a listing of order codes and additional details.

OBR.4.2 - Laboratory Order Code Description

See PAML Test Directory for a listing of order codes and additional details.

OBR.5 - Order Priority

Accepted Values:
Value Description
S Stat - 4 hour turn-around requested
S2 Stat 2 - 12 hour turn-around requested
R Routine
NOTE: Turn-around times vary by test, testing location and other factors. The requested order priority does not guarantee turn-around time.

OBR.7.1 - Start Date/Time of Order

OBR.8.1 - End Date/Time of Order

OBR.16.1.1 - Ordering Provider Identifier

NPI or account number of the provider ordering the test. The account number should only be used if the test is being ordered directly by the patient or the NPI number of the ordering provider is not available.

OBR.16.2.1 - Ordering Provider Description

OBR.19 - Billing Indicator

Accepted Values:
Value Description
T Third Party. Requires IN1, GT1 and DG1 segments.
P Patient
C Client

OBR.25 - Order Status

Values:
Value Description
P Partial result.
F Final result.
C Corrected result.

NTE - Notes and Comments Segment

The NTE segment is commonly used for sending notes and comments that accompany test orders. Information transmitted in NTE segments is limited to general notes of a non-clinical nature. Any supporting clinical information relevant to the performance of a test must be transmitted as Ask At Order Enter (AOE) question responses in OBX segments or in the designated DG1 and OBR segments.

NTE.1 - Notes and Comments Set ID

An integer set identifier that increments by 1 for each NTE segment sent that relates to an ordered test (i.e. OBR). The first NTE segment related to an ordered test must have a Set ID value of "1". The set ID of the second NTE segment must have a value of "2", and so on.

NTE.3 - Comment

This field contains the relevant message that needs to be communicate to the lab. Information transmitted is limited to general notes of a non-clinical nature. Any supporting clinical information relevant to the performance of a test must be transmitted as Ask At Order Enter (AOE) question responses in OBX segments or in the designated DG1 and OBR segments.

DG1 - Diagnosis Segment

The DG1 segment contains patient diagnose information of various types, for example, primary, etc. The DG1 segment is used to send multiple diagnoses for the patient for whom test are being ordered. The DG1 segment is required, but may be empty. If the patient diagnoses are known by the sending system, the DG1 segment(s) must be populated. In the case of third-party billing, diagnosis information is typically required to be submitted in order for the payer to process a claim. In other cases (e.g. patient bill or client bill), diagnosis information may not generally be needed, but could be important for certain tests.
The sending system must provide as many diagnoses (in multiple DG1 segments) as deemed necessary for the lab test. The ordering system must indicate the priority of each included diagnosis (e.g. primary or secondary).

DG1.1 - Diagnosis Set ID

An integer set identifier that increments by 1 for each DG1 segment sent that relates to an ordered test (i.e. OBR). The first DG1 segment related to an ordered test must have a Set ID value of "1". The set ID of the second DG1 segment must have a value of "2", and so on.

DG1.3.1 - Diagnosis Code

The ordering system must provide a diagnosis code and diagnosis description that can support the reimbursement for lab services when a lab test is paid for by a third-party payer and the ordering system has a record of the diagnosis code. Either the lCD-9 or lCD-10 coding system shall be used to identify the patient’s diagnosis. Only a single diagnosis code may be provided for a given diagnosis (i.e., either the lCD-9 identifier or the lCD-10 identifier may be sent, not both). The diagnosis code must be part of the code system specified in DG1.3.3.

DG1.3.2 - Diagnosis Code Description

Diagnosis description that applies to the diagnosis code specified in DG1.3.1.

DG1.3.3 - Diagnosis Code System

Diagnosis Code System that applies to the code specified in DG1.3.1.

Values:
Value Description
I9C ICD-9 CM
I10C ICD-10 CM

DG1.6 - Diagnosis Type

The ordering system shall indicate whether the diagnosis type is "W" (working) or "F" (final). A 'working' diagnosis is a presumptive diagnosis that has not yet been established, whereas a 'final' diagnosis has been established.

Values:
Value Description
W Working, presumptive diagnosis that has not yet been established
F Final, established diagnosis.

DG1.15 - Diagnosis Priority

If available, the ordering system must indicate the priority (e.g., primary, secondary, etc.) of the diagnosis indicated in the DG1.3.1 Diagnosis Code field. Primary diagnoses have the value "1", secondary diagnoses have the value "2", and unranked diagnoses have the value "0".

Values:
Value Description
0 Not included in diagnosis ranking
1 The primary diagnosis
2 For ranked secondary diagnoses

OBX - Order Observation Segment (Ask At Order Entry Questions)

In general, the OBX segment is used in an HL7 message to transmit a single observation or observation fragment that provides clinical context. For the purposes of the Order message, OBX segments are specifically and solely used to report response to ask at order entry (AOE) question. When AOE response are applicable to an ordered test, each AOE response is transmitted as an individual OBX segment beneath the OBR segment that specifies the corresponding test order. IF an ordered test does not have any associated AOE questions, the OBX segment should not be sent. Multiple OBX segment may be included for an ordered test to support those tests with multiple AOE questions. NOTE: The OBX segment has a different function for order and result messages.

OBX.1 - Order Set ID

This field must be populated with an integer that enumerates the AOE question response(s) for a specific test order (ORC/OBR combination). Multiple OBX segments can be sent that relate to a single test order and should follow the OBR segment which for which they correspond. The first OBX segment related to an ordered test must have a Set ID value of "1", the Set ID of the second OBX segment must have a value of "2", and so on.

OBX.2 - Order Value Type

This field contains the data type of the AOE question response value sent in OBX.5. The value sent in this field must correspond to the response data type for the AOE question response listed in the PAML Test Directory. If no data type is specified in the test directory, then the default value of "ST" (string date) should be used. Values:
Value Description
CE Coded Element
DT Date
NM Numeric
SN Structured Numeric
ST String Data
TM Time
TS Timestamp
TX Text Data
FT Formatted Text

OBX.3.1 - Order Observation Identifier

AOE identifier for the AOE question. The value sent in the Identifier component (OBX.3.1) of this filed must correspond to the AOE question identifier from the PAML Test Directory.

OBX.3.2 - Order Observation Description

This field must contain the text of the AOE question from the PAML Test Directory.

OBX.5 - Order Observation Value

This filed must contain the value of the AOE question response. The value of the AOE question response must be consistent with the data type sent in the OBX.2 Value Type field. For example, if the value type in OBX.2 is "DT" (date), the the value of OBX.5 must be a valid HL7 formatted date (e.g. "20130109").
NOTE: Do not include units of measure in this field. Units of measure should be specified in OBX.6.

OBX.6.1 - Order Units

If the AOE question response can have units of measure associated with a value send in OBX.5 Observation Value, then this field may be used to indicate the applicable units.

OBX.11 - Order Observation Status

This field must be populated with the value of "F" for final.
Values:
Value Description
F Final

OBX - Result Observation Segment

OBX.1 - Result Set ID

OBX.2 - Result Value Type

OBX.3.1 - Result Observation Identifier (LOINC)

LOINC result code.

OBX.3.2 - Result Observation (Result) Description

Result description.

OBX.5 - Result Observation Value (Result)

Result value.

OBX.6.1 - Result Units

Result units.

OBX.7 - Result Reference Range

Result reference range.

OBX.8 - Result Abnormal Flags

Result abnormal flags.

OBX.11 - Result Observation Status

Values:
Value Description
F Final. Final results should replace preliminary results and should indicate that the result is final.
P Preliminary. Preliminary results should indicate that the result is preliminary.
C Corrected. Corrected results should replace previous final and preliminary results and should indicate that the result is corrected.

OBX.15.1 - Result Performing Laboratory Identifier (CLIA Code)

Performing laboratory identifier. This is the CLIA number of the performing laboratory.

OBX.15.2 - Result Performing Laboratory Name and Address

Performing laboratory name and address.