VRIS - Viljatusravi infosüsteem
0.1.0 - draft

VRIS - Viljatusravi infosüsteem, published by TEHIK. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/TEHIK-EE/ig-ee-vris/ and changes regularly. See the Directory of published versions

## Resource Profile: EEVRISEncounter - Mappings

Draft as of 2026-07-16

Mappings for the ee-vris-encounter resource profile.

#### Mappings to Structures in this Implementation Guide

No Mappings Found

#### Mappings to other Structures

No Mappings Found

#### Other Mappings

Name | Workflow Pattern | FiveWs Pattern Mapping | RIM Mapping | HL7 V2 Mapping
--- | --- | --- | --- | ---
Encounter | Event | workflow.encounter | Entity Role or Act PatientEncounter[@moodCode='EVN'] |
id |  |  |  |
meta |  |  |  |
implicitRules |  |  |  |
language |  |  |  |
text |  |  | Act.text? |
contained |  |  | N/A |
extension |  |  | N/A |
modifierExtension |  |  | N/A |
identifier | Event.identifier | FiveWs.identifier | .id | PV1-19
status | Event.status | FiveWs.status | .statusCode | No clear equivalent in HL7 V2; active/finished could be inferred from PV1-44 PV1-45 PV2-24; inactive could be inferred from PV2-16
class |  | FiveWs.class | .inboundRelationship[typeCode=SUBJ].source[classCode=LIST].code | PV1-2
priority |  | FiveWs.grade | .priorityCode | PV2-25
type | Event.code | FiveWs.what[x] | .code | PV1-4 / PV1-18
serviceType | Event.code |  | n/a | PV1-10
subject | Event.subject | FiveWs.subject[x] | .participation[typeCode=SBJ]/role[classCode=PAT] | PID-3
subjectStatus |  |  |  |
episodeOfCare |  | FiveWs.context | n/a | PV1-54 PV1-53
basedOn | Event.basedOn |  | .reason.ClinicalDocument |
careTeam |  |  | n/a |
partOf | Event.partOf |  | .inboundRelationship[typeCode=COMP].source[classCode=COMP moodCode=EVN] |
serviceProvider | Event.performer.actor |  | .participation[typeCode=PRF].role | PL.6 & PL.1
participant | Event.performer |  | .participation[typeCode=PRF] | ROL
id |  |  | n/a |
extension |  |  | n/a |
modifierExtension |  |  | N/A |
type | Event.performer.function |  | .functionCode | ROL-3 (or maybe PRT-4)
period |  |  | .time | ROL-5 ROL-6 (or maybe PRT-5)
actor | Event.performer.actor | FiveWs.who | .role | ROL-4
appointment | Event.basedOn |  | .outboundRelationship[typeCode=FLFS].target[classCode=ENC moodCode=APT] | SCH-1 / SCH-2
virtualService |  |  | N/A |
actualPeriod | Event.occurrence[x] | FiveWs.done[x] | .effectiveTime (low & high) | PV1-44 PV1-45
plannedStartDate |  |  |  | PV2-8
plannedEndDate |  |  |  | PV2-9
length | Event.occurrence[x] |  | .lengthOfStayQuantity | (PV1-45 less PV1-44) iff ( (PV1-44 not empty) and (PV1-45 not empty) ); units in minutes or PV2-11 (which is actual length in days)
reason |  |  |  |
id |  |  | n/a |
extension |  |  | n/a |
modifierExtension |  |  | N/A |
use |  |  |  |
value | Event.reason | FiveWs.why[x] | .reasonCode | PV2-3 is nominally constrained to inpatient admissions; HL7 V2 makes no vocabulary suggestions for PV2-3; would not expect PV2 segment or PV2-3 to be in use in all implementations )
diagnosis |  |  | .outboundRelationship[typeCode=RSON] |
id |  |  | n/a |
extension |  |  | n/a |
modifierExtension |  |  | N/A |
condition | Event.reason | FiveWs.why[x] | .outboundRelationship[typeCode=RSON].target | Resources that would commonly referenced at Encounter.indication would be Condition and/or Procedure. These most closely align with DG1/PRB and PR1 respectively.
use |  |  | n/a | DG1-6 (Diagnosis Type)
account |  |  | .pertains.A_Account |
dietPreference |  |  | .outboundRelationship[typeCode=COMP].target[classCode=SBADM moodCode=EVN code="diet"] | PV1-38
specialArrangement |  |  | .specialArrangementCode | PV1-15 / OBR-30 / OBR-43
specialCourtesy |  |  | .specialCourtesiesCode | PV1-16
admission |  |  | .outboundRelationship[typeCode=COMP].target[classCode=ENC moodCode=EVN] |
id |  |  | n/a |
extension |  |  | n/a |
modifierExtension |  |  | N/A |
preAdmissionIdentifier |  |  | .id | PV1-5
origin |  |  | .participation[typeCode=ORG].role |
admitSource |  |  | .admissionReferralSourceCode | PV1-14
reAdmission |  |  | n/a | PV1-13
destination |  |  | .participation[typeCode=DST] | PV1-37
dischargeDisposition |  |  | .dischargeDispositionCode | PV1-36
location |  |  | .participation[typeCode=LOC] |
id |  |  | n/a |
extension |  |  | n/a |
modifierExtension |  |  | N/A |
location | Event.location | FiveWs.where[x] | .role | PV1-3 / PV1-6 / PV1-11 / PV1-42 / PV1-43
status |  |  | .role.statusCode |
form |  |  |  |
period |  |  | .time |
Documentation for this format