OLIS XML Message Definitions

The following illustrates the structures required for the current OLIS service offering as well as for eHealth Ontario's OLIS in production.  This is a guidance on building and sending an OLIS request and parsing an OLIS response in the order that the structures are created.


 

This is a more detailed overview of the OLIS message processing than the Submitting OLIS Messages page.

 

Please also refer to section 11.7 "XML Message Definitions" of the OLIS Standard for schema descriptions and WSDL.

 

Message Definitions:

Sending a message

Receiving a message

Expected Errors

  1. OLIS Request
    1. Request Elements
    2. Request Schema
    3. Request XML Sample
  2. SignedRequest
    1. SignedRequest Elements
    2. SignedRequest Schema
    3. SignedRequest XML Sample
  3. HIAL Request
    1. HIALRequest Elements
    2. HIALRequest Schema
    3. HIALRequest XML Sample
  4. FHIR Request
    1. Request Definition
    2. Request Sample
  1. HIAL Response
    1. HIALResponse Elements
    2. HIALResponse Schema
    3. HIALResponse XML Sample
  2. SignedResponse
    1. SignedResponse Elements
    2. SignedResponse Schema
    3. SignedResponse XML Sample
  3. OLIS Response
    1. Response Elements
    2. Response Schema
    3. Response XML Sample - No Error
    4. Response XML Sample - Error
  4. FHIR Response
    1. Response Elements
    2. Response Template
    3. Response XML Sample
  1. Errors
    1. XML-Embedded Errors
    2. SOAP Exceptions
    3. FHIR Errors

 

For full details on OLIS messages, please reffer to the "OLIS Standard" that can be found under the "Resources" section on OLIS page

 

OLIS Request

A Request message is contained within a SignedRequest message. A Request contains the HL7 data to be sent to OLIS.

 

Request Elements

<Content>

Required:

Y

Type:

String

Format:

HL7 (ASCII)

Description:

The message content - an HL7 message that is to be sent to OLIS.

Notes:

The HL7 must be enclosed in a CDATA tag to stop data in the HL7 from being interpreted as XML.

 

Request Schema

<?xml version="1.0" encoding="utf-16"?>

<xs:schema xmlns:tns="http://www.ssha.ca/2005/HIAL" elementFormDefault="qualified" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" attributeFormDefault="unqualified" targetNamespace="http://www.ssha.ca/2005/HIAL" xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:element name="Request">

    <xs:complexType>

      <xs:sequence>

        <xs:element minOccurs="0" maxOccurs="1" name="Content" type="xs:string" />

      </xs:sequence>

    </xs:complexType>

  </xs:element>

</xs:schema>

 

Request XML Sample

The CDATA tag around the HL7 (in bold red font) is very important as it stops XML parsers from getting confused by the HL7 content – everything within the CDATA tag will be ignored by the parser. Always wrap the HL7 in the CDATA tag.

 

<Request xmlns="http://www.ssha.ca/2005/HIAL">

   <Content>

<![CDATA[MSH|^~\&|^CN=Sample Common Name of LIS System, OU=Applications, OU=SampleOU, OU=Subscribers, DC=subscribers, DC=ssh^X500| SampleConformanceID1 |^OLIS^X500||20050601134500-0400||SPQ^Z01^SPQ_Q08|TAG987654 |P|2.3.1||||||8859/1<CR> ZSH|123976456|John Henry Everyman<CR> SPR|QRYTAG123|R|Z_QryLabInfoForPatientID^^HL70471 |@OBR.7^20050601000000-0400~@PID.3.1^1234567890 ~@PID.3.4.2~@PID.3.4.3~@PID.3.5^JHN~@PID.3.9.1^ON ~@PID.3.9.3^HL70347~@PID.8^M~@PID.7^19271127<CR>]]>

   </Content>

</Request>

 

SignedRequest

For the purpose of current OLIS service offering, a SignedRequest message is an XML OLIS Request that is base64 encoded.

 

SignedRequest Elements

<SignedData>

Required:

Y

Type:

String

Format:

Base64-encoded(ASCII)

Description:

This is the digitally signed Request message.

 

SignedRequest Schema

See Web Services Description Language (WSDL).

 

SignedRequest XML Sample

<SignedRequest xmlns="http://www.ssha.ca/2005/HIAL">

   <SignedData>

