> ## 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.

# Diagnosis Info

> Pass structured diagnosis notes and codes with `kDiagnosisInfo` in setSessionContext

Diagnosis info lets you pass structured diagnosis notes and codes so Suki can better identify and code conditions discussed during the encounter.

Pass `SukiAmbientConstant.kDiagnosisInfo` in `setSessionContext(with:)` after you create the session. This parameter is optional.

<ResponseField name="SukiAmbientConstant.kDiagnosisInfo" type="array of dictionaries" required={false}>
  Structured diagnosis information that helps the AI identify and code conditions discussed during the encounter. Each dictionary represents one diagnosis.

  <Expandable title="properties" defaultOpen={true}>
    <ResponseField name="SukiAmbientConstant.kDiagnosisNote" type="string" required={false}>
      A text note describing the diagnosis or condition.
    </ResponseField>

    <ResponseField name="SukiAmbientConstant.kCodes" type="array of dictionaries" required={false}>
      An array of diagnosis codes. Each code dictionary must contain:

      <Expandable title="code properties" defaultOpen={true}>
        <ResponseField name="SukiAmbientConstant.kCodeType" type="string" required>
          The coding system used (e.g., "ICD-10", "IMO", "SNOMED").
        </ResponseField>

        <ResponseField name="SukiAmbientConstant.kCode" type="string" required>
          The actual diagnosis code.
        </ResponseField>

        <ResponseField name="SukiAmbientConstant.kCodeDescription" type="string" required={false}>
          A human-readable description of what the code represents. Recommended for clarity.
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

**Code example**:

```swift Swift theme={"theme":{"light":"one-light","dark":"material-theme-darker"}}
do {
    let contextDetail: [String: AnyHashable] = [
        SukiAmbientConstant.kDiagnosisInfo: [
            [
                SukiAmbientConstant.kDiagnosisNote: "Patient presents with chest pain",
                SukiAmbientConstant.kCodes: [
                    [
                        SukiAmbientConstant.kCodeType: "ICD-10",
                        SukiAmbientConstant.kCode: "R06.02",
                        SukiAmbientConstant.kCodeDescription: "Shortness of breath"
                    ]
                ]
            ]
        ]
    ]

    try SukiAmbientCoreManager.shared.setSessionContext(with: contextDetail) { result in
        switch result {
        case .success:
            print("Context updated successfully")
        case .failure(let error):
            print("Error updating context: \(error)")
        }
    }
} catch {
    print(error)
}
```

## Next steps

<Icon icon="file-lines" iconType="solid" /> **[Provide clinical context](/mobile-sdk/ambient-guides/provide-clinical-context)** - Full `setSessionContext` overview and combined example.

<Icon icon="file-lines" iconType="solid" /> **[Orders info](/mobile-sdk/ambient-guides/orders-info)** - Structured medication orders from the ambient visit.

<Icon icon="file-lines" iconType="solid" /> **[Check status and retrieve content](/mobile-sdk/ambient-guides/check-status-and-retrieve-content#get-structured-data)** - Pull structured diagnosis output.


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