Output Formats
All commands support three output formats via --format.
text (default)
Section titled “text (default)”Human-readable terminal output. Sections for resources, operations, profile conformance, security, and warnings.
Best for: interactive use, quick checks, reading in a terminal.
fhir-capability-analyzer analyze ./capability.jsonfhir-capability-analyzer compare a.json b.jsonStable, machine-consumable JSON matching the AnalysisReport or ComparisonReport TypeScript types.
Best for: CI pipelines, AI agents, downstream processing, jq queries.
fhir-capability-analyzer analyze ./capability.json --format jsonfhir-capability-analyzer compare a.json b.json --format jsonThe JSON schema is stable across patch versions within a major version. Breaking changes to the JSON structure will be communicated in CHANGELOG.md.
markdown
Section titled “markdown”Markdown document with tables for resources, profile conformance, and security.
Best for: documentation, GitHub issues, reports, Slack or Notion pastes.
fhir-capability-analyzer analyze ./capability.json --format markdownfhir-capability-analyzer compare a.json b.json --format markdown