Skip to main content
Two modes — strict for spec compliance, compatibility for real-world vendor tolerance — across three standards and eight HL7 versions.

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

HL7 v2 and FHIR R4 validation are free. NCPDP SCRIPT validation depends on the member-only SCRIPT standards package — install it with pidgeon data install ncpdp-script --accept-license (NCPDP membership required) before validating NCPDP messages.

Usage

Example Output

Each validation issue includes the expected value, actual value, a fix suggestion, and a 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

Returns the full 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.

Vendor Profile Validation

Validate against your vendor’s actual patterns instead of just the spec:
Compatibility mode with a vendor profile catches the issues that matter in your specific environment — not just spec violations, but deviations from how your vendor actually sends messages. See Vendor Profiles.