Modify storage location with LUA scripts

Using the Advanced Storage plugin, we can specify multiple storage locations, with one being marked as the current write location. I’d like to run a multitenant server, and based on tenant/labels, specify which storage location any resource is written to. I’ve looked at the documentation on LUA scripting and the available hooks, and it doesn’t look like what I want to do is possible. Have I missed something? Or is there a different approach?

Thanks,

John

No, current advanced storage plugin does not support dynamic location. The location of file storage is fixed and cannot be changed during running time. Another approach could be tweak the source code and build logic whatever you want.

You could save the “Tenant” in a DICOM tag e.g. the InstitutionName and then, you should be able to organize the storage with one folder per tenant using the NamingScheme but you would not be able to select the storage itself.

You could save the “Tenant” in a DICOM tag e.g. the InstitutionName and then, you should be able to organize the storage with one folder per tenant using the NamingScheme but you would not be able to select the storage itself.

Thanks for this suggestion, I think this would get us most of the way to what we want to accomplish.