org.openhealthexchange.openpixpdq.ihe.impl_v2
Class PixManager

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

public class PixManager
extends HL7Actor
implements IPixManager

This is the Patient Identifier Cross-referencing (PIX) Manager actor, the server side actor of the IHE PIX profile. This actor accepts HL7 v2 messages such as ADT^A01, ADT^A04, ADT^A05, ADT^A08 and ADT^A40 from a PIX Source, and QBP^Q23 from a PIX Consumer. The transactions that this actor handles include PIX Feed, PIX Update, PIX Merge, PIX Query and PIX Update Notification. See Sections 3.8, 3.9 and 3.10 of Vol. 2 (ITI TF-2): Transactions, available on the IHE site for more details.

Version:
1.0, Mar 1, 2007
Author:
Wenzhi Li
See Also:
IPixManager

Constructor Summary
PixManager(com.misyshealthcare.connect.net.IConnectionDescription connection, IheAuditTrail auditTrail, com.misyshealthcare.connect.net.IConnectionDescription xdsRegistryConnection, java.util.Collection<com.misyshealthcare.connect.net.IConnectionDescription> pixConsumerConnections)
          Creates a new PixManager that will talk to a PIX client over the connection description supplied.
 
Method Summary
(package private)  java.util.Collection<com.misyshealthcare.connect.net.IConnectionDescription> getPixConsumerConnections()
          Gets a collection of all PIX Consumers who have subscribed to the PIX Update Notification transaction.
(package private)  IPixManagerAdapter getPixManagerAdapter()
          Gets the adapter for this PixManager
(package private)  com.misyshealthcare.connect.net.IConnectionDescription getXdsRegistryConnection()
          Gets the connection for the XDS Registry.
static void main(java.lang.String[] args)
           
 void registerPixManagerAdapter(IPixManagerAdapter pixManagerAdapter)
          Registers a PixManagerAdapter which delegates patient creation, update, merge and PIX query from this PIX Manager 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.IPixManager
getName
 

Constructor Detail

PixManager

public PixManager(com.misyshealthcare.connect.net.IConnectionDescription connection,
                  IheAuditTrail auditTrail,
                  com.misyshealthcare.connect.net.IConnectionDescription xdsRegistryConnection,
                  java.util.Collection<com.misyshealthcare.connect.net.IConnectionDescription> pixConsumerConnections)
           throws IheConfigurationException
Creates a new PixManager that will talk to a PIX client over the connection description supplied.

Parameters:
connection - The description of the connection of this PIX manager
auditTrail - The audit trail for this PIX Manager
xdsRegistryConnection - The description of the connection of the XDS Registry in the affinity domain
pixConsumerConnections - The connections of PIX Consumers subscribing to PIX Update Notification messages
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 IPixManager
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 IPixManager
Overrides:
stop in class HL7Actor

registerPixManagerAdapter

public void registerPixManagerAdapter(IPixManagerAdapter pixManagerAdapter)
Registers a PixManagerAdapter which delegates patient creation, update, merge and PIX query from this PIX Manager actor to the underneath eMPI.

Specified by:
registerPixManagerAdapter in interface IPixManager
Parameters:
pixManagerAdapter - the adapter
See Also:
IPixManagerAdapter

getPixManagerAdapter

IPixManagerAdapter getPixManagerAdapter()
Gets the adapter for this PixManager

Returns:
the adapter

getXdsRegistryConnection

com.misyshealthcare.connect.net.IConnectionDescription getXdsRegistryConnection()
Gets the connection for the XDS Registry. The connect provides the details such as host name and port etc which are needed for this PIX Manager to talk to the XDS Registry.

Returns:
the connection of XDS Registry

getPixConsumerConnections

java.util.Collection<com.misyshealthcare.connect.net.IConnectionDescription> getPixConsumerConnections()
Gets a collection of all PIX Consumers who have subscribed to the PIX Update Notification transaction.

Returns:
the pixConsumerConnections

main

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