Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
211 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"_id": "MR", | ||
"classifications": { | ||
"Contrast": ["B0", "B1", "T1", "T2", "T2*", "PD", "MT", "ASL", "Perfusion", "Diffusion", "Spectroscopy", "Susceptibility", "Velocity", "Fingerprinting"], | ||
"Intent": ["Structural", "Functional", "Localizer", "Shim", "Calibration"], | ||
"Features": ["Quantitative", "Multi-Shell", "Multi-Echo", "Multi-Flip", "Multi-Band", "Steady-State", "3D", "Compressed-Sensing", "Eddy-Current-Corrected", "Fieldmap-Corrected", "Gradient-Unwarped", "Motion-Corrected", "Physio-Corrected"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"classifications": { | ||
"Contrast": ["B0", "B1", "T1", "T2", "T2*", "PD", "MT", "ASL", "Perfusion", "Diffusion", "Spectroscopy", "Susceptibility", "Velocity", "Fingerprinting"], | ||
"Intent": ["Structural", "Functional", "Localizer", "Shim", "Calibration"], | ||
"Features": ["Quantitative", "Multi-Shell", "Multi-Echo", "Multi-Flip", "Multi-Band", "Steady-State", "3D", "Compressed-Sensing", "Eddy-Current-Corrected", "Fieldmap-Corrected", "Gradient-Unwarped", "Motion-Corrected", "Physio-Corrected"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[ | ||
{ | ||
"_id": "MR", | ||
"classifications": { | ||
"Contrast": ["B0", "B1", "T1", "T2", "T2*", "PD", "MT", "ASL", "Perfusion", "Diffusion", "Spectroscopy", "Susceptibility", "Velocity", "Fingerprinting"], | ||
"Intent": ["Structural", "Functional", "Localizer", "Shim", "Calibration"], | ||
"Features": ["Quantitative", "Multi-Shell", "Multi-Echo", "Multi-Flip", "Multi-Band", "Steady-State", "3D", "Compressed-Sensing", "Eddy-Current-Corrected", "Fieldmap-Corrected", "Gradient-Unwarped", "Motion-Corrected", "Physio-Corrected"] | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"_id": "MR", | ||
"classifications": { | ||
"Contrast": ["B0", "B1", "T1", "T2", "T2*", "PD", "MT", "ASL", "Perfusion", "Diffusion", "Spectroscopy", "Susceptibility", "Velocity", "Fingerprinting"], | ||
"Intent": ["Structural", "Functional", "Localizer", "Shim", "Calibration"], | ||
"Features": ["Quantitative", "Multi-Shell", "Multi-Echo", "Multi-Flip", "Multi-Band", "Steady-State", "3D", "Compressed-Sensing", "Eddy-Current-Corrected", "Fieldmap-Corrected", "Gradient-Unwarped", "Motion-Corrected", "Physio-Corrected"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
description: Utility functions for modalities and their acceptable classifications. | ||
get: | ||
description: | | ||
List all modalities and their classifications. | ||
Requires login. | ||
responses: | ||
200: | ||
body: | ||
application/json: | ||
example: !include ../examples/output/modality-list.json | ||
schema: !include ../schemas/output/modality-list.json | ||
post: | ||
description: | | ||
Insert a modality type and its classifications map. | ||
Requires admin. | ||
body: | ||
application/json: | ||
example: !include ../examples/input/modality-new.json | ||
schema: !include ../schemas/input/modality.json | ||
responses: | ||
200: | ||
body: | ||
application/json: | ||
example: | | ||
{ | ||
"inserted": "1" | ||
} | ||
/{ModalityName}: | ||
description: Perform actions with a specific modality | ||
uriParameters: | ||
ModalityName: | ||
type: string | ||
get: | ||
description: | | ||
Get modality details. | ||
Requires login. | ||
responses: | ||
200: | ||
body: | ||
application/json: | ||
example: !include ../examples/output/modality.json | ||
schema: !include ../schemas/output/modality.json | ||
404: | ||
description: Modality not found | ||
put: | ||
description: | | ||
Replace a modality's classifications map. | ||
Requires admin. | ||
body: | ||
application/json: | ||
example: !include ../examples/input/modality-update.json | ||
schema: !include ../schemas/input/modality.json | ||
responses: | ||
200: | ||
body: | ||
application/json: | ||
example: | | ||
{ | ||
"modified": "1" | ||
} | ||
404: | ||
description: Modality not found | ||
delete: | ||
description: | | ||
Remove a modality. | ||
Requires admin. | ||
responses: | ||
200: | ||
body: | ||
application/json: | ||
example: | | ||
{ | ||
"modified": "1" | ||
} | ||
404: | ||
description: Modality not found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"type": "object", | ||
"definitions": { | ||
"_id": { | ||
"maxLength": 64, | ||
"minLength": 2, | ||
"pattern": "^[0-9a-zA-Z_-]*$" | ||
}, | ||
"classifications": { | ||
"type": "object", | ||
"patternProperties": { | ||
"^[0-9a-zA-Z_-]*$":{ | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
}, | ||
}, | ||
"modality":{ | ||
"type": "object", | ||
"properties": { | ||
"_id": {"$ref":"#/definitions/_id"}, | ||
"classifications": {"$ref":"#/definitions/classifications"} | ||
}, | ||
"additionalProperties": false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"allOf":[{"$ref":"../definitions/modality.json#/definitions/modality"}], | ||
"required": ["classifications"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"type":"array", | ||
"items":{ | ||
"allOf":[{"$ref":"../definitions/modality.json#/definitions/modality"}], | ||
"required":["_id", "classifications"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"allOf":[{"$ref":"../definitions/modality.json#/definitions/modality"}], | ||
"required": ["_id", "classifications"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters