Notify external HL7 Receivers on Receive of Study

82 views
Skip to first unread message

zea...@gmail.com

unread,
Jul 17, 2025, 8:26:09 AMJul 17
to dcm4che
Hi,
we configured 'Notify external HL7 Receivers on Receive of Study' according to Notify external HL7 Receivers on Procedure Status Updates · dcm4che/dcm4chee-arc-light Wiki · GitHub but we get following log message. In older version it was possible to send HL7 messages even without a mwl item. According to the wiki it should be also possible with version 5.33.1. Did we miss something?
2025-07-17 12:31:16,790 INFO  [org.dcm4chee.arc.hl7.psu.HL7PSUEJB] (EE-ManagedScheduledExecutorService-default-Thread-7) Schedule HL7PSUTask[pk=22, deviceName=testpacs, studyInstanceUID=1.2.276....., seriesInstanceUID=1.3.46......, accessionNumber=123456, scheduledTime=2025-07-17 12:30:22.778]
2025-07-17 12:31:16,792 INFO  [org.dcm4chee.arc.hl7.psu.HL7PSUEJB] (EE-ManagedScheduledExecutorService-default-Thread-7) Study referenced in the HL7 PSU task HL7PSUTask[pk=22, deviceName=testpacs, studyInstanceUID=1.2.276....., seriesInstanceUID=1.3.46......, accessionNumber=123456, scheduledTime=2025-07-17 12:30:22.778] does not have any associated MWL items.
2025-07-17 12:31:16,808 INFO  [org.dcm4chee.arc.hl7.psu.HL7PSUEJB] (EE-ManagedScheduledExecutorService-default-Thread-7) Failed to transform attributes to HL7 PSU message
2025-07-17 12:31:16,814 INFO  [org.dcm4chee.arc.hl7.psu.HL7PSUScheduler] (EE-ManagedScheduledExecutorService-default-Thread-7) finished HL7PSUScheduler.execute()

Vrinda Nayak

unread,
Jul 18, 2025, 4:19:06 AMJul 18
to dcm4che
Please share the stack trace in the server log. It should be possible to send HL7 Procedure Status Update notifications also for studies which are not associated to MWLs. What are the configurations for HL7 Procedure Status Update fields on your Archive Device Extension - Attributes?

zea...@gmail.com

unread,
Jul 18, 2025, 7:04:52 AMJul 18
to dcm4che
We configured a HL7 Receiver on the device of the RIS: TOMEDO|MUE
We cloned the *|* HL7 Receiver: PACS|MUE
HL7 Procedure Status Update Receiving Application:  TOMEDO|MUE
HL7 Procedure Status Update Task Polling Interval: PT2M
HL7 Procedure Status Update Tasks Fetch Size: 100
HL7 Procedure Status Update Delay: PT2M
HL7 Procedure Status Update Study Template URI: ${jboss.server.temp.url}/dcm4chee-arc/dcm2hl7-psu.xsl
--> we also checked the vendordata for the file.
HL7 Procedure Status Update Timeout: empty
HL7 Procedure Status Update On Timeout: false
HL7 Procedure Status Update Conditions: empty
HL7 Procedure Status Update Template Parameters:
- PlacerOrderNumberImagingServiceRequest={StudyInstanceUID,hash}
- FillerOrderNumberImagingServiceRequest={00081030}
- RequestedProcedureID={StudyInstanceUID,hash}
- AccessionNumber={StudyInstanceUID,hash}
HL7 Procedure Status Update Message Type: OMG_O19

Here is the stack trace receiveng a new study:

2025-07-18 12:54:34,733 INFO  [org.dcm4che3.net.Connection] (EE-ManagedExecutorService-default-Thread-2) Accept connection Socket[addr=/192.168.10.10,port=36040,localport=11112]
2025-07-18 12:54:34,733 INFO  [org.dcm4che3.net.Association] (EE-ManagedExecutorService-default-Thread-5575) 3797PACS<-PACS(499) >> A-ASSOCIATE-RQ
2025-07-18 12:54:34,734 INFO  [org.dcm4che3.net.Association] (EE-ManagedExecutorService-default-Thread-5575) 3797PACS<-PACS(499) << A-ASSOCIATE-AC
2025-07-18 12:54:34,829 INFO  [org.dcm4che3.net.Dimse] (EE-ManagedExecutorService-default-Thread-5575) 3797PACS<-PACS(499) >> 1:C-STORE-RQ[pcid=7, prior=0
  orig=PACS >> 4:C-MOVE-RQ
  cuid=1.2.840.10008.5.1.4.1.1.88.67 - X-Ray Radiation Dose SR Storage
  iuid=1.3.12.2.1107.5.12.7.11019.30000025071506012743200000015 - ?
  tsuid=1.2.840.10008.1.2 - Implicit VR Little Endian]
