Skip to content

HL7 & FHIR mapping guide

PV1 to FHIR Encounter: Class, Status and Visit Timing

PV1 supplies visit information, but visit class and visit state are not interchangeable. A PV1 to Encounter mapping must combine supported source fields with the actual ADT event. A cancellation, a pending admission and a discharge can share a visit identifier while requiring different FHIR Encounter states.

Translate the supported patient class

PV1-2 contributes the implemented Encounter class and a supported default state. Known source classes have explicit target translations. An unknown patient class remains unsupported rather than being silently mapped to inpatient. A patient-only administrative event must not acquire a fabricated Encounter simply to make the output look complete.

The current projection is a typed subset. It covers basic class/status, visit identity and period behavior. Source location and clinician-participant information is not comprehensively mapped into Encounter.location or Encounter.participant.

Keep visit identity and period fields distinct

PV1-19 supplies the supported visit identifier. PV1-44 and PV1-45 supply admit/discharge period values where valid and applicable. The source assigning system, visit code and available date precision should be reviewed separately from the generated Encounter.id.

SourceTarget subsetCondition
PV1-2Encounter.class / supported statusKnown source class required
PV1-19Encounter.identifierBasic supported CX components
PV1-44Encounter.period.startValid source date/time and event context
PV1-45Encounter.period.end / finished policyCancelled discharge time is not a current end

Apply the lifecycle event deliberately

An A03 projects a finished Encounter, while A05 and A14 project planned encounters. A11 cancels an admission and A13 cancels a discharge. A21 and A22 describe leave and return. These policies are explicit compatibility mappings and are visible separately from IG-based field assignments.

For A11, cancelled start/end timing is retained as unmapped source context rather than being treated as the current period. For A13, a cancelled discharge end does not remain on the current Encounter. The mapper does not invent a replacement timestamp, silently reopen a different visit or modify a target server.

Require evidence for full timestamps

Full mapped instants need an explicit timezone offset. The converter does not infer a zone from a facility name, the application server or the browser. Supported partial dates retain their precision. A local timestamp that cannot be represented faithfully remains unmapped with an explanation.

Message receipt, event occurrence and visit period are different times. A Bundle receipt timestamp should not be interpreted as the admission time. Inspect EVN/Provenance and PV1 mappings independently when analyzing when an event was sent, occurred or was received.

Check patient and visit references together

An Encounter.subject must reference the Patient from the correct source context. In supported multi-patient ORU processing, results, reports and related visit references remain scoped to the current patient group. Repeated or ambiguous visit groups outside the supported profile are rejected rather than attached to a convenient patient.

Account and visit reconciliation are separate operations. The supported A42 representation retains directed identity/provenance context with unknown clinical state where required; it does not claim that an external target encounter was merged, finished or restored.

Test admissions, leave and cancellations separately

Start with an admission sample and inspect the Encounter class, subject and period. Then load Cancel admission with strict source checks enabled. Compare the lifecycle state and verify that cancelled timing has not become a current period. Use the field-origin details to see why an event-derived state differs from a direct PV1 assignment.

A passing R4 base-profile check confirms only the assessed structural constraints. Your receiving application may impose additional visit identifiers, locations, status-history requirements or terminology. Those must be verified against the named guide and target contract before any clinical integration.

Common questions

Does PV1-2 alone establish Encounter.status?

It contributes a supported default, but an explicit ADT lifecycle event or supported discharge policy can change the resulting status. Event context must remain visible.

Can V2Lift infer a missing timestamp timezone?

No. Full mapped instants require an explicit offset. Unsupported or timezone-free values remain visible rather than acquiring an invented zone.

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.