> ## Documentation Index
> Fetch the complete documentation index at: https://docs.olira.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# get_event_state_module

> Get a specific event state module by type, such as symptoms or behavioral_state.

Get a specific event state module by type (e.g., symptoms, behavioral\_state).

## Parameters

| Parameter     | Required | Type                    | Description                                                                                                                           |
| ------------- | -------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `patient_id`  | Yes      | `string`                | Patient user ID                                                                                                                       |
| `module_type` | Yes      | `string`                | Module type (`behavioral_state`, `symptoms`, `adherence`, `physical_activity`, `engagement`, `clinical_context`, `alerts_and_tasks`). |
| `date_from`   | No       | `string` (ISO 8601)     | Inclusive lower bound on `EventStateModuleDocument.created_at`. Resolves to the latest version in the window.                         |
| `date_to`     | No       | `string` (ISO 8601)     | Inclusive upper bound on `EventStateModuleDocument.created_at`.                                                                       |
| `format`      | No       | `"raw"` or `"markdown"` | Output format (default: `raw`). `"pretty"` is accepted as a deprecated alias for `"markdown"`.                                        |

## Example output

Illustrative: `markdown` is narrative text; `raw` is structured.

```text theme={null}
## Symptoms (past 7 days)
- Pain: mild, stable vs prior week
- Fatigue: moderate
```
