org.openhealthexchange.openpixpdq.ihe.impl_v2
Class PdQueryHandler
java.lang.Object
org.openhealthexchange.openpixpdq.ihe.impl_v2.BaseHandler
org.openhealthexchange.openpixpdq.ihe.impl_v2.PdQueryHandler
- All Implemented Interfaces:
- ca.uhn.hl7v2.app.Application
class PdQueryHandler
- extends BaseHandler
- implements ca.uhn.hl7v2.app.Application
This class processes PDQ query message in HL7 v2.5 format. It
handles the PDQ transaction of the PDQ profile.
The supported message type includes QBP^Q22 and QCN^J01.
- Version:
- 1.0, Oct 23, 2008
- Author:
- Wenzhi Li
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 PDQ Query Message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PdQueryHandler
PdQueryHandler(PdSupplier actor)
- Constructor
- Parameters:
actor
- the PdSupplier
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 PDQ Query Message. Valid messages
are QBP^Q22 and QCN^J01.
- Specified by:
processMessage
in interface ca.uhn.hl7v2.app.Application
- Parameters:
msgIn
- the incoming PDQ query message
- Throws:
ca.uhn.hl7v2.app.ApplicationException
ca.uhn.hl7v2.HL7Exception