What is the best practice to generate Accession Numbers and Study Instance UIDs?

613 views
Skip to first unread message

Tamás Sipos

unread,
Apr 10, 2018, 6:18:34 AM4/10/18
to dcm4che
I'm about to set up a custom RIS/HIS instance and a dcm4chee server at a doctor's office. It's a small medical practice that has a few modalities (US, XR).

The purpose of the small RIS/HIS software is to create and send HL7 ORM messages for imaging requests to dcm4chee's Modality Worklist so the modalities can query those. So it's the usual workflow...

The only thing I don't know is how to generate the Accession Numbers and Study Instance UIDs for each message.

I've seen many Accession Numbers like AFJE635B, Acc234567, 425347512531825361253876 etc... and I have no idea what algorithm to choose for that purpose. How long should they be? Should they be numeric, or alphanumeric? How to make sure that they are all unique? Should I generate them maybe based on the current datetime?

And the same question I have for the Study Instance UID. I think it should start with the OID that belongs to our company inscribed in the HL7 OID Registry so like (2.16.840.1.113883.3.1), but then what numbers to use after? 2.16.840.1.113883.3.1.WHAT.TO.PUT.HERE

Can I maybe use 2.16.840.1.113883.3.1.AccessionNumberHere? This way I should generate only one code per HL7 request.

I really have no idea how this should be done, can somebody please help me out with this? Thank you.

Prakash Jayaraman

unread,
Apr 10, 2018, 6:43:13 AM4/10/18
to dcm...@googlegroups.com
Using accession number as a suffix for the Study Instance UID may not be a good choice, since there might be more than a procedure/study comes under an accession number, instead of that you can use date/timestamp.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to dcm...@googlegroups.com.
Visit this group at https://groups.google.com/group/dcm4che.
For more options, visit https://groups.google.com/d/optout.

Prakash Jayaraman

unread,
Apr 10, 2018, 6:51:03 AM4/10/18
to dcm...@googlegroups.com
You may refer the guidelines given in Annex C of Part 5 - DICOM 2018 document regarding UIDs.

Prakash Jayaraman

unread,
Apr 10, 2018, 6:58:07 AM4/10/18
to dcm...@googlegroups.com
We have used dcm4che's toolkit to generate random UIDs by providing our org/institute ID as a prefix in dcm4chee's orm2dcm.xsl stylesheet.

           <xsl:with-param name="val" select="java:org.dcm4che2.util.UIDUtils.createUID($suid-prefix)"/> <!-- For generating UIDs -->

Tamás Sipos

unread,
Apr 10, 2018, 10:09:43 AM4/10/18
to dcm4che
Thanks for the information with the UID! For how to format an Accession Number, I'm still waiting for tips.

Prakash Jayaraman

unread,
Apr 11, 2018, 2:09:18 AM4/11/18
to dcm...@googlegroups.com
You may use Patient's visit number generated in HIS/RIS for accession number value. Or you can define a numeric sequence in database and automate the accession number.

On Tue, Apr 10, 2018 at 7:39 PM, Tamás Sipos <swir...@gmail.com> wrote:
Thanks for the information with the UID! For how to format an Accession Number, I'm still waiting for tips.

--
Reply all
Reply to author
Forward
0 new messages