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 |
{
"resourceType" : "StructureMap",
"resourceDefinition" : "http://hl7.org/fhir/StructureDefinition/StructureMap|0.1.0",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap TransformQty</b></p><a name=\"TransformQty\"> </a><a name=\"hcTransformQty\"> </a><p><b>url</b>: <a href=\"http://hl7.org/fhir/uv/fml/StructureMap/TransformQty\">http://hl7.org/fhir/uv/fml/StructureMap/TransformQty</a></p><p><b>name</b>: TransformQty</p><p><b>status</b>: Active</p><p><b>description</b>: </p><div><p>Example demonstrating the qty transform to create a Quantity</p>\n</div><blockquote><p><b>structure</b></p><p><b>url</b>: <a href=\"http://hl7.org/fhir/R5/observation.html\">Observation</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/observation.html\">Observation</a></p><p><b>mode</b>: Target Structure Definition</p></blockquote><blockquote><p><b>group</b></p><p><b>name</b>: TransformQty</p><blockquote><p><b>input</b></p><p><b>mode</b>: Source Instance</p><p><b>name</b>: src</p><p><b>type</b>: Observation</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>: Observation</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></tr><tr><td style=\"display: none\">*</td><td>src</td></tr></table><blockquote><p><b>target</b></p><p><b>context</b>: tgt</p><p><b>element</b>: value</p><p><b>transform</b>: qty</p><blockquote><p><b>parameter</b></p><p><b>value</b>: 42</p></blockquote><blockquote><p><b>parameter</b></p><p><b>value</b>: kg</p></blockquote><blockquote><p><b>parameter</b></p><p><b>value</b>: http://unitsofmeasure.org</p></blockquote><blockquote><p><b>parameter</b></p><p><b>value</b>: kg</p></blockquote></blockquote><p><b>name</b>: r1</p></blockquote></blockquote></div>"
},
"url" : "http://hl7.org/fhir/uv/fml/StructureMap/TransformQty",
"name" : "TransformQty",
"status" : "active",
"description" : "Example demonstrating the qty transform to create a Quantity",
"structure" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/Observation",
"mode" : "source"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/Observation",
"mode" : "target"
}
],
"group" : [
{
"name" : "TransformQty",
"input" : [
{
"mode" : "source",
"name" : "src",
"type" : "Observation"
},
{
"mode" : "target",
"name" : "tgt",
"type" : "Observation"
}
],
"rule" : [
{
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"element" : [
"value"
],
"transform" : "qty",
"parameter" : [
{
"valueString" : "42"
},
{
"valueString" : "kg"
},
{
"valueString" : "http://unitsofmeasure.org"
},
{
"valueString" : "kg"
}
]
}
],
"name" : "r1"
}
]
}
],
"id" : "TransformQty"
}