[openempi~source-repository:51] Modified the handler to not throw an exception if the list of located ent
- From: odysseas@kenai.com
- To: commits@openempi.kenai.com
- Subject: [openempi~source-repository:51] Modified the handler to not throw an exception if the list of located ent
- Date: Fri, 26 Feb 2010 02:10:38 +0000
Project: openempi
Repository: source-repository
Revision: 51
Author: odysseas
Date: 2010-02-26 02:10:34 UTC
Link:
Log Message:
------------
Modified the handler to not throw an exception if the list of located entries
is empty.
Revisions:
----------
51
Modified Paths:
---------------
branches/2.0.4-development/openempi/pixpdq-adapter/src/main/java/org/openhie/openempi/openpixpdqadapter/PdqSupplierAdapter.java
Diffs:
------
Index:
branches/2.0.4-development/openempi/pixpdq-adapter/src/main/java/org/openhie/openempi/openpixpdqadapter/PdqSupplierAdapter.java
===================================================================
---
branches/2.0.4-development/openempi/pixpdq-adapter/src/main/java/org/openhie/openempi/openpixpdqadapter/PdqSupplierAdapter.java
(revision 50)
+++
branches/2.0.4-development/openempi/pixpdq-adapter/src/main/java/org/openhie/openempi/openpixpdqadapter/PdqSupplierAdapter.java
(revision 51)
@@ -33,8 +33,6 @@
public class PdqSupplierAdapter extends BasePixPdqAdapter implements
IPdSupplierAdapter
{
- protected final Log log = LogFactory.getLog(getClass());
-
public PdqSupplierAdapter() {
super();
}
@@ -43,12 +41,14 @@
Person personTemplate = ConversionHelper.getPerson(query);
try {
SecurityHelper.getSessionKey();
+ List<List<Patient>> allPatients = new
ArrayList<List<Patient>>();
+
List<Person> persons =
Context.getPersonQueryService().findPersonsByAttributes(personTemplate);
if (persons == null || persons.size() == 0) {
- throw new PdSupplierException("Failed to find
patients");
+ return new PdqResult(allPatients);
}
+
//Converts to Patients
- List<List<Patient>> allPatients = new
ArrayList<List<Patient>>();
for (int i=0; i< persons.size(); i++) {
List<Patient> patients = new
ArrayList<Patient>();
Person person =
Context.getPersonQueryService().loadPerson(persons.get(i).getPersonId());
|
[openempi~source-repository:51] Modified the handler to not throw an exception if the list of located ent |
odysseas | 02/26/2010 |





