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

# EHR Sync Overview

# Getting EHR Sync Information

Bulk exports are currently the only way to get EHR sync information from the Silna API. To export EHR syncs, call the
[Create Bulk Export API](https://docs.silnahealth.com/api-reference/v1bulkexportresource/create-bulk-export.md) with `export_type` set to `EHR_SYNC`, then
use the [Get Bulk Export API](https://docs.silnahealth.com/api-reference/v1bulkexportresource/get-bulk-export.md) to download the CSV once it is ready.

This guide explains which filters to use to export EHR syncs in each status.

# EHR Sync Status

* `IN_PROGRESS` → Silna is working on the EHR sync. This is a transitory state.
* `AWAITING_PROVIDER` → There is an open escalation on the EHR sync that requires provider action. This is a transitory state.
* `COMPLETE` → The EHR sync is finished. This is a terminal state.

Pass one of these values in the `status` parameter. If you omit `status`, the export includes EHR syncs in every status.

# Bulk Export Recipes by Status

If you sync EHR syncs into your system on a schedule (for example, a daily job), we recommend running one export for each
status below.

| Status | Date filter | State | Use it to |
| - | - | - | - |
| `COMPLETE` | `date_synced` | Terminal | Get completed EHR syncs |
| `AWAITING_PROVIDER` | None | Transitory | Get EHR syncs with an escalation you need to act on |
| `IN_PROGRESS` | None | Transitory | Get EHR syncs Silna is currently working on |

### Completed EHR Syncs

**Filters:** `status=COMPLETE` and `date_synced`

Use this to get completed EHR syncs. `COMPLETE` is a terminal state. Use `date_synced` as the date range key to narrow down the
results. `date_synced` is only set when Silna completes the EHR sync.

For example, to export EHR syncs completed between January 7 and January 9, 2026:

```
{
  "export_params": {
    "export_type": "EHR_SYNC",
    "status": "COMPLETE",
    "date_range_key": "date_synced",
    "date_range_start_date": "2026-01-07",
    "date_range_end_date": "2026-01-09"
  },
  "provider_id": "0194a843-5821-70e2-bbe9-0f986c05984d"
}
```

### EHR Syncs That Need Your Action

**Filters:** `status=AWAITING_PROVIDER`

Use this to get all EHR syncs that currently have an escalation you need to act on. `AWAITING_PROVIDER` is a transitory state,
so you should expect few EHR syncs to be in it at any time. It is safe to export all EHR syncs in this state with no date filter.

```
{
  "export_params": {
    "export_type": "EHR_SYNC",
    "status": "AWAITING_PROVIDER"
  },
  "provider_id": "0194a843-5821-70e2-bbe9-0f986c05984d"
}
```

### EHR Syncs Silna Is Working On

**Filters:** `status=IN_PROGRESS`

Use this to get all EHR syncs that Silna is currently working on. Like `AWAITING_PROVIDER`, `IN_PROGRESS` is a transitory state.
There are usually few EHR syncs in this state, so it is safe to export all of them with no date filter.


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