How do I find the number of patients stored in Orthanc?

Hello! We had a dicom transfer done from a Medweb server over to Orthanc and it appears that there are some studies missing. Is there a way to find the total number of Patients and or studies stored on the Orthanc Server?

Thanks in advance

- Frank

Dear Frank,

The number of patients stored into Orthanc (i.e. the number of distinct values for the “PatientID” DICOM tag) corresponds to the size of the following array:
http://localhost:8042/patients

Similarly, the total number of studies can be retrieved by inspecting the size of the array at address:
http://localhost:8042/studies

Regards,
Sébastien-