Hello Eve,
DicomEdit scripts are intended for anonymization/de-identification, not routing. It’s somewhat of a circular problem, since in a perfect world, routing and anonymization could both depend on each other. People often want to use the assigned subject/session labels in the site anonymization script (as is done in the default script). That means that routing has to happen *before* the site anon script is applied. So, the short answer is that I don’t believe you can use the site anonymization script to control routing the outgoing session label. I believe your choices are:
1. Write a custom DICOM Object Identifier in a plugin which encodes your desired routing rules.
2. Modify Patient Comments (0010,4000) *before* the data reaches XNAT (for example, on the scanner, or by putting an intermediate CTP instance between the modality sending the data and XNAT itself).
3. Enable custom processing and move the order of the processors. This option is the one I’m least sure about. Essentially, in 1.7.5, XNAT has support for “custom processors” associated to your SCP receivers. If you enable custom processing on your SCP receiver, XNAT should provide the same site anonymization, but now in a configurable location in the process. If you move it to the very beginning (before routing), this might work. Some caveats:
a. With anonymization manually moved this far to the front, you definitely wouldn’t be able to use any of the “project”, “subject”, “session” variables (since now anonymization would be before routing!)
b. There is no UI for this: you’d have to do it all with REST.
Thanks,
Charlie
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/xnat_discussion/422212da-df7a-4fe4-9d3d-bcba6619504d%40googlegroups.com.
The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/422212da-df7a-4fe4-9d3d-bcba6619504d%40googlegroups.com.