parameter DicomModalitiesInDatabase

From the documentation:
https://hg.orthanc-server.com/orthanc/file/Orthanc-1.8.0/OrthancServer/Resources/Configuration.json

// Whether to store the DICOM modalities in the Orthanc database
// instead of in this configuration file (new in Orthanc 1.5.0)

“DicomModalitiesInDatabase” : false,

So, when this option is “true”, Orthanc will not read the modalities from the “DicomModalities” option. You’ll have to use the REST API to define the modalities, as explained in the Orthanc Book:

https://book.orthanc-server.com/users/rest.html?highlight=put%20modalities#sending-resources-to-remote-modalities-through-dicom-c-store

$ curl http://localhost:8042/modalities
[]
$ curl -v -X PUT http://localhost:8042/modalities/sample -d ‘{“AET” : “ORTHANCC”, “Host”: “127.0.0.1”, “Port”: 2002}’
$ curl http://localhost:8042/modalities
[ “sample” ]