Greetings,
I’m working through a first bahmni test implementation with integration with a pacs server. For now I’m trying to integrate with an existing dcm4chee server. I’ve tried to follow a number of configuration steps, such as
I’ve found the PACS integration modules is running, running on port 8054 (which is what was configured by default after install)
However I can’t manage to have bahmni send a worklist query to dcm4chee. I’m seeing a variety of errors in the log files, and am not sure what they mean.
I go to the ‘orders’ tab of a patient consultation, add a chest x-ray (which is the one for which I’ve made the pacs procedure code mapping), and click save. I get a few error messages in /var/log/pacs-integration/pacs-integration.log. For the interest of berevity I’ll just post each error without the stack traces:
29-05-2017 12:36:26 [ERROR] EncounterFeedWorker - Failed send order to modality
org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:26 [ERROR] AtomFeedClient - Error occurred while processing feed entry:Entry.summary=null
Entry.mediaEntry=false
Entry.created=null
Entry.foreignMarkup=[]
Entry.source=null
Entry.published=Mon May 29 12:36:26 EEST 2017
Entry.title=Encounter
Entry.modules=[]
Entry.contents[0].mode=null
Entry.contents[0].src=null
Entry.contents[0].type=application/vnd.atomfeed+xml
Entry.contents[0].value=<![CDATA[/openmrs/ws/rest/v1/bahmnicore/bahmniencounter/45bccd70-5c26-435a-8ad6-44daacd682e1?includeAll=true]]>
Entry.xmlBase=null
Entry.rights=null
Entry.modified=Mon May 29 12:36:26 EEST 2017
Entry.categories[0].schemeResolved=null
Entry.categories[0].scheme=null
Entry.categories[0].term=Encounter
Entry.categories[0].label=null
Entry.alternateLinks=[]
Entry.otherLinks=[]
Entry.contributors=[]
Entry.id=tag:atomfeed.ict4h.org:1bbbe0cb-ac71-45fd-86ab-ae20c7f23d68
Entry.issued=Mon May 29 12:36:26 EEST 2017
Entry.updated=Mon May 29 12:36:26 EEST 2017
Entry.titleEx.mode=null
Entry.titleEx.src=null
Entry.titleEx.type=null
Entry.titleEx.value=Encounter
Entry.authors=[]
java.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:26 [ERROR] EncounterFeedWorker - Failed send order to modality
org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:26 [ERROR] AtomFeedClient - Failed to process failed event. FailedEvent{failedAt=1496050586827, event=Event{id='tag:atomfeed.ict4h.org:1bbbe0cb-ac71-45fd-86ab-ae20c7f23d68', content='/openmrs/ws/rest/v1/bahmnicore/bahmniencounter/45bccd70-5c26-435a-8ad6-44daacd682e1?includeAll=true'}, errorMessage='Failed processing event in feed [http://localhost:8050/openmrs/ws/atomfeed/encounter/4]
Failed send order to modalityjava.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
', feedUri='http://localhost:8050/openmrs/ws/atomfeed/encounter/recent'}
java.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:27 [ERROR] EncounterFeedWorker - Failed send order to modality
org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:27 [ERROR] AtomFeedClient - Failed to process failed event. FailedEvent{failedAt=1496050586827, event=Event{id='tag:atomfeed.ict4h.org:1bbbe0cb-ac71-45fd-86ab-ae20c7f23d68', content='/openmrs/ws/rest/v1/bahmnicore/bahmniencounter/45bccd70-5c26-435a-8ad6-44daacd682e1?includeAll=true'}, errorMessage='Failed processing event in feed [http://localhost:8050/openmrs/ws/atomfeed/encounter/4]
Failed send order to modalityjava.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
', feedUri='http://localhost:8050/openmrs/ws/atomfeed/encounter/recent'}
java.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:28 [ERROR] EncounterFeedWorker - Failed send order to modality
org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:28 [ERROR] AtomFeedClient - Failed to process failed event. FailedEvent{failedAt=1496050586827, event=Event{id='tag:atomfeed.ict4h.org:1bbbe0cb-ac71-45fd-86ab-ae20c7f23d68', content='/openmrs/ws/rest/v1/bahmnicore/bahmniencounter/45bccd70-5c26-435a-8ad6-44daacd682e1?includeAll=true'}, errorMessage='Failed processing event in feed [http://localhost:8050/openmrs/ws/atomfeed/encounter/4]
Failed send order to modalityjava.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
', feedUri='http://localhost:8050/openmrs/ws/atomfeed/encounter/recent'}
java.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:29 [ERROR] EncounterFeedWorker - Failed send order to modality
org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:29 [ERROR] AtomFeedClient - Failed to process failed event. FailedEvent{failedAt=1496050586827, event=Event{id='tag:atomfeed.ict4h.org:1bbbe0cb-ac71-45fd-86ab-ae20c7f23d68', content='/openmrs/ws/rest/v1/bahmnicore/bahmniencounter/45bccd70-5c26-435a-8ad6-44daacd682e1?includeAll=true'}, errorMessage='Failed processing event in feed [http://localhost:8050/openmrs/ws/atomfeed/encounter/4]
Failed send order to modalityjava.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
', feedUri='http://localhost:8050/openmrs/ws/atomfeed/encounter/recent'}
java.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:30 [ERROR] EncounterFeedWorker - Failed send order to modality
org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:30 [ERROR] AtomFeedClient - Failed to process failed event. FailedEvent{failedAt=1496050586827, event=Event{id='tag:atomfeed.ict4h.org:1bbbe0cb-ac71-45fd-86ab-ae20c7f23d68', content='/openmrs/ws/rest/v1/bahmnicore/bahmniencounter/45bccd70-5c26-435a-8ad6-44daacd682e1?includeAll=true'}, errorMessage='Failed processing event in feed [http://localhost:8050/openmrs/ws/atomfeed/encounter/4]
Failed send order to modalityjava.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
', feedUri='http://localhost:8050/openmrs/ws/atomfeed/encounter/recent'}
java.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:31 [ERROR] EncounterFeedWorker - Failed send order to modality
org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:31 [ERROR] AtomFeedClient - Failed to process failed event. FailedEvent{failedAt=1496050586827, event=Event{id='tag:atomfeed.ict4h.org:1bbbe0cb-ac71-45fd-86ab-ae20c7f23d68', content='/openmrs/ws/rest/v1/bahmnicore/bahmniencounter/45bccd70-5c26-435a-8ad6-44daacd682e1?includeAll=true'}, errorMessage='Failed processing event in feed [http://localhost:8050/openmrs/ws/atomfeed/encounter/4]
Failed send order to modalityjava.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
', feedUri='http://localhost:8050/openmrs/ws/atomfeed/encounter/recent'}
java.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:32 [ERROR] EncounterFeedWorker - Failed send order to modality
org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:32 [ERROR] AtomFeedClient - Failed to process failed event. FailedEvent{failedAt=1496050586827, event=Event{id='tag:atomfeed.ict4h.org:1bbbe0cb-ac71-45fd-86ab-ae20c7f23d68', content='/openmrs/ws/rest/v1/bahmnicore/bahmniencounter/45bccd70-5c26-435a-8ad6-44daacd682e1?includeAll=true'}, errorMessage='Failed processing event in feed [http://localhost:8050/openmrs/ws/atomfeed/encounter/4]
Failed send order to modalityjava.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
', feedUri='http://localhost:8050/openmrs/ws/atomfeed/encounter/recent'}
java.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:33 [ERROR] EncounterFeedWorker - Failed send order to modality
org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:33 [ERROR] AtomFeedClient - Failed to process failed event. FailedEvent{failedAt=1496050586827, event=Event{id='tag:atomfeed.ict4h.org:1bbbe0cb-ac71-45fd-86ab-ae20c7f23d68', content='/openmrs/ws/rest/v1/bahmnicore/bahmniencounter/45bccd70-5c26-435a-8ad6-44daacd682e1?includeAll=true'}, errorMessage='Failed processing event in feed [http://localhost:8050/openmrs/ws/atomfeed/encounter/4]
Failed send order to modalityjava.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
', feedUri='http://localhost:8050/openmrs/ws/atomfeed/encounter/recent'}
java.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:34 [ERROR] EncounterFeedWorker - Failed send order to modality
org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:34 [ERROR] AtomFeedClient - Failed to process failed event. FailedEvent{failedAt=1496050586827, event=Event{id='tag:atomfeed.ict4h.org:1bbbe0cb-ac71-45fd-86ab-ae20c7f23d68', content='/openmrs/ws/rest/v1/bahmnicore/bahmniencounter/45bccd70-5c26-435a-8ad6-44daacd682e1?includeAll=true'}, errorMessage='Failed processing event in feed [http://localhost:8050/openmrs/ws/atomfeed/encounter/4]
Failed send order to modalityjava.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
', feedUri='http://localhost:8050/openmrs/ws/atomfeed/encounter/recent'}
java.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:35 [ERROR] EncounterFeedWorker - Failed send order to modality
org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
29-05-2017 12:36:35 [ERROR] AtomFeedClient - Failed to process failed event. FailedEvent{failedAt=1496050586827, event=Event{id='tag:atomfeed.ict4h.org:1bbbe0cb-ac71-45fd-86ab-ae20c7f23d68', content='/openmrs/ws/rest/v1/bahmnicore/bahmniencounter/45bccd70-5c26-435a-8ad6-44daacd682e1?includeAll=true'}, errorMessage='Failed processing event in feed [http://localhost:8050/openmrs/ws/atomfeed/encounter/4]
Failed send order to modalityjava.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
', feedUri='http://localhost:8050/openmrs/ws/atomfeed/encounter/recent'}
java.lang.RuntimeException: Failed send order to modality
...
Caused by: org.bahmni.module.pacsintegration.exception.HL7MessageException: Unable to Cancel the Order. Previous order is not foundORD-310
...
Maybe these errors are for previous test orders I’ve tried creating and deleting?
Would be grateful for help configuring this,
Matthew
In case it’s useful, here is a query of orders in mysql openmrs:
mysql> select order_id, voided, order_number, previous_order_id, order_action from orders;
+----------+--------+--------------+-------------------+--------------+
| order_id | voided | order_number | previous_order_id | order_action |
+----------+--------+--------------+-------------------+--------------+
| 1 | 0 | ORD-307 | NULL | NEW |
| 2 | 0 | ORD-308 | NULL | NEW |
| 3 | 0 | ORD-309 | NULL | NEW |
| 4 | 0 | ORD-310 | 3 | DISCONTINUE |
| 5 | 0 | ORD-311 | NULL | NEW |
| 6 | 0 | ORD-312 | NULL | NEW |
| 7 | 0 | ORD-313 | NULL | NEW |
| 8 | 0 | ORD-314 | 6 | DISCONTINUE |
| 9 | 0 | ORD-315 | 7 | DISCONTINUE |
| 10 | 0 | ORD-316 | 5 | DISCONTINUE |
| 11 | 0 | ORD-317 | NULL | NEW |
| 12 | 0 | ORD-318 | 11 | DISCONTINUE |
| 13 | 0 | ORD-319 | NULL | NEW |
+----------+--------+--------------+-------------------+--------------+
13 rows in set (0.00 sec)