Commit 031e9601 authored by Franziska Koehn's avatar Franziska Koehn
Browse files

datatypes extended with "comparison_data"-field

parent cbe4ee8c
{
"root-type":"ext:cSubAssessment",
"additional_data":{"label":"Questionary-Data","source":"/projects/{project}/experiments/{exptid}"},
"comparison_data":{"identifier":["expt_id", "project"],"extra-source":"/projects/{project}/experiments/{expt_id}"},
"fields":[
{"label":"Subject-ID", "field":"ext:cSubAssessment/SUBJECT_ID", "required":false, "key": "subject_id"},
{"label":"Experiment-ID", "field":"ext:cSubAssessment/EXPT_ID", "required":true, "key": "expt_id"},
{"label":"Date", "field":"ext:cSubAssessment/DATE", "required":false, "key": "date"},
{"label":"Age", "field":"ext:cSubAssessment/AGE", "required":false, "key": "age"},
{"label":"Projects", "field":"ext:cSubAssessment/PROJECTS", "required":false, "key": "projects"},
{"label":"Project", "field":"ext:cSubAssessment/PROJECT", "required":false, "key": "project"},
{"label":"Project", "field":"ext:cSubAssessment/PROJECT", "required":true, "key": "project"},
{"label":"Label", "field":"ext:cSubAssessment/LABEL", "required":false, "key": "label"},
{"label":"Insert Date", "field":"ext:cSubAssessment/INSERT_DATE", "required":false, "key": "insert_date"},
{"label":"Insert User", "field":"ext:cSubAssessment/INSERT_USER", "required":false, "key": "insert_user"},
......
{
"root-type":"xnat:mrScanData",
"comparison_data":{"identifier":["id","xnat_mrsessiondata_session_id"]},
"REST-API":"/data/archive/projects/{xnat_mrsessiondata_project}/subjects/{xnat_mrsessiondata_subject_id}/experiments/{xnat_mrsessiondata_session_id}/scans/{id}/resources/DICOM/files?format=zip",
"fields":[
{"label":"Type", "field":"xnat:mrScanData/TYPE", "required":true, "key": "type"},
......
{
"root-type":"xnat:mrSessionData",
"comparison_data":{"identifier":["session_id"]},
"fields":[
{"label":"Session-ID", "field":"xnat:mrSessionData/SESSION_ID", "required":false, "key": "session_id"},
{"label":"Date", "field":"xnat:mrSessionData/DATE", "required":false, "key": "date"},
......
{"root-type":"xnat:projectData",
{
"root-type":"xnat:projectData",
"comparison_data":{"identifier":["id"]},
"fields":[
{"label":"Project-ID", "field":"xnat:projectData/ID", "required":true, "key": "id"},
{"label":"NAME", "field":"xnat:projectData/NAME", "required":false, "key": "name"},
......
{"root-type":"xnat:subjectData",
{
"root-type":"xnat:subjectData",
"comparison_data":{"identifier":["subject_id"]},
"fields":[
{"label":"Subject-ID", "field":"xnat:subjectData/SUBJECT_ID", "required":true, "key": "subject_id"},
{"label":"Subject-Label", "field":"xnat:subjectData/SUBJECT_LABEL", "required":false, "key": "subject_label"},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment