Getting started
Requirements
- Node.js 20 or later
- No other dependencies required for CLI use
One-time use with npx
No installation needed:
bash
npx fhir-capability-analyzer analyze https://hapi.fhir.org/baseR4Install globally
bash
npm install -g fhir-capability-analyzer
fhir-capability-analyzer --versionInstall as a project dependency
bash
npm install fhir-capability-analyzer
# or
pnpm add fhir-capability-analyzerYour first analysis
Analyze a live FHIR server:
bash
fhir-capability-analyzer analyze https://hapi.fhir.org/baseR4Analyze a local CapabilityStatement file:
bash
fhir-capability-analyzer analyze ./capability.jsonGet structured JSON output (stable schema, suitable for CI and AI agents):
bash
fhir-capability-analyzer analyze https://hapi.fhir.org/baseR4 --format jsonYour first comparison
Compare two servers:
bash
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:
bash
fhir-capability-analyzer compare ./fixtures/baseline.json https://staging.example.com --exit-on-diffNext 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