HL7Guard

HL7v2 regression testing for CI. Not another message viewer.

Version 0.1.2 - available now

What it does

Validate a whole capture

Check hundreds of messages against a JSON profile: required segments and fields, plus allowed code lists such as LOINC codes in OBX-3. Exit code 1 when any message has errors.

De-identify consistently

Replace identifiers with seeded fakes. The same patient maps to the same fake patient in every message, so an admit to result to discharge flow still tests correctly after de-identification.

Diff two captures

Field-by-field comparison, matched by MSH-10 control ID. Get a short report of what changed, where, old value versus new value. Exit code 1 when differences are found.

Generate edge cases

Labelled test messages from a known-good one: drop a required segment, empty a required field, swap in a bad code, break a datatype. Test a receiver's error handling without hand-editing messages.

Runnable examples

These commands run against the synthetic samples in the source repo:

pip install -e .
hl7guard validate samples/ --builtin oru_r01
hl7guard anonymize samples/ --seed my-project --out deidentified/
hl7guard diff before.hl7 after.hl7
hl7guard generate samples/synthetic_oru_r01.hl7 --builtin oru_r01 --out edge/

Exit codes: 0 means clean, 1 means findings or differences were found, 2 means a file or usage error. That contract is the product: a pipeline can fail the build on a silent vendor change.

The folder and batch examples above are Solo features and need a license key. The free tier covers single-message validate and anonymize.

Safety and limits, plainly

Pricing

Free

$0

Single-message validate and anonymize in the open CLI. Source is public on GitHub (VariantResearch/hl7guard), no key needed.

Get it on GitHub

Solo

$79 one-time

Batch and folder mode, capture diff, profiles, edge-case generator, JSON reports. Version 1.x updates included.

Buy Solo

Team

$499 one-time

10 seats, shared profiles, priority fixes.

Buy Team

Checkout is through Stripe. Your license key is delivered by email from hl7guard-support@agentmail.to after payment. The license check is an honor system, not DRM: you are buying the tool and its updates, not a lock. Refunds: 14-day no-questions refunds by email to hl7guard-support@agentmail.to. Nothing on this page is a sales claim beyond that: there are no customers, testimonials, or usage numbers to report yet, and this page will not invent any.

Status