2025-07-18 12:54:34,938 INFO  [org.dcm4chee.arc.coerce.impl.MergeAttributesCoercionProcessor] (EE-ManagedExecutorService-default-Thread-5575) Merge Attributes using ArchiveAttributeCoercion2[cn=SupplementIssuerOfPatientID, priority=0, DIMSE=C_STORE_RQ, role=SCU, cuids=[], conditions={}, uri=merge-attrs:, description=null, onFailure=RETHROW, sufficient=false, attributeUpdatePolicy=MERGE, mergeAttributes=[IssuerOfPatientID=3797-{00100010,hash}-{00100040,hash}-{00100030}], deviceCoercionParam=null, otherCoercionParams={}]
2025-07-18 12:54:34,942 INFO  [org.dcm4chee.arc.store.impl.StoreServiceEJB] (EE-ManagedExecutorService-default-Thread-5575) 3797PACS<-PACS(499): Create Study[pk=86944, uid=1.3.12.2.1107.5.12.7.11019.30000025071506012740500000001, id=54]
2025-07-18 12:54:34,943 INFO  [org.dcm4chee.arc.store.impl.StoreServiceEJB] (EE-ManagedExecutorService-default-Thread-5575) 3797PACS<-PACS(499): Create Series[pk=888081, uid=1.3.12.2.1107.5.12.7.11019.30000025071506012743200000013, no=3, mod=SR]
2025-07-18 12:54:34,950 INFO  [org.dcm4chee.arc.store.impl.StoreServiceEJB] (EE-ManagedExecutorService-default-Thread-5575) 3797PACS<-PACS(499): Create Instance[pk=17484957, uid=1.3.12.2.1107.5.12.7.11019.30000025071506012743200000015, class=1.2.840.10008.5.1.4.1.1.88.67, no=1]
2025-07-18 12:54:34,950 INFO  [org.dcm4chee.arc.store.impl.StoreServiceEJB] (EE-ManagedExecutorService-default-Thread-5575) 3797PACS<-PACS(499): Create Location[pk=17484957, systemID=online, path=2025/07/15/AA6276F8/CA717D73/CA717D75, tsuid=1.2.840.10008.1.2, size=14008, status=OK, objectType=DICOM_FILE]
2025-07-18 12:54:35,003 INFO  [org.dcm4chee.arc.store.impl.StoreServiceImpl] (EE-ManagedExecutorService-default-Thread-5575) 3797PACS<-PACS(499): Updated DB in 65 ms
2025-07-18 12:54:35,006 INFO  [org.dcm4chee.arc.hl7.psu.HL7PSUEJB] (EE-ManagedExecutorService-default-Thread-5575) 3797PACS<-PACS(499): Created HL7PSUTask[pk=136, deviceName=testpacs, studyInstanceUID=1.3.12.2.1107.5.12.7.11019.30000025071506012740500000001, seriesInstanceUID=1.3.12.2.1107.5.12.7.11019.30000025071506012743200000013, accessionNumber=null, scheduledTime=Fri Jul 18 12:55:35 CEST 2025]
2025-07-18 12:54:35,007 INFO  [org.dcm4che3.net.Dimse] (EE-ManagedExecutorService-default-Thread-5575) 3797PACS<-PACS(499) << 1:C-STORE-RSP[pcid=7, status=0H
  cuid=1.2.840.10008.5.1.4.1.1.88.67 - X-Ray Radiation Dose SR Storage
  iuid=1.3.12.2.1107.5.12.7.11019.30000025071506012743200000015 - ?
  tsuid=1.2.840.10008.1.2 - Implicit VR Little Endian]
