Query functions for the MINDLab DICOM database