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

# EMR Info

> Identify the target EMR for an ambient session with `kEmrInfo` and `kTargetEmr` in setSessionContext

EMR info lets you identify which EMR applies to an ambient session so Suki can associate context with the correct system for that encounter.

Pass `SukiAmbientConstant.kEmrInfo` in `setSessionContext(with:)` after you create the session. When you include this parameter, `kTargetEmr` is required.

<ResponseField name="SukiAmbientConstant.kEmrInfo" type="dictionary" required={false}>
  Use this parameter to identify which EMR applies to an ambient session. Provide a string identifier that matches what your integration and Suki use for that EMR (for example a vendor code or environment-specific label).

  <Expandable title="properties" defaultOpen={true}>
    <ResponseField name="SukiAmbientConstant.kTargetEmr" type="string" required>
      The target EMR for this encounter. Provide a string identifier that matches what your integration and Suki use for that EMR (for example a vendor code or environment-specific label).
    </ResponseField>
  </Expandable>
</ResponseField>

**Code example**:

```swift Swift theme={"theme":{"light":"one-light","dark":"material-theme-darker"}}
do {
    let contextDetail: [String: AnyHashable] = [
        SukiAmbientConstant.kEmrInfo: [
            SukiAmbientConstant.kTargetEmr: "<emr_identifier>" // Required when you send kEmrInfo
        ]
    ]

    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" /> **[Note sections](/mobile-sdk/ambient-guides/note-sections)** - Choose LOINC sections for the generated note.

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