MIIKGAYJKoZIhvcNAQcCoIIKCTCCCgUCAQExCzAJBgUrDgMCGgUAMIICLgYJKoZI

hvcNAQcBoIICHwSCAhs8T0xJU1JlcXVlc3QgeG1sbnM9Imh0dHA6Ly93d3cuc3No

YS5vbi5jYS8iPjxITDc+PCFbQ0RBVEFbTVNIfF5+XCZ8XjM1NzkxXkx8fF5PTElT

Xkx8fDIwMDQwMTAxMTAwMF58fE9STV5PMDFeT1JNX08wMXxJRDczNDU3MDB8UHwy

LjMuMV58fHx8fHw4ODU5LzENUElEfDF8fDFeXl5eSkhOXl5eXk9OJk9OVEFSSU8m

SEw3MDM0N15eQ0V8fExhc3ReRmlyc3ReTWlkZGxlXl5eXkx8fDE5NjAwNTA2MTQy

M158TQ1aUER8WQ1QVjF8MXxJDU9SQ3xOV3wxMDBeXjEyM15MfHwxMDFeXjEyM15M

…data removed…

MQwwCgYDVQQLEwNQS0kxOjA4BgNVBAMTMVNtYXJ0IFN5c3RlbXMgZm9yIEhlYWx0

aCBBZ2VuY3kgUm9vdCBDQSAtIFRlc3RpbmcCBEAPYKMwCQYFKw4DAhoFAKBdMBgG

CSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTA1MTAzMDEw

NTgyMVowIwYJKoZIhvcNAQkEMRYEFL7MjE93nYi0U6zrO0mtFJL/NnVKMA0GCSqG

SIb3DQEBAQUABIGADtYn0BJZc2LZzwY6Tfpn4tgQ/j9PjnKNZNXoPkj7Q1mPUE0O

+qVvAgH+WL6YfZnMxQsJtjCqcKkHgJSlV3ZWzC7fi1sSuxPtJtROaAq7jimGiZ/2

EC3ybadpru6a4JD5Z/r5aAzt5gErbCdRctUH/UFFjXDKJVXmyAHqctOZih8=

  </SignedData>

</SignedRequest>

 

HIALRequest

A HIALRequest message contains a SignedRequest message and a Client Transaction ID.

 

HIALRequest Elements

<SignedRequest>

Required:

Y

Type:

XML message

Format:

XML

Description:

This is the SignedRequest message.

<ClientTransactionID>

Required:

Y

Type:

String

Format:

Same as MSH.10

Description:

The value from the MSH.10 field in the HL7 message.

<SubmitterID>

Required:

Optional*

Type:

String

 

 

Description:

Refer to the note that follows this table.

<SubmitterFullName>

Required:

Optional*

Type

String

 

 

Description:

Refer to the note that follows this table.

<SubmitterRole>

Required:

Optional*

Type:

String

 

 

Description:

Refer to the note that follows this table.

<SubmitterOrganization>

Required:

Optional*

Type:

String

 

 

Description:

Refer to the note that follows this table.

 

* The SubmitterID, SubmitterFullName, SubmitterRole, and SubmitterOrganization will be deprecated in the future and users are required to use ZSH.

 

HIALRequest Schema

See Web Services Description Language (WSDL).

 

HIALRequest XML Sample

<HIALRequest xmlns="http://www.ssha.ca/2005/HIAL">

   <SignedRequest xmlns="">

     <SignedData>

hvcNAQcBoIICHwSCAhs8T0xJU1JlcXVlc3QgeG1sbnM9Im

h0dHA6Ly93d3cuc3NoYS5vbi5jYS8iPjxITDc+PCFbQ0RB

VEFbTVNIfF5+XCZ8XjM1NzkxXkx8fF5PTElT

…data removed…

D5Z/r5aAzt5gErbCdRctUH/UFFjXDKJVXmyAHqctOZih8=

     </SignedData>

   </SignedRequest>

   <ClientTransactionID xmlns="">

      19992DA7-B233-477E-B37C-584D0011BAF7

   </ClientTransactionID>

   <SubmitterID>eHOID12345678</SubmitterID>

   <SubmitterFullName>Doe, John Henry Adam</SubmitterFullName>

   <SubmitterRole>Physician</SubmitterRole>

   < SubmitterOrganization>County Hospital</SubmitterOrganization>

</HIALRequest>

 

HIALResponse

A HIALResponse message contains a SignedResponse message and a Client Transaction ID.

 

