To access the table, developers and admins can:
To create a grid that shows the metadata columns, do one of the following:
SELECT Data.Name,
Data.Run,
Data.DataFileUrl,
Data.InlineThumbnail,
Data.DownloadLink
FROM Data
You can pull out more metadata, if you conform to a path naming pattern. In the following example, CT and PET scans have been arranged in the following folder pattern:
scans
├───patient1
│ ├───CT
│ └───PET
└───patient2
├───CT
└───PET
The following SQL query harvests out the patient id and the scan type from the directory structure above.
SELECT Data.Name as ScanName,
Data.DataFileUrl,
split_part(DataFileUrl, '/', 8) as Ptid,
split_part(DataFileUrl, '/', 9) as ScanType
FROM Data
WHERE locate('/@files/scans', DataFileUrl) > 0
The result is a table of enhanced metadata about the files, which provides new columns you can filter on, to narrow down to the files of interest.
previousnext |
expand allcollapse all |