Skip to content

HL7 & FHIR mapping guide

HL7 and FHIR Validation: Source Checks vs Target Checks

A valid FHIR Bundle does not prove that the incoming HL7 message satisfies its source guide. A source-valid message does not prove that its converted resources express the intended clinical meaning. V2Lift reports source and target findings separately so these different questions do not collapse into one green badge.

Identify which layer a check belongs to

Parsing checks whether the message can be represented using its supported source layout. Base source assessments check selected field, cardinality and datatype constraints. A selected implementation guide can add its own requirements. Target validation checks the generated FHIR R4 resources and references. Clinical correctness and receiving-system acceptance are separate integration responsibilities.

LayerQuestion answeredWhat it does not establish
Source parsingCan the supported message layout be read?Not complete guide conformance
Source guide checksAre the assessed source requirements satisfied?Not universal national/vendor coverage
FHIR R4 base validationAre assessed resource constraints and references valid?Not clinical or external terminology certification
Target integrationDoes the receiving system accept the intended operation?Not demonstrated by a downloadable Bundle

Review declared-version source findings

Required fields, cardinalities and withdrawn fields are version-sensitive. A field that existed in an older release may be withdrawn later. Explicitly declaring a newer version does not make the old field valid, and changing MSH-12 merely to obtain a passing result is not a valid repair.

The strict source option rejects assessed source errors. Unsupported values remain visible in the normal report. The provided lifecycle demos pass strict source and target checks, but that does not mean arbitrary messages with the same event will meet every external implementation guide.

Select an exact published profile

The source engine executes pinned NIST-compatible XML packages with exact message-definition IDs, source versions, SHA-256 hashes and local value sets. The published catalog includes immunization, APHL laboratory test profiles, IHE bed-management definitions and vital-records drafts. Test and draft labels remain explicit.

These are source-validation capabilities, not additional FHIR conversion events. A query or acknowledgment can be assessed by its source profile without acquiring an invented clinical conversion. Select the profile for the actual interface and inspect its findings rather than assuming the broad message family is enough.

The separate full-profile source engine expects unframed ER7 with standard delimiters. Its source-only request is not an MLLP socket listener or a general-purpose batch-message receiver.

Treat excluded checks as real limitations

A zero-error report can still contain warnings or checks that could not run. Unavailable user-defined terminology is reported as an exclusion. Missing required external constraint plugins produce explicit alerts. Unknown classifications, truncated reports, unavailable engines and incomplete assessments cannot silently become a fully passing strict result.

Operators can configure compatible national/vendor XML packages as trusted startup data. The engine checks the original file sizes, hashes and message identities. A private guide still needs its own authoritative package, local tables, required plugins and independent fixtures; it is not covered simply because the software can load a package.

Validate the resources that were actually produced

V2Lift uses offline Firely R4 base-profile validation and additional internal-reference checks. The validator inspects the Bundle and its contained resource graph. A wrong-but-schema-valid clinical mapping can still pass these checks, which is why field origins, review decisions and semantic expectations remain necessary.

The target is FHIR R4 4.0.1. No R5 or R6 conversion is implied. A supported resource kind also does not mean every field on that resource is implemented for every source version.

Use a repeatable review sequence

Start with synthetic input and its declared version. Inspect parsing and source findings. Apply the intended exact source guide when available, then review mapped fields and remaining source data. Check target validation and references, and compare meaningful resource values against expected outcomes. Re-run after any rule approval or source correction.

Keep the evidence boundaries with the result: selected guide, excluded checks, source/target findings and the mapping version matter more than a single pass/fail label. Do not describe a source-only validation run as a completed FHIR conversion or a successful write to an EHR.

Common questions

Are zero FHIR errors enough for clinical use?

No. Base-profile validity does not establish clinical meaning, complete terminology agreement, correct identity matching or receiving-system acceptance.

What does assessed-with-exclusions mean?

The engine completed an assessment but some checks, such as unavailable local terminology, were excluded. Read the details; it is not a claim that every guide requirement was verified.

Source references and implementation scope

These guides explain the implemented V2Lift subset. Source specifications and guide requirements must be checked for the actual interface; the hosted workspace is a synthetic demonstration.

Follow the mapping in the workspace.

Inspect a synthetic message, review field origins and compare source findings with FHIR R4 checks.

Open the converter →

Continue reading

Related mapping guides.