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.