Regelverk för interoperabilitet inom vård och omsorg (RIV-TA) - POC - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
: Map from Patient Logical Model to FHIR Patient - TTL Representation
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:StructureMap ;
fhir:nodeRole fhir:treeRoot ;
fhir:id [ fhir:v "MyStructureMap"] ; #
fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap MyStructureMap</b></p><a name=\"MyStructureMap\"> </a><a name=\"hcMyStructureMap\"> </a><a name=\"MyStructureMap-en-US\"> </a><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> "</span>http://example.org/fhir/StructureMap/MyStructureMap<span style=\"color: navy\">" = "</span>MyStructureMap<span style=\"color: navy\">"\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Maps fields from PatientLM (a logical model) to FHIR Patient resource.</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://example.org/fhir/StructureDefinition/PatientSummaryHeaderType<span style=\"color: navy\">" </span><b>alias </b>src <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4/patient.html\" title=\"Patient\">http://hl7.org/fhir/StructureDefinition/Patient</a><span style=\"color: navy\">" </span><b>alias </b>tgt <b>as </b><b>target</b>\r\n\r\n<b>group </b>PatientMapping<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>patientId, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>identifier<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> src.patientId<span style=\"color: navy\"><b> -> </b></span>tgt.identifier = <b>copy</b><span style=\"color: navy\">(</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"^^rdf:XMLLiteral
] ; #
fhir:url [ fhir:v "http://example.org/fhir/StructureMap/MyStructureMap"^^xsd:anyURI] ; #
fhir:version [ fhir:v "0.1.0"] ; #
fhir:name [ fhir:v "MyStructureMap"] ; #
fhir:title [ fhir:v "Map from Patient Logical Model to FHIR Patient"] ; #
fhir:status [ fhir:v "active"] ; #
fhir:date [ fhir:v "2025-05-21T13:18:11+02:00"^^xsd:dateTime] ; #
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 "http://inera.se" ] ] )
] ) ; #
fhir:description [ fhir:v "Maps fields from PatientLM (a logical model) to FHIR Patient resource."] ; #
fhir:structure ( [
fhir:url [
fhir:v "http://example.org/fhir/StructureDefinition/PatientSummaryHeaderType"^^xsd:anyURI ;
fhir:link <http://example.org/fhir/StructureDefinition/PatientSummaryHeaderType> ] ;
fhir:mode [ fhir:v "source" ] ;
fhir:alias [ fhir:v "src" ]
] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Patient> ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "tgt" ]
] ) ; #
fhir:group ( [
fhir:name [ fhir:v "PatientMapping" ] ;
fhir:typeMode [ fhir:v "none" ] ;
( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "patientId" ] ;
fhir:mode [ fhir:v "source" ] ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:type [ fhir:v "identifier" ] ;
fhir:mode [ fhir:v "target" ] ] ) ;
( fhir:rule [
fhir:name [ fhir:v "patientId" ] ;
( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "patientId" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:transform [ fhir:v "copy" ] ] ) ] )
] ) . #