HIALResponse Elements

<SignedResponse>

Required:

Y

Type:

XML message

Format:

XML

Description:

The SignedResponse message.

<ClientTransactionID>

Required:

Y

Type:

String

Format:

Same as MSH.10.

Description:

The value from the MSH.10 field in the HL7 message.

 

HIALResponse Schema

See Web Services Description Language.

 

HIALResponse XML Sample

<HIALResponse xmlns="http://www.ssha.ca/2005/HIAL">

   <SignedResponse xmlns="">

     <SignedData>

hvcNAQcBoIICHwSCAhs8T0xJU1JlcXVlc3QgeG1sbnM9Im

h0dHA6Ly93d3cuc3NoYS5vbi5jYS8iPjxITDc+PCFbQ0RB

VEFbTVNIfF5+XCZ8XjM1NzkxXkx8fF5PTElT

…data removed…

D5Z/r5aAzt5gErbCdRctUH/UFFjXDKJVXmyAHqctOZih8=

     </SignedData>

   </SignedResponse>

   <ClientTransactionID xmlns="">

      19992DA7-B233-477E-B37C-584D0011BAF7

   </ClientTransactionID>

</HIALResponse>

 

SignedResponse

For the purpose of the current OLIS service offering, a SignedResponse message is an XML OLIS Response that is base64 encoded.

 

SignedResponse Elements

<SignedData>

Required:

Y

Type:

String

Format:

Base64-encoded(ASCII)

Description:

This is the digitally signed Response message.

 

SignedResponse Schema

See Web Services Description Language

 

SignedResponse XML Sample

<SignedResponse xmlns="http://www.ssha.ca/2005/HIAL">

   <SignedData>

MIIKGAYJKoZIhvcNAQcCoIIKCTCCCgUCAQExCzAJBgUrDgMCGgUAMIICLgYJKoZI

hvcNAQcBoIICHwSCAhs8T0xJU1JlcXVlc3QgeG1sbnM9Imh0dHA6Ly93d3cuc3No

YS5vbi5jYS8iPjxITDc+PCFbQ0RBVEFbTVNIfF5+XCZ8XjM1NzkxXkx8fF5PTElT

Xkx8fDIwMDQwMTAxMTAwMF58fE9STV5PMDFeT1JNX08wMXxJRDczNDU3MDB8UHwy

LjMuMV58fHx8fHw4ODU5LzENUElEfDF8fDFeXl5eSkhOXl5eXk9OJk9OVEFSSU8m

SEw3MDM0N15eQ0V8fExhc3ReRmlyc3ReTWlkZGxlXl5eXkx8fDE5NjAwNTA2MTQy

M158TQ1aUER8WQ1QVjF8MXxJDU9SQ3xOV3wxMDBeXjEyM15MfHwxMDFeXjEyM15M

…data removed…

MQwwCgYDVQQLEwNQS0kxOjA4BgNVBAMTMVNtYXJ0IFN5c3RlbXMgZm9yIEhlYWx0

aCBBZ2VuY3kgUm9vdCBDQSAtIFRlc3RpbmcCBEAPYKMwCQYFKw4DAhoFAKBdMBgG

CSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTA1MTAzMDEw

NTgyMVowIwYJKoZIhvcNAQkEMRYEFL7MjE93nYi0U6zrO0mtFJL/NnVKMA0GCSqG

SIb3DQEBAQUABIGADtYn0BJZc2LZzwY6Tfpn4tgQ/j9PjnKNZNXoPkj7Q1mPUE0O

+qVvAgH+WL6YfZnMxQsJtjCqcKkHgJSlV3ZWzC7fi1sSuxPtJtROaAq7jimGiZ/2

EC3ybadpru6a4JD5Z/r5aAzt5gErbCdRctUH/UFFjXDKJVXmyAHqctOZih8=

   </SignedData>

</SignedResponse>

 

OLIS Response

A Response message is contained within a SignedResponse message.

This message is a response from the OLIS system. It contains the HL7 result in the Content field. If processing errors occur (invalid signature, unauthorized access, etc. – see the Errors section), there may not be an HL7 response (the Content field will be empty, or contain the original request message) and the error(s) that occurred will be indicated in the Errors array.

 

Response Elements

<Content>

Required:

N

Type:

String

Format:

HL7

Description:

The message content - an HL7response.

Notes:

