How to set dicom file namer in XNAT 1.5?

15 views
Skip to first unread message

Shuhua Wu

unread,
Jun 10, 2011, 2:00:33 PM6/10/11
to xnat_discussion
In Dicom Server, there is place in DicomServer.xml to set custom dicom
file namer. I don't know where it is in XNAT 1.5.

Thanks,
Shuhua

Archie, Kevin

unread,
Jun 10, 2011, 2:05:52 PM6/10/11
to xnat_di...@googlegroups.com
It's not configurable right now. That'll be a pretty easy addition and I happen to be working on adjacent code right now. I'll get you a patch soon (maybe as late as Monday).

- Kevin

> --
> You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
> To post to this group, send email to xnat_di...@googlegroups.com.
> To unsubscribe from this group, send email to xnat_discussi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/xnat_discussion?hl=en.
>


The material in this message is private and may contain Protected Healthcare Information (PHI). 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.

Shuhua Wu

unread,
Jun 10, 2011, 2:08:34 PM6/10/11
to xnat_discussion
Noticed two format of file names in our recent uploaded sessions:

1039.MR.PHD_024.3.212.20110602.153921.19yy5k9.dcm

.MR..7.298.2008.11.24.11.07.52.203125.37423663.IMA

Archie, Kevin

unread,
Jun 10, 2011, 2:22:39 PM6/10/11
to xnat_di...@googlegroups.com
Shuhua,

That probably reflects two different methods of sending files.

The first looks like the default file namer, which now gets used primarily for files uploaded via DICOM C-STORE. (It's also used for files received via MIRC-style HTTP, but that's rare.)

The second looks like it's not a name we generated. Did this come in via the upload applet? The upload applet now (as of version 1.5) preserves the names of uploaded files.

- Kevin

Shuhua Wu

unread,
Jun 10, 2011, 2:51:41 PM6/10/11
to xnat_discussion
Kevin,

Yes, the first was uploaded via DiCOM C-STORE. and second was via
uploader. Is it possible to name files in same format (using a same
file namer) after we apply the patch you'll send?

Thanks,
Shuhua

On Jun 10, 1:22 pm, "Archie, Kevin" <arch...@mir.wustl.edu> wrote:
> Shuhua,
>
> That probably reflects two different methods of sending files.
>
> The first looks like the default file namer, which now gets used primarily for files uploaded via DICOM C-STORE. (It's also used for files received via MIRC-style HTTP, but that's rare.)
>
> The second looks like it's not a name we generated. Did this come in via the upload applet? The upload applet now (as of version 1.5) preserves the names of uploaded files.
>
>   - Kevin
>
> On Jun 10, 2011, at 1:08 PM, Shuhua Wu wrote:
>
>
>
> > Noticed two format of file names in our recent uploaded sessions:
>
> > 1039.MR.PHD_024.3.212.20110602.153921.19yy5k9.dcm
>
> > .MR..7.298.2008.11.24.11.07.52.203125.37423663.IMA
>
> > On Jun 10, 1:00 pm, Shuhua Wu <shuhu...@gmail.com> wrote:
> >> In Dicom Server, there is place in DicomServer.xml to set custom dicom
> >> file namer. I don't know where it is in XNAT 1.5.
>
> >> Thanks,
> >> Shuhua
>
> > --
> > You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
> > To post to this group, send email to xnat_di...@googlegroups.com.
> > To unsubscribe from this group, send email to xnat_discussi...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/xnat_discussion?hl=en.

Archie, Kevin

unread,
Jun 13, 2011, 3:51:58 PM6/13/11
to xnat_di...@googlegroups.com
I've added custom file namer support in commit 510 at https://bitbucket.org/karchie/xdat_release .

This uses a new config file, WEB-INF/conf/dicom-importer.properties , and the property dicom.file.namer should be set to the fully qualified class name of your DicomFileNamer implementation. (Note that the DicomFileNamer interface now lives in the dicom-xnat-util subproject of dicom-xnat. The interface is unchanged, so your old code should work.)

Also in this changeset, the upload applet uses the file namer (custom or default) by adding the query parameter rename=true to its upload requests. (I've pushed that change to the UploadAssistant repository as well).

Please let me know if any of this is unclear or if you have trouble getting it to work.

- Kevin

Reply all
Reply to author
Forward
0 new messages