Image Managers will have stored studies from Modalities with the naming convention: ModSystemName^IMSystemName-ECED-N where N is a letter to differentiate among multiple studies, so it is possible to query by the Modality System name as the patient last name.