Identify X-rays image that are Only in the [BWs] folder?

This forum is for programmers who have questions about the source code.
Post Reply
pvladimir
Posts: 2
Joined: Thu Jan 07, 2021 1:44 pm

Identify X-rays image that are Only in the [BWs] folder?

Post by pvladimir » Thu Jan 07, 2021 1:57 pm

Hi All,
I am working on code that requires me to pull Only Bite wing image or image that are associated only with the BW's folder.
For example, here is how my tree looks:

[BWs]
  • image1
    image2
[FMXs]
  • image3
[Panos]
  • image4
How can i identify only image1 and image2 so that I can operate on them?
Does anyone know how is the reference between folders and X-Ray images done?

I'm confused because all of my X-Ray images are stored in a single folder but somehow the software knows where to display them?
Thank you for your help?

joes
Posts: 239
Joined: Tue Aug 13, 2019 12:41 pm

Re: Identify X-rays image that are Only in the [BWs] folder?

Post by joes » Thu Jan 07, 2021 2:59 pm

Each image in a patient's folder is represented by an entry in the document table. The document table has a DocCategory column which is a foreign key to definition.DefNum. Your folders in the tree are entries in the definition table. So when pulling images, you will want to retrieve all of the documents for the patient from the DB that have a DocCategory that equals the DefNum of your BWs Image Category definition. Once you have the documents, you can use document.FileName to identify which files in the patient's folder belong to the BWs category.
Joe Sullivan
Open Dental Software
http://www.opendental.com

pvladimir
Posts: 2
Joined: Thu Jan 07, 2021 1:44 pm

Re: Identify X-rays image that are Only in the [BWs] folder?

Post by pvladimir » Fri Jan 08, 2021 5:47 am

thank you for your reply!!!

Post Reply