Read-only mode PACS

Hello,

We have an Orthanc’s instance that is full and we need to keep it in read-only mode. There is a way to prevent only DICOM store?

I see an option called “StoreDicom”, but I am not sure if it blocks only file storage. Is not clear.

Regards,

TK

Hi,

The “StoreDicom” option is to use Orthanc only to index the Dicoms and not store the file. You won’t have access to existing files if you disable it.

If you want to prevent modalities to push new files but still allow modalites to retrieve files, you should set DicomAlwaysAllowStore to false:

  // Whether the Orthanc SCP allows incoming C-STORE requests, even[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l277)
  // from SCU modalities it does not know about (i.e. that are not[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l278)
  // listed in the "DicomModalities" option above)[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l279)
  "DicomAlwaysAllowStore" : true,

and, if you’ve declared DicomModalities, you should explicitly disallow Store for all of them:

    //"untrusted" : {[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l377)
    //  "AET" : "ORTHANC",[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l378)
    //  "Port" : 104,[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l379)
    //  "Host" : "127.0.0.1",[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l380)
    //  "Manufacturer" : "Generic",[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l381)
    //  "AllowEcho" : false,[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l382)
    //  "AllowFind" : false,[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l383)
    //  "AllowGet"  : false,[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l384)
    //  "AllowMove" : false,[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l385)
    **//  "AllowStore" : true,**[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l386)
    //  "AllowStorageCommitment" : false,  // new in 1.6.0[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l387)
    //  "AllowTranscoding" : true,         // new in 1.7.0[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l388)
    //  "UseDicomTls" : false              // new in 1.9.0[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l389)
    //  "LocalAet" : "HELLO"               // new in 1.9.0[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l390)
    //  "Timeout" : 60                     // new in 1.9.1[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l391)
    //}

HTH,

Alain

Thanks! It’s working as expected.