Uploading more than one scan to a session

499 views
Skip to first unread message

Inge Amlien

unread,
May 15, 2017, 4:03:36 PM5/15/17
to xnat_discussion
When uploading DICOMS to the prearchive, only one scan is archived per session/experiment. The other scans stay in the prearchive with status conflict (Invalid modification of session UID via archive process) or error (Duplicate archive attempt. Destination session in use). In order to add these to the correct experiment, I needy to hit "rebuild" and then "review and archive" the scans one at a time. 

This happens wether I upload via REST using curl:
curl  --cookie JSESSIONID=$cookie -k -H 'Content-Type: application/dicom' -X POST "$xnat/data/services/import?inbody=true&PROJECT_ID=$project&SUBJECT_ID=$subject&EXPT_LABEL=$session&prearchive=true&overwrite=true&format=DICOM" --data-binary @$dicomfile

or using DicomRemap with an autogenerated anonymization script setting (0010,4000) := "Project:%(project)s; Subject:%(subject)s; Session:%(sessionstring)s

Any pointers on what I could be doing wrong?

Cheers,
Inge

Moore, Charlie

unread,
May 15, 2017, 5:03:39 PM5/15/17
to xnat_di...@googlegroups.com

Inge,

 

The first thing to try would be to change your overwrite query parameter to overwrite=append in your URL in the curl post. If that doesn’t work, try doing this:

 

1.       Take all of the DICOM files for the whole session and zip them up together in a single zip (the folder structure in the zip shouldn’t really matter).

2.       Send the zip to XNAT using the same session importer call, except:

a.       switch the content-type to ‘application/zip’.

b.      Remove the format=DICOM query parameter.

 

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

 


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.

Inge Amlien

unread,
May 15, 2017, 6:39:15 PM5/15/17
to xnat_discussion, moo...@wustl.edu
Thanks Charlie!

overwrite=append did not change anything (I originally changed it from append to true because of the error "Session already exists, retry with overwrite enabled").

Uploading a zipped archive with more than one scan did not make any difference either. Curl returns "Upload included files for multiple imaging sessions." and I still have conflicts in the prearchive.
curl  --cookie JSESSIONID=$cookie -H 'Content-Type: application/zip' -X POST "$xnat/data/services/import?inbody=true&PROJECT_ID=$project&SUBJECT_ID=$subject&EXPT_LABEL=$session&prearchive=true&overwrite=append" --data-binary @$ziparchive

Cheers,
Inge

Inge Amlien

unread,
May 16, 2017, 3:55:03 AM5/16/17
to xnat_discussion, moo...@wustl.edu
Figured it out after some more digging, the error was on our part. It seems that all series in the same study had not been assigned identical Study Instance UID's (DICOM tag 0020, 000D). When I give this tag identical values for all series in a study, only one line is created in the prearchive and the import works without conflict.

Cheers,
Inge

rfh...@gmail.com

unread,
Sep 26, 2018, 6:37:14 AM9/26/18
to xnat_discussion
Hi Inge,

I am struggling with the same issue (documented here and here) but I have checked and my Study Instance UIDs are consistent between scans :|

Is your implementation still working? do you know of any other tags that may cause..

CONFLICT-10: Session processing may already be in progress: AutoRun. Concurrent modification is discouraged.
CONFLICT
-14: Session already exists with matching files.
CONFLICT-16: Session already contains a scan (201) with the same UID and number.

in XNAT?

Thanks,
Ray
Reply all
Reply to author
Forward
0 new messages