ImageFolder sometimes empty

This forum is for programmers who have questions about the source code.

ImageFolder sometimes empty

Postby tpaczesny » Fri Nov 02, 2018 9:05 am


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.
Posts: 3
Joined: Fri Nov 02, 2018 9:01 am

Re: ImageFolder sometimes empty

Postby jsalmon » Fri Nov 02, 2018 11:18 am

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).
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
User avatar
Posts: 1475
Joined: Tue Nov 30, 2010 1:33 pm

Return to Developers

Who is online

Users browsing this forum: No registered users and 5 guests