org.openhealthexchange.openpixpdq.ihe.impl_v2
Class PdSupplier

java.lang.Object
  extended by org.openhealthexchange.openpixpdq.ihe.HL7Actor
      extended by org.openhealthexchange.openpixpdq.ihe.impl_v2.PdSupplier
All Implemented Interfaces:
IPdSupplier

public class PdSupplier
extends HL7Actor
implements IPdSupplier

This is the Patient Demographics Supplier (PDS) actor, the server side actor of the IHE Patient Demographics Query (PDQ) profile. This actor accepts HL7 v2 messages such as QBP^Q22 and QCN^J01 from a PDQ Consumer. The transactions that this actor handles are PDQ Query including Continuation Query, and Cancel Query. See Section 3.21 of Vol. 2 (ITI TF-2): Transactions, available on the IHE site for more details.

Version:
1.0, Mar 27, 2007
Author:
Wenzhi Li

Constructor Summary
PdSupplier(com.misyshealthcare.connect.net.IConnectionDescription connection, IheAuditTrail auditTrail)
          Creates a new PdSupplier that will talk to a PDQ consumer over the connection description supplied.
 
Method Summary
(package private)  IPdSupplierAdapter getPdqSupplierAdapter()
          Gets the adapter for this PdSupplier
static void main(java.lang.String[] args)
           
 void registerPdSupplierAdapter(IPdSupplierAdapter pdqDataSource)
          Registers a PdSupplier adapter which delegates patient demographics query from this PDS actor to the underneath eMPI.
 void start()
          Starts this actor.
 void stop()
          Stops this actor.
 
Methods inherited from class org.openhealthexchange.openpixpdq.ihe.HL7Actor
getAuditTrail, getConnection, getMesaLogger, getName, getStoreLogger, initMessageStore, logHL7MessageError, saveMessageStore, setMesaLogger, setStoreLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openhealthexchange.openpixpdq.ihe.IPdSupplier
getName
 

Constructor Detail

PdSupplier

public PdSupplier(com.misyshealthcare.connect.net.IConnectionDescription connection,
                  IheAuditTrail auditTrail)
           throws IheConfigurationException
Creates a new PdSupplier that will talk to a PDQ consumer over the connection description supplied.

Parameters:
connection - The description of the connection of this PD Supplier
Throws:
IheConfigurationException
Method Detail

start

public void start()
Description copied from class: HL7Actor
Starts this actor. It must be called once for each actor when the program starts.

Specified by:
start in interface IPdSupplier
Overrides:
start in class HL7Actor

stop

public void stop()
Description copied from class: HL7Actor
Stops this actor. It must be called once for each actor just before the program quits.

Specified by:
stop in interface IPdSupplier
Overrides:
stop in class HL7Actor

registerPdSupplierAdapter

public void registerPdSupplierAdapter(IPdSupplierAdapter pdqDataSource)
Registers a PdSupplier adapter which delegates patient demographics query from this PDS actor to the underneath eMPI.

Specified by:
registerPdSupplierAdapter in interface IPdSupplier
Parameters:
IPdSupplierAdapter - the adapter
See Also:
IPdSupplierAdapter

getPdqSupplierAdapter

IPdSupplierAdapter getPdqSupplierAdapter()
Gets the adapter for this PdSupplier

Returns:
the IPdSupplierAdapter for this PD Supplier

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception