Sending HL7 Version 3 Query Messages

From IHE Wiki
Revision as of 21:40, 21 May 2007 by Kboone (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sending HL7 Version 3 Messages

HL7 Version 3 messages are sent in XML. Each message has information related to:

  1. Messaging Infrastructure
  2. Control Act
  3. Domain Content

These components are described in greater detail below.

Message Infrastructure

This section of the message conveys information about the message itself, including:

  • The message identity
  • Creation time of the message
  • The message type
  • Processing controls on the message
  • Identity of the sending and recieving systems
  • The control act which is being conveyed in the message
<HL7Interaction xmlns="urn:hl7-org:v3" ITSVersion="XML_1.0"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                
 <!-- A unique identifier for this transmission (mandatory). -->
 <id root=' ' extension=' '/>
 <!-- The time that the transmission was created. -->
 <creationTime value=' '/>
 <!-- The identification of the unique information interchange. The extension should be the same as the outermost tag. The root shall be 2.16.840.1.113883 -->
 <interactionId extension='HL7Interaction' root='2.16.840.1.113883'/>
 <!-- debugging, production or training -->
 <processingCode code='D|P|T'/>
 
 <!-- Archive, Current Processing, Initial Load or Restore from Archive -->
 <processingModeCode code='A|T|I|R'/>
 
 <!-- Always, Errors only or Never -->
 <acceptAckCode code='AL|ER|NE'/>
 
 <receiver typeCode="RCV">
   <device determinerCode="INSTANCE">
     <id/><!--  Application id -->
     <name/>
     <desc/>
     <existenceTime><low value=' '/><high value=' '/></existenceTime>
     <telecom value=' ' />
     <manufacturerModelName/>
     <softwareName/>
   </device>
 </receiver>
 <sender typeCode="SND">
   <device determinerCode="INSTANCE">
     <id/><!--  Application id -->
     <name/>
     <desc/>
     <existenceTime><low value=' '/><high value=' '/></existenceTime>
     <telecom value=' ' />
     <manufacturerModelName/>
     <softwareName/>
   </device>
 </sender>


Control Act

This section of the message identifies the action and provides information the business actors related to the transaction. This includes:

  • The author or performer of the act
  • The information recipients to who the information will be conveyed
  • The domain content related to the act
 <controlActProcess moodCode="EVN">
   <id root=' ' extension=' '/>
   
   <effectiveTime value=' '/>
   <languageCode code=' '/>
   <authorOrPerformer typeCode=' '></authorOrPerformer>
   <informationRecipient typeCode=' '></informationRecipient>
   <subject>
      :
      Domain Content
   </subject>
      - OR -
   <queryByParameter>
     <statusCode />
     <parameterList>
        :
        Domain Content
     </parameterList>
   </queryByParameter>
 </controlActProcess>


Domain Content