ImageFolder sometimes empty

This forum is for programmers who have questions about the source code.
Post Reply
tpaczesny
Posts: 6
Joined: Fri Nov 02, 2018 9:01 am

ImageFolder sometimes empty

Post by tpaczesny » Fri Nov 02, 2018 9:05 am

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.

User avatar
jsalmon
Posts: 1551
Joined: Tue Nov 30, 2010 12:33 pm
Contact:

Re: ImageFolder sometimes empty

Post by 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
http://www.opendental.com

Post Reply