MountOptions type to create a mount options object.
JavaScript
type MountOptions = {
rootElement: HTMLElement;
encounter: Encounter;
uiOptions?: UIOptions;
ambientOptions?: AmbientOptions;
};
Properties
Hide properties
Hide properties
HTMLElement
required
The DOM element to mount the SDK into. Should be an empty container element.
Encounter
required
Full
Encounter payload. patient.identifier is required. encounter.identifier is optional. Each value must be at most 36 characters () when present.-
From Web SDK v3.2.0, if you set
encounter.identifier, use a UUID. The Web SDK maps that value toemr_encounter_idfor ambient interoperability and encounter note retrieval. Non-UUID values can break past-note loading even when ambient session start, pause, and submit still work. Refer to Encounter type definition for more information. -
From Web SDK v3.3.0, set
encounter.practitionerFhirId(FHIR practitioner id) together withencounter.identifier(FHIR encounter id) when you initialize and when you mount if you want Patient Summary on the headed patient profile. Generation runs at login from the initialize options.setEncounterloads another encounter’s summary. Initialize again to generate for a different practitioner. Refer to Patient Summary in Web SDK for more information.
UIOptions
UI configuration options.
AmbientOptions
Ambient session configuration options.