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

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

public class HL7Util
extends java.lang.Object

This class defines some utility methods used by all actor implementation

Version:
1.0, Apr 26, 2007
Author:
Wenzhi Li

Constructor Summary
HL7Util()
           
 
Method Summary
static void echoQPD(ca.uhn.hl7v2.util.Terser out, ca.uhn.hl7v2.util.Terser in)
          Echos and Populates QPD segment from an existing QPD segment.
static java.lang.String encodeMessage(ca.uhn.hl7v2.model.Message msg)
          Encodes a Message to a String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HL7Util

public HL7Util()
Method Detail

echoQPD

public static void echoQPD(ca.uhn.hl7v2.util.Terser out,
                           ca.uhn.hl7v2.util.Terser in)
                    throws ca.uhn.hl7v2.HL7Exception
Echos and Populates QPD segment from an existing QPD segment. This method only echoes up to the fifth component and the fifth sub-component.

Parameters:
out - the out Terser including the QPD segment to be populated
in - the in Terser including the QPD segment that containing the query parameters
Throws:
ca.uhn.hl7v2.HL7Exception - When the QPD segment cannot be echoed

encodeMessage

public static java.lang.String encodeMessage(ca.uhn.hl7v2.model.Message msg)
                                      throws ca.uhn.hl7v2.HL7Exception
Encodes a Message to a String

Throws:
ca.uhn.hl7v2.HL7Exception