> ## Documentation Index
> Fetch the complete documentation index at: https://developer.suki.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Problem-Based Charting

> Problem-based clinical documentation approach with diagnosis context integration

**Updates**

**Updated**

* Ambient API structured data now includes **HCC** codes alongside ICD10, IMO, and SNOMED for each suggested diagnosis.
* For how Ambient APIs reconcile seeded diagnoses with the conversation, refer to [Reconciliation](https://developer.suki.ai/api-reference/capabilities/problem-based-charting.md#reconciliation).

Quick summary

Problem-Based Charting (PBC) organizes clinical notes by patient problems instead of traditional note sections. You can pass existing diagnoses into the session so the note stays grounded in the patient's problem list. When you need suggested ICD-10 and related codes after an Ambient API session, retrieve them from structured data. The Headed Web SDK does not auto-generate ICD-10 codes for new problems.

Last updated:
October 2026

> [!NOTE]
>
> **Problem-Based Charting is supported by:** Ambient APIs, Web SDK, Mobile SDK

> [!WARNING]
>
> The Headed Web SDK does not auto-generate ICD-10 codes for new problems discussed during the visit. You can still enable Problem-Based Charting and seed existing EMR diagnoses with ICD-10. For suggested diagnosis codes (ICD10, IMO, SNOMED, and HCC), retrieve [Ambient session structured data](https://developer.suki.ai/api-reference/ambient-content/structured-data.md) or [Encounter structured data](https://developer.suki.ai/api-reference/ambient-content/encounter-structured-data.md) after an Ambient API session.

Problem-Based Charting (PBC) organizes clinical notes by patient problems instead of traditional note sections. When you use PBC, Suki generates a clinical note organized by each problem or diagnosis.

* **With Ambient APIs**, you can also retrieve structured diagnosis output: suggested diagnoses with ICD10, IMO, SNOMED, and HCC codes when available.

* PBC notes are different from traditional notes. In normal clinical notes, information is organized by sections like "History," "Assessment," and "Plan." In PBC notes, information is organized by **each problem**, grouping all related information together.

When you enable PBC, providers get a note that has the following benefits:

* **Easier to read**: See everything about each problem in one place.
* **Better continuity**: Include existing problems from previous visits when you pass diagnoses into session context.
* **Complete picture**: Capture both old and new problems discussed during the visit.
* **Structured data (Ambient APIs)**: Retrieve standardized codes (ICD10, IMO, SNOMED, and HCC) for EHR integration. The headed Web SDK does not auto-generate these codes yet.

## How Problem-Based Charting improves clinical documentation

Problem-Based Charting improves documentation by organizing the note around clinical problems. With Ambient APIs, you can also retrieve coded diagnoses for EHR write-back.

| What you configure | How the note gets better |
| - | - |
| One PBN section (for example Assessment & Plan) | Related history, assessment, and plan content groups under each problem |
| Existing patient diagnoses in session context | Continuity of care is reflected instead of treating every visit as a blank slate |
| Structured diagnosis output after generation (Ambient APIs) | Suggested ICD10, IMO, SNOMED, and HCC codes support coding and EHR workflows |

Traditional section-based notes can scatter details about one problem across the note. PBC keeps problem-specific content together. With Ambient APIs, you can also retrieve structured diagnosis artifacts for review, coding, and EHR submission.

## How to enable PBC using APIs and SDKs

You enable PBC by completing the following steps:

* Define which note sections to generate and which one is the PBN.
* Pass the patient's existing diagnoses into session context when you have them.
* After the session finishes, read the note. With Ambient APIs, also retrieve structured diagnosis output when you need suggested codes.

**Workflow tabs (agents):** (1) Configure sections for PBC / mark one PBN section, (2) Provide existing diagnoses in context, (3) Retrieve diagnosis results after processing. Details differ by Web SDK, Ambient APIs, and Mobile SDK.

> [tab] Configure Sections for PBC
>
> > [card] Web SDK
> >
> > In `ambientOptions.sections`, set `isPBNSection: true` on **exactly one** section. Rules for defaults, overrides, and errors are in [Configuration rules](https://developer.suki.ai/api-reference/capabilities/problem-based-charting.md#configuration-rules-for-pbc).
>
> > [card] Ambient APIs
> >
> > Send the LOINC `sections` array in the [Context API](https://developer.suki.ai/api-reference/ambient-sessions/context.md) body so the Suki backend knows which note sections to generate. PBN defaults (for example, when Assessment & Plan, LOINC `51847-2`, is treated as the PBN) follow the same rules as in [Configuration rules](https://developer.suki.ai/api-reference/capabilities/problem-based-charting.md#configuration-rules-for-pbc).
>
> > [card] Mobile SDK (iOS)
> >
> > Pass LOINC sections in `kSections` via `setSessionContext`. See the Mobile SDK [Create session](https://developer.suki.ai/mobile-sdk/ambient-guides/provide-clinical-context.md) guide for field names and examples.

> [tab] Provide Existing Diagnoses
>
> > [card] Ambient APIs
> >
> > Include diagnoses when you POST (and, if needed, PATCH) session context.
>
> > [card] Web SDK
> >
> > Use `ambientOptions.diagnoses`. Refer to the [AmbientOptions type](https://developer.suki.ai/web-sdk/api-reference/types/ambient-options.md) for more details.
>
> > [card] Mobile SDK (iOS)
> >
> > Use `SukiAmbientConstant.kDiagnosisInfo` in `setSessionContext`. Refer to the Mobile SDK [Create session](https://developer.suki.ai/mobile-sdk/ambient-guides/provide-clinical-context.md) guide for more details.

> [tab] Retrieve Diagnosis Results
>
> > [card] Ambient APIs
> >
> > After the session has finished processing, use the [Structured Data](https://developer.suki.ai/api-reference/ambient-content/structured-data.md) or [Encounter Structured Data](https://developer.suki.ai/api-reference/ambient-content/encounter-structured-data.md) APIs to read suggested diagnoses and codes.
>
> > [card] Mobile SDK (iOS)
> >
> > After the session completes, call `getStructuredData(for:)`. See [Check status and retrieve content](https://developer.suki.ai/mobile-sdk/ambient-guides/check-status-and-retrieve-content.md#get-structured-data).
>
> > [card] Web SDK
> >
> > After note generation succeeds, read the note from **`onNoteSubmit`** (React) or **`note-submission:success`** (JavaScript and React). A section can include a `diagnosis` object when you passed that problem into the session and it was discussed. The Headed Web SDK **does not auto-generate** ICD-10 codes for new problems. Refer to [Receiving note content](https://developer.suki.ai/web-sdk/guides/note-management.md#receiving-note-content), [Response structure](https://developer.suki.ai/web-sdk/guides/note-management.md#response-structure), and [Diagnosis](https://developer.suki.ai/web-sdk/api-reference/types/diagnosis.md).

## Implementation examples

**Implementation example tabs (agents):** Web SDK (`ambientOptions.diagnoses` / `isPBNSection`), Mobile SDK iOS (`kDiagnosisInfo` / `getStructuredData`), and Ambient APIs (Context API + structured data endpoints). Use the tab that matches your integration.

> [tab] Web SDK
>
> Use the `diagnoses` block in `ambientOptions` to provide existing patient diagnoses when starting a session.
>
> **Code example:**
>
> ```javascript JavaScript theme={"theme":{"light":"one-light","dark":"material-theme-darker"}}
> sdkClient.mount({
>   rootElement: document.getElementById("suki-root"),
>   encounter: encounterDetails,
>   ambientOptions: {
>     sections: [
>       { loinc: "51847-2", isPBNSection: true }, // Assessment and Plan as PBN
>       { loinc: "11450-4" }, // Problem List
>       { loinc: "29545-1" }, // Physical Exam
>     ],
>     diagnoses: { // [!code ++:14] New in v2.1.2
>       values: [
>         {
>           codes: [
>             {
>               code: "I10",
>               description: "Essential hypertension",
>               type: "ICD10",
>             },
>           ],
>           diagnosisNote: "Hypertension",
>         },
>       ],
>     },
>   },
> });
> ```

> [tab] Mobile SDK (iOS)
>
> Use `setSessionContext` to pass LOINC sections and structured diagnosis information. After the session ends, call `getStructuredData(for:)` to retrieve diagnoses and other structured output. Refer to the Mobile SDK [Create session](https://developer.suki.ai/mobile-sdk/ambient-guides/provide-clinical-context.md) guide for more details.
>
> **Code example:**
>
> ```swift Swift theme={"theme":{"light":"one-light","dark":"material-theme-darker"}}
> let context = SukiAmbientContext(
>   sections: [
>     SukiAmbientSection(loinc: "51847-2", isPBNSection: true), // Assessment and Plan as PBN
>     SukiAmbientSection(loinc: "11450-4"), // Problem List
>     SukiAmbientSection(loinc: "29545-1"), // Physical Exam
>   ],
>   diagnosisInfo: [
>     SukiAmbientDiagnosisInfo(
>       codes: [
>         SukiAmbientCode(code: "I10", description: "Essential hypertension", type: .icd10),
>       ],
>       diagnosisNote: "Hypertension",
>     ),
>   ],
> )
> ```

> [tab] Ambient APIs
>
> Use the [Context API](https://developer.suki.ai/api-reference/ambient-sessions/context.md) to provide existing patient diagnoses when starting a session.
>
> **Code example:**
>
> ```python Python theme={"theme":{"light":"one-light","dark":"material-theme-darker"}}
> payload = {
>   "diagnoses": {
>     "values": [
>       {
>         "codes": [
>           {
>             "code": "I10",
>             "description": "Essential hypertension",
>             "type": "ICD10",
>           },
>         ],
>         "diagnosis_note": "Hypertension",
>       },
>     ],
>   },
> }
> ```
>
> **APIs to use:**
>
> > [card] [POST Context API](https://developer.suki.ai/api-reference/ambient-sessions/context.md)
> >
> > Provide initial diagnoses when starting a session.
>
> > [card] [PATCH Update Context API](https://developer.suki.ai/api-reference/ambient-sessions/update-context.md)
> >
> > Update or add diagnoses during a session.

## Configuration rules for PBC

When configuring PBC, follow these 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. Default Behavior**

If no section includes the `isPBNSection` flag and the Assessment & Plan section (51847-2) is present, that section automatically becomes the PBN.

**3. Explicit Override**

Explicitly set `isPBNSection: false` to prevent automatic PBN assignment.

> [!WARNING]
>
> For a given ambient session, **only one section** can have `isPBNSection: true`. If more than one section is marked as PBN, the ambient session will fail to start.

## Core principles

Understanding these principles helps you use PBC effectively:

> [accordion] ICD10 Source of Truth
>
> The ICD10 (International Classification of Diseases, 10th Revision - a medical classification system used for coding diagnoses) code is treated as the **primary identifier** for all clinical problems during processing.
>
> **System uses ICD10 for:**
>
> * Diagnosis identification and matching.
>
> * Clinical problem categorization.
>
> * Cross-session diagnosis continuity.
>
> * Normalization of other code types (IMO (Intelligent Medical Objects - a healthcare terminology company providing clinical code mapping services), SNOMED).
>
> > [!NOTE]
> >
> > Non-ICD10 codes are automatically converted to ICD10 equivalents when possible.

> [accordion] Best-Effort Generation
>
> All diagnosis generation is done on a **best-effort** basis. The system prioritizes returning partial, useful information over failing an entire request due to an issue with a single data point.

> [accordion] Clean Slate Sessions
>
> In reambient scenarios, diagnoses from previous sessions are **not automatically carried forward**. You must provide the full context for each new session.
>
> > [!TIP]
> >
> > **Your Responsibility**: Include all relevant diagnoses (previous + new + modified) in each session context.

## How PBC works

PBC processes diagnoses in three steps:

**1. Provide Existing Diagnoses**

You provide existing diagnoses when starting the session using the Context APIs.

**2. Suki Analyzes Conversation**

Suki's AI analyzes the conversation and identifies new problems or updates to existing diagnoses.

**3. Generate Structured Output**

Suki generates a clinical note organized by problem. With Ambient APIs, you can also retrieve structured diagnosis artifacts with standardized codes when available.

![Flowchart: Session audio/transcript, ML processing, Suki Backend, Valid ICD10?, Case 1: Enrich with IMO Add description, laterality, IMO code, Case 2: Enrich with IMO Add ICD10, description, laterality, IMO code, Final Output Problems with Code, Description, Diagnosis Note.](https://mintcdn.com/suki-1e08f176/HfXbHQ0lwV49LGrg/documentation/assets/diagrams/api-reference-capabilities-problem-based-charting-1-light.svg?fit=max\&auto=format\&n=HfXbHQ0lwV49LGrg\&q=85\&s=39f1be705204c93872e5de709a9e16b7)

```mermaid actions={false} theme={"theme":{"light":"one-light","dark":"material-theme-darker"}}
%%{init: {'theme':'base', 'themeVariables': { 'primaryColor':'#FFE148','primaryTextColor':'#111827','primaryBorderColor':'#FFE148','lineColor':'#FFE148','secondaryColor':'#FFF394','tertiaryColor':'#FFFADE','mainBkg':'#FFF394','secondBkg':'#FFFADE','tertiaryBorderColor':'#FFE148','border1':'#FFE148','border2':'#FFE148','arrowheadColor':'#FFE148','fontFamily':'Inter, system-ui, sans-serif','fontSize':'14px','nodeBorder':'#FFE148','edgeLabelBackground':'#FFE148','clusterBkg':'#FFFADE','clusterBorder':'#FFE148','defaultLinkColor':'#FFE148','titleColor':'#111827','nodeTextColor':'#111827'}}}%%
flowchart TD
    A[Session audio/transcript] --> B[ML processing]
    B --> C[Suki Backend]
    C --> D{Valid ICD10?}
    D -->|Yes| E[Case 1: Enrich with IMO<br/>Add description, </br>laterality, IMO code]
    D -->|No| F[Case 2: Enrich with IMO<br/>Add ICD10, description, </br>laterality, IMO code]
    E --> G[Final Output<br/>Problems with Code, </br> Description, Diagnosis Note]
    F --> G

    style A fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#111827
    style B fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#111827
    style C fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#111827
    style D fill:#FFE148,stroke:#FFE148,stroke-width:2px,color:#111827
    style E fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#111827
    style F fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#111827
    style G fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#111827
```

> [!NOTE]
>
> With Ambient API structured data, Suki returns the suggested problem name with standardized ICD10, description, and IMO when enrichment succeeds.

### Validation rules

Each diagnosis in your request must follow these rules:

* **One code per diagnosis**: Each diagnosis must have exactly one code (ICD10 or IMO).
* **No mixed codes**: A single diagnosis cannot contain multiple code types.
* **Code required**: Every diagnosis must include a code.

### Input processing

Suki processes diagnoses through normalization and deduplication:

> [!WARNING]
>
> Normalization does not preserve the original input code. If a code cannot map to an ICD10 equivalent, **Suki skips the entire diagnosis object** and continues processing the remaining input.

### Reconciliation flow for APIs and SDKs

When you send existing diagnoses at session start, Suki reconciles them with what is discussed during the visit. Matching problems are merged into one entry, so the output stays free of duplicates.

For Ambient APIs, send diagnoses through the Context API, then retrieve results from the Structured Data API. For the Web SDK, pass diagnoses in `ambientOptions.diagnoses`. Refer to [Existing patient diagnoses](https://developer.suki.ai/web-sdk/guides/ambient-problem-based-charting.md#existing-patient-diagnoses) for the Web SDK flow.

**What happens to each diagnosis you send:**

* **Discussed in the session**: The diagnosis is updated and returned in Ambient API structured data. On the Web SDK, it can appear on the note when that problem was discussed.
* **Not discussed in the session**: The diagnosis is not included in the final output.
* **Matches something discussed**: Your diagnosis and the one discussed are merged into a single entry (no duplicate).

> [!NOTE]
>
> The Structured Data API returns only diagnoses that were updated or newly generated.

### How diagnoses are generated

During the session, Suki analyzes the conversation and takes one of three actions on the diagnoses you provided:

1. **Update existing diagnosis**: Modify the content if it was discussed.
2. **Generate new diagnosis**: Create a new diagnosis if a new problem was discussed.
3. **Keep unchanged**: Leave a diagnosis untouched if it wasn't significantly discussed.

> [!NOTE]
>
> With Ambient APIs, **new** and **updated diagnoses** can include suggested codes in structured data.
> With the Headed Web SDK, you can pass existing ICD-10 diagnoses into the session and generate a problem-based note but you **cannot** auto-generate ICD-10 codes for **new** problems.

> [!WARNING]
>
> For Ambient API structured data, only diagnoses that were **updated or newly generated** are returned. Untouched diagnoses are not returned. If a diagnosis wasn't discussed, it won't appear in the output.

### Output enrichment

For Ambient API structured data, when a diagnosis was updated or newly generated, Suki can enrich it with:

* **ICD10 code**: Standard diagnosis code.
* **IMO code**: Intelligent Medical Objects code.
* **SNOMED code**: SNOMED CT code (when available).
* **HCC code**: Returned in structured-data output as `"type": "HCC"` when a mapping exists for that problem. Do not send HCC in session context.

> [!NOTE]
>
> CMS-HCC model category derived from the ICD-10-CM code. The description uses the format \`CMS-HCC model category.

* **Laterality**: Left/right/bilateral information when applicable.
* **Post coordination flag**: Indicates if the diagnosis requires additional modifiers.

> [!NOTE]
>
> The IMO code returned in the output may be different from any IMO code that was sent in the input payload. This is normal: Suki uses the most accurate code based on the conversation content.

If enrichment fails, Suki still returns the diagnosis with available information so you do not lose generated content. This enrichment does not apply to the headed Web SDK today.

### Retrieving generated diagnoses

Refer to the [How to enable PBC using APIs and SDKs](https://developer.suki.ai/api-reference/capabilities/problem-based-charting.md#how-to-enable-pbc-using-apis-and-sdks) section for more details.

## Handling re-Ambient scenarios

In reambient scenarios, where a single patient encounter involves multiple recording sessions, understanding how context is managed is critical.

> [!WARNING]
>
> Sessions do not **automatically inherit diagnoses** from previous sessions. Each session starts fresh. You must provide all relevant diagnoses for each new session.
>
> **What this means:**
>
> * When you use APIs in your implementation, only diagnoses passed via the Context APIs for the current session are considered.
> * Diagnoses from previous sessions are **not automatically carried forward**.
> * You must provide the complete and current list of all relevant diagnoses for each new session.

**Your responsibilities:**

Because sessions don't inherit context, you must provide the complete list of all relevant diagnoses for each new session. This includes:

* **Modified diagnoses**: Any diagnoses that were changed by the provider in previous sessions.
* **New diagnoses**: Any newly added diagnoses from previous sessions.
* **Existing diagnoses**: Diagnoses from previous sessions that should be retained.

**Recommended workflow:**

![Flowchart: Start session, Context with existing diagnoses, Conduct encounter, End session, Get generated diagnoses, Reambient session?, Include all relevant diagnoses, Complete.](https://mintcdn.com/suki-1e08f176/HfXbHQ0lwV49LGrg/documentation/assets/diagrams/api-reference-capabilities-problem-based-charting-2-light.svg?fit=max\&auto=format\&n=HfXbHQ0lwV49LGrg\&q=85\&s=ba20a66cf4ac21ebcb8666560b6787b0)

```mermaid actions={false} theme={"theme":{"light":"one-light","dark":"material-theme-darker"}}
%%{init: {'theme':'base', 'themeVariables': { 'primaryColor':'#FFE148','primaryTextColor':'#1a1a1a','primaryBorderColor':'#FFE148','lineColor':'#FFE148','secondaryColor':'#FFF394','tertiaryColor':'#FFFADE','mainBkg':'#FFF394','secondBkg':'#FFFADE','border1':'#FFE148','border2':'#FFE148','arrowheadColor':'#FFE148','fontFamily':'Inter, system-ui, sans-serif','fontSize':'14px','nodeBorder':'#FFE148','clusterBkg':'#FFFADE','clusterBorder':'#FFE148','defaultLinkColor':'#FFE148','titleColor':'#1a1a1a','edgeLabelBackground':'#FFE148','nodeTextColor':'#1a1a1a'}}}%%
graph TD
    A[Start session] --> B[Context with<br>existing diagnoses</br>]
    B --> C[Conduct encounter]
    C --> D[End session]
    D --> E[Get generated<br>diagnoses</br>]
    E --> F{Reambient session?}
    F -->|Yes| G[Include all<br>relevant diagnoses</br>]
    F -->|No| H[Complete]
    G --> B

    style A fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#1a1a1a
    style B fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#1a1a1a
    style C fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#1a1a1a
    style D fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#1a1a1a
    style E fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#1a1a1a
    style F fill:#FFE148,stroke:#FFE148,stroke-width:2px,color:#1a1a1a
    style G fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#1a1a1a
    style H fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#1a1a1a
```

> [!NOTE]
>
> After each session, retrieve the generated diagnoses using the Structured Data API, then include all relevant diagnoses (including any modifications) when starting the next session.

## Best practices

> [!TIP]
>
> * **Provide complete context**: Always include all relevant existing diagnoses when starting a session.
> * **Use ICD10 when possible**: ICD10 codes are preferred and processed most reliably.
> * **Handle reambient carefully**: Retrieve diagnoses after each session and include them in the next session.
> * **Validate codes**: Ensure diagnosis codes are valid before sending them.
> * **Monitor output**: Check which diagnoses were updated or generated to understand what was discussed.
> * **Update after user edits**: If providers modify diagnoses, include those modifications in subsequent sessions.

## FAQs

> [accordion] How Does the System Handle Reambient Scenarios?
>
> In reambient scenarios, the system does not automatically carry forward diagnoses from previous sessions. You must provide the complete and current list of all relevant diagnoses for each new session.

> [accordion] How Does the System Handle Non-ICD10 Codes?
>
> The system uses [IMO APIs](https://www.imohealth.com/) to find the best possible ICD10 code equivalent for non-ICD10 codes. If a code cannot be mapped, that diagnosis is skipped.

> [accordion] How Does Diagnosis Normalization Work?
>
> The system normalizes all codes to ICD10 before processing. ICD10 is used as the source of truth for all diagnosis operations.

> [accordion] How Does Diagnosis Deduplication Work?
>
> The system deduplicates diagnoses based on the ICD10 code. Diagnoses with the same ICD10 code are merged, and their notes are combined.

> [accordion] Why Aren't All Input Diagnoses Returned?
>
> Only diagnoses that were updated or newly generated are returned. Diagnoses that weren't discussed during the session are not included in the output.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.