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

# Patient Info

> Pass patient demographics, partner or EMR patient id, and structured name with `kPatientInfo` in setSessionContext

Patient info lets you attach demographics and identifiers to an ambient session so Suki can personalize note generation for the patient in the encounter.

Pass `SukiAmbientConstant.kPatientInfo` in `setSessionContext(with:)` after you create the session. All fields are optional.

<ResponseField name="SukiAmbientConstant.kPatientInfo" type="dictionary" required={false}>
  Use this parameter to provide demographic information that helps personalize the note generation.

  <Note>
    You can now pass a **partner** or **EMR patient id** and a **structured patient name** when you have them.
  </Note>

  <Expandable title="properties" defaultOpen={true}>
    <ResponseField name="SukiAmbientConstant.kBirthdate" type="date" required={false}>
      Patient's date of birth in yyyy-mm-dd format.
    </ResponseField>

    <ResponseField name="SukiAmbientConstant.kGender" type="string" required={false}>
      Patient's gender. Valid values: "MALE" or "FEMALE".
    </ResponseField>

    <ResponseField name="SukiAmbientConstant.kPatientId" type="string" required={false}>
      Partner or EMR patient identifier. String key: `"patient_id"`. Optional.
    </ResponseField>

    <ResponseField name="SukiAmbientConstant.kPatientName" type="dictionary" required={false}>
      Structured patient name. String key: `"name"`.

      **Optional**, pass one or more of the nested fields below when you have them.

      <Expandable title="properties" defaultOpen={true}>
        <ResponseField name="SukiAmbientConstant.kPatientFamily" type="string" required={false}>
          Family or last name. String key: `"family"`. Optional.
        </ResponseField>

        <ResponseField name="SukiAmbientConstant.kPatientGiven" type="array of strings" required={false}>
          Given or first names, in order. String key: `"given"`.

          **Optional**. For example, `["Jane", "Marie"]`.
        </ResponseField>

        <ResponseField name="SukiAmbientConstant.kPatientSuffix" type="array of strings" required={false}>
          Name suffixes. String key: `"suffix"`.

          **Optional**. For example, `["Jr"]`.
        </ResponseField>

        <ResponseField name="SukiAmbientConstant.kPatientNameUse" type="string" required={false}>
          How this name is used. String key: `"use"`.

          **Optional**. Examples: `"official"`, `"usual"`, `"nickname"`.
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

**Code example**:

```swift Swift theme={"theme":{"light":"one-light","dark":"material-theme-darker"}}
do {
    let contextDetail: [String: AnyHashable] = [
        SukiAmbientConstant.kPatientInfo: [
            SukiAmbientConstant.kBirthdate: Date(), // Use yyyy-mm-dd format
            SukiAmbientConstant.kGender: "FEMALE",
            SukiAmbientConstant.kPatientId: "emr-patient-42",
            SukiAmbientConstant.kPatientName: [
                SukiAmbientConstant.kPatientFamily: "Doe",
                SukiAmbientConstant.kPatientGiven: ["Jane", "Marie"],
                SukiAmbientConstant.kPatientSuffix: ["Jr"],
                SukiAmbientConstant.kPatientNameUse: "official"
            ] as [String: AnyHashable]
        ]
    ]

    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" /> **[Provider context](/mobile-sdk/ambient-guides/provider-context)** - Pass specialty and provider role.

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