FHIR R4 Health Records API

Practise healthcare API testing on a synthetic HL7 FHIR R4 subset: Patient, Observation (LOINC vitals) and Encounter, searchset Bundles with paging links, versioned ETags, 410 after delete and OperationOutcome errors. No real patient data.

Base URL: https://funapi.dev/api/fhir/r4 · 11 endpoints · OpenAPI 3.1 spec and Postman collection available. New here? Read the getting started guide.

conformance

CapabilityStatement

Patient

demographics

Observation

vitals and labs

Encounter

visits

The FHIR R4 Health Records API is a synthetic subset of HL7 FHIR R4 for practising healthcare API tests without touching real patient data. Patient, Observation and Encounter resources come back as FHIR JSON with application/fhir+json, searches return searchset Bundles with next and previous links, every write bumps meta.versionId and the ETag, and errors are OperationOutcome resources rather than ad-hoc JSON.

What you can practise here

Example request and response

GET https://funapi.dev/api/fhir/r4/metadata — CapabilityStatement: what this server supports. No token, no signup:

curl -i https://funapi.dev/api/fhir/r4/metadata

Response: 200 OK

{
  "resourceType": "CapabilityStatement",
  "status": "active",
  "date": "2026-11-06",
  "kind": "instance",
  "fhirVersion": "4.0.1",
  "format": [
    "application/fhir+json"
  ],
  "software": {
    "name": "Fun API FHIR test server (synthetic data only)",
    "version": "1.0"
  },
  "implementation": {
    "description": "Synthetic FHIR R4 subset for API testing practice. Contains no real patient data.",
    "url": "https://funapi.dev/api/fhir/r4"
  },
  "rest": [
    {
      "mode": "server",
      "security": {
        "description": "Reads are open; writes need Authorization: Bearer qa-admin-token (or qa-viewer-token; delete is admin only)."
      },
      "resource": [
        {
          "type": "Patient",
          "interaction": [
            {
              "code": "read"
            },
            {
              "code": "search-type"
            },
            {
              "code": "create"
            },
            {
              "code": "update"
            },
            {
              "code": "delete"
            }
          ],

(truncated — the full response comes back when you run it)

Open and run this endpoint

All 55 mock REST APIs

Use this response elsewhere

How this differs from the HAPI FHIR public test server

Last updated