The HL7 will be enclosed in a CDATA tag so that the HL7 data won’t be interpreted as XML.

<Errors>

Required:

Y

Type:

Array of Error

Format:

Array

Description:

An array of errors (if any).

<Error>

Required:

Y

Type:

Sequence

Format:

Sequence

Description:

An error.

Notes:

See error elements below.

<Number>

Required:

Y

Type:

Nested Element

Format:

Integer

Description:

A unique number for the error.

<Severity>

Required:

N

Type:

Nested Element

Format:

Alphanumeric

Description:

The severity of the error.

Notes:

Values: Error, Warning

<Message>

Required:

N

Type:

Nested Element

Format:

Alphanumeric

Description:

The error message.

<Details>

Required:

N

Type:

Array of String

Format:

ArrayOfString

Description:

An array of details specific to the error.

<string>

Required:

N

Type:

String

Format:

Alphanumeric

Description:

A detail specific to the error.

 

Response Schema

<?xml version="1.0" encoding="utf-16"?>

<xs:schema xmlns="http://www.ssha.ca/2005/HIAL" elementFormDefault="qualified" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" targetNamespace="http://www.ssha.ca/2005/HIAL" xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:element name="Response" type="Response" />

  <xs:complexType name="Response">

    <xs:sequence>

      <xs:element minOccurs="0" maxOccurs="1" name="Content" type="xs:string" />

      <xs:element minOccurs="0" maxOccurs="1" name="Errors" type="ArrayOfError" />

    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="ArrayOfError">

    <xs:sequence>

      <xs:element minOccurs="1" maxOccurs="unbounded" name="Error" nillable="true" type="Error" />

    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="Error">

    <xs:sequence>

      <xs:element minOccurs="1" maxOccurs="1" name="Number" type="xs:int" />

      <xs:element minOccurs="1" maxOccurs="1" name="Severity" type="xs:string" />

      <xs:element minOccurs="1" maxOccurs="1" name="Message" type="xs:string" />

      <xs:element minOccurs="0" maxOccurs="1" name="Details" type="ArrayOfString" />

    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="ArrayOfString">

    <xs:sequence>

      <xs:element minOccurs="1" maxOccurs="unbounded" name="string" nillable="true" type="xs:string" />

    </xs:sequence>

  </xs:complexType>

</xs:schema>

 

Response XML Sample - No Error

<Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.ssha.ca/2005/HIAL">

   <Content>

<![CDATA[MSH|^~\&|^CN=Sample Common Name of LIS System, OU=Applications, OU=SampleOU, OU=Subscribers, DC=subscribers, DC=ssh^X500| SampleConformanceID1 |^OLIS^X500||20050601134500-0400| |SPQ^Z01^SPQ_Q08|TAG987654 |P|2.3.1||||||8859/1<CR> SPR|QRYTAG123|R|Z_QryLabInfoForPatientID^^HL70471 |@OBR.7^20050601000000-0400~@PID.3.1^1234567890~@PID.3.4.2 ~@PID.3.4.3~@PID.3.5^JHN~@PID.3.9.1^ON ~@PID.3.9.3^HL70347~@PID.8^M~@PID.7^19271127<CR>]]>

   </Content>

</Response>

 

Response XML Sample - Error

<?xml version="1.0" encoding="utf-16"?>

<Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.ssha.ca/2005/HIAL">

  <Errors xmlns="">

    <Error>

      <Number>10009</Number>

      <Severity>Error</Severity>

      <Message>Virus detected.</Message>

      <Details>

        <string>Virus detected in the message content; request terminated.</string>

        <string>Virus Name = HTML_TEST_VIRUS</string>

        <string>Offset = 0</string>

        <string>DN = CN=HIS1, OU=Applications, OU=OLSTST, OU=Hospitals, OU=Subscribers, DC=subscribers, DC=ssh</string>

      </Details>

    </Error>

  </Errors>

</Response>

 

Errors

These are errors that need to be handled and processed properly.

 

XML-Encoded Errors

Note: The following errors are subject to change.

 

Number

Severity

Message

Description

200

Error

