clinik.fhir
The FHIR escape hatch lets you send raw FHIR R4 requests when the simplified SDK methods don’t cover your use case.request
| Parameter | Type | Required | Description |
|---|---|---|---|
method | string | Yes | GET, POST, PUT, PATCH, DELETE |
path | string | Yes | FHIR resource path (e.g. /Patient, /Observation/123) |
body | unknown | No | Request body (for POST, PUT, PATCH) |
Do not include
/v1/ in the path — the SDK prepends it automatically.
Tenant isolation is enforced on all passthrough requests.Examples
When to Use
- Custom FHIR search parameters not exposed in the simplified SDK
- FHIR operations (
$everything,$validate, etc.) - Resource types not yet simplified by ClinikAPI
- Complex FHIR queries with chained parameters
Important Notes
- Returns raw FHIR R4 resources, not the simplified format
- Tenant tag injection and filtering is still enforced
- Rate limits and authentication work the same as simplified endpoints