edit series uid to < 64 characters in postgres db in dcm4chee-arc-light 23.1

124 views
Skip to first unread message

aa...@sararadiology.com

unread,
Aug 30, 2021, 3:07:47 PM8/30/21
to dcm4che
I have a situation where a bunch of paperwork is stored in dcm4chee-arc with a series uid that is > 64 characters, I need to trim the series uid to less than 64 characters. I see in the postgres db there is a series table and series_iuid column, if i edit the series_iuid column to reflect the new series_iuid that is < 64 characters then the paperwork doesn't expand in the ui. It is a viewer we are using that is causing the > 64 series uid errors. How do we trim the series uid in dcm4chee-arc-light 23.1 postgres db? Thank you!

Jay Kay

unread,
Sep 3, 2021, 2:39:59 PM9/3/21
to dcm4che
As per http://dicom.nema.org/medical/dicom/current/output/html/part05.html#chapter_9 - "UIDs, shall not exceed 64 total characters...". Whatever device/software is generating those Series UIDs is creating invalid DICOM.

You may be able to fix this (as the images get ingested into the PACS) using attribute coercion as per https://github.com/dcm4che/dcm4chee-arc-light/wiki/Coerce-received-DICOM-objects-attributes-by-XSLT

An example cstorerq.xsl snippet that should work:

<xsl:variable name="seriesuid" select="normalize-space(attr[@tag='0020000E'])" />
<xsl:if test="string-length($seriesuid) > 64">
         <attr tag="0020000E" vr="UI">
            <xsl:value-of select="substring($seriesuid,1,64)"/>
         </attr>
</xsl:if>

The above just trims the UID to 64 characters, which may not be what you want, but you can modify the transform as needed. You may also need to modify the attribute filter configuration to allow coercion of the Series UID.

For instances already in the pacs, you could locate the files on the filesystem, copy them somewhere else temporarily, delete from the pacs and re-ingest them after the above coercion rules is in place and active.

JK

PS> Doing the coercion on outbound (as opposed on on ingestion) may also work, retaining the data as is currently, but 'cleaning it up' for the viewer as it requests it.

Avram Adam

unread,
Sep 3, 2021, 2:52:34 PM9/3/21
to dcm...@googlegroups.com
Thanks, I appreciate the reply. We have solution going forward, I'm just dealing with the studies that got ingested with the series uid >64 (mostly paperwork)

--
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/D4gsaPGpxJs/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/313b080f-0928-44ee-b042-7c46af6447e9n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages