Dear XNAT Community,
I am working on setting up a DICOM SCP Receiver for transferring already anonymized data. My objective is to create a custom site-wide DICOM routing rule for sessions. Specifically, I aim to:
Use the Study ID as the Project ID
Use the Patient ID as the Subject ID
Generate a Session ID based on a combination of Patient ID, Modality, and Study Date
For points 1 and 2, I've successfully implemented routing by using the regular expressions (0020,0010):(.+) for the Project ID and (0010,0020):(.+) for the Subject ID. However, I'm encountering difficulty when it comes to generating a Session ID based on multiple DICOM fields.
I've tried various combinations, such as (0010,0020)_(0008,0060)_(0008,0020):(+), (0010,0020):(+)_(0008,0060):(+)_(0008,0020):(+) and format["{0}_{1}_{2}", (0010,0020), (0008,0060), (0008,0020)], but all attempts have resulted only using the first field or errors that stop the DICOM transfer completely.
Could anyone guide me on how to correctly implement this? Any insights or references would be greatly appreciated.
Thank you in advance for your time and expertise.
Best regards,
Vincent