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

# Note Sections

> Specify clinical note sections with LOINC codes using `kSections` in setSessionContext

Note sections let you choose which clinical sections appear in the generated note by passing LOINC codes in session context.

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

<ResponseField name="SukiAmbientConstant.kSections" type="array of dictionaries" required={false}>
  An array of LOINC codes that specify which clinical note sections you want in the generated note. Each dictionary contains a LOINC code.

  <Note>
    You only need to provide LOINC codes. The SDK automatically generates the appropriate clinical section titles based on the codes you provide.
  </Note>
</ResponseField>

**Code example**:

```swift Swift theme={"theme":{"light":"one-light","dark":"material-theme-darker"}}
do {
    let contextDetail: [String: AnyHashable] = [
        SukiAmbientConstant.kSections: [
            [SukiAmbientConstant.kCode: "51848-0", SukiAmbientConstant.kCodeType: "loinc"],
            [SukiAmbientConstant.kCode: "11450-4", SukiAmbientConstant.kCodeType: "loinc"]
        ]
    ]

    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" /> **[Diagnosis info](/mobile-sdk/ambient-guides/diagnosis-info)** - Pass structured diagnosis notes and codes.

<Icon icon="file-lines" iconType="solid" /> **[Recording controls](/mobile-sdk/ambient-guides/recording)** - Start, pause, and resume recording.


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