Having run into the #642 we realized it might no longer be viable to store imaging modality options as a hard coded list on the query tool side and instead they should be retrieved from an API endpoint just like diagnosis and assessment tool options.
Since we will soon have more modalities, we could switch to color-coding them by the BIDS datatype (anat, func, etc.) instead of assigning a distinct color per suffix. These datatypes should be able to be read from a config file - see neurobagel/communities#43.
Tasks:
References:
Having run into the #642 we realized it might no longer be viable to store imaging modality options as a hard coded list on the query tool side and instead they should be retrieved from an API endpoint just like diagnosis and assessment tool options.
Since we will soon have more modalities, we could switch to color-coding them by the BIDS datatype (
anat,func, etc.) instead of assigning a distinct color per suffix. These datatypes should be able to be read from a config file - see neurobagel/communities#43.Tasks:
nb:Image) the same way diagnoses/assessments are retrieved, replacing the hardcoded constants.DataTypeDataTypeorAbbreviationconvertURIToLabelconversion logic to use fetched modality metadata instead of the static map.References: