Page 1 of 1

PriProv field is 0 in GET Patients & GET Patients/{patientNumber} API

Posted: Wed Nov 17, 2021 2:01 am
by manish.bhalodi.tech9
OpenDental Version 21.2.44.0

We are using GET /api/v1/patients & GET /api/v1/patients/{patientNumber} API in our project. In the response body of both APIs, It is always giving PriProv as 0 but I can see the value of priProvAbbr in the response body.

When I am using/api/v1/patients/Simple API. In the response body, I can see the PriProv field value but not in the above 2 APIs.

I want PriProv value in /api/v1/patients/{patientNumber} API.

Let me know If I missing or need any more details.
Thank You.

Re: PriProv field is 0 in GET Patients & GET Patients/{patientNumber} API

Posted: Wed Nov 17, 2021 10:10 am
by SLeon
We can easily add the PriProv value to the return result in Patients GET (single). This has been added to our development list and should be available rather soon.

The Patients GET (multiple) uses the exact query used search for patients within Open Dental. This is why it returns a priProvAbbr but not the PriProv. Patients GET Simple was designed to support the fields that Patients GET (multiple) does not, including PriProv.

Re: PriProv field is 0 in GET Patients & GET Patients/{patientNumber} API

Posted: Thu Nov 18, 2021 2:29 am
by manish.bhalodi.tech9
@SLeon - Thank you for your reply.

Any approximate timeline when will PriProv field available in Patients GET (single)?

I guess it is appropriate to add a Secondary Provider along with Primary Provider.

Re: PriProv field is 0 in GET Patients & GET Patients/{patientNumber} API

Posted: Thu Nov 18, 2021 7:08 am
by jordansparks
Probably done by the end of today, and then we release about twice a week. It will be backported to 21.3.

Re: PriProv field is 0 in GET Patients & GET Patients/{patientNumber} API

Posted: Thu Nov 18, 2021 10:44 am
by SLeon
The PriProv and SecProv fields have been added to Patients GET (single) results. SecProv has also been added to the results of Patients GET Simple.

These will be available in our next beta version (21.3.28) which is estimated to be released within the next week.

Re: PriProv field is 0 in GET Patients & GET Patients/{patientNumber} API

Posted: Fri Nov 19, 2021 12:00 am
by manish.bhalodi.tech9
Thank you @SLeon & @jordansparks for such quick help.
You guys are doing really awesome job.