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
| Page standards status: Informative |
@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/GroupTypePlus> 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 GroupTypePlus</b></p><a name=\"GroupTypePlus\"> </a><a name=\"hcGroupTypePlus\"> </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/GroupTypePlus'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'GroupTypePlus'</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 type+ stereotype that also creates the target type when not fixed'</span>#xD;\n#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/6.0.0-ballot5/observation.html\" title=\"Observation\">http://hl7.org/fhir/StructureDefinition/Observation</a><span style=\"color: navy\">\" </span><b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/6.0.0-ballot5/observation.html\" title=\"Observation\">http://hl7.org/fhir/StructureDefinition/Observation</a><span style=\"color: navy\">\" </span><b>as </b><b>target</b>#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<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<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/6.0.0-ballot5/practitioner.html\" title=\"Practitioner\">http://hl7.org/fhir/StructureDefinition/Practitioner</a><span style=\"color: navy\">\" </span><b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/6.0.0-ballot5/practitioner.html\" title=\"Practitioner\">http://hl7.org/fhir/StructureDefinition/Practitioner</a><span style=\"color: navy\">\" </span><b>as </b><b>target</b>#xD;\n#xD;\n<b>group </b>UseDefaultTypePlus<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>Observation, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>Observation<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span> src.id<span style=\"color: navy\"><b> -> </b></span>tgt.id<span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">the datatype of contained is Resource (which is the base for all resources)</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">thus the source/target mapping isn't enough to work out what to do here.</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">So FML falls back to the \"default\" map to use given this source type</span>#xD;\n src.contained<span style=\"color: navy\"><b> -> </b></span>tgt.contained<span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span><b>group </b>GroupTypePlusPatient<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><b> <<type+>></b><span style=\"color: navy\"> {#xD;\n</span> src.id<span style=\"color: navy\"><b> -> </b></span>tgt.id<span style=\"color: navy\">;</span>#xD;\n src.name<span style=\"color: navy\"><b> -> </b></span>tgt.name<span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span><b>group </b>GroupTypePlusPractitioner<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>Practitioner, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>Practitioner<span style=\"color: navy\">)</span><b> <<type+>></b><span style=\"color: navy\"> {#xD;\n</span> src.id<span style=\"color: navy\"><b> -> </b></span>tgt.id<span style=\"color: navy\">;</span>#xD;\n src.name<span style=\"color: navy\"><b> -> </b></span>tgt.name<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/GroupTypePlus"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/uv/mapping-language/StructureMap/GroupTypePlus>
] ; #
fhir:name [ fhir:v "GroupTypePlus"] ; #
fhir:status [ fhir:v "active"] ; #
fhir:description [ fhir:v "Example demonstrating the type+ stereotype that also creates the target type when not fixed"] ; #
fhir:structure ( [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/Observation>
] ;
fhir:mode [ fhir:v "source" ]
] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/Observation>
] ;
fhir:mode [ fhir:v "target" ]
] [
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:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/Practitioner>
] ;
fhir:mode [ fhir:v "source" ]
] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/Practitioner>
] ;
fhir:mode [ fhir:v "target" ]
] ) ; #
fhir:group ( [
fhir:name [ fhir:v "UseDefaultTypePlus" ] ;
fhir:input ( [
fhir:mode [ fhir:v "source" ] ;
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "Observation" ]
] [
fhir:mode [ fhir:v "target" ] ;
fhir:name [ fhir:v "tgt" ] ;
fhir:type [ fhir:v "Observation" ]
] ) ;
fhir:rule ( [
fhir:source ( [
fhir:context [ fhir:v "src" ] ;
fhir:element ( [ fhir:v "id" ] ) ;
fhir:variable [ fhir:v "vvv" ]
] ) ;
fhir:target ( [
fhir:context [ fhir:v "tgt" ] ;
fhir:element ( [ fhir:v "id" ] ) ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]
] ) ;
fhir:name [ fhir:v "id" ]
] [
fhir:source ( [
fhir:context [ fhir:v "src" ] ;
fhir:element ( [ fhir:v "contained" ] ) ;
fhir:variable [ fhir:v "vvv" ]
] ) ;
fhir:target ( [
fhir:context [ fhir:v "tgt" ] ;
fhir:element ( [ fhir:v "contained" ] ) ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]
] ) ;
fhir:documentation [ fhir:v "the datatype of contained is Resource (which is the base for all resources)\r\nthus the source/target mapping isn't enough to work out what to do here.\r\nSo FML falls back to the \"default\" map to use given this source type" ] ;
fhir:name [ fhir:v "contained" ]
] )
] [
fhir:name [ fhir:v "GroupTypePlusPatient" ] ;
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 "id" ] ) ;
fhir:variable [ fhir:v "vvv" ]
] ) ;
fhir:target ( [
fhir:context [ fhir:v "tgt" ] ;
fhir:element ( [ fhir:v "id" ] ) ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]
] ) ;
fhir:name [ fhir:v "id" ]
] [
fhir:source ( [
fhir:context [ fhir:v "src" ] ;
fhir:element ( [ fhir:v "name" ] ) ;
fhir:variable [ fhir:v "vvv" ]
] ) ;
fhir:target ( [
fhir:context [ fhir:v "tgt" ] ;
fhir:element ( [ fhir:v "name" ] ) ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]
] ) ;
fhir:name [ fhir:v "name" ]
] ) ;
fhir:typeMode [ fhir:v "type-and-types" ]
] [
fhir:name [ fhir:v "GroupTypePlusPractitioner" ] ;
fhir:input ( [
fhir:mode [ fhir:v "source" ] ;
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "Practitioner" ]
] [
fhir:mode [ fhir:v "target" ] ;
fhir:name [ fhir:v "tgt" ] ;
fhir:type [ fhir:v "Practitioner" ]
] ) ;
fhir:rule ( [
fhir:source ( [
fhir:context [ fhir:v "src" ] ;
fhir:element ( [ fhir:v "id" ] ) ;
fhir:variable [ fhir:v "vvv" ]
] ) ;
fhir:target ( [
fhir:context [ fhir:v "tgt" ] ;
fhir:element ( [ fhir:v "id" ] ) ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]
] ) ;
fhir:name [ fhir:v "id" ]
] [
fhir:source ( [
fhir:context [ fhir:v "src" ] ;
fhir:element ( [ fhir:v "name" ] ) ;
fhir:variable [ fhir:v "vvv" ]
] ) ;
fhir:target ( [
fhir:context [ fhir:v "tgt" ] ;
fhir:element ( [ fhir:v "name" ] ) ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]
] ) ;
fhir:name [ fhir:v "name" ]
] ) ;
fhir:typeMode [ fhir:v "type-and-types" ]
] ) ; #
fhir:id [ fhir:v "GroupTypePlus"] ; #
fhir:language [ fhir:v "en"] . #
IG © 2022+ HL7 International / FHIR Infrastructure.
Package hl7.fhir.uv.mapping-language#0.1.0 based on FHIR 6.0.0-snapshot1.
Generated
2026-10-07
Links: Table of Contents |
QA Report
| Version History |
|
Propose a change
