Bahmni not sending worklist queries to dcm4chee

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)

For some reason the previous error is no longer there, and I am getting a new error in the log files:

Modality{id=1, name='DCM4CHEE', description='DCM4CHEE PACS', ip='XX.XX.XX.XX', port=2575, timeout=3000}
MSA|AR|1496229090283320|Missing required PID-5: Patient Name
	at org.bahmni.module.pacsintegration.services.ModalityService.processAcknowledgement(ModalityService.java:68)
	at org.bahmni.module.pacsintegration.services.ModalityService.sendMessage(ModalityService.java:40)
	at org.bahmni.module.pacsintegration.services.PacsIntegrationService.processEncounter(PacsIntegrationService.java:57)
	at org.bahmni.module.pacsintegration.atomfeed.worker.EncounterFeedWorker.process(EncounterFeedWorker.java:37)
	... 17 more
', feedUri='http://localhost:8050/openmrs/ws/atomfeed/encounter/recent'}
java.lang.RuntimeException: Failed send order to modality
	at org.bahmni.module.pacsintegration.atomfeed.worker.EncounterFeedWorker.process(EncounterFeedWorker.java:42) ~[EncounterFeedWorker.class:?]
	at org.ict4h.atomfeed.client.service.AtomFeedClient$FailedEventProcessor.doInTransaction(AtomFeedClient.java:251) ~[AtomFeedClient$FailedEventProcessor.class:?]
	at org.ict4h.atomfeed.transaction.AFTransactionWorkWithoutResult.execute(AFTransactionWorkWithoutResult.java:6) ~[AFTransactionWorkWithoutResult.class:?]
	at org.bahmni.module.pacsintegration.atomfeed.client.AtomFeedHibernateTransactionManager$1.doInTransaction(AtomFeedHibernateTransactionManager.java:54) ~[AtomFeedHibernateTransactionManager$1.class:?]
	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) ~[TransactionTemplate.class:4.1.6.RELEASE]
	at org.bahmni.module.pacsintegration.atomfeed.client.AtomFeedHibernateTransactionManager.executeWithTransaction(AtomFeedHibernateTransactionManager.java:51) ~[AtomFeedHibernateTransactionManager.class:?]
	at org.ict4h.atomfeed.client.service.AtomFeedClient.processFailedEvents(AtomFeedClient.java:98) [AtomFeedClient.class:?]
	at org.bahmni.module.pacsintegration.atomfeed.jobs.EncounterFailedFeedJob.process(EncounterFailedFeedJob.java:39) [EncounterFailedFeedJob.class:?]
	at org.bahmni.module.pacsintegration.atomfeed.ScheduledTasks$1.run(ScheduledTasks.java:79) [ScheduledTasks$1.class:?]
	at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) [DelegatingErrorHandlingRunnable.class:4.1.6.RELEASE]
	at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81) [ReschedulingRunnable.class:4.1.6.RELEASE]
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_101]
	at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_101]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) [?:1.8.0_101]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:1.8.0_101]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_101]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_101]
	at java.lang.Thread.run(Unknown Source) [?:1.8.0_101]
Caused by: org.bahmni.module.pacsintegration.exception.ModalityException: Unable to send the message to the modality 
Modality{id=1, name='DCM4CHEE', description='DCM4CHEE PACS', ip='XX.XX.XX.XX', port=2575, timeout=3000}
MSA|AR|1496229166211320|Missing required PID-5: Patient Name
	at org.bahmni.module.pacsintegration.services.ModalityService.processAcknowledgement(ModalityService.java:68) ~[ModalityService.class:?]
	at org.bahmni.module.pacsintegration.services.ModalityService.sendMessage(ModalityService.java:40) ~[ModalityService.class:?]
	at org.bahmni.module.pacsintegration.services.PacsIntegrationService.processEncounter(PacsIntegrationService.java:57) ~[PacsIntegrationService.class:?]
	at org.bahmni.module.pacsintegration.atomfeed.worker.EncounterFeedWorker.process(EncounterFeedWorker.java:37) ~[EncounterFeedWorker.class:?]
	... 17 more

And in the dcm4chee console:

