Convert DICOM to HL7

436 views
Skip to first unread message

Stefano

unread,
Aug 6, 2023, 8:51:10 AM8/6/23
to dcm4che
Hi guys, i've been working with HL7 and Mirth for many years, but i don't have any experience on DICOM.

I have some flows to handle: first is receiving an MWL, sending to LIS after HL7 conversion and respond to the MWL. The others are basically the same but with the MPPS N-CREATE/N-SET messages.

After much researches, I was considering to use dcm4che to handle DICOM and Mirth to handle the HL7 messages. Do you think it could work?

Also, i can't find any documentation to implement such solution, can anyone give me a link to a developer guide about dcm4che?

p.p...@synedra.com

unread,
Aug 8, 2023, 10:03:19 AM8/8/23
to dcm4che
I guess the code is the documentation here ;). You could have a look at the implementation of the various command line tools [1] to get an idea on how to use the library. Hint: Broadly speaking, SCP (Service Class Provider) means you are on the server side of things, whereas SCU (Service Class User) indicates a client implementation.

Also, if you are completely new to Dicom, you might want to make yourself familiar with some Dicom jargon and concepts to make sense of the code. Focusing on the communication/protocol part, I suggest:
+ Association
+ Association Negotiation
+ Application Entity
+ Transfer Syntax
+ SOP Class
+ Transfer Capability

fleetwoodfc

unread,
Aug 21, 2023, 10:30:20 AM8/21/23
to dcm4che
You should consider using dcm4chee-arc-light as it can handle both DICOM and HL7 and provides all services required for image acquisition workflows. See How To Guides and specifically Test IHE SWF

Stefano

unread,
Aug 22, 2023, 6:02:57 AM8/22/23
to dcm4che
Thank you! You are very helpfull, I'll try this solution. I'm trying to deploy dcm4che-arc-light on my win11 laptop, getting some troubles with apacheDS.

fleetwoodfc

unread,
Aug 22, 2023, 8:25:37 AM8/22/23
to dcm4che
Easiest way is to install using Docker. See: https://groups.google.com/g/dcm4che/c/r4C9RRkwXyc/m/vddt56LyBwAJ

Stefano

unread,
Sep 15, 2023, 5:58:01 AM9/15/23
to dcm4che
Hi, i was able to configure the MPPS forwarding to HL7. I have 2 questions:
  • Is there a way to send back the N-CREATE-RSP/N-SET-RSP only after receiving the response from the HL7 message? If the LIS respond negativily, i need to notify the requesting SCU.
  • The standard messaged forwarded after MPPS are ORU^R01 or OMG^O19, but i need to send an OUL^R22. Is there a way to customize the sent message and segments/fields?
Thank you so much!

fleetwoodfc

unread,
Sep 15, 2023, 3:13:00 PM9/15/23
to dcm4che
By default mpps2hl7-psu.xsl is used - see in Vendor Data

Stefano Lo Menso

unread,
Sep 16, 2023, 8:15:53 AM9/16/23
to dcm...@googlegroups.com
Thank you! That's very helpful.

Do you know if there is a way to sync the flow? 

N-SET-> HL7 request -> hl7 resp -> N-SET-RSP (based on hlt response).



--
You received this message because you are subscribed to a topic in the Google Groups "dcm4che" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dcm4che/193w3ecmKTY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dcm4che+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dcm4che/88717bf9-cfbb-478f-a7ce-b326b10f0ffbn%40googlegroups.com.

fleetwoodfc

unread,
Sep 18, 2023, 8:35:35 AM9/18/23
to dcm4che
If you can provide an overview of your workflow I may be able to provide some better answers.

Vrinda Nayak

unread,
Sep 19, 2023, 4:23:18 AM9/19/23
to dcm4che
  • Is there a way to send back the N-CREATE-RSP/N-SET-RSP only after receiving the response from the HL7 message? If the LIS respond negativily, i need to notify the requesting SCU.
No - the two are independent of and decoupled from each other. If the HL7 notification was unsuccessful, you do see it in Monitoring - Queues.

  • The standard messaged forwarded after MPPS are ORU^R01 or OMG^O19, but i need to send an OUL^R22. Is there a way to customize the sent message and segments/fields?
ORU^R01 and OMG^O19 messages are supported because these are specified in RAD-132 / EYECARE-22 transactions of IHE. If you want another message type, you would need to create your own customized stylesheet for the same to populate that message and use the message type in the Dcm2HL7 Exporter.

Stefano Lo Menso

unread,
Sep 19, 2023, 4:29:42 AM9/19/23
to dcm...@googlegroups.com
Hi! Thank you for your answer.

There will be three actors involved: 

  • DICOM SCU sending MPPS N-CREATE-RQ and N-SET-RQ
  • DICOM SCP receiving MPPS and sending back N-CREATE-RSP and N-SET-RSP
  • LIS who receives HL7 OUL^R22 and respond with an ACK or a NAK or also doesn't answer.

In this scenario, as we already talked above, i must develop the DICOM SCP. 

They asked me to respond to the MPPS only after receiving the HL7 ACK from the LIS. Is it possible?


Privo di virus.www.avg.com



--

Stefano Lo Menso

Stefano Lo Menso

unread,
Sep 19, 2023, 4:31:41 AM9/19/23
to dcm...@googlegroups.com
Sorry, you answered while i was writing.

I see, which options do I have to custom it, even coding ?

Privo di virus.www.avg.com

--
You received this message because you are subscribed to a topic in the Google Groups "dcm4che" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dcm4che/193w3ecmKTY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dcm4che+u...@googlegroups.com.


--

Stefano Lo Menso

dcm4che

unread,
Sep 19, 2023, 5:12:16 AM9/19/23
to dcm4che
  • DICOM SCP receiving MPPS and sending back N-CREATE-RSP and N-SET-RSP
> In this scenario, as we already talked above, i must develop the DICOM SCP. 

Ok, my responses were based on the understanding that you're using the Dcm4chee archive 5.x as receiver of MPPS and sender of HL7 notifications. If you're developing your own SCP, I leave this topic to more knowledgeable users.
Reply all
Reply to author
Forward
0 new messages