org.openhealthexchange.openpixpdq.ihe
Class PatientBroker

java.lang.Object
  extended by org.openhealthexchange.openpixpdq.ihe.PatientBroker

public class PatientBroker
extends java.lang.Object

This class presents a single global PatientBroker instance to the OpenPIXPDQ code. That way it need not be passed around in global web state. It can simply be initialized and then requested from any code whenever necessary.

Version:
1.0 - Oct 22, 2005
Author:
Jim Firby

Method Summary
static PatientBroker getInstance()
          Gets the single global instance of the PatientBroker.
 boolean registerPdSupplier(IPdSupplier pdSupplier)
          Registers a new patient demographics supplier.
 boolean registerPixManager(IPixManager pixManager)
          Registers a new PIX manager.
 boolean unregisterPdSuppliers(com.misyshealthcare.connect.base.IBrokerController controller)
          Unregisters the active patient demographics supplier specified by the controller.
 boolean unregisterPixManagers(com.misyshealthcare.connect.base.IBrokerController controller)
          Unregisters the active PIX managers specified by the controller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PatientBroker getInstance()
Gets the single global instance of the PatientBroker.

Returns:
the patient broker

registerPixManager

public boolean registerPixManager(IPixManager pixManager)
Registers a new PIX manager. This method is typically called when a PIX manager server is started.

Parameters:
pixManager - a PIX manager
Returns:
true if this PIX manager was successfully added

registerPdSupplier

public boolean registerPdSupplier(IPdSupplier pdSupplier)
Registers a new patient demographics supplier. This method is typically called when a PD supplier server is started.

Parameters:
pdSupplier - a patient demographics supplier
Returns:
true if this patient demographics supplier was successfully added

unregisterPixManagers

public boolean unregisterPixManagers(com.misyshealthcare.connect.base.IBrokerController controller)
Unregisters the active PIX managers specified by the controller. If the controller is null unregister all PIX managers. A PIX manager is stopped when it is unregistered.

Parameters:
controller - the controller specifying which PIX manager to unregister. All PIX managers will be unregistered if it is null.
Returns:
true if any PIX manager were actually unregistered

unregisterPdSuppliers

public boolean unregisterPdSuppliers(com.misyshealthcare.connect.base.IBrokerController controller)
Unregisters the active patient demographics supplier specified by the controller. If the controller is null unregister all patient demographics supplier. A patient demographics supplier is stopped when it is unregistered.

Parameters:
controller - the controller specifying which patient demographics supplier to unregister. All patient demographics suppliers will be unregistered if it is null.
Returns:
true if any patient demographics suppliers were actually unregistered