diff --git a/platform/viewer/src/routes/StudyListContainer/StudyListContainer.jsx b/platform/viewer/src/routes/StudyListContainer/StudyListContainer.jsx index 096eb6bb3..dfeb957e4 100644 --- a/platform/viewer/src/routes/StudyListContainer/StudyListContainer.jsx +++ b/platform/viewer/src/routes/StudyListContainer/StudyListContainer.jsx @@ -5,6 +5,7 @@ import { Link } from 'react-router-dom'; import moment from 'moment'; import qs from 'query-string'; // +import filtersMeta from './filtersMeta.js'; import { useDebounce, useQuery } from './../../hooks'; import { diff --git a/platform/viewer/src/routes/StudyListContainer/filtersMeta.js b/platform/viewer/src/routes/StudyListContainer/filtersMeta.js new file mode 100644 index 000000000..f22c68e75 --- /dev/null +++ b/platform/viewer/src/routes/StudyListContainer/filtersMeta.js @@ -0,0 +1,61 @@ +const filtersMeta = [ + { + name: 'patientName', + displayName: 'Patient Name', + inputType: 'Text', + isSortable: true, + gridCol: 4, + }, + { + name: 'mrn', + displayName: 'MRN', + inputType: 'Text', + isSortable: true, + gridCol: 2, + }, + { + name: 'studyDate', + displayName: 'Study date', + inputType: 'DateRange', + isSortable: true, + gridCol: 5, + }, + { + name: 'description', + displayName: 'Description', + inputType: 'Text', + isSortable: true, + gridCol: 4, + }, + { + name: 'modalities', + displayName: 'Modality', + inputType: 'MultiSelect', + inputProps: { + options: [ + { value: 'SEG', label: 'SEG' }, + { value: 'CT', label: 'CT' }, + { value: 'MR', label: 'MR' }, + { value: 'SR', label: 'SR' }, + ], + }, + isSortable: true, + gridCol: 3, + }, + { + name: 'accession', + displayName: 'Accession', + inputType: 'Text', + isSortable: true, + gridCol: 4, + }, + { + name: 'instances', + displayName: 'Instances', + inputType: 'None', + isSortable: true, + gridCol: 2, + }, +]; + +export default filtersMeta;