DrChrono API Confirmation

375 views
Skip to first unread message

Ravi Tatmiya

unread,
Sep 25, 2020, 7:38:39 PM9/25/20
to DrChrono API Developers
I have few more questions which I would like to ask.

Just so you know the overall goal, we would like to create an appointment on the fly using an API and also fill up the clinical notes as step 2 of scheduling an appointment, and we post all values together using an API. (Of course, we would need to POST data to multiple APIs in queue depending upon the response of each API), see the below flow:

list of offices -> get available day and times (?^) -> create patient -> create an appointment -> update clinical notes field values

Questions
1. I have received the offices list using the API however it does not give me online scheduling available list of times for the day. I have enabled the online scheduling for the location still I am not getting time slots using APIs, could you let me know the end point to get specific office's available time slots for a week?
2. Which API we need to use for updating the clinical notes field values, we have found one "clinical_note_field_values_update" (PUT) but it does not seem to have the value parameter which we can save. This is really important to know before we proceed with our desired flow / architecture.

Final Question: Since we are creating this architecture to get more patients create appointments online and save their clinical notes without register on onPatient portal and confirming their email address. Do you think above flow would work without an issues or patient will still need to signup for onPatient in order to save the clinical notes?

Please try to brief as much as you could which would save both of our time in to-and-from.

Really appreciate your help in this matter.

bri...@drchrono.com

unread,
Sep 25, 2020, 7:43:57 PM9/25/20
to DrChrono API Developers
Hey Ravi,

Apologies for the delay.

Regarding your questions:

1. We do not have any availability endpoints for appointment times. Instead you will need to pull the appointments in a given date/date-range and deduce from the appointment times that are taken which times are available. Online scheduling has no connection to our API. 
2. You can update the clinical_note_field_values by this exact endpoint. Use POST if you are creating the initial value, use PUT/PATCH if you are updating the value. Example JSON body would like so:

{
     "appointment": 1224245,
     "clinical_note_field": 23453,
     "value": "your_value_here"
}

You can also input multiple values by using the same endpoint, just put the values in an array. IE:

[
{
     "appointment": 1224245,
     "clinical_note_field": 23453,
     "value": "your_value_here"
},
{
     "appointment": 1224245,
     "clinical_note_field": 23454,
     "value": "your_value_here"
},
{
     "appointment": 1224245,
     "clinical_note_field": 23455,
     "value": "your_value_here"
}
]

Let me know if you need further clarification or have additional questions,

Briggs

Simmy Gupta

unread,
Oct 15, 2020, 11:04:25 AM10/15/20
to DrChrono API Developers
Hello  Ravi Tatmiya 
I am creating a customize appointment form. I want to fetch the appointment empty slots. Can you help me how I can do this. I will be much appreciate. Please send me the sample code for this. 

Thank you
Simmy  

Ali Sabir

unread,
Apr 26, 2021, 11:22:31 AM4/26/21
to DrChrono API Developers
I am trying to update multiple field. It works when I do one field at a time like POST this:

{
     "appointment": 1224245,
     "clinical_note_field": 23453,
     "value": "your_value_here"
}

However, if I POST multiple fields like this, I get an error that field value is not allowed - even though the same values are allowed when I post individually. When I tried PUT or PATCH, I get an error that those are not allowed.

[
{
     "appointment": 124,
     "clinical_note_field": 23453,
     "value": "your_value_here"
},
{
     "appointment": 456,
     "clinical_note_field": 789,
     "value": "your_value_here"
},
{
     "appointment": 789,
     "clinical_note_field": 789,
     "value": "your_value_here"
}
]

Reply all
Reply to author
Forward
0 new messages