Unsupported message type (HL7 Error #200)

The message type indicated in the MSH.9 field is not supported by OLIS.

10001

Error

Unable to process message

Unable to process the request within the timeout limit.

10004

Error

Unable to extract content

Signature validation failed; request terminated.

10006

Error

Unable to retrieve Registration Information; request terminated

OLIS cannot access internal registration resources.

10009

Error

Scanner Initialized, but unable to scan for virus.

OLIS is unable to virus-check the message.

10010

Error

Virus detected in the HL7 payload, request terminated.

Virus detected in an encoded field; request terminated.

 

SOAP Exceptions

Note: The following errors are subject to change.

 

Description

Message in SOAP Exception

Request over size limit

Maximum request length exceeded.

Request timeout

OLIS is unable to provide the result within the timeout limit.

Exception on Outbound OLIS Response

Exception occurred.

Missing or oversized Client Transaction ID

The Client Transaction ID is required and must be no more than 40 characters.

System Error

System Error.

 

FHIR Errors

Note: The following errors are subject to change.

 

FHIR uses Operation Outcome specifies error, warning and additional information messages regarding direct system response, component, or detail about the outcome of an operation. Further information regarding error message handling and its application in FHIR can be found at the HL7.org FHIR documentation for the OperationOutcome resource. 

 

 

FHIR Request

A Request is sent as a RESTful GET message. 

 

Request Definition

 

<FHIR Request Definition>

Service Root URL:

http://142.222.17.102:8080/fhir/

Resource Path:

DiagnosticReport

Query Options:

subject.identifier

subject.gender

subject.birthdate

practitioner.licenseId

issued

licenseText

senderIdentifer

 

 

Request Sample

http://142.222.17.102:8080/fhir/DiagnosticReport?subject.identifier=5230238825&subject.gender=F&subject.birthdate=1998-02-10&practitioner.licenseId=926279&issued=2015-08-10&licenseText=I hereby accept the service agreement here: http://innovation-lab.ca/media/1062/innovation-lab-terms-of-use-apr-16.pdf&senderIdentifier=49665747-154e-40b5-8012-9a6b1403f7ca

 

FHIR Response

This message is a response from the OLIS system.  

 

Response Elements

 

<Bundle>

Required:

Y

Type:

Container

Format:

FHIR Bundle

Description:

A container for a collection of resources.

Notes:

FHIR Bundle Schema

 

<OperationOutcome>

Required:

Y

Type:

Container

Format:

FHIR OperationOutcome

Description:

A collection of error, warning or information messages that result from a system action.

Notes:

FHIR OperationOutcome Schema

 

<DiagnosticReport>

Required:

Y

Type:

Container

Format:

FHIR DiagnosticReport

Description:

The findings and interpretation of diagnostic tests performed on patients.

Notes:

FHIR DiagnosticReport Schema

 

Response Template

 

<Bundle xmlns="http://hl7.org/fhir">

 <!-- from Resource: id, meta, implicitRules, and language -->

 <type value="[code]"/><!-- 1..1 document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection -->

 <total value="[unsignedInt]"/><!-- ?? 0..1 If search, the total number of matches -->

 <link>  <!-- 0..* Links related to this Bundle -->

  <relation value="[string]"/><!-- 1..1 http://www.iana.org/assignments/link-relations/link-relations.xhtml -->

  <url value="[uri]"/><!-- 1..1 Reference details for the link -->

 </link>

 <entry>  <!-- 0..* Entry in the bundle - will have a resource, or information -->

  <fullUrl value="[uri]"/><!-- 0..1 Absolute URL for resource (server address, or UUID/OID) -->

  <resource>

                <OperationOutcome xmlns="http://hl7.org/fhir">

                 <!-- from Resource: id, meta, implicitRules, and language -->

                 <!-- from DomainResource: text, contained, extension, and modifierExtension -->

                 <issue>  <!-- 1..* A single issue associated with the action -->

                  <severity value="[code]"/><!-- 1..1 fatal | error | warning | information -->

                  <code value="[code]"/><!-- 1..1 Error or warning code -->

                  <details><!-- 0..1 CodeableConcept Additional details about the error --></details>

                  <diagnostics value="[string]"/><!-- 0..1 Additional diagnostic information about the issue -->

                  <location value="[string]"/><!-- 0..* XPath of element(s) related to issue -->

                 </issue>

                </OperationOutcome>

  </resource>

 </entry>

 <entry>

  <resource><!-- 0..1 Resource A resource in the bundle -->

                <DiagnosticReport xmlns="http://hl7.org/fhir">

                 <!-- from Resource: id, meta, implicitRules, and language -->

                 <!-- from DomainResource: text, contained, extension, and modifierExtension -->

                 <identifier><!-- 0..* Identifier Id for external references to this report --></identifier>

                 <status value="[code]"/><!-- 1..1 registered | partial | final | corrected | appended | cancelled | entered-in-error -->

                 <contained>

                                <Organization xmlns="http://hl7.org/fhir"/>

                 </contained>

                 <contained>

                                <Practitioner xmlns="http://hl7.org/fhir"/>

                 </contained>

                 <contained>

                                <Patient xmlns="http://hl7.org/fhir"/>

                 </contained>      

                 <extension><!-- 0..*></extension>               

                 <category><!-- 0..1 CodeableConcept Service category --></category>

                 <code><!-- 1..1 CodeableConcept Name/Code for this diagnostic report --></code>

                 <subject><!-- 1..1 Reference(Patient|Group|Device|Location) The subject of the report, usually, but not always, the patient --></subject>

                 <issued value="[instant]"/><!-- 1..1 DateTime this version was released -->

                </DiagnosticReport>

  </resource>

 </entry>

</Bundle>

 

 

Response XML Sample

 

<Bundle xmlns="http://hl7.org/fhir">

 <id value="1175af02-e121-4665-8e1e-df02d3194f7d" />

 <meta>

  <lastUpdated value="2016-11-09T06:32:08.518-04:00" />

 </meta>

 <type value="searchset" />

 <total value="2" />

 <link>

  <relation value="self" />

  <url value="http://142.222.17.102:8080/olis-fhir/DiagnosticReport?_format=xml&amp;issued=1976-10-12&amp;licenseText=I+hereby+accept+the+service+agreement+here%3A+http%3A%2F%2Finnovation-lab.ca%2Fmedia%2F1062%2Finnovation-lab-terms-of-use-apr-16.pdf&amp;practitioner.licenseId=926279&amp;senderIdentifier=49665747-154e-40b5-8012-9a6b1403f7ca&amp;subject.birthdate=1976-10-12&amp;subject.gender=M&amp;subject.identifier=4509746246" />

 </link>

 <entry>

  <fullUrl value="http://142.222.17.102:8080/olis-fhir/OperationOutcome/33271297-c625-4614-8fca-6ff54a5ea44b" />

  <resource>

   <OperationOutcome xmlns="http://hl7.org/fhir">

    <id value="33271297-c625-4614-8fca-6ff54a5ea44b" />

    <issue>

     <severity value="information" />

    </issue>

   </OperationOutcome>

  </resource>

 </entry>

 <entry>

  <fullUrl value="http://142.222.17.102:8080/olis-fhir/DiagnosticReport/856224d3-64e1|2.16.840.1.113883.3.59.1:4008|ISO|ecb57216-cc05|2.16.840.1.113883.3.59.1:4008" />

  <resource>

   <DiagnosticReport xmlns="http://hl7.org/fhir">

    <id value="856224d3-64e1|2.16.840.1.113883.3.59.1:4008|ISO|ecb57216-cc05|2.16.840.1.113883.3.59.1:4008" />

    <meta>

     <profile value="http://142.222.17.102:8080/olis-fhir/StructureDefinition/olisdiagnosticreport" />

    </meta>

    <contained>

     <Organization xmlns="http://hl7.org/fhir">

      <id value="1" />

      <identifier>

       <system value="urn:ehealth:olis:facility_ids" />

       <value value="2.16.840.1.113883.3.59.3:8503" />

      </identifier>

      <name value="WESTERN END THERAPEUTIC COMMUNITY HOSPITAL" />

     </Organization>

    </contained>

    <contained>

     <Practitioner xmlns="http://hl7.org/fhir">

      <id value="2" />

      <identifier>

       <use value="secondary" />

       <system value="urn:ehealth:olis:practitioner_licences" />

       <value value="971716" />

      </identifier>

      <name>

       <given value="ANDREW" />

      </name>

      <name>

       <given value="MARVIN" />

      </name>

      <name>

       <family value="LILY" />

      </name>

     </Practitioner>

    </contained>

    <contained>

     <Organization xmlns="http://hl7.org/fhir">

      <id value="3" />

      <identifier>

       <extension url="http://fhir.uhn.ca/Profile/diagnosticreport.placerGroupNumber.assigner.identifier#olisDefinedType_ORC_4_4">

        <valueString value="ISO" />

       </extension>

       <system value="urn:ehealth:olis:facility_ids" />

       <value value="2.16.840.1.113883.3.59.1:4008" />

      </identifier>

      <name value="Fictitious Facility Hospital Laboratory Name" />

     </Organization>

    </contained>

    <contained>

     <Organization xmlns="http://hl7.org/fhir">

      <id value="4" />

      <extension url="http://fhir.uhn.ca/Profile/diagnosticreport.placerOrderNumber.assigner.identifier#olisDefinedType_OBR_2_4">

       <valueString value="ISO" />

      </extension>

      <identifier>

       <system value="urn:ehealth:olis:facility_ids" />

       <value value="2.16.840.1.113883.3.59.1:4008" />

      </identifier>

     </Organization>

    </contained>

    <contained>

     <Patient xmlns="http://hl7.org/fhir">

      <id value="5" />

      <identifier>

       <extension url="http://fhir.uhn.ca/Profile/patient.identifier#olisDefinedTypeCode_PID_3_5">

        <valueString value="JHN" />

       </extension>

       <extension url="http://fhir.uhn.ca/Profile/patient.identifier#olisDefinedAssigningJurisdictionId_PID_3_9_1">

        <valueString value="ON" />

       </extension>

       <extension url="http://fhir.uhn.ca/Profile/patient.identifier#olisDefinedAssigningJurisdictionText_PID_3_9_2">

        <valueString value="Ontario" />

       </extension>

       <use value="secondary" />

       <system value="urn:oid:2.16.840.1.113883.4.595" />

       <value value="4509746246" />

      </identifier>

      <name>

       <family value="Glaser" />

       <given value="David" />

       <given value="Igor" />

      </name>

      <gender value="male" />

      <birthDate value="1976-10-12" />

     </Patient>

    </contained>

    <extension url="http://fhir.uhn.ca/Profile/diagnosticreport#orderingFacility_ORC_21">

     <valueReference>

      <reference value="#1" />

     </valueReference>

    </extension>

    <extension url="http://fhir.uhn.ca/Profile/diagnosticreport#orderingPractitioner_OBR_16">

     <valueReference>

      <reference value="#2" />

     </valueReference>

    </extension>

    <extension url="http://fhir.uhn.ca/Profile/diagnosticreport#placerGroupNumber_ORC_4">

     <valueIdentifier>

      <use value="secondary" />

      <system value="urn:oid:2.16.840.1.113883.3.59.1:4008" />

      <value value="856224d3-64e1" />

      <assigner>

       <reference value="#3" />

      </assigner>

     </valueIdentifier>

    </extension>

    <extension url="http://fhir.uhn.ca/Profile/diagnosticreport#placerGroupNumberString">

     <valueString value="856224d3-64e1|2.16.840.1.113883.3.59.1:4008|ISO" />

    </extension>

    <extension url="http://fhir.uhn.ca/Profile/diagnosticreport#placerOrderNumber_OBR_2">

     <valueIdentifier>

      <use value="secondary" />

      <system value="urn:oid:2.16.840.1.113883.3.59.1:4008" />

      <value value="ecb57216-cc05" />

      <assigner>

       <reference value="#4" />

      </assigner>

     </valueIdentifier>

    </extension>

    <extension url="http://fhir.uhn.ca/Profile/diagnosticreport#olisDefinedReportCategory_OBR_4_1">

     <valueString value="TR10397-8" />

    </extension>

    <extension url="http://fhir.uhn.ca/Profile/diagnosticreport#orderStartDate_OBR_27_4">

     <valueDateTime value="2015-09-23T00:00:00-04:00" />

    </extension>

    <extension url="http://fhir.uhn.ca/Profile/diagnosticreport#olisDefinedReportStatusCode_OBR_25">

     <valueString value="O" />

    </extension>

    <extension url="http://fhir.uhn.ca/Profile/diagnosticreport#olisDefinedReportStatusCodeTranslated_OBR_25">

     <valueString value="O" />

    </extension>

    <status value="registered" />

    <code>

     <coding>

      <system value="urn:ehealth:olis:test_request_codes" />

      <code value="TR10397-8" />

     </coding>

     <text value="Sodium" />

    </code>

    <subject>

     <reference value="#5" />

    </subject>

    <issued value="2015-12-02T17:56:03.000-04:00" />

   </DiagnosticReport>

  </resource>

 </entry>

</Bundle>