2025-07-18 12:54:35,007 INFO  [org.dcm4che3.net.Dimse] (EE-ManagedExecutorService-default-Thread-5575) 3797PACS<-PACS(499) >> 2:C-STORE-RQ[pcid=5, prior=0
  orig=PACS >> 4:C-MOVE-RQ
  cuid=1.2.840.10008.5.1.4.1.1.1.2 - Digital Mammography X-Ray Image Storage - For Presentation
  iuid=1.3.12.2.1107.5.12.7.11019.30000025071506012743200000009 - ?
  tsuid=1.2.840.10008.1.2.4.70 - JPEG Lossless, Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1])]
2025-07-18 12:54:35,186 INFO  [org.dcm4chee.arc.coerce.impl.MergeAttributesCoercionProcessor] (EE-ManagedExecutorService-default-Thread-5575) Merge Attributes using ArchiveAttributeCoercion2[cn=SupplementIssuerOfPatientID, priority=0, DIMSE=C_STORE_RQ, role=SCU, cuids=[], conditions={}, uri=merge-attrs:, description=null, onFailure=RETHROW, sufficient=false, attributeUpdatePolicy=MERGE, mergeAttributes=[IssuerOfPatientID=3797-{00100010,hash}-{00100040,hash}-{00100030}], deviceCoercionParam=null, otherCoercionParams={}]
2025-07-18 12:54:35,188 INFO  [org.dcm4chee.arc.store.impl.StoreServiceEJB] (EE-ManagedExecutorService-default-Thread-5575) 3797PACS<-PACS(499): Create Series[pk=888082, uid=1.3.12.2.1107.5.12.7.11019.30000025071506012743200000012, no=2, mod=MG]
2025-07-18 12:54:35,189 INFO  [org.dcm4chee.arc.store.impl.StoreServiceEJB] (EE-ManagedExecutorService-default-Thread-5575) 3797PACS<-PACS(499): Create Instance[pk=17484958, uid=1.3.12.2.1107.5.12.7.11019.30000025071506012743200000009, class=1.2.840.10008.5.1.4.1.1.1.2, no=1]
2025-07-18 12:54:35,189 INFO  [org.dcm4chee.arc.store.impl.StoreServiceEJB] (EE-ManagedExecutorService-default-Thread-5575) 3797PACS<-PACS(499): Create Location[pk=17484958, systemID=online, path=2025/07/15/AA6276F8/CA717D72/CA717D5A, tsuid=1.2.840.10008.1.2.4.70, size=12210740, status=OK, objectType=DICOM_FILE]
2025-07-18 12:54:35,193 INFO  [org.dcm4chee.arc.store.impl.StoreServiceImpl] (EE-ManagedExecutorService-default-Thread-5575) 3797PACS<-PACS(499): Updated DB in 7 ms
2025-07-18 12:54:35,193 INFO  [org.dcm4chee.arc.hl7.psu.HL7PSUEJB] (EE-ManagedExecutorService-default-Thread-5575) 3797PACS<-PACS(499): Updated HL7PSUTask[pk=136, deviceName=testpacs, studyInstanceUID=1.3.12.2.1107.5.12.7.11019.30000025071506012740500000001, seriesInstanceUID=1.3.12.2.1107.5.12.7.11019.30000025071506012743200000012, accessionNumber=null, scheduledTime=Fri Jul 18 12:55:35 CEST 2025]
2025-07-18 12:54:35,194 INFO  [org.dcm4che3.net.Dimse] (EE-ManagedExecutorService-default-Thread-5575) 3797PACS<-PACS(499) << 2:C-STORE-RSP[pcid=5, status=0H
  cuid=1.2.840.10008.5.1.4.1.1.1.2 - Digital Mammography X-Ray Image Storage - For Presentation
  iuid=1.3.12.2.1107.5.12.7.11019.30000025071506012743200000009 - ?
  tsuid=1.2.840.10008.1.2.4.70 - JPEG Lossless, Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1])]
