Page 1 of 1

ImageFolder sometimes empty

Posted: Fri Nov 02, 2018 9:05 am
by tpaczesny
Hello,

When integrating with existing OpenDental database, I noticed only some of the patients have non-empty ImageFolder defined. I need it to know where to store a file for a given patient. I wonder when exactly this field is populated by OpenDental, and if it is safe to update the field myself and avoid collisions with other patients for sure. Would appreciate some insight into the inner workings of this.

Re: ImageFolder sometimes empty

Posted: Fri Nov 02, 2018 11:18 am
by jsalmon
We dynamically create them on the fly. You will be interested in invoking OpenDentBusiness.ImageStore.GetPatientFolder(). I would recommend calling that method instead of trying to do what it does on your own cause you could cause some angry doctors if you mess with the image folders in an odd way (e.g. storing them somewhere else than where Open Dental would typically store them thus they are in two different locations).