org.openhealthexchange.openpixpdq.ihe.impl_v2
Class PixFeedHandler
java.lang.Object
org.openhealthexchange.openpixpdq.ihe.impl_v2.BaseHandler
org.openhealthexchange.openpixpdq.ihe.impl_v2.PixFeedHandler
- All Implemented Interfaces:
- ca.uhn.hl7v2.app.Application
class PixFeedHandler
- extends BaseHandler
- implements ca.uhn.hl7v2.app.Application
This class processes PIX Feed message in HL7 v2.3.1 format. It
handles the PIX Feed transaction (including also PIX Update
and PIX Merge transactions) of the PIX profile.
The supported message type includes ADT^A01, ADT^A04, ADT^A05,
ADT^A08 and ADT^A40.
- Version:
- 1.0 Oct 22, 2008
- Author:
- Wenzhi Li
- See Also:
PixQueryHandler
,
org.openhealthexchange.openpixpdq.ihe.impl_v2.PixUpdateNotification
Method Summary |
boolean |
canProcess(ca.uhn.hl7v2.model.Message theIn)
Whether a incoming message can be processed by this handler. |
ca.uhn.hl7v2.model.Message |
processMessage(ca.uhn.hl7v2.model.Message msgIn)
Processes the incoming PIX Feed Message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PixFeedHandler
PixFeedHandler(PixManager actor)
- Constructor
- Parameters:
actor
- the PixManager
actor
canProcess
public boolean canProcess(ca.uhn.hl7v2.model.Message theIn)
- Whether a incoming message can be processed by this handler.
- Specified by:
canProcess
in interface ca.uhn.hl7v2.app.Application
- Returns:
true
if the incoming message can be processed;
otherwise false
.
processMessage
public ca.uhn.hl7v2.model.Message processMessage(ca.uhn.hl7v2.model.Message msgIn)
throws ca.uhn.hl7v2.app.ApplicationException,
ca.uhn.hl7v2.HL7Exception
- Processes the incoming PIX Feed Message. Valid messages
are ADT^A01, ADT^A04, ADT^A05, ADT^A08 and ADT^A40.
- Specified by:
processMessage
in interface ca.uhn.hl7v2.app.Application
- Parameters:
msgIn
- the incoming message
- Throws:
ca.uhn.hl7v2.app.ApplicationException
ca.uhn.hl7v2.HL7Exception