I have to recover previous XX by modality from PACS
I have the following command, which retrieves all the patient's studies with the US modality.
ExportConverter0 = ifequal "%m", "US"; get study modality %m now-365 from PACS;
I only need 2 previous closer to the appointment date
thank you