FHIR Mapping Language (FML)
0.1.0 - STU 1 World

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

: Comments

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/Comments> 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 Comments</b></p><a name=\"Comments\"> </a><a name=\"hcComments\"> </a><pre class=\"fml\">#xD;\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/uv/mapping-language/StructureMap/Comments'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>version</b> = </span><span style=\"color: blue\">'0.1.0'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'Comments'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>description</b> = </span><span style=\"color: blue\">'Example demonstrating the use of comments in FML'</span>#xD;\n#xD;\n<span style=\"color: navy\">// </span><span style=\"color: green\">comment on source structure import</span>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/6.0.0-ballot5/patient.html\" title=\"Patient\">http://hl7.org/fhir/StructureDefinition/Patient</a><span style=\"color: navy\">\" </span><b>as </b><b>source</b>#xD;\n<span style=\"color: navy\">// </span><span style=\"color: green\">comment on target structure import</span>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/6.0.0-ballot5/patient.html\" title=\"Patient\">http://hl7.org/fhir/StructureDefinition/Patient</a><span style=\"color: navy\">\" </span><b>as </b><b>target</b>#xD;\n#xD;\n<span style=\"color: navy\">// </span><span style=\"color: green\">This is a comment on the group</span>#xD;\n<b>group </b>CommentsDemo<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>Patient, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>Patient<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  <span style=\"color: navy\">// </span><span style=\"color: green\">A comment preceding a rule R1</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">with more than one line</span>#xD;\n  src.birthDate<span style=\"color: navy\"><b> -&gt; </b></span>tgt.birthDate <i>\"R1\"</i><span style=\"color: navy\">;</span>#xD;\n  src.active<span style=\"color: navy\"><b> -&gt; </b></span>tgt.active <i>\"R2\"</i><span style=\"color: navy\">;</span>#xD;\n  src.name<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.name<b> as </b><span style=\"color: maroon\">tn</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    <span style=\"color: navy\">// </span><span style=\"color: green\">before R3 comment</span>#xD;\n    v.family<span style=\"color: navy\"><b> -&gt; </b></span>tn.family <i>\"R3\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"R4\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/uv/mapping-language/StructureMap/Comments"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/uv/mapping-language/StructureMap/Comments>
  ] ; # 
  fhir:version [ fhir:v "0.1.0"] ; # 
  fhir:name [ fhir:v "Comments"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:description [ fhir:v "Example demonstrating the use of comments in FML"] ; # 
  fhir:structure ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/Patient>
     ] ;
     fhir:documentation [ fhir:v "comment on source structure import" ] ;
     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:documentation [ fhir:v "comment on target structure import" ] ;
     fhir:mode [ fhir:v "target" ]
  ] ) ; # 
  fhir:group ( [
     fhir:documentation [ fhir:v "This is a comment on the group" ] ;
     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 "birthDate" ] ) ;
         fhir:variable [ fhir:v "vvv" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:element ( [ fhir:v "birthDate" ] ) ;
         fhir:variable [ fhir:v "vvv" ] ;
         fhir:transform [ fhir:v "create" ]
       ] ) ;
       fhir:documentation [ fhir:v "A comment preceding a rule R1\r\nwith more than one line" ] ;
       fhir:name [ fhir:v "R1" ]
     ] [
       fhir:source ( [
         fhir:context [ fhir:v "src" ] ;
         fhir:element ( [ fhir:v "active" ] ) ;
         fhir:variable [ fhir:v "vvv" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:element ( [ fhir:v "active" ] ) ;
         fhir:variable [ fhir:v "vvv" ] ;
         fhir:transform [ fhir:v "create" ]
       ] ) ;
       fhir:name [ fhir:v "R2" ]
     ] [
       fhir:source ( [
         fhir:context [ fhir:v "src" ] ;
         fhir:element ( [ fhir:v "name" ] ) ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:element ( [ fhir:v "name" ] ) ;
         fhir:variable [ fhir:v "tn" ]
       ] ) ;
       fhir:rule ( [
         fhir:source ( [
           fhir:context [ fhir:v "v" ] ;
           fhir:element ( [ fhir:v "family" ] ) ;
           fhir:variable [ fhir:v "vvv" ]
         ] ) ;
         fhir:target ( [
           fhir:context [ fhir:v "tn" ] ;
           fhir:element ( [ fhir:v "family" ] ) ;
           fhir:variable [ fhir:v "vvv" ] ;
           fhir:transform [ fhir:v "create" ]
         ] ) ;
         fhir:documentation [ fhir:v "before R3 comment" ] ;
         fhir:name [ fhir:v "R3" ]
       ] ) ;
       fhir:name [ fhir:v "R4" ]
     ] ) ;
     fhir:name [ fhir:v "CommentsDemo" ]
  ] ) ; # 
  fhir:id [ fhir:v "Comments"] ; # 
  fhir:language [ fhir:v "en"] . #