org.openhealthexchange.openpixpdq.ihe.impl_v2
Class PixQueryHandler
java.lang.Object
org.openhealthexchange.openpixpdq.ihe.impl_v2.BaseHandler
org.openhealthexchange.openpixpdq.ihe.impl_v2.PixQueryHandler
- All Implemented Interfaces:
- ca.uhn.hl7v2.app.Application
class PixQueryHandler
- extends BaseHandler
- implements ca.uhn.hl7v2.app.Application
This class processes PIX Query message in HL7 v2.5 format. It
handles the PIX Query transaction of the PIX profile.
The supported message type includes QBP^Q23.
- Version:
- 1.0 Oct 22, 2008
- Author:
- Wenzhi Li
- See Also:
PixFeedHandler
,
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 Query Message. |
(package private) ca.uhn.hl7v2.model.Message |
processQuery(ca.uhn.hl7v2.model.v25.message.QBP_Q21 msgIn)
Processes the incoming PIX Query message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PixQueryHandler
PixQueryHandler(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 Query Message. Valid message
is QBP^Q23.
- 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
processQuery
ca.uhn.hl7v2.model.Message processQuery(ca.uhn.hl7v2.model.v25.message.QBP_Q21 msgIn)
throws ca.uhn.hl7v2.app.ApplicationException,
ca.uhn.hl7v2.HL7Exception
- Processes the incoming PIX Query message.
- Parameters:
msgIn
- the PIX Query request message
- Returns:
- a response message for PIX Query
- Throws:
ca.uhn.hl7v2.app.ApplicationException
- If Application has trouble
ca.uhn.hl7v2.HL7Exception
- if something is wrong with HL7 message