Skip to content

fhir-capability-analyzerWhat does this server actually support?

Fetch, analyze, and compare FHIR server capabilities. Profile detection. CI-ready.

fhir-capability-analyzer answers the question every FHIR integration engineer asks eventually: "What does this server actually support?"

CapabilityStatements are the machine-readable metadata every FHIR server exposes at its /metadata endpoint. They describe every resource, interaction, search parameter, and security mechanism the server supports. These documents are routinely 1,000–3,000 lines of deeply nested JSON that developers currently read manually.

bash
# Analyze a live FHIR server
npx fhir-capability-analyzer analyze https://hapi.fhir.org/baseR4

# Analyze a local file
npx fhir-capability-analyzer analyze ./capability.json --format markdown

# Compare two servers for CI assertions
npx fhir-capability-analyzer compare ./baseline.json https://staging.example.com --exit-on-diff

Supports FHIR R4 (4.0.1), R4B (4.3.0), and R5 (5.0.0) — auto-detected from the fhirVersion field.

Part of the FHIR operations toolkit

Three focused CLI tools built for FHIR development workflows. Each does one job well — compose them in shell pipelines, CI steps, or AI agent chains instead of reaching for a single monolithic toolkit.

ToolPurpose
fhir-resource-diffDiff, validate, and inspect FHIR resources
fhir-capability-analyzer (this)Analyze and compare FHIR server CapabilityStatements
fhir-test-dataGenerate valid FHIR test resources across 14 locales

The tools are independent — use one, two, or all three in any combination that fits your pipeline.

Released under the MIT License.