validator-compare

Compare HL7 FHIR Validator and GoFHIR Validator outputs for a FHIR resource.

2|Updated Feb 14, 2025
One-click install
npx skills add https://github.com/gofhir/validator --skill validator-compare
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: validator-compare
Source: https://github.com/gofhir/validator/tree/main/.claude/skills/validator-compare
Command: npx skills add https://github.com/gofhir/validator --skill validator-compare

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the comparison of validation results between the HL7 FHIR Validator (Java) and the GoFHIR Validator (Go), helping to identify conformance discrepancies and ensure consistency.

Core Features & Use Cases

  • Automated Comparison: Runs both validators on a specified FHIR resource.
  • Discrepancy Reporting: Generates a detailed report highlighting matching, partial, missing, and extra issues.
  • Conformance Scoring: Calculates a score to quantify the agreement between the two validators.
  • Use Case: Before a release, use this Skill to validate a set of critical FHIR resources against both validators to ensure no regressions or unexpected behavior changes have been introduced in the GoFHIR validator.

Quick Start

Use the validator-compare skill to compare validation results for the file 'patient.json'.

Frequently Asked Questions about validator-compare

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compare FHIR validator outputs from different tools?

You can compare FHIR validator outputs by running both the HL7 FHIR Validator and GoFHIR Validator on a given resource to identify discrepancies and generate a detailed conformance comparison report.

What is a conformance score in FHIR validation?

A conformance score in FHIR validation quantifies the level of agreement between the HL7 FHIR Validator and GoFHIR Validator by calculating how closely their validation outputs match for a specific resource.

How do I debug discrepancies between HL7 and GoFHIR validators?

To debug discrepancies between HL7 and GoFHIR validators, run an automated comparison on your FHIR resource to generate a report highlighting matching, partial, missing, and extra conformance issues.

Can I check FHIR conformance for regressions before a release?

Yes, you can check FHIR conformance for regressions before a release by validating critical resources against both the HL7 and GoFHIR validators to ensure no unexpected behavior changes were introduced.

Why do the HL7 and GoFHIR validators produce different results for the same resource?

The HL7 and GoFHIR validators may produce different results due to implementation differences, but comparing their validation outputs helps identify specific conformance discrepancies and missing issues in a detailed report.