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

# SessionContext Types

> Type definitions for session context and response

## SessionContext type

Below is the type definition for the `SessionContext` type. You provide this context using the `setSessionContext` method to help Suki's AI generate more accurate and meaningful clinical notes.

```tsx theme={"theme":{"light":"github-dark","dark":"material-theme-darker"}}
type SessionContext = {
  patient?: {
    dob: string;
    sex: string;
  };
  provider?: {
    specialty: string;
    role?: string;
  };
  visit?: {
    visit_type?: string;
    encounter_type?: string;
    reason_for_visit?: string;
    chief_complaint?: string;
  };
  sections?: Array<{ loinc: string }>;
  diagnoses?: {
    values: Array<{
      codes: Array<{
        code: string;
        description: string;
        type: string;
      }>;
      diagnosisNote: string;
    }>;
  };
};
```

## SessionContextResponse type

Below is the type definition for the `SessionContextResponse` type. This is the return type for the `setSessionContext` method. It returns an empty object `{}` when successful. If there's an error, the method throws a `ContextUpdateFailed` error.

```typescript theme={"theme":{"light":"github-dark","dark":"material-theme-darker"}}
type SessionContextResponse = Record<string, never>;
```
