Skip to main content

Raw FHIR Passthrough

The simplified SDK covers the most common use cases, but sometimes you need to send raw FHIR R4 requests — custom search parameters, FHIR operations, or resource types we haven’t simplified yet. The FHIR passthrough routes requests directly to the ClinikAPI FHIR gateway with your tenant context automatically applied.

SDK Usage

REST API

Tenant Isolation

Even in passthrough mode, tenant isolation is enforced:
  • Creates: your tenant tag is automatically injected into meta.tag
  • Searches: a _tag filter is automatically appended
  • Reads/Updates/Deletes: ownership is verified
You cannot bypass tenant isolation through the FHIR passthrough.

FHIR CapabilityStatement

The /v1/metadata endpoint returns a FHIR R4 CapabilityStatement (no auth required):
This describes all supported resource types, search parameters, and operations.

When to Use Passthrough

The passthrough returns raw FHIR R4 resources — not the simplified format used by the SDK methods. You’ll need to work with FHIR resource structures directly.