Page tree

Versions Compared

Key

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

...

The result is a JSON-formatted list of resource collections organized by user and data object. For example, if a user uploads three files to a Subject, those three files are quarantined in a single collection. However, if the same user uploads an additional file to an image session, that upload will be located in a separate resource collection in the quarantine. Here is an example JSON structure for multiple files in a single collection.

Code Block
{
  "ResultSet": {
    "propertiesColumns": [
      {
        "key": "URI",
        "serverRoot": ""
      },
      {
        "key": "TARGET",
        "serverRoot": ""
      }
    ],
    "Result": [
      {
        "TARGET": "/data/archive/experimentsprojects/T1109_1_bRZFHY/subjects/XNAT_E00006S00003/resources/DOCSTestingFolder4/files",
            "DATE": "2021-04-1922 2107:3456:0529",
            "FTARGET": "<b>Session<<b>Project<\/b>: T1109_1_bRZFHY<br><b>Subject<\/b>: 50T1109_CT1_1<br><b>Resource<E810A<br><b>Resource<\/b>: DOCSTestingFolder4",
            "OVERWRITE": "false",
        "FSOURCE": "test1.json<br>",
        "Resource": "/data/services/triage/projects/AbCTSeg/resources/1618868036316/files/activity(1).csv1619096148184",
            "format": "",
            "USER": "chuckcadmin",
            "URI": "/data/services/triage/projects/AbCTSegT1109_1_bRZFHY/resources/1618868036316/files/activity(1).csv1619096148184",
            "content": "",
            "EVENT_REASON": ""
        },
        {
            "TARGET": "/data/archive/experiments/projects/T1109_1_bRZFHY/subjects/XNAT_E00006S00003/resources/DOCSTestingFolder4/files",
            "DATE": "2021-04-1922 2107:3456:0829",
            "FTARGET": "<b>Session<<b>Project<\/b>: T1109_1_bRZFHY<br><b>Subject<\/b>: 50T1109_CT1_1<br><b>Resource<E810A<br><b>Resource<\/b>: DOCSTestingFolder4",
            "OVERWRITE": "false",
        "FSOURCE": "test2.json<br>",
        "Resource": "/data/services/triage/projects/AbCTSeg/resources/1618868036316/files/activity(2).csv1619096148184",
            "format": "",
            "USER": "chuckcadmin",
            "URI": "/data/services/triage/projects/AbCTSegT1109_1_bRZFHY/resources/1618868036316/files/activity(2).csv1619096148184",
            "content": "",
            "EVENT_REASON": ""
      }
  }
  ],
    "totalRecords":  ]"2"
  }
}

The resource JSON contains all of the elements for each file that will be necessary to approve the file using the POST command in these documents. The "URI" and "TARGET" parameters in this JSON structure get mapped to the "src" and "dest" paramaters parameters required by the approval form.

...