Getting Started
Requirements
Section titled “Requirements”- Node.js 20 or later
- No other dependencies required for CLI use
One-time use with npx
Section titled “One-time use with npx”No installation needed:
npx fhir-capability-analyzer analyze https://hapi.fhir.org/baseR4Install globally
Section titled “Install globally”npm install -g fhir-capability-analyzerfhir-capability-analyzer --versionInstall as a project dependency
Section titled “Install as a project dependency”npm install fhir-capability-analyzer# orpnpm add fhir-capability-analyzerYour first analysis
Section titled “Your first analysis”Analyze a live FHIR server:
fhir-capability-analyzer analyze https://hapi.fhir.org/baseR4Analyze a local CapabilityStatement file:
fhir-capability-analyzer analyze ./capability.jsonGet structured JSON output (stable schema, suitable for CI and AI agents):
fhir-capability-analyzer analyze https://hapi.fhir.org/baseR4 --format jsonYour first comparison
Section titled “Your first comparison”Compare two servers:
fhir-capability-analyzer compare https://server-a.example.com https://server-b.example.comCompare a local baseline against a live server, failing CI if differences exist:
fhir-capability-analyzer compare ./fixtures/baseline.json https://staging.example.com --exit-on-diffNext steps
Section titled “Next steps”- Analyze a server — understand the full output and what it tells you
- Compare two servers — CI assertions and diff output
- Profile detection — how international profile conformance is detected
- CI/CD integration — patterns for using this tool in CI pipelines