UpdatedThe
diagnoses block in ambientOptions is supported in the Web SDK v2.1.2. Pass the patient’s existing diagnoses (e.g. from the EMR) so the session merges them with what’s discussed in the visit. Refer to the Existing patient diagnoses guide for more details.isPBNSection: true on that section in ambientOptions (using the section’s LOINC code).
Implementation
- JavaScript
- React
JavaScript
Configuration rules
Single PBN section
Only one section can have
isPBNSection: true. If multiple sections are marked as PBN, the ambient session will fail to start.Explicit flag values
Explicitly pass
true or false for the isPBNSection flag. The value provided will be respected as-is.Default behavior
If no section includes the
isPBNSection flag (i.e., left undefined) and the Assessment & Plan section (51847-2) is present, that section will automatically be treated as the PBN.Existing patient diagnoses
Pass the patient’s current diagnoses (e.g. from the EMR) into the session using thediagnoses block in the ambientOptions object. The SDK automatically merges them with what’s discussed during the visit so the note has one problem list and no duplicates.
When you switch to a new patient or encounter, pass that encounter’s diagnoses in ambientOptions; see Update encounter and ambient options for more details.
Diagnoses can be seeded only at the start of the first session in an encounter.
Requirements for passing diagnoses
- You must have at least one PBC section in your
ambientOptions.sections(setisPBNSection: true). - For each diagnosis you pass in:
- Include exactly one code in the
codesarray. - Set the code
typeto"ICD-10". - Provide at least one of
codeordescription(you can provide both). diagnosis_noteis optional.
- Include exactly one code in the
Things to Keep in Mind
- Input: Only ICD-10 is supported for the diagnoses you pass in. Output can include ICD-10, IMO, and SNOMED.
- AutoCoding: Off by default so your seeded data is used as is.
ResponseThe response is unchanged when you pass diagnoses. You receive the same object (
noteId, encounterId, contents) via onNoteSubmit or note-submission:success.For the full response structure, refer to Note management - Response structure.Next steps
- Track session state: Ambient session status
- Multilingual sessions: Multilingual support
- Return to Ambient session overview