"MaximumPatientCount" property not working

Hello everyone,
I would like to have some more information about the “MaximumPatientCount” and “MaximumStorageSize” properties.

I have read the documentation about these two parameters, but I don’t understand why they are not applied on my orthanc (version 1.12.6).

In my example, I am only interested in setting the “MaximumPatientCount” parameter to 50, and as you can see from the photo:

this is recognized when starting orthanc. However, orthanc has up to 120 patients stored, so the property set did not work.

I also leave the orthanc.json configuration applied:

// Maximum number of patients that can be stored at a given time
// in the storage (a value of “0” indicates no limit on the number
// of patients)
“MaximumPatientCount” : 50,

// Action to take when the maximum storage is reached.
// By default, the patients are recycled (“Recycle” mode).
// In “Reject” mode, the sender will receive a 0xA700 DIMSE status code
// if the instance was sent through C-Store, a 507 HTTP status code
// if using the REST API and a 0xA700 Failure reason when using
// DicomWeb Stow-RS.
// Note: this value is taken into account only if you have set
// a MaximumStorageSize != 0 or a MaximumPatientCount != 0
// Allowed values: “Recycle”, “Reject”
// (new in Orthanc 1.11.2)
“MaximumStorageMode” : “Recycle”,

Any suggestions? Did I do something wrong in the configuration?

Thanks in advance.
Best regards.

Hi @fabrizioferrara

Well, the configuration is named MaximumPatientCount not Study.

You may check how many patients you have in the system info:

Also note that, if you are using PostgreSQL 6.0. There was a bug with this config that was fixed in 6.1 (release notes)

Hope this helps,

Alain