Add command to images interface to scan a directory and determine which folders have been imported
images upload
runs as a batch process and works well for directories that contain a moderately large number of studies/patients (hundreds). If an error occurs during processing, however, there is no way to recover state and continue from where the upload finished.
Many users of Sonador/Orthanc need the ability to handle very large volumes of patients (tens or hundreds of thousands). The Sonador toolset needs a way to help failed batches recover and resume.
Because images upload
was designed to process entire directory structures, the easiest way to do that might be to scan the directories and compare patient data embedded in the DICOMS to patient data already within Sonador. If present, the image directory could be moved from one directory tree to the other.
Workflow:
- Command walks the directories looking for DICOM files. If the
--check-status
option is checked, the client loads all files and creates a cache of the sequence UIDs. - Before proceeding to the upload, Sonador is queried to see if the instance UIDs exist in the server.
- During the upload, images are re-parsed and if the the study is already present, the upload is skipped.