Retrieving documents/images for patients

This forum is for programmers who have questions about the source code.
Post Reply
achatter01
Posts: 3
Joined: Mon Apr 26, 2021 6:39 pm

Retrieving documents/images for patients

Post by achatter01 » Tue Apr 27, 2021 3:08 pm

From the API documentation I only see Documents POST SetByUrl and Documents POST Upload. Are there plans for a GET? If we are using the API for integration with OD, how do I retrieve documents/images for a patient?

Thanks for any pointers. New to OpenDental and learning my way through.

User avatar
jordansparks
Site Admin
Posts: 5447
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Retrieving documents/images for patients

Post by jordansparks » Tue Apr 27, 2021 10:50 pm

We're working on it. First, we are tackling queries. Then, we can do images. When you submit a request for an image to the API, it will place the image in an FTP folder that you specify. That way, the image won't have to pass through our servers and bog things down.
Jordan Sparks, DMD
http://www.opendental.com

achatter01
Posts: 3
Joined: Mon Apr 26, 2021 6:39 pm

Re: Retrieving documents/images for patients

Post by achatter01 » Wed Apr 28, 2021 11:12 am

Great to hear!
In the interim, what's the recommended approach to retrieve images for patients. Possibly a list/matrix of images that then allows the user to select the ones they need.

Thanks!

User avatar
jordansparks
Site Admin
Posts: 5447
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Retrieving documents/images for patients

Post by jordansparks » Thu Apr 29, 2021 8:04 am

Depends on how you're using it. There are lots of different approaches, and we honestly haven't settled on a good one. The main tree is what they are used to, so we tried that, but it's complex. We've tried lists, thumbnails, pasting from clipboard, etc.

Sounds like our API will need to optionally include thumbnails when getting a list of images for a patient.
Jordan Sparks, DMD
http://www.opendental.com

achatter01
Posts: 3
Joined: Mon Apr 26, 2021 6:39 pm

Re: Retrieving documents/images for patients

Post by achatter01 » Thu Apr 29, 2021 8:24 am

Yes. Sounds like an optional parameter on the Document GET API or a different endpoint that takes a parameter to return thumbnails would be an approach to think of.

Post Reply