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

: TransformCast - 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/TransformCast> 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 TransformCast</b></p><a name=\"TransformCast\"> </a><a name=\"hcTransformCast\"> </a><p><b>url</b>: <a href=\"http://hl7.org/fhir/uv/fml/StructureMap/TransformCast\">http://hl7.org/fhir/uv/fml/StructureMap/TransformCast</a></p><p><b>name</b>: TransformCast</p><p><b>status</b>: Active</p><p><b>description</b>: </p><div><p>Example demonstrating the cast transform for type conversion</p>\n</div><blockquote><p><b>structure</b></p><p><b>url</b>: <a href=\"http://hl7.org/fhir/R5/basic.html\">Basic</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/basic.html\">Basic</a></p><p><b>mode</b>: Target Structure Definition</p></blockquote><blockquote><p><b>group</b></p><p><b>name</b>: TransformCast</p><blockquote><p><b>input</b></p><p><b>mode</b>: Source Instance</p><p><b>name</b>: src</p><p><b>type</b>: Basic</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>: Basic</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>id</td><td>v</td></tr></table><blockquote><p><b>target</b></p><p><b>context</b>: tgt</p><p><b>element</b>: id</p><p><b>transform</b>: cast</p><blockquote><p><b>parameter</b></p><p><b>value</b>: v</p></blockquote><blockquote><p><b>parameter</b></p><p><b>value</b>: string</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/TransformCast"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/uv/fml/StructureMap/TransformCast>
  ] ; # 
  fhir:name [ fhir:v "TransformCast"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:description [ fhir:v "Example demonstrating the cast transform for type conversion"] ; # 
  fhir:structure ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/Basic"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/Basic>
     ] ;
     fhir:mode [ fhir:v "source" ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/Basic"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/Basic>
     ] ;
     fhir:mode [ fhir:v "target" ]
  ] ) ; # 
  fhir:group ( [
     fhir:name [ fhir:v "TransformCast" ] ;
     fhir:input ( [
       fhir:mode [ fhir:v "source" ] ;
       fhir:name [ fhir:v "src" ] ;
       fhir:type [ fhir:v "Basic" ]
     ] [
       fhir:mode [ fhir:v "target" ] ;
       fhir:name [ fhir:v "tgt" ] ;
       fhir:type [ fhir:v "Basic" ]
     ] ) ;
     fhir:rule ( [
       fhir:source ( [
         fhir:context [ fhir:v "src" ] ;
         fhir:element ( [ fhir:v "id" ] ) ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:element ( [ fhir:v "id" ] ) ;
         fhir:transform [ fhir:v "cast" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] [
           fhir:value [
             a fhir:String ;
             fhir:v "string"
           ]
         ] )
       ] ) ;
       fhir:name [ fhir:v "r1" ]
     ] )
  ] ) ; # 
  fhir:id [ fhir:v "TransformCast"] . #