org.openhealthexchange.openpixpdq.ihe.impl_v2.hl7
Class HL7Header

java.lang.Object
  extended by org.openhealthexchange.openpixpdq.ihe.impl_v2.hl7.HL7Header

public class HL7Header
extends java.lang.Object

This class contains common utility for Message Header Processing.

Version:
Dec 01, 2008
Author:
Rasakannu Palaniyandi

Field Summary
(package private)  com.misyshealthcare.connect.net.Identifier idReceivingApplication
           
(package private)  com.misyshealthcare.connect.net.Identifier idReceivingFacility
           
(package private)  com.misyshealthcare.connect.net.Identifier idSendingApplication
           
(package private)  com.misyshealthcare.connect.net.Identifier idSendingFacility
           
(package private)  java.lang.String messageCode
           
(package private)  java.lang.String messageControlId
           
(package private)  java.lang.String messageDate
           
(package private)  ca.uhn.hl7v2.model.Message messageIn
           
(package private)  java.lang.String messageStructure
           
(package private)  ca.uhn.hl7v2.model.v231.segment.MSH msh231
           
(package private)  ca.uhn.hl7v2.model.v25.segment.MSH msh25
           
(package private)  java.lang.String triggerEvent
           
 
Constructor Summary
HL7Header(ca.uhn.hl7v2.model.Message msgIn)
          Constructor
 
Method Summary
 java.lang.String getMessageCode()
          Gets the message code
 java.lang.String getMessageControlId()
          This method returns the MessageControl Id
 java.lang.String getMessagedate()
          This method returns the Message date
 java.lang.String getMessageStructure()
          Gets the message structure
 com.misyshealthcare.connect.net.Identifier getReceivingApplication()
          This method returns the Receiving Application Identifier
 com.misyshealthcare.connect.net.Identifier getReceivingFacility()
          This method returns the Receiving Facility Identifier
 com.misyshealthcare.connect.net.Identifier getSendingApplication()
          This method returns the sending Application Identifier
 com.misyshealthcare.connect.net.Identifier getSendingFacility()
          This method returns the sending Facility Identifier
 java.lang.String getTriggerEvent()
          Gets the trigger event
 MessageStore populateMessageStore(MessageStore store)
          Populates MessageStore from this HL7Header.
 MessageHeader toMessageHeader()
          Populates MessageHeader from this HL7Header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

msh231

ca.uhn.hl7v2.model.v231.segment.MSH msh231

msh25

ca.uhn.hl7v2.model.v25.segment.MSH msh25

messageIn

ca.uhn.hl7v2.model.Message messageIn

idSendingApplication

com.misyshealthcare.connect.net.Identifier idSendingApplication

idSendingFacility

com.misyshealthcare.connect.net.Identifier idSendingFacility

idReceivingApplication

com.misyshealthcare.connect.net.Identifier idReceivingApplication

idReceivingFacility

com.misyshealthcare.connect.net.Identifier idReceivingFacility

messageControlId

java.lang.String messageControlId

messageCode

java.lang.String messageCode

triggerEvent

java.lang.String triggerEvent

messageStructure

java.lang.String messageStructure

messageDate

java.lang.String messageDate
Constructor Detail

HL7Header

public HL7Header(ca.uhn.hl7v2.model.Message msgIn)
          throws ca.uhn.hl7v2.app.ApplicationException
Constructor

Parameters:
msgIn - the incoming message
Throws:
ca.uhn.hl7v2.app.ApplicationException
Method Detail

getSendingApplication

public com.misyshealthcare.connect.net.Identifier getSendingApplication()
This method returns the sending Application Identifier

Returns:
the sending application of this message header

getSendingFacility

public com.misyshealthcare.connect.net.Identifier getSendingFacility()
This method returns the sending Facility Identifier

Returns:
the sending facility of this message header

getReceivingApplication

public com.misyshealthcare.connect.net.Identifier getReceivingApplication()
This method returns the Receiving Application Identifier

Returns:
the receiving application of this message header

getReceivingFacility

public com.misyshealthcare.connect.net.Identifier getReceivingFacility()
This method returns the Receiving Facility Identifier

Returns:
the receiving facility of this message header

getMessageControlId

public java.lang.String getMessageControlId()
This method returns the MessageControl Id

Returns:
the message control id of this message header

getMessagedate

public java.lang.String getMessagedate()
This method returns the Message date

Returns:
the message date

populateMessageStore

public MessageStore populateMessageStore(MessageStore store)
Populates MessageStore from this HL7Header. This message should be invoked after this HL7Header object is fully initialized.

Parameters:
store - the MessageStore to be populated
Returns:
the same MessageStore object with populated data

toMessageHeader

public MessageHeader toMessageHeader()
Populates MessageHeader from this HL7Header. This message should be invoked after this HL7Header object is fully initialized.

Returns:
the same MessageHeader object with populated data

getMessageCode

public java.lang.String getMessageCode()
Gets the message code

Returns:
the message code

getTriggerEvent

public java.lang.String getTriggerEvent()
Gets the trigger event

Returns:
the trigger event

getMessageStructure

public java.lang.String getMessageStructure()
Gets the message structure

Returns:
the message structure