Strict Mode
Every required field, data type, and code set is checked against the base specification. Use when building new interfaces or certifying compliance.
Compatibility Mode
Tolerates common vendor deviations. Use when testing against live systems where real-world messages deviate from spec.
Standards Coverage
| Standard | Versions | What’s Validated |
|---|---|---|
| HL7 v2 | v2.3, v2.4, v2.5, v2.5.1, v2.6, v2.7, v2.8 | Segment structure, required fields, data types, code sets, segment ordering |
| FHIR R4 | R4 | Required elements, cardinality, terminology bindings, 21 resource types, profile constraints |
| NCPDP SCRIPT | 2017071 | Transaction structure, NPI Luhn check, DEA format validation, required fields |
Usage
Example Output
pidgeon lookup tip that opens the built-in standards reference for that field. Run pidgeon lookup PID.5 to see the full field definition, data type, valid values, and vendor-specific notes.
Structured Output for CI/CD
ValidationResult as JSON — including isValid, all issues with diagnostic fields (expectedValue, actualValue, suggestion), and summary statistics (fieldsValidated, conformanceScore, validationTime). Exit code 0 on pass, 1 on fail.

