|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPixManagerAdapter
This PIXManager Adapter is the bridge between IHE PIX Manager actor and underneath eMPI. OpenPIXPDQ, according to the IHE PIX specifications, invokes the methods in this Adapter, whose implementation is provided by the underneath eMPI.
| Method Summary | |
|---|---|
java.util.List<PatientIdentifier> |
createPatient(Patient patient,
MessageHeader header)
Creates a new patient in the eMPI database. |
java.util.List<PatientIdentifier> |
findPatientIds(PatientIdentifier pid,
MessageHeader header)
Finds from the underneath eMPI all patient ids cross all patient domains (assigning authorities) given a patient id in a particular domain. |
boolean |
isValidPatient(PatientIdentifier pid,
MessageHeader header)
Whether the given patient is a valid patient in the eMPI database. |
java.util.List<java.util.List<PatientIdentifier>> |
mergePatients(Patient patientMain,
Patient patientOld,
MessageHeader header)
Merges two patients together because they have been found to be the same patient. |
java.util.List<java.util.List<PatientIdentifier>> |
updatePatient(Patient patient,
MessageHeader header)
Updates the patient's demographics in the eMPI's database. |
| Method Detail |
|---|
boolean isValidPatient(PatientIdentifier pid,
MessageHeader header)
throws PixManagerException
pid - the PatientIdentifier to be checkedheader - the MessageHeader from the incoming PIX client message
true if the patient id is valid; false otherwise.
PixManagerException
java.util.List<PatientIdentifier> findPatientIds(PatientIdentifier pid,
MessageHeader header)
throws PixManagerException
header - the MessageHeader of the incoming PIX Query message
PixManagerException - when there is trouble cross finding all patients
java.util.List<PatientIdentifier> createPatient(Patient patient,
MessageHeader header)
throws PixManagerException
Patient to the underneath eMPI.
patient - the demographics of the patient to be createdheader - the MessageHeader of the incoming PIX Feed message
PatientIdentifiers of this patient
as a result of creating this patient. OpenPIXPDQ will send a PIX
Update Notification message for this list to those PIX Consumers
that have subscribed to PIX Update Notification.
If PIX Update Notification is not supported, or if there is no matching (i.e, the patient is registered for the first time, no need to send PIX Update Notification Message), an empty list or null can be returned.
PixManagerException - When there is trouble creating the patient
java.util.List<java.util.List<PatientIdentifier>> updatePatient(Patient patient,
MessageHeader header)
throws PixManagerException
Patient to the underneath eMPI.
patient - the new demographics of the patient to be updatedheader - the MessageHeader of the incoming PIX Update message
PatientIdentifiers
as a result of updating this patient. The outer list is used to
store different logic patients, while each inner list represents
the same logic patient with matching patient ids across patient id domains.
For each inner list (matching list), OpenPIXPDQ will send a PIX Update
Notification message to those PIX Consumers that have subscribed
to PIX Update Notification.
For example, if patient(A)'s address is updated, and this results in an un-matching of originally matched patients (A, B, C & D), two lists are created, one list representing updated matching patients (A, E & F); the other one representing updated un-matching patients (B, C & D).
If PIX Update Notification is not supported, or if there is no update on the patient matching list, just return an empty list or null.
PixManagerException - when there is trouble updating the patient
java.util.List<java.util.List<PatientIdentifier>> mergePatients(Patient patientMain,
Patient patientOld,
MessageHeader header)
throws PixManagerException
patientMain - the surviving patientpatientOld - the patient to be replaced, and merged with the surviving patientheader - the MessageHeader of the incoming PIX Merge message
PatientIdentifiers
as a result of merging patients. The outer list is used to
store different logic patients, while each inner list represents
the same logic patient with matching patient ids across patient id domains.
For each inner list (matching list), OpenPIXPDQ will send a PIX Update
Notification message to those PIX Consumers that have subscribed
to PIX Update Notification.
If PIX Update Notification is not supported, or if there is no update on the patient matching list, just return an empty list or null.
PixManagerException - when there is trouble merging the patients
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||