# Get everything for a Patient

Canonical page: https://docs.ovok.com/primitives/patient-everything

Patient `$everything` returns resources in the Patient's compartment and resolves selected references needed for context. Use the optional filters to limit the date range, resource types, or page size.

| Method | Path |
| --- | --- |
| `GET` | `/fhir/R4/Patient/:id/$everything` |

## Request [#request]

```bash
curl --get "https://api.sandbox.ovok.com/fhir/R4/Patient/${PATIENT_ID}/\$everything" \
  --header "Authorization: Bearer ${OVOK_TOKEN}" \
  --data-urlencode '_since=2026-01-01T00:00:00Z' \
  --data-urlencode '_count=50' \
  --data-urlencode '_type=Observation,Encounter'
```

| Parameter | Type | Description |
| --- | --- | --- |
| `:id` | Path | ID of the Patient. |
| `_since` | instant | Include resources updated at or after this timestamp. |
| `_count` | integer | Requested page size. |
| `_offset` | integer | Result offset for pagination. |
| `_type` | code list | Restrict compartment results to listed resource types. |
| `start`, `end` | date | Optional care-date bounds for applicable resources. |

## Successful response [#successful-response]

The operation returns a FHIR `Bundle` with `type: searchset`. Compartment resources appear as entries; additionally resolved references may use `search.mode: include`.

| Bundle field | Description |
| --- | --- |
| `type` | `searchset` identifies search results. |
| `entry[].resource` | Patient or related resource. |
| `entry[].search.mode` | `match` for matched results or `include` for resolved references, when present. |
| `link` | Pagination links when more results are available. |

See the [FHIR R4 Patient `$everything` operation](https://hl7.org/fhir/R4/patient-operation-everything.html) for the standard definition.
