Not getting all commlogs in GET API

For requests or help with our API
Post Reply
beacondental
Posts: 92
Joined: Wed Mar 15, 2023 8:43 am

Not getting all commlogs in GET API

Post by beacondental » Tue Jul 11, 2023 5:43 am

Hello Team,

We are trying to fetch data from commlogs, whether the an email is sent or not to patient.
And we found that we are able to see the list in the patient-->account section, but the same logs are not visible if we try to fetch using user query or using GET-API ("/commlogs?PatNum="). In fact, the results are just showing text and not email.

I am attaching the screenshots of records for reference. The patient no is 30432.

This might help you, It's my assumption that, we are not getting data if the 'Type' field is empty in commlogs.

Please guide us on how to get all the data and not just the data where commType is not empty.


Thank you.
Attachments
response.txt
Postman GET-API JSON response
(1.79 KiB) Downloaded 144 times
user query
user query
Screenshot from 2023-07-11 15-31-15.png (33.48 KiB) Viewed 1386 times
patient -> account
patient -> account
Screenshot from 2023-07-11 15-31-45.png (19.6 KiB) Viewed 1386 times

SLeon
Posts: 482
Joined: Mon Mar 01, 2021 10:00 am

Re: Not getting all commlogs in GET API

Post by SLeon » Tue Jul 11, 2023 8:25 am

Good morning,

The "Communications Log" grid in your second screenshot contains more than items in the commlog table. It also contains information for that patient from the emailmessage, formpat, and sheet tables. To get emails for a patient, you can use a query to select rows from that table using their PatNum.

beacondental
Posts: 92
Joined: Wed Mar 15, 2023 8:43 am

Re: Not getting all commlogs in GET API

Post by beacondental » Tue Jul 11, 2023 11:07 pm

Good morning,

Following your suggestions, I get the required data in 'emailmessage' table.

Thank you,

Post Reply