FHIR Mapping Language (FML)
0.1.0 - STU 1 International flag

FHIR Mapping Language (FML), published by HL7 International / FHIR Infrastructure. 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/HL7/mapping-language-ig/ and changes regularly. See the Directory of published versions

: ConceptMapEmbedded - TTL Representation

Page standards status: Informative

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 -------------------------------------------------------------------

<http://hl7.org/fhir/StructureMap/ConceptMapEmbedded> a fhir:StructureMap ;
  fhir:resourceDefinition http://hl7.org/fhir/StructureDefinition/StructureMap|0.1.0 ;
  fhir:nodeRole fhir:treeRoot ;
  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: StructureMap ConceptMapEmbedded</b></p><a name=\"ConceptMapEmbedded\"> </a><a name=\"hcConceptMapEmbedded\"> </a><p><b>url</b>: <a href=\"http://hl7.org/fhir/uv/fml/StructureMap/ConceptMapEmbedded\">http://hl7.org/fhir/uv/fml/StructureMap/ConceptMapEmbedded</a></p><p><b>name</b>: ConceptMapEmbedded</p><p><b>status</b>: Active</p><p><b>description</b>: </p><div><p>Example Map to demonstrate an embedded ConceptMap</p>\n</div><blockquote><p><b>structure</b></p><p><b>url</b>: <a href=\"http://hl7.org/fhir/R5/patient.html\">Patient</a></p><p><b>mode</b>: Source Structure Definition</p></blockquote><blockquote><p><b>structure</b></p><p><b>url</b>: <a href=\"http://hl7.org/fhir/R5/patient.html\">Patient</a></p><p><b>mode</b>: Target Structure Definition</p></blockquote><blockquote><p><b>group</b></p><p><b>name</b>: ConceptMapEmbedded</p><blockquote><p><b>input</b></p><p><b>mode</b>: Source Instance</p><p><b>name</b>: src</p><p><b>type</b>: Patient</p></blockquote><blockquote><p><b>input</b></p><p><b>mode</b>: Target Instance</p><p><b>name</b>: tgt</p><p><b>type</b>: Patient</p></blockquote><blockquote><p><b>rule</b></p><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Context</b></td><td><b>Element</b></td><td><b>Variable</b></td></tr><tr><td style=\"display: none\">*</td><td>src</td><td>gender</td><td>v</td></tr></table><blockquote><p><b>target</b></p><p><b>context</b>: tgt</p><p><b>element</b>: gender</p><p><b>transform</b>: translate</p><blockquote><p><b>parameter</b></p><p><b>value</b>: v</p></blockquote><blockquote><p><b>parameter</b></p><p><b>value</b>: #GenderMap</p></blockquote><blockquote><p><b>parameter</b></p><p><b>value</b>: code</p></blockquote></blockquote><p><b>name</b>: r1</p></blockquote></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/uv/fml/StructureMap/ConceptMapEmbedded"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/uv/fml/StructureMap/ConceptMapEmbedded>
  ] ; # 
  fhir:name [ fhir:v "ConceptMapEmbedded"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:description [ fhir:v "Example Map to demonstrate an embedded ConceptMap"] ; # 
  fhir:structure ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/Patient>
     ] ;
     fhir:mode [ fhir:v "source" ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/Patient>
     ] ;
     fhir:mode [ fhir:v "target" ]
  ] ) ; # 
  fhir:group ( [
     fhir:name [ fhir:v "ConceptMapEmbedded" ] ;
     fhir:input ( [
       fhir:mode [ fhir:v "source" ] ;
       fhir:name [ fhir:v "src" ] ;
       fhir:type [ fhir:v "Patient" ]
     ] [
       fhir:mode [ fhir:v "target" ] ;
       fhir:name [ fhir:v "tgt" ] ;
       fhir:type [ fhir:v "Patient" ]
     ] ) ;
     fhir:rule ( [
       fhir:source ( [
         fhir:context [ fhir:v "src" ] ;
         fhir:element ( [ fhir:v "gender" ] ) ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:element ( [ fhir:v "gender" ] ) ;
         fhir:transform [ fhir:v "translate" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] [
           fhir:value [
             a fhir:String ;
             fhir:v "#GenderMap"
           ]
         ] [
           fhir:value [
             a fhir:String ;
             fhir:v "code"
           ]
         ] )
       ] ) ;
       fhir:name [ fhir:v "r1" ]
     ] )
  ] ) ; # 
  fhir:id [ fhir:v "ConceptMapEmbedded"] ; # 
  fhir:contained ( [
     a fhir:ConceptMap ;
     fhir:id [ fhir:v "GenderMap" ] ;
     fhir:status [ fhir:v "active" ] ;
     fhir:group ( [
       fhir:source [
         fhir:v "http://hl7.org/fhir/administrative-gender"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/administrative-gender>
       ] ;
       fhir:target [
         fhir:v "http://terminology.hl7.org/CodeSystem/v2-0001"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v2-0001>
       ] ;
       fhir:element ( [
         fhir:code [ fhir:v "male" ] ;
         fhir:target ( [
           fhir:relationship [ fhir:v "related-to" ] ;
           fhir:code [ fhir:v "M" ]
         ] )
       ] [
         fhir:code [ fhir:v "female" ] ;
         fhir:target ( [
           fhir:relationship [ fhir:v "related-to" ] ;
           fhir:code [ fhir:v "F" ]
         ] )
       ] [
         fhir:code [ fhir:v "other" ] ;
         fhir:target ( [
           fhir:relationship [ fhir:v "related-to" ] ;
           fhir:code [ fhir:v "O" ]
         ] )
       ] [
         fhir:code [ fhir:v "unknown" ] ;
         fhir:target ( [
           fhir:relationship [ fhir:v "related-to" ] ;
           fhir:code [ fhir:v "U" ]
         ] )
       ] )
     ] )
  ] ) . #