IUSCA / SQAN

Scalable Quality Assurance for Neuroimaging - (SQAN): A full-stack system solution for extracting, translating, and logging (ETL) + web portal-based quality-control verification of DICOM-formatted medical imaging data/metadata.
https://sqan.sca.iu.edu/
Other
8 stars 3 forks source link

SQAN: API:: refactor structure for Template Summary results #148

Open charlesbrandt opened 4 years ago

charlesbrandt commented 4 years ago

Currently, calls to /api/qc/templatesummary/istemplate returns a list of summaries that have the following structure:

IIBISID: 
​​Modality:
StationName:
StudyTimestamp: Array [ "2019-03-19T14:24:59.972Z", "2019-03-06T13:56:07.939Z" ]
count: 
​​exam_id: Array [ "5e56cf4e85237278a316f4b6", "5defb1ed43dba156382faf21" ]
​​radio_tracer: 

The lists StudyTimestamp and exam_id could be combined into a single list of objects. In this case, it would also be good to include the converted_to_template boolean value in this list to assist with showing the correct icon in the tab list of Templates options.

Alternatively, we could make this a separate API call that is fired when a specific TemplateDetail view is selected by the user. In this case, we could remove the StudyTimestamp and exam_id fields from the initial /api/qc/templatesummary/istemplate call.