Inera Core Implementation Guide
0.2.0 - ci-build Sweden

Inera Core Implementation Guide - Local Development build (v0.2.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

: ConceptMap GetCareContacts TKB to FHIR Encounter - TTL Representation

Draft as of 2025-11-24

Raw ttl | Download

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:ConceptMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ConceptMapGetCareContactsTKBToEncounter"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: ConceptMap ConceptMapGetCareContactsTKBToEncounter</b></p><a name=\"ConceptMapGetCareContactsTKBToEncounter\"> </a><a name=\"hcConceptMapGetCareContactsTKBToEncounter\"> </a><p>Mapping from https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCareContactsResponder/2 to <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a></p><br/><p><b>Group 1 </b>Mapping from <code>https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCareContactsResponder/2</code> to <a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a></p><table class=\"grid\"><tr><td><b>Source Code</b></td><td><b>Relationship</b></td><td><b>Target Code</b></td><td><b>Comment</b></td></tr><tr><td>GetCareContactsResponse.patient-id (Patient ID (personnummer/samordningsnummer))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>subject</td><td>Reference to Patient resource with Swedish national identifier</td></tr><tr><td>GetCareContactsResponse.careContact.careContactId (Care contact ID (unique identifier))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>identifier</td><td>Business identifier for care contact. Use system from source system URL.</td></tr><tr><td>GetCareContactsResponse.careContact.contactStatus (Contact status (planned, arrived, in-progress, finished))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>status</td><td>Encounter status: planned|arrived|triaged|in-progress|onleave|finished|cancelled|entered-in-error|unknown</td></tr><tr><td>GetCareContactsResponse.careContact.careContactType.class (Care contact class (inpatient, outpatient, emergency))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>class</td><td>Encounter class. System: http://terminology.hl7.org/CodeSystem/v3-ActCode. Values: IMP (inpatient), AMB (ambulatory/outpatient), EMER (emergency), HH (home health), VR (virtual)</td></tr><tr><td>GetCareContactsResponse.careContact.careContactType.code (Care contact type code (detailed Swedish contact type))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>type.coding.code</td><td>Swedish care contact type codes. System: https://terminologitjansten.inera.se/inera-kodverksforvaltning/kodverk/kv_vardkontakttyp (OID: 1.2.752.129.2.2.2.25). Examples: läkarbesök, sjuksköterskebesök, hembesök, telefonkontakt</td></tr><tr><td>GetCareContactsResponse.careContact.serviceType.code (Service type (specialty, clinic type))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>serviceType.coding.code</td><td>Type of service provided. Swedish specialty codes or clinic types.</td></tr><tr><td>GetCareContactsResponse.careContact.priority (Contact priority (routine, urgent, emergency))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>priority</td><td>Encounter priority. System: http://terminology.hl7.org/CodeSystem/v3-ActPriority</td></tr><tr><td>GetCareContactsResponse.careContact.period.start (Contact start date/time)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>period.start</td><td>When care contact started (admission time for inpatient, arrival time for outpatient)</td></tr><tr><td>GetCareContactsResponse.careContact.period.end (Contact end date/time)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>period.end</td><td>When care contact ended (discharge time for inpatient, departure time for outpatient)</td></tr><tr><td>GetCareContactsResponse.careContact.length (Contact length/duration)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>length</td><td>Quantity of time the encounter lasted. Can be calculated from period if not explicitly provided.</td></tr><tr><td>GetCareContactsResponse.careContact.reasonCode.code (Reason for contact (chief complaint, diagnosis))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>reasonCode.coding.code</td><td>Coded reason for encounter. ICD-10-SE, SNOMED CT, or Swedish symptom codes.</td></tr><tr><td>GetCareContactsResponse.careContact.reasonReference (Reason reference (condition, observation))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>reasonReference</td><td>Reference to Condition, Observation, or Procedure representing reason for encounter</td></tr><tr><td>GetCareContactsResponse.careContact.diagnosis.diagnosisCode (Encounter diagnosis)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>diagnosis.condition</td><td>Reference to Condition resource. Can have multiple diagnoses with different uses (admission, discharge, billing).</td></tr><tr><td>GetCareContactsResponse.careContact.diagnosis.use (Diagnosis use (admission, discharge, billing))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>diagnosis.use</td><td>Role of diagnosis. System: http://terminology.hl7.org/CodeSystem/diagnosis-role. Values: AD (admission), DD (discharge), CC (chief complaint), billing</td></tr><tr><td>GetCareContactsResponse.careContact.diagnosis.rank (Diagnosis rank (primary, secondary))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>diagnosis.rank</td><td>Ranking of diagnosis (1 = primary diagnosis)</td></tr><tr><td>GetCareContactsResponse.careContact.participant.healthcareProfessionalHSAId (Participant HSA-ID (physician, nurse, etc.))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>participant.individual</td><td>Reference to Practitioner participating in encounter. Can have multiple participants.</td></tr><tr><td>GetCareContactsResponse.careContact.participant.participantType (Participant type/role (attending, consulting, etc.))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>participant.type.coding.code</td><td>Type of participation. System: http://terminology.hl7.org/CodeSystem/v3-ParticipationType. Values: ATND (attender), CON (consultant), ADM (admitter), DIS (discharger)</td></tr><tr><td>GetCareContactsResponse.careContact.participant.period (Participant period (when participant was involved))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>participant.period</td><td>Time period during which participant was involved in encounter</td></tr><tr><td>GetCareContactsResponse.careContact.appointmentId (Appointment ID (if contact was pre-scheduled))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>appointment</td><td>Reference to Appointment resource if encounter was scheduled</td></tr><tr><td>GetCareContactsResponse.careContact.basedOn (Based on (referral, service request))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>basedOn</td><td>Reference to ServiceRequest, CarePlan, or other request that initiated the encounter</td></tr><tr><td>GetCareContactsResponse.careContact.partOf (Part of (parent encounter))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>partOf</td><td>Reference to parent Encounter. Example: outpatient visit as part of inpatient stay.</td></tr><tr><td>GetCareContactsResponse.careContact.serviceProvider.organizationHSAId (Service provider HSA-ID (care unit))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>serviceProvider</td><td>Reference to Organization (care unit) providing the encounter</td></tr><tr><td>GetCareContactsResponse.careContact.location.locationId (Location ID (room, ward, clinic))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>location.location</td><td>Reference to Location resource (room, ward, clinic, building)</td></tr><tr><td>GetCareContactsResponse.careContact.location.status (Location status (planned, active, completed))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>location.status</td><td>Status of location during encounter: planned|active|reserved|completed</td></tr><tr><td>GetCareContactsResponse.careContact.location.period (Location period (time at this location))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>location.period</td><td>Time period patient was at this location. Can have multiple locations during one encounter.</td></tr><tr><td>GetCareContactsResponse.careContact.hospitalization.preAdmissionIdentifier (Pre-admission identifier)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>hospitalization.preAdmissionIdentifier</td><td>Pre-admission identifier (e.g., pre-registration number)</td></tr><tr><td>GetCareContactsResponse.careContact.hospitalization.origin (Admission origin (from where patient came))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>hospitalization.origin</td><td>Reference to Location from where patient came (e.g., home, other hospital, nursing home)</td></tr><tr><td>GetCareContactsResponse.careContact.hospitalization.admitSource (Admit source (how patient was admitted))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>hospitalization.admitSource</td><td>From where patient was admitted. System: http://terminology.hl7.org/CodeSystem/admit-source</td></tr><tr><td>GetCareContactsResponse.careContact.hospitalization.reAdmission (Re-admission indicator)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>hospitalization.reAdmission</td><td>Whether this hospitalization is a re-admission</td></tr><tr><td>GetCareContactsResponse.careContact.hospitalization.dietPreference (Dietary preference)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>hospitalization.dietPreference</td><td>Diet preferences or restrictions during hospitalization</td></tr><tr><td>GetCareContactsResponse.careContact.hospitalization.specialArrangement (Special arrangements (interpreter, wheelchair, etc.))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>hospitalization.specialArrangement</td><td>Special arrangements needed during encounter</td></tr><tr><td>GetCareContactsResponse.careContact.hospitalization.destination (Discharge destination (to where patient discharged))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>hospitalization.destination</td><td>Reference to Location to where patient was discharged (e.g., home, other hospital, nursing home, deceased)</td></tr><tr><td>GetCareContactsResponse.careContact.hospitalization.dischargeDisposition (Discharge disposition (outcome of hospitalization))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>hospitalization.dischargeDisposition</td><td>Category or kind of location after discharge. System: http://terminology.hl7.org/CodeSystem/discharge-disposition</td></tr></table><hr/><p><b>Group 2 </b>Mapping from <code>https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCareContactsResponder/2</code> to <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a></p><table class=\"grid\"><tr><td><b>Source Code</b></td><td><b>Relationship</b></td><td><b>Target Code</b></td><td><b>Comment</b></td></tr><tr><td>careContact.careContactHeader.documentId (Care contact document ID (unique business identifier))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>identifier</td><td>Business identifier for care contact. System derived from sourceSystemHSAId. Must be consistent across TKB contract versions.</td></tr><tr><td>careContact.careContactHeader.patientId (Patient ID (personnummer/samordningsnummer/reservnummer))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>subject</td><td>Reference to Patient resource with Swedish national identifier (OID 1.2.752.129.2.1.3.1 for personnummer, 1.2.752.129.2.1.3.3 for samordningsnummer)</td></tr><tr><td>careContact.careContactHeader.approvedForPatient (Approved for patient access (true/false))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>meta.security</td><td>If false, add security label NOPATIENT (http://terminology.hl7.org/CodeSystem/v3-ActCode#NOPATIENT) to restrict patient access. See menprövningsflagga documentation.</td></tr><tr><td>careContact.careContactBody.careContactCode (Care contact type code (vårdkontakttyp))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>type</td><td>Swedish care contact type. System: https://terminologitjansten.inera.se/inera-kodverksforvaltning/kodverk/kv_vardkontakttyp (OID 1.2.752.129.2.2.2.25). Maps to both Encounter.class (high-level) and Encounter.type (detailed).</td></tr><tr><td>careContact.careContactBody.careContactReason (Care contact reason (free text from patient))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>reasonCode.text</td><td>Free text reason for care contact as stated by patient or representative. Can also create Condition/Observation and reference via reasonReference.</td></tr><tr><td>careContact.careContactBody.careContactTimePeriod.start (Care contact start time)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>period.start</td><td>Start time of care contact (admission for inpatient, arrival for outpatient). For outpatient visits, start and end may be same value.</td></tr><tr><td>careContact.careContactBody.careContactTimePeriod.end (Care contact end time)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>period.end</td><td>End time of care contact (discharge for inpatient, departure for outpatient). For outpatient visits, start and end may be same value.</td></tr><tr><td>careContact.careContactBody.careContactStatus (Care contact status (SNOMED CT SE codes))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#relatedto\" title=\"relatedto\">is related to</a></td><td>status</td><td>Maps from SNOMED CT SE (SCTID 53761000052103) to FHIR status. SNOMED 53631000052103 (tidbokad)→planned, 53651000052107 (pågående)→in-progress, 53671000052101 (avslutad)→finished, 53661000052105 (avbruten)→cancelled, 53641000052109 (inställd)→cancelled, 53691000052102 (makulerad)→entered-in-error</td></tr><tr><td>careContact.careContactBody.additionalPatientInformation.dateOfBirth (Patient date of birth)</td><td colspan=\"2\" style=\"background-color: #efefef\">(not mapped)</td><td style=\"background-color: #efefef\">NOT MAPPED to Encounter. Belongs in Patient.birthDate. Included in TKB for cases without PU lookup. Format can be YYYY, YYYYMM, or YYYYMMDD.</td></tr><tr><td>careContact.careContactBody.additionalPatientInformation.gender (Patient gender)</td><td colspan=\"2\" style=\"background-color: #efefef\">(not mapped)</td><td style=\"background-color: #efefef\">NOT MAPPED to Encounter. Belongs in Patient.gender. Included in TKB for cases without PU lookup. Use KV Kön (OID 1.2.752.129.2.2.1.1).</td></tr></table><hr/><p><b>Group 3 </b>Mapping from <code>https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCareContactsResponder/2</code> to <a href=\"http://hl7.org/fhir/R4/provenance.html\">Provenance</a></p><table class=\"grid\"><tr><td><b>Source Code</b></td><td><b>Relationship</b></td><td><b>Target Code</b></td><td><b>Comment</b></td></tr><tr><td>careContact.careContactHeader.sourceSystemHSAid (Source system HSA-ID)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>entity.what</td><td>HSA-ID of source system. Also mapped to Encounter.meta.source as URI: https://hsaid.se/{HSA-ID}. In Provenance.entity with role=source.</td></tr><tr><td>careContact.careContactHeader.accountableHealthcareProfessional.authorTime (Author time (when information was registered))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>recorded</td><td>Timestamp when care contact information was recorded/registered. Also mapped to Encounter.meta.lastUpdated.</td></tr><tr><td>careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalHSAid (Healthcare professional HSA-ID)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>agent.who</td><td>Reference to Practitioner with HSA-ID identifier. Agent.type=author. Also mapped to Encounter.participant for clinical involvement.</td></tr><tr><td>careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalName (Healthcare professional name)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>agent.who.display</td><td>Display name for practitioner. Full Practitioner resource should include structured name.</td></tr><tr><td>careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalRoleCode (Healthcare professional role/befattning)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#relatedto\" title=\"relatedto\">is related to</a></td><td>agent.role</td><td>Professional role (befattning). Use KV Befattning (OID 1.2.752.129.2.2.1.4). Mapped to Provenance.agent.role or stored in Practitioner.qualification.</td></tr><tr><td>careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalOrgUnit.orgUnitHSAid (Organization unit HSA-ID (where professional works))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>agent.onBehalfOf</td><td>Reference to Organization representing organizational unit. Part of organization hierarchy (orgUnit → careUnit → careGiver).</td></tr><tr><td>careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalOrgUnit.orgUnitName (Organization unit name)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#relatedto\" title=\"relatedto\">is related to</a></td><td/><td>Name of organizational unit. Stored in referenced Organization resource, not in Provenance directly.</td></tr><tr><td>careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalOrgUnit.orgUnitTelecom (Organization unit telephone)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#relatedto\" title=\"relatedto\">is related to</a></td><td/><td>Phone number. Stored in Organization.telecom with system=phone.</td></tr><tr><td>careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalOrgUnit.orgUnitEmail (Organization unit email)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#relatedto\" title=\"relatedto\">is related to</a></td><td/><td>Email address. Stored in Organization.telecom with system=email.</td></tr><tr><td>careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalOrgUnit.orgUnitAddress (Organization unit postal address)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#relatedto\" title=\"relatedto\">is related to</a></td><td/><td>Postal address in natural format. Stored in Organization.address.text and parsed into structured elements if possible.</td></tr><tr><td>careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalOrgUnit.orgUnitLocation (Organization unit location (city/place))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#relatedto\" title=\"relatedto\">is related to</a></td><td/><td>Physical location name/city. Stored in Organization.address.city or as Location resource.</td></tr><tr><td>careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalCareUnitHSAid (Care unit HSA-ID (vårdenhet - PDL enhet))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>entity.what</td><td>HSA-ID for care unit (vårdenhet). Reference to Organization. Part of hierarchy chain. Also in Encounter.serviceProvider.</td></tr><tr><td>careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalCareGiverHSAid (Care provider HSA-ID (vårdgivare))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>entity.what</td><td>HSA-ID for care provider (vårdgivare). Top-level organization in hierarchy. Reference to Organization.</td></tr><tr><td>careContact.careContactBody.careContactOrgUnit.orgUnitHSAid (Care contact org unit HSA-ID (where contact occurred))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#relatedto\" title=\"relatedto\">is related to</a></td><td/><td>Organization unit where care contact was performed. Can differ from professional's home unit. Mapped to Encounter.serviceProvider or Encounter.location.</td></tr><tr><td>careContact.careContactBody.careContactOrgUnit.orgUnitName (Care contact org unit name)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#relatedto\" title=\"relatedto\">is related to</a></td><td/><td>Name of unit where contact occurred. Stored in Organization or Location resource.</td></tr><tr><td>careContact.careContactBody.careContactOrgUnit.orgUnitTelecom (Care contact org unit telephone)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#relatedto\" title=\"relatedto\">is related to</a></td><td/><td>Phone for unit where contact occurred.</td></tr><tr><td>careContact.careContactBody.careContactOrgUnit.orgUnitEmail (Care contact org unit email)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#relatedto\" title=\"relatedto\">is related to</a></td><td/><td>Email for unit where contact occurred.</td></tr><tr><td>careContact.careContactBody.careContactOrgUnit.orgUnitAddress (Care contact org unit address)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#relatedto\" title=\"relatedto\">is related to</a></td><td/><td>Address of unit where contact occurred.</td></tr><tr><td>careContact.careContactBody.careContactOrgUnit.orgUnitLocation (Care contact org unit location (city/place))</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#relatedto\" title=\"relatedto\">is related to</a></td><td/><td>Physical location/city where contact occurred.</td></tr></table><hr/><p><b>Group 4 </b>Mapping from <code>https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCareContactsResponder/2</code> to <a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a></p><table class=\"grid\"><tr><td><b>Source Code</b></td><td><b>Relationship</b></td><td><b>Target Code</b></td><td><b>Comment</b></td></tr><tr><td>careContact.careContactHeader.documentTitle (Document title (DEPRECATED - shall not be used))</td><td colspan=\"2\" style=\"background-color: #efefef\">(not mapped)</td><td style=\"background-color: #efefef\">NOT MAPPED. TKB specifies cardinality 0..0 - this field shall not be populated.</td></tr><tr><td>careContact.careContactHeader.documentTime (Document time (DEPRECATED - shall not be used))</td><td colspan=\"2\" style=\"background-color: #efefef\">(not mapped)</td><td style=\"background-color: #efefef\">NOT MAPPED. TKB specifies cardinality 0..0 - use accountableHealthcareProfessional.authorTime instead.</td></tr><tr><td>careContact.careContactHeader.legalAuthenticator (Legal authenticator (DEPRECATED - shall not be used))</td><td colspan=\"2\" style=\"background-color: #efefef\">(not mapped)</td><td style=\"background-color: #efefef\">NOT MAPPED. TKB specifies cardinality 0..0 - not used for care contacts.</td></tr><tr><td>careContact.careContactHeader.nullified (Nullified flag (DEPRECATED - shall not be used))</td><td colspan=\"2\" style=\"background-color: #efefef\">(not mapped)</td><td style=\"background-color: #efefef\">NOT MAPPED. TKB specifies cardinality 0..0 - use careContactStatus=makulerad (53691000052102) instead.</td></tr><tr><td>careContact.careContactHeader.nullifiedReason (Nullified reason (DEPRECATED - shall not be used))</td><td colspan=\"2\" style=\"background-color: #efefef\">(not mapped)</td><td style=\"background-color: #efefef\">NOT MAPPED. TKB specifies cardinality 0..0.</td></tr><tr><td>careContact.careContactHeader.careContactId (Care contact ID in header (DEPRECATED - use documentId))</td><td colspan=\"2\" style=\"background-color: #efefef\">(not mapped)</td><td style=\"background-color: #efefef\">NOT MAPPED. TKB specifies cardinality 0..0 - use careContactHeader.documentId instead.</td></tr><tr><td>result.resultCode (Result code (OK, INFO, ERROR))</td><td colspan=\"2\" style=\"background-color: #efefef\">(not mapped)</td><td style=\"background-color: #efefef\">NOT MAPPED to resources. Used in Bundle-level OperationOutcome or HTTP status codes. OK→200, INFO→200 with warnings, ERROR→4xx/5xx.</td></tr><tr><td>result.errorCode (Error code (when resultCode=ERROR))</td><td colspan=\"2\" style=\"background-color: #efefef\">(not mapped)</td><td style=\"background-color: #efefef\">NOT MAPPED to resources. Used in OperationOutcome.issue.code for error responses.</td></tr><tr><td>result.subCode (Error sub-code)</td><td colspan=\"2\" style=\"background-color: #efefef\">(not mapped)</td><td style=\"background-color: #efefef\">NOT MAPPED. No subcodes specified in GetCareContacts v2.0/v3.0.</td></tr><tr><td>result.logId (Log ID (UUID for troubleshooting))</td><td colspan=\"2\" style=\"background-color: #efefef\">(not mapped)</td><td style=\"background-color: #efefef\">NOT MAPPED to resources. Used in OperationOutcome.issue.diagnostics or X-Request-Id header for error tracking.</td></tr><tr><td>result.message (Result message (descriptive text))</td><td colspan=\"2\" style=\"background-color: #efefef\">(not mapped)</td><td style=\"background-color: #efefef\">NOT MAPPED to resources. User-facing message in OperationOutcome.issue.diagnostics or Bundle.entry.response.outcome.</td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [
fhir:v "https://inera.se/fhir/core/ConceptMap/getcarecontacts-tkb-to-encounter"^^xsd:anyURI ;
fhir:l <https://inera.se/fhir/core/ConceptMap/getcarecontacts-tkb-to-encounter>
  ] ; # 
  fhir:version [ fhir:v "0.2.0"] ; # 
  fhir:name [ fhir:v "ConceptMapGetCareContactsTKBToEncounter"] ; # 
  fhir:title [ fhir:v "ConceptMap GetCareContacts TKB to FHIR Encounter"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:experimental [ fhir:v true] ; # 
  fhir:date [ fhir:v "2025-11-24"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "Inera AB"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "Inera AB" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "https://www.inera.se" ]     ] [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "info@inera.se" ]     ] )
  ] [
fhir:name [ fhir:v "Inera AB" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "https://www.inera.se" ]     ] [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "info@inera.se" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Complete mapping from GetCareContacts TKB logical model to FHIR Encounter and Provenance resources"] ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [
fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
fhir:l <urn:iso:std:iso:3166>       ] ;
fhir:code [ fhir:v "SE" ] ;
fhir:display [ fhir:v "Sweden" ]     ] )
  ] ) ; # 
  fhir:source [
a fhir:Uri ;
fhir:v "https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCareContactsResponder/2"^^xsd:anyURI ;
fhir:l <https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCareContactsResponder/2>
  ] ; # 
  fhir:target [
a fhir:Canonical ;
fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/Encounter>
  ] ; # 
  fhir:group ( [
fhir:source [
fhir:v "https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCareContactsResponder/2"^^xsd:anyURI ;
fhir:l <https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCareContactsResponder/2>     ] ;
fhir:target [
fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/Bundle>     ] ;
    ( fhir:element [
fhir:code [ fhir:v "GetCareContactsResponse.patient-id" ] ;
fhir:display [ fhir:v "Patient ID (personnummer/samordningsnummer)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "subject" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Reference to Patient resource with Swedish national identifier" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.careContactId" ] ;
fhir:display [ fhir:v "Care contact ID (unique identifier)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "identifier" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Business identifier for care contact. Use system from source system URL." ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.contactStatus" ] ;
fhir:display [ fhir:v "Contact status (planned, arrived, in-progress, finished)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "status" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Encounter status: planned|arrived|triaged|in-progress|onleave|finished|cancelled|entered-in-error|unknown" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.careContactType.class" ] ;
fhir:display [ fhir:v "Care contact class (inpatient, outpatient, emergency)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "class" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Encounter class. System: http://terminology.hl7.org/CodeSystem/v3-ActCode. Values: IMP (inpatient), AMB (ambulatory/outpatient), EMER (emergency), HH (home health), VR (virtual)" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.careContactType.code" ] ;
fhir:display [ fhir:v "Care contact type code (detailed Swedish contact type)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "type.coding.code" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Swedish care contact type codes. System: https://terminologitjansten.inera.se/inera-kodverksforvaltning/kodverk/kv_vardkontakttyp (OID: 1.2.752.129.2.2.2.25). Examples: läkarbesök, sjuksköterskebesök, hembesök, telefonkontakt" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.serviceType.code" ] ;
fhir:display [ fhir:v "Service type (specialty, clinic type)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "serviceType.coding.code" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Type of service provided. Swedish specialty codes or clinic types." ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.priority" ] ;
fhir:display [ fhir:v "Contact priority (routine, urgent, emergency)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "priority" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Encounter priority. System: http://terminology.hl7.org/CodeSystem/v3-ActPriority" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.period.start" ] ;
fhir:display [ fhir:v "Contact start date/time" ] ;
      ( fhir:target [
fhir:code [ fhir:v "period.start" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "When care contact started (admission time for inpatient, arrival time for outpatient)" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.period.end" ] ;
fhir:display [ fhir:v "Contact end date/time" ] ;
      ( fhir:target [
fhir:code [ fhir:v "period.end" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "When care contact ended (discharge time for inpatient, departure time for outpatient)" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.length" ] ;
fhir:display [ fhir:v "Contact length/duration" ] ;
      ( fhir:target [
fhir:code [ fhir:v "length" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Quantity of time the encounter lasted. Can be calculated from period if not explicitly provided." ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.reasonCode.code" ] ;
fhir:display [ fhir:v "Reason for contact (chief complaint, diagnosis)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "reasonCode.coding.code" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Coded reason for encounter. ICD-10-SE, SNOMED CT, or Swedish symptom codes." ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.reasonReference" ] ;
fhir:display [ fhir:v "Reason reference (condition, observation)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "reasonReference" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Reference to Condition, Observation, or Procedure representing reason for encounter" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.diagnosis.diagnosisCode" ] ;
fhir:display [ fhir:v "Encounter diagnosis" ] ;
      ( fhir:target [
fhir:code [ fhir:v "diagnosis.condition" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Reference to Condition resource. Can have multiple diagnoses with different uses (admission, discharge, billing)." ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.diagnosis.use" ] ;
fhir:display [ fhir:v "Diagnosis use (admission, discharge, billing)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "diagnosis.use" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Role of diagnosis. System: http://terminology.hl7.org/CodeSystem/diagnosis-role. Values: AD (admission), DD (discharge), CC (chief complaint), billing" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.diagnosis.rank" ] ;
fhir:display [ fhir:v "Diagnosis rank (primary, secondary)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "diagnosis.rank" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Ranking of diagnosis (1 = primary diagnosis)" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.participant.healthcareProfessionalHSAId" ] ;
fhir:display [ fhir:v "Participant HSA-ID (physician, nurse, etc.)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "participant.individual" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Reference to Practitioner participating in encounter. Can have multiple participants." ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.participant.participantType" ] ;
fhir:display [ fhir:v "Participant type/role (attending, consulting, etc.)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "participant.type.coding.code" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Type of participation. System: http://terminology.hl7.org/CodeSystem/v3-ParticipationType. Values: ATND (attender), CON (consultant), ADM (admitter), DIS (discharger)" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.participant.period" ] ;
fhir:display [ fhir:v "Participant period (when participant was involved)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "participant.period" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Time period during which participant was involved in encounter" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.appointmentId" ] ;
fhir:display [ fhir:v "Appointment ID (if contact was pre-scheduled)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "appointment" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Reference to Appointment resource if encounter was scheduled" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.basedOn" ] ;
fhir:display [ fhir:v "Based on (referral, service request)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "basedOn" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Reference to ServiceRequest, CarePlan, or other request that initiated the encounter" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.partOf" ] ;
fhir:display [ fhir:v "Part of (parent encounter)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "partOf" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Reference to parent Encounter. Example: outpatient visit as part of inpatient stay." ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.serviceProvider.organizationHSAId" ] ;
fhir:display [ fhir:v "Service provider HSA-ID (care unit)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "serviceProvider" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Reference to Organization (care unit) providing the encounter" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.location.locationId" ] ;
fhir:display [ fhir:v "Location ID (room, ward, clinic)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "location.location" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Reference to Location resource (room, ward, clinic, building)" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.location.status" ] ;
fhir:display [ fhir:v "Location status (planned, active, completed)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "location.status" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Status of location during encounter: planned|active|reserved|completed" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.location.period" ] ;
fhir:display [ fhir:v "Location period (time at this location)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "location.period" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Time period patient was at this location. Can have multiple locations during one encounter." ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.hospitalization.preAdmissionIdentifier" ] ;
fhir:display [ fhir:v "Pre-admission identifier" ] ;
      ( fhir:target [
fhir:code [ fhir:v "hospitalization.preAdmissionIdentifier" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Pre-admission identifier (e.g., pre-registration number)" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.hospitalization.origin" ] ;
fhir:display [ fhir:v "Admission origin (from where patient came)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "hospitalization.origin" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Reference to Location from where patient came (e.g., home, other hospital, nursing home)" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.hospitalization.admitSource" ] ;
fhir:display [ fhir:v "Admit source (how patient was admitted)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "hospitalization.admitSource" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "From where patient was admitted. System: http://terminology.hl7.org/CodeSystem/admit-source" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.hospitalization.reAdmission" ] ;
fhir:display [ fhir:v "Re-admission indicator" ] ;
      ( fhir:target [
fhir:code [ fhir:v "hospitalization.reAdmission" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Whether this hospitalization is a re-admission" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.hospitalization.dietPreference" ] ;
fhir:display [ fhir:v "Dietary preference" ] ;
      ( fhir:target [
fhir:code [ fhir:v "hospitalization.dietPreference" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Diet preferences or restrictions during hospitalization" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.hospitalization.specialArrangement" ] ;
fhir:display [ fhir:v "Special arrangements (interpreter, wheelchair, etc.)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "hospitalization.specialArrangement" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Special arrangements needed during encounter" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.hospitalization.destination" ] ;
fhir:display [ fhir:v "Discharge destination (to where patient discharged)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "hospitalization.destination" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Reference to Location to where patient was discharged (e.g., home, other hospital, nursing home, deceased)" ]       ] )     ] [
fhir:code [ fhir:v "GetCareContactsResponse.careContact.hospitalization.dischargeDisposition" ] ;
fhir:display [ fhir:v "Discharge disposition (outcome of hospitalization)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "hospitalization.dischargeDisposition" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Category or kind of location after discharge. System: http://terminology.hl7.org/CodeSystem/discharge-disposition" ]       ] )     ] )
  ] [
fhir:source [
fhir:v "https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCareContactsResponder/2"^^xsd:anyURI ;
fhir:l <https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCareContactsResponder/2>     ] ;
fhir:target [
fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/Encounter>     ] ;
    ( fhir:element [
fhir:code [ fhir:v "careContact.careContactHeader.documentId" ] ;
fhir:display [ fhir:v "Care contact document ID (unique business identifier)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "identifier" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Business identifier for care contact. System derived from sourceSystemHSAId. Must be consistent across TKB contract versions." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactHeader.patientId" ] ;
fhir:display [ fhir:v "Patient ID (personnummer/samordningsnummer/reservnummer)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "subject" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Reference to Patient resource with Swedish national identifier (OID 1.2.752.129.2.1.3.1 for personnummer, 1.2.752.129.2.1.3.3 for samordningsnummer)" ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactHeader.approvedForPatient" ] ;
fhir:display [ fhir:v "Approved for patient access (true/false)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "meta.security" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "If false, add security label NOPATIENT (http://terminology.hl7.org/CodeSystem/v3-ActCode#NOPATIENT) to restrict patient access. See menprövningsflagga documentation." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactBody.careContactCode" ] ;
fhir:display [ fhir:v "Care contact type code (vårdkontakttyp)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "type" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Swedish care contact type. System: https://terminologitjansten.inera.se/inera-kodverksforvaltning/kodverk/kv_vardkontakttyp (OID 1.2.752.129.2.2.2.25). Maps to both Encounter.class (high-level) and Encounter.type (detailed)." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactBody.careContactReason" ] ;
fhir:display [ fhir:v "Care contact reason (free text from patient)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "reasonCode.text" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Free text reason for care contact as stated by patient or representative. Can also create Condition/Observation and reference via reasonReference." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactBody.careContactTimePeriod.start" ] ;
fhir:display [ fhir:v "Care contact start time" ] ;
      ( fhir:target [
fhir:code [ fhir:v "period.start" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Start time of care contact (admission for inpatient, arrival for outpatient). For outpatient visits, start and end may be same value." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactBody.careContactTimePeriod.end" ] ;
fhir:display [ fhir:v "Care contact end time" ] ;
      ( fhir:target [
fhir:code [ fhir:v "period.end" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "End time of care contact (discharge for inpatient, departure for outpatient). For outpatient visits, start and end may be same value." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactBody.careContactStatus" ] ;
fhir:display [ fhir:v "Care contact status (SNOMED CT SE codes)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "status" ] ;
fhir:equivalence [ fhir:v "relatedto" ] ;
fhir:comment [ fhir:v "Maps from SNOMED CT SE (SCTID 53761000052103) to FHIR status. SNOMED 53631000052103 (tidbokad)→planned, 53651000052107 (pågående)→in-progress, 53671000052101 (avslutad)→finished, 53661000052105 (avbruten)→cancelled, 53641000052109 (inställd)→cancelled, 53691000052102 (makulerad)→entered-in-error" ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactBody.additionalPatientInformation.dateOfBirth" ] ;
fhir:display [ fhir:v "Patient date of birth" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "unmatched" ] ;
fhir:comment [ fhir:v "NOT MAPPED to Encounter. Belongs in Patient.birthDate. Included in TKB for cases without PU lookup. Format can be YYYY, YYYYMM, or YYYYMMDD." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactBody.additionalPatientInformation.gender" ] ;
fhir:display [ fhir:v "Patient gender" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "unmatched" ] ;
fhir:comment [ fhir:v "NOT MAPPED to Encounter. Belongs in Patient.gender. Included in TKB for cases without PU lookup. Use KV Kön (OID 1.2.752.129.2.2.1.1)." ]       ] )     ] )
  ] [
fhir:source [
fhir:v "https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCareContactsResponder/2"^^xsd:anyURI ;
fhir:l <https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCareContactsResponder/2>     ] ;
fhir:target [
fhir:v "http://hl7.org/fhir/StructureDefinition/Provenance"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/Provenance>     ] ;
    ( fhir:element [
fhir:code [ fhir:v "careContact.careContactHeader.sourceSystemHSAid" ] ;
fhir:display [ fhir:v "Source system HSA-ID" ] ;
      ( fhir:target [
fhir:code [ fhir:v "entity.what" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "HSA-ID of source system. Also mapped to Encounter.meta.source as URI: https://hsaid.se/{HSA-ID}. In Provenance.entity with role=source." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactHeader.accountableHealthcareProfessional.authorTime" ] ;
fhir:display [ fhir:v "Author time (when information was registered)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "recorded" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Timestamp when care contact information was recorded/registered. Also mapped to Encounter.meta.lastUpdated." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalHSAid" ] ;
fhir:display [ fhir:v "Healthcare professional HSA-ID" ] ;
      ( fhir:target [
fhir:code [ fhir:v "agent.who" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Reference to Practitioner with HSA-ID identifier. Agent.type=author. Also mapped to Encounter.participant for clinical involvement." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalName" ] ;
fhir:display [ fhir:v "Healthcare professional name" ] ;
      ( fhir:target [
fhir:code [ fhir:v "agent.who.display" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Display name for practitioner. Full Practitioner resource should include structured name." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalRoleCode" ] ;
fhir:display [ fhir:v "Healthcare professional role/befattning" ] ;
      ( fhir:target [
fhir:code [ fhir:v "agent.role" ] ;
fhir:equivalence [ fhir:v "relatedto" ] ;
fhir:comment [ fhir:v "Professional role (befattning). Use KV Befattning (OID 1.2.752.129.2.2.1.4). Mapped to Provenance.agent.role or stored in Practitioner.qualification." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalOrgUnit.orgUnitHSAid" ] ;
fhir:display [ fhir:v "Organization unit HSA-ID (where professional works)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "agent.onBehalfOf" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Reference to Organization representing organizational unit. Part of organization hierarchy (orgUnit → careUnit → careGiver)." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalOrgUnit.orgUnitName" ] ;
fhir:display [ fhir:v "Organization unit name" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "relatedto" ] ;
fhir:comment [ fhir:v "Name of organizational unit. Stored in referenced Organization resource, not in Provenance directly." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalOrgUnit.orgUnitTelecom" ] ;
fhir:display [ fhir:v "Organization unit telephone" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "relatedto" ] ;
fhir:comment [ fhir:v "Phone number. Stored in Organization.telecom with system=phone." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalOrgUnit.orgUnitEmail" ] ;
fhir:display [ fhir:v "Organization unit email" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "relatedto" ] ;
fhir:comment [ fhir:v "Email address. Stored in Organization.telecom with system=email." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalOrgUnit.orgUnitAddress" ] ;
fhir:display [ fhir:v "Organization unit postal address" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "relatedto" ] ;
fhir:comment [ fhir:v "Postal address in natural format. Stored in Organization.address.text and parsed into structured elements if possible." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalOrgUnit.orgUnitLocation" ] ;
fhir:display [ fhir:v "Organization unit location (city/place)" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "relatedto" ] ;
fhir:comment [ fhir:v "Physical location name/city. Stored in Organization.address.city or as Location resource." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalCareUnitHSAid" ] ;
fhir:display [ fhir:v "Care unit HSA-ID (vårdenhet - PDL enhet)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "entity.what" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "HSA-ID for care unit (vårdenhet). Reference to Organization. Part of hierarchy chain. Also in Encounter.serviceProvider." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactHeader.accountableHealthcareProfessional.healthcareProfessionalCareGiverHSAid" ] ;
fhir:display [ fhir:v "Care provider HSA-ID (vårdgivare)" ] ;
      ( fhir:target [
fhir:code [ fhir:v "entity.what" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "HSA-ID for care provider (vårdgivare). Top-level organization in hierarchy. Reference to Organization." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactBody.careContactOrgUnit.orgUnitHSAid" ] ;
fhir:display [ fhir:v "Care contact org unit HSA-ID (where contact occurred)" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "relatedto" ] ;
fhir:comment [ fhir:v "Organization unit where care contact was performed. Can differ from professional's home unit. Mapped to Encounter.serviceProvider or Encounter.location." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactBody.careContactOrgUnit.orgUnitName" ] ;
fhir:display [ fhir:v "Care contact org unit name" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "relatedto" ] ;
fhir:comment [ fhir:v "Name of unit where contact occurred. Stored in Organization or Location resource." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactBody.careContactOrgUnit.orgUnitTelecom" ] ;
fhir:display [ fhir:v "Care contact org unit telephone" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "relatedto" ] ;
fhir:comment [ fhir:v "Phone for unit where contact occurred." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactBody.careContactOrgUnit.orgUnitEmail" ] ;
fhir:display [ fhir:v "Care contact org unit email" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "relatedto" ] ;
fhir:comment [ fhir:v "Email for unit where contact occurred." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactBody.careContactOrgUnit.orgUnitAddress" ] ;
fhir:display [ fhir:v "Care contact org unit address" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "relatedto" ] ;
fhir:comment [ fhir:v "Address of unit where contact occurred." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactBody.careContactOrgUnit.orgUnitLocation" ] ;
fhir:display [ fhir:v "Care contact org unit location (city/place)" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "relatedto" ] ;
fhir:comment [ fhir:v "Physical location/city where contact occurred." ]       ] )     ] )
  ] [
fhir:source [
fhir:v "https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCareContactsResponder/2"^^xsd:anyURI ;
fhir:l <https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCareContactsResponder/2>     ] ;
fhir:target [
fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/Bundle>     ] ;
    ( fhir:element [
fhir:code [ fhir:v "careContact.careContactHeader.documentTitle" ] ;
fhir:display [ fhir:v "Document title (DEPRECATED - shall not be used)" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "unmatched" ] ;
fhir:comment [ fhir:v "NOT MAPPED. TKB specifies cardinality 0..0 - this field shall not be populated." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactHeader.documentTime" ] ;
fhir:display [ fhir:v "Document time (DEPRECATED - shall not be used)" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "unmatched" ] ;
fhir:comment [ fhir:v "NOT MAPPED. TKB specifies cardinality 0..0 - use accountableHealthcareProfessional.authorTime instead." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactHeader.legalAuthenticator" ] ;
fhir:display [ fhir:v "Legal authenticator (DEPRECATED - shall not be used)" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "unmatched" ] ;
fhir:comment [ fhir:v "NOT MAPPED. TKB specifies cardinality 0..0 - not used for care contacts." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactHeader.nullified" ] ;
fhir:display [ fhir:v "Nullified flag (DEPRECATED - shall not be used)" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "unmatched" ] ;
fhir:comment [ fhir:v "NOT MAPPED. TKB specifies cardinality 0..0 - use careContactStatus=makulerad (53691000052102) instead." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactHeader.nullifiedReason" ] ;
fhir:display [ fhir:v "Nullified reason (DEPRECATED - shall not be used)" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "unmatched" ] ;
fhir:comment [ fhir:v "NOT MAPPED. TKB specifies cardinality 0..0." ]       ] )     ] [
fhir:code [ fhir:v "careContact.careContactHeader.careContactId" ] ;
fhir:display [ fhir:v "Care contact ID in header (DEPRECATED - use documentId)" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "unmatched" ] ;
fhir:comment [ fhir:v "NOT MAPPED. TKB specifies cardinality 0..0 - use careContactHeader.documentId instead." ]       ] )     ] [
fhir:code [ fhir:v "result.resultCode" ] ;
fhir:display [ fhir:v "Result code (OK, INFO, ERROR)" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "unmatched" ] ;
fhir:comment [ fhir:v "NOT MAPPED to resources. Used in Bundle-level OperationOutcome or HTTP status codes. OK→200, INFO→200 with warnings, ERROR→4xx/5xx." ]       ] )     ] [
fhir:code [ fhir:v "result.errorCode" ] ;
fhir:display [ fhir:v "Error code (when resultCode=ERROR)" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "unmatched" ] ;
fhir:comment [ fhir:v "NOT MAPPED to resources. Used in OperationOutcome.issue.code for error responses." ]       ] )     ] [
fhir:code [ fhir:v "result.subCode" ] ;
fhir:display [ fhir:v "Error sub-code" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "unmatched" ] ;
fhir:comment [ fhir:v "NOT MAPPED. No subcodes specified in GetCareContacts v2.0/v3.0." ]       ] )     ] [
fhir:code [ fhir:v "result.logId" ] ;
fhir:display [ fhir:v "Log ID (UUID for troubleshooting)" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "unmatched" ] ;
fhir:comment [ fhir:v "NOT MAPPED to resources. Used in OperationOutcome.issue.diagnostics or X-Request-Id header for error tracking." ]       ] )     ] [
fhir:code [ fhir:v "result.message" ] ;
fhir:display [ fhir:v "Result message (descriptive text)" ] ;
      ( fhir:target [
fhir:equivalence [ fhir:v "unmatched" ] ;
fhir:comment [ fhir:v "NOT MAPPED to resources. User-facing message in OperationOutcome.issue.diagnostics or Bundle.entry.response.outcome." ]       ] )     ] )
  ] ) . #