2025-07-18 12:54:35,195 INFO  [org.dcm4che3.net.Association] (EE-ManagedExecutorService-default-Thread-5575) 3797PACS<-PACS(499) >> A-RELEASE-RQ
2025-07-18 12:54:35,195 INFO  [org.dcm4che3.net.Association] (EE-ManagedExecutorService-default-Thread-5575) 3797PACS<-PACS(499) << A-RELEASE-RP
2025-07-18 12:54:35,245 INFO  [org.dcm4che3.net.Association] (EE-ManagedScheduledExecutorService-default-Thread-6) 3797PACS<-PACS(499): close Socket[addr=/192.168.10.10,port=36040,localport=11112]
....
....
2025-07-18 12:56:07,501 INFO  [org.dcm4chee.arc.hl7.psu.HL7PSUScheduler] (EE-ManagedScheduledExecutorService-default-Thread-7) start HL7PSUScheduler.execute()
2025-07-18 12:56:07,503 INFO  [org.dcm4chee.arc.hl7.psu.HL7PSUEJB] (EE-ManagedScheduledExecutorService-default-Thread-7) Schedule HL7PSUTask[pk=136, deviceName=testpacs, studyInstanceUID=1.3.12.2.1107.5.12.7.11019.30000025071506012740500000001, seriesInstanceUID=1.3.12.2.1107.5.12.7.11019.30000025071506012743200000012, accessionNumber=null, scheduledTime=2025-07-18 12:55:35.193]
2025-07-18 12:56:07,503 INFO  [org.dcm4chee.arc.hl7.psu.HL7PSUEJB] (EE-ManagedScheduledExecutorService-default-Thread-7) Study referenced in the HL7 PSU task HL7PSUTask[pk=136, deviceName=testpacs, studyInstanceUID=1.3.12.2.1107.5.12.7.11019.30000025071506012740500000001, seriesInstanceUID=1.3.12.2.1107.5.12.7.11019.30000025071506012743200000012, accessionNumber=null, scheduledTime=2025-07-18 12:55:35.193] does not have any associated MWL items.
2025-07-18 12:56:07,518 INFO  [org.dcm4chee.arc.hl7.psu.HL7PSUEJB] (EE-ManagedScheduledExecutorService-default-Thread-7) Failed to transform attributes to HL7 PSU message
2025-07-18 12:56:07,520 INFO  [org.dcm4chee.arc.hl7.psu.HL7PSUScheduler] (EE-ManagedScheduledExecutorService-default-Thread-7) finished HL7PSUScheduler.execute()

Vrinda Nayak

unread,
Jul 18, 2025, 7:16:35 AMJul 18
to dcm4che

zea...@gmail.com

unread,
Jul 18, 2025, 7:41:28 AMJul 18
to dcm4che
Version 5.33.1
HL7 Procedure Status Update Sending Application: PACS|MUE (the cloned hl7 application)
HL7 Procedure Status Update PID PV1: false
HL7 Procedure Status Update MWL: false
HL7 Procedure Status Update MWL Matching Key: StudyInstanceUID

Vrinda Nayak

unread,
Jul 18, 2025, 10:35:42 AMJul 18
to dcm4che
It should work without any issues for this version. Could not reproduce the issue. Are you sure you are using the default dcm2hl7-psu.xsl or are there any changes in there? - because your server log is showing 
> Failed to transform attributes to HL7 PSU message
without any stack trace



5.33.1-archive-server.log
Screenshot from 2025-07-18 16-32-57.png
Screenshot from 2025-07-18 16-34-00.png
Screenshot from 2025-07-18 16-28-06.png
Screenshot from 2025-07-18 16-30-13.png
Screenshot from 2025-07-18 16-31-27.png

zea...@gmail.com

unread,
Jul 21, 2025, 3:34:48 AMJul 21
to dcm4che

We did not change the  dcm2hl7-psu.xsl. Attached you find the file.
dcm2hl7-psu.xsl

zea...@gmail.com

unread,
Aug 25, 2025, 10:42:20 AMAug 25
to dcm4che
Hi Vrinda,
do you have any other ideas of what we could try? Unfortunately, it still does not work. We have redone the config, but unfortunately without success.

zea...@gmail.com

unread,
Aug 27, 2025, 8:11:49 AMAug 27
to dcm4che
Nevermind. Doownloaded the Stylesheet again and now it is working fine. Thanks for your help.

Roberto Consalvi

unread,
Aug 27, 2025, 8:32:24 AMAug 27
to dcm...@googlegroups.com
Puoi spiegare in dettaglio come hai fatto?


--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dcm4che/06a05db4-fc54-4481-ab0b-a7674d21eb85n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages