Updated
v2.2.0+ Added additional optional session-level metadata: Pass visit context (visitType, encounterType, reasonForVisit, chiefComplaint) and providerRole in ambientOptions to improve note generation. Pass these at session init (e.g. in mount or when calling setAmbientOptions).Overview
AmbientOptions type represents the configuration options for ambient session functionality. The code snippet below shows how to use theAmbientOptions type to create an ambient options object.
JavaScript
Properties
Array of clinical note LOINC sections to generate suggestions for
Optional - Pass the patient’s existing diagnoses (e.g. from the EMR) when PBC is enabled so the session merges them with what’s discussed and avoids duplicate problems. Each diagnosis needs one ICD-10 code. See Existing patient diagnoses for details.
Optional - Type of visit (e.g.
NEW_PATIENT, ESTABLISHED_PATIENT, WELLNESS, ED). Also refer to Visit types for available enum values.In the Web SDK UI, this value is used to set the title for the generated note in the patient note list when present, so clinicians see a meaningful label (for example,
NEW_PATIENT or ESTABLISHED_PATIENT) instead of the generic Note label across multiple notes from the same day.Optional - Setting of the encounter (e.g.
AMBULATORY, INPATIENT, ED).Optional - Provider’s role in the encounter (e.g.
PRIMARY/ATTENDING, CONSULTING). Also refer to Provider roles for available enum values.Optional - Free-text reason for the visit. Maximum 255 characters. Helps focus the note on the primary reason for the visit.
Optional - Patient’s primary complaint or concern. Maximum 255 characters. Helps structure the chief complaint section of the note.