Uploaded image for project: 'XNAT'
  1. XNAT
  2. XNAT-5926

Add modality and xsitype for each scan in an image session to the XNAT.data.context.scans object

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.5
    • Fix Version/s: 1.7.5.3
    • Component/s: None
    • Labels:
    • Rank:
      0|0hzz0o:

      Description

      This should be a fairly simple fix. It is particularly important for managing containers for PET-MR sessions, or any session that has multiple modalities in its scan set. Currently on the session page, the XNAT.data.context.scans object contains something like the following:

      [
        {
          "id": "1",
          "series_description": "PET AC"
        },
        {
          "id": "6978035",
          "series_description": "Aligned_T1toPET_BOX"
        },
        {
          "id": "6984036",
          "series_description": "Aligned_STIRtoPET_BOX"
        }
      ]
      

      With this fix in place, I would like to see a structure like this:

      [
        {
          "id": "1",
          "series_description": "PET AC",
          "modality": "PET",
          "xsitype": "xnat:petScanData"
        },
        {
          "id": "6978035",
          "series_description": "Aligned_T1toPET_BOX",
          "modality": "MR",
          "xsitype": "xnat:mrScanData"
        },
        {
          "id": "6984036",
          "series_description": "Aligned_STIRtoPET_BOX",
          "modality": "MR",
          "xsitype": "xnat:mrScanData"
        }
      ] 
      

        Issue Links

          Activity

          Hide
          mfmckay@wustl.edu Mike McKay (Inactive) added a comment -

          Committed to issue-specific branch.

          Show
          mfmckay@wustl.edu Mike McKay (Inactive) added a comment - Committed to issue-specific branch.

            People

            • Assignee:
              moore.c@wustl.edu Charlie Moore
              Reporter:
              hortonw@wustl.edu Will Horton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: