Be sure that DicomFile defaults are set before using patientUID
For read-only DB, inactivate some menu items