PATCH to send only the fields that have changed or become available.
This is useful when visit information arrives gradually. For example, a diagnosis may be added after recording starts, medication orders may become available later, or the clinician may change the note sections before ending the session.
When to use POST vs PATCH
Choose the method based on when the information becomes available:How PATCH updates work
- PATCH uses a field mask, so send only the fields you want to change.
- Fields in the request replace their previous values. They do not append to the existing values.
sections, send the complete list of sections you want for the session. Do not send only the newly added section.
You can update context while the ambient session is recording or paused. You do not need to stop and restart the session just to update context.
Common mid-visit scenarios
It is your responsibility to update context as the visit progresses. You should not expect the clinician to stop and restart the session to update context. The following are common mid-visit scenarios that you should handle for better user experience.Diagnosis Added During the Visit
Diagnosis Added During the Visit
Orders Become Available After Start
Orders Become Available After Start
emr.target_emr become available after the session starts, use PATCH to send those fields before ending the session.Note Sections Change Before Stop
Note Sections Change Before Stop
sections. Send the complete new sections list because the value replaces the previous list.All Visit Context Is Available at Start
All Visit Context Is Available at Start
What to send
Update context follows the same send and do-not-send rules as Provide visit context.Send
- A newly added diagnosis (ICD10 or IMO only)
- Medication orders that become available after Start
emr.target_emrwhen it becomes available after Start- A changed
sectionslist (send the complete list you want)
Do Not Send
Recommended workflow
If you are building your own ambient experience with the Ambient APIs or Headless modalities, connect chart changes to the active ambient session.Create the Ambient Session
ambient_session_id.Seed Context When Available
Start and Continue the Visit
Update Context as Information Changes
Finish Pending Updates Before End
RU9G → End flow. See Complete an ambient visit.Example code to update note sections
Send only the fields you want to change. In this example, thesections value replaces the previous section list.
- TypeScript
- Python
Common FAQs
Does PATCH Require an Active Session?
Does PATCH Require an Active Session?
ambient_session_id from the create request, and the Ambient session must not have ended.Do I Need to Send the Full Context with PATCH?
Do I Need to Send the Full Context with PATCH?
Do Updated Fields Append or Replace Previous Values?
Do Updated Fields Append or Replace Previous Values?
sections, send the complete list you want for the session.Can I Update Context While Recording?
Can I Update Context While Recording?
Can I Update Context After End?
Can I Update Context After End?
Can I Send HCC or Personalization Fields?
Can I Send HCC or Personalization Fields?
verbosity, or section_format in update context. The same exclusions apply to seed context.