Idea for pacs system

Im goining to use nextcloud as
Picture archiving and communication system (pacs),
We have MRI and CT in our clinic.
I used
https://apps.nextcloud.com/apps/dicomviewer
But rightnow i trap in some part.
1, what is the best way for diractory?
My idea Somethibg like this:
Myclinic/2020/4/17/PatientId.dcm
2. How we can create automate diractory path when upload?