14:08:54,311 INFO  [ServerImpl] finished - Socket[addr=/XX.XX.XX.XX,port=54016,localport=2575]
14:09:09,286 INFO  [ServerImpl] handle - Socket[addr=/XX.XX.XX.XX,port=54040,localport=2575]
14:09:09,289 INFO  [HL7ServerService] Received HL7 message:
14:09:09,294 INFO  [HL7ServerService]
   MSH-4:BahmniEMR^BahmniEMR
   MSH-7:2017053114
   MSH-9:ORM^O01
   MSH-10:1496229226289320
   MSH-11:P
   MSH-12:2.5
   PID-3:GAN203006
   PID-5:^GAN203006
   PID-7:19940522000000+0300
   PID-8:M
   ORC-1:NW
   ORC-2:ORD-320
   ORC-3:ORD-320
   ORC-7:^^^^^ROUTINE
   ORC-10:^^BahmniEMR
   ORC-12:c1c26908-3f10-11e4-adec-0800271c1b75^^Super Man
   OBR-4:3^Chest, 1 view (X-ray)
   OBR-39:^Chest, 1 view (X-ray)
   OBR-43:^Test,Patient
14:09:09,304 INFO  [TemplatesService] Style sheet found:C:\DCM4CHEE\server\default\conf\dcm4chee-hl7\orm2dcm.xsl
14:09:09,308 WARN  [HL7ServerService] Processing HL7 failed:
org.dcm4chex.archive.hl7.HL7Exception: Missing required PID-5: Patient Name
        at org.dcm4chex.archive.hl7.ORMService.process(ORMService.java:267)
        at org.dcm4chex.archive.hl7.ORMService.process(ORMService.java:249)
        at org.dcm4chex.archive.hl7.HL7ServerService.process(HL7ServerService.java:534)
        at org.dcm4chex.archive.hl7.HL7ServerService.handle(HL7ServerService.java:506)
        at org.dcm4cheri.server.ServerImpl.run(ServerImpl.java:288)
        at org.dcm4cheri.util.LF_ThreadPool.join(LF_ThreadPool.java:174)
        at org.dcm4cheri.util.LF_ThreadPool$1.run(LF_ThreadPool.java:221)
        at java.lang.Thread.run(Thread.java:662)
14:09:09,317 INFO  [ServerImpl] finished - Socket[addr=/XX.XX.XX.XX,port=54040,localport=2575]

Using the command line hl7snd applicatin (from dcm4che), I can verify that if I send an order with Patient Name (PID-5) starting with ‘^’, it fails with the same error. Removing the starting ‘^’ from the patient name works.

I suppose this is an error in dcm4chee? Perhaps the version of dcm4chee we are running is older than that used by bahmni? We seem to be running dcm4chee version: 2.18.3 19.01.2016.

It seems either bahmni is not actually meant to create an order with a patient name starting with the ‘^’ seperator, or there is an issue with our dcm4chee, which needs to be addressed.

I will keep trying to figure this out.

I’m looking into this more…

There seems to be a mismatch between the hl7 messages being sent by bahmni and what’s expected by my implementation of dcm4chee. For example, my orm2dcm.xml from dcm4chee gets the Requested Procedure ID from field 19 of OBR, whereas the hl7 message being generated by bahmni doesn’t fill that field.

Here is what I believe to be bahmni’s hl7 message (as per dcm4chee’s console):

   MSH-4:BahmniEMR^BahmniEMR
   MSH-7:2017053114
   MSH-9:ORM^O01
   MSH-10:1496230773555320
   MSH-11:P
   MSH-12:2.5
   PID-3:GAN203006
   PID-5:^GAN203006
   PID-7:19940522000000+0300
   PID-8:M
   ORC-1:NW
   ORC-2:ORD-320
   ORC-3:ORD-320
   ORC-7:^^^^^ROUTINE
   ORC-10:^^BahmniEMR
   ORC-12:c1c26908-3f10-11e4-adec-0800271c1b75^^Super Man
   OBR-4:3^Chest, 1 view (X-ray)
   OBR-39:^Chest, 1 view (X-ray)

Also I had to modify dcm4chee’s common.xsl (orm2dcm.xsl) to allow ^ at start of patient name.

dcm4chee’s web interface tells me I have the dicom archive version 2.18.3 19.01.2016, and dicom library 1.4.34 2013-09-12.

I don’t really understand, does this mean our dcm4chee has an issue?

Got it, need to use the file orm2dcm_bahmni.xsl from here according to this.

1 Like

@mdg583, I’m sorry that nobody was able to help you through this, but I’m glad you were able to work this out!

1 Like