Python based code wth pydicom as the dicom tool kit to sort and deidentify data.