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
Configuration rules
1
Single PBN Section
Only one section can have
isPBNSection: true. If multiple sections are marked as PBN, the ambient session will fail to start.2
Explicit Flag Values
Explicitly pass
true or false for the isPBNSection flag. The value provided will be respected as-is.3
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.4
Override Default
If you explicitly set
isPBNSection: false on the Assessment & Plan section, the automatic default behavior will not apply.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"ICD10". - 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 ICD10 is supported for the diagnoses you pass in. Output can include ICD10, 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.