Quick summary
Create an interoperable ambient session with
emr_encounter_id to make the note interoperable. Use the same encounter_id for every re-ambient session on that note. Pass composition_id as note_id to retrieve the latest note content.1
Create an Ambient Session
Create an ambient session with
emr_encounter_id and encounter_id for an interoperable re-ambient workflow.2
Seed Patient Context
Seed patient context when the Web SDK may open the note later.
3
Capture Audio
Capture audio on one ambient modality.
4
Continue or Re-Ambient
Continue or re-ambient on another ambient product using the same
emr_encounter_id and encounter_id.5
Retrieve the Shared Clinical Note
Use the
note_id to retrieve the shared clinical note content and structured data using the note-level Ambient APIs.Example flow
To retrieve the latest note text, pass the returnedcomposition_id as note_id to the following API:
Step 1: Create an interoperable ambient session
Use the Create ambient session API to create a new interoperable ambient session. For a session to be interoperable, pass:emr_encounter_id: required EMR or EHR encounter UUID for the patient visit.encounter_id: groups re-ambient sessions for the same note. Reuse the same value for every re-ambient session on that note.ambient_session_id: optional UUID for this recording session.
Example request
cURL
Example response
JSON
Step 2: Store identifiers returned by the API
After you create the new ambient session using the REST API, store the identifiers in your application.Store
emr_encounter_id, encounter_id, and composition_id as these are the identifiers you will use to create and continue interoperable ambient sessions on another modality.Step 3: Seed patient context
The Web SDK requires patient information to display the patient profile. The Mobile SDK and Ambient APIs do not require these fields to create or continue an ambient session. Before the clinician opens the shared note in the Web SDK, call the Seed ambient session context API to provide the patient details.Example request
cURL
patient_id.name.dob.sex.
Seed the patient context before opening the Web SDK
- If you open the Web SDK before seeding the patient context, the shared note opens without a patient profile.
- If no patient context is provided for a new
emr_encounter_id, the Web SDK cannot load or create a note for that encounter. - If no patient context is provided for an existing
emr_encounter_id, providers cannot resume (re-ambient) the existing note.
Step 4: Capture audio on the first modality
Use the ambient modality that fits the first part of the visit: Record and complete that ambient session the same way you normally would for that product.Step 5: Continue or re-Ambient on another modality
To continue the same clinical note from a different ambient modality, create a new ambient session and:- Pass the same
emr_encounter_id(used asencounter.identifierin the Web SDK). - Pass the same
encounter_id(for Mobile SDK and Ambient APIs only).
The
encounter_id is required for every re-ambient session on that note when using the Mobile SDK or Ambient APIs. The Web SDK does not pass or require an encounter_id to continue or re-ambient the clinical note.Scenario example
- Mobile SDK starts ambient with
kEmrEncounterId = A(maps toemr_encounter_id) andkSessionId = G(maps toencounter_id). - Create returns
sessionIdand, for online creates,compositionId = N. StorecompositionIdas the note id and storeGfor re-ambient. - Later, another product continues or re-ambients:.
- The Web SDK starts a session using
encounter.identifier = A(maps toemr_encounter_id). It does not need or passencounter_idto continue noteN. - Or, the Ambient APIs create another session with
emr_encounter_id = Aandencounter_id = G.
- The Web SDK starts a session using
- Both ambient sessions belong to clinical note
N.
Step 6: Retrieve the shared clinical note
After ambient sessions complete, or after a clinician edits the note in the Web SDK, pass the returnedcomposition_id as note_id to the note-level Ambient APIs.