Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel

Contents

Table of Contents


Archive An Image Session That Is Currently In The Prearchive

Introduced with XNAT 1.5, the import service is a customizable implementation for transfering data from the prearchive to the archive space. XNAT comes with a preconfigured implementation for moving standard imaging session data from the prearchive to the archive space.

...

Code Block
POST - /data/services/validate-archive

Parameters

src

Required body parameter: Only used when attempting to import a previously uploaded file

  • /prearchive/projects/PROJECT/timestamp/session

Response

Can return a variety of codes if a session you are intending to archive found a match already in the archive, or ran into a conflict or other failure.

...

Introduced with XNAT 1.6.2, the refresh catalog service is used to update catalog xmls that are out of sync with the file system.  This service can be used to store checksums for entries that are missing the, remove entries that no longer have valid files, or add new entries for files that have been manually added to the archive directory.

When using this feature to add files that have been manually added to the archive directory, you must have placed the files in the appropriate archive directory (in the same directory as the generated catalog xml or a sub-directory).  The catalog xml should already exist before triggering this service.  If you haven't generated the catalog yet, you can do so by doing a PUT to the resource URL (i.e. /data/archive/experiments/ID/resources/TEST).

Info

You can reference an object that contains resources instead of referencing resources themselves.  So, if you want to update all of the resources for an entire MR session, you could reference the MR URL as your input, /services/refresh/catalog?resource=/archive/experiments/EXPT.

Code Block
POST - /data/services/refresh/catalog

Parameters

...

Required querystring parameter.

  • /archive/projects/PROJECT/subjects/SUBJECT/experiments/EXPT/scans/SCAN/resources/LABEL
  • /archive/projects/PROJECT/subjects/SUBJECT/experiments/EXPT/scans/SCAN
  • /archive/projects/PROJECT/subjects/SUBJECT/experiments/EXPT/assessors/ASSESSOR/resources/LABEL
  • /archive/projects/PROJECT/subjects/SUBJECT/experiments/EXPT/assessors/ASSESSOR
  • /archive/projects/PROJECT/subjects/SUBJECT/experiments/EXPT/resources/LABEL
  • /archive/projects/PROJECT/subjects/SUBJECT/experiments/EXPT
  • /archive/projects/PROJECT/subjects/SUBJECT/resources/LABEL
  • /archive/projects/PROJECT/subjects/SUBJECT -- will not cascade to children (experiments)
  • /archive/projects/PROJECT/resources/LABEL
  • /archive/projects/PROJECT-- will not cascade to children (subjects or experiments)
  • /archive/experiments/EXPT/scans/SCAN/resources/DICOM
  • /archive/experiments/EXPT/scans/SCAN
  • /archive/experiments/EXPT/assessors/ASSESSOR/resources/LABEL
  • /archive/experiments/EXPT/assessors/ASSESSOR
  • /archive/experiments/EXPT/resources/LABEL
  • /archive/experiments/EXPT
  • /archive/subjects/SUBJECT/resources/LABEL
  • /archive/subjects/SUBJECT -- will not cascade to children (experiments)
Note

You can reference multiple resources by including multiple resource parameters. However, the refresh operation interacts with the file system and can be an expensive transaction, so you are encouraged to limit the number of resources you are updating at one time.

...

See: Catalog Refresh API