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/TransformCc> 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 TransformCc</b></p><a name=\"TransformCc\"> </a><a name=\"hcTransformCc\"> </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/TransformCc'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'TransformCc'</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 cc transform to create a CodeableConcept'</span>#xD;\n#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/6.0.0-ballot5/encounter.html\" title=\"Encounter\">http://hl7.org/fhir/StructureDefinition/Encounter</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/encounter.html\" title=\"Encounter\">http://hl7.org/fhir/StructureDefinition/Encounter</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\">Create 3 codeableconcepts in the output, each demonstrating a different way to populate a CodeableConcept using cc()</span>#xD;\n<b>group </b>TransformCc<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>Encounter, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>Encounter<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span> src<span style=\"color: navy\"><b> -> </b></span>tgt.type = <b>cc</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'http://example.org/cs'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'example'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'Example Code'</span><span style=\"color: navy\">)</span> <i>\"FullCoding\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>tgt.type = <b>cc</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'http://example.org/cs'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'example'</span><span style=\"color: navy\">)</span> <i>\"CodingWithoutDisplay\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>tgt.type = <b>cc</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Non coded text'</span><span style=\"color: navy\">)</span> <i>\"TextOnlyCC\"</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/TransformCc"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/uv/mapping-language/StructureMap/TransformCc>
] ; #
fhir:name [ fhir:v "TransformCc"] ; #
fhir:status [ fhir:v "active"] ; #
fhir:description [ fhir:v "Example demonstrating the cc transform to create a CodeableConcept"] ; #
fhir:structure ( [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/Encounter>
] ;
fhir:mode [ fhir:v "source" ]
] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/Encounter>
] ;
fhir:mode [ fhir:v "target" ]
] ) ; #
fhir:group ( [
fhir:documentation [ fhir:v "Create 3 codeableconcepts in the output, each demonstrating a different way to populate a CodeableConcept using cc()" ] ;
fhir:input ( [
fhir:mode [ fhir:v "source" ] ;
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "Encounter" ]
] [
fhir:mode [ fhir:v "target" ] ;
fhir:name [ fhir:v "tgt" ] ;
fhir:type [ fhir:v "Encounter" ]
] ) ;
fhir:rule ( [
fhir:source ( [
fhir:context [ fhir:v "src" ]
] ) ;
fhir:target ( [
fhir:context [ fhir:v "tgt" ] ;
fhir:element ( [ fhir:v "type" ] ) ;
fhir:transform [ fhir:v "cc" ] ;
fhir:parameter ( [
fhir:value [
a fhir:String ;
fhir:v "http://example.org/cs"
]
] [
fhir:value [
a fhir:String ;
fhir:v "example"
]
] [
fhir:value [
a fhir:String ;
fhir:v "Example Code"
]
] )
] ) ;
fhir:name [ fhir:v "FullCoding" ]
] [
fhir:source ( [
fhir:context [ fhir:v "src" ]
] ) ;
fhir:target ( [
fhir:context [ fhir:v "tgt" ] ;
fhir:element ( [ fhir:v "type" ] ) ;
fhir:transform [ fhir:v "cc" ] ;
fhir:parameter ( [
fhir:value [
a fhir:String ;
fhir:v "http://example.org/cs"
]
] [
fhir:value [
a fhir:String ;
fhir:v "example"
]
] )
] ) ;
fhir:name [ fhir:v "CodingWithoutDisplay" ]
] [
fhir:source ( [
fhir:context [ fhir:v "src" ]
] ) ;
fhir:target ( [
fhir:context [ fhir:v "tgt" ] ;
fhir:element ( [ fhir:v "type" ] ) ;
fhir:transform [ fhir:v "cc" ] ;
fhir:parameter ( [
fhir:value [
a fhir:String ;
fhir:v "Non coded text"
]
] )
] ) ;
fhir:name [ fhir:v "TextOnlyCC" ]
] ) ;
fhir:name [ fhir:v "TransformCc" ]
] ) ; #
fhir:id [ fhir:v "TransformCc"] ; #
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
