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 StructPropToArray</b></p><a name=\"StructPropToArray\"> </a><a name=\"hcStructPropToArray\"> </a><p><b>url</b>: <a href=\"http://hl7.org/fhir/uv/fml/StructureMap/StructPropToArray\">http://hl7.org/fhir/uv/fml/StructureMap/StructPropToArray</a></p><p><b>name</b>: StructPropToArray</p><p><b>status</b>: Active</p><p><b>description</b>: </p><div><p>Example demonstrating mapping a scalar property into a repeating array element</p>\n</div><blockquote><p><b>structure</b></p><p><b>url</b>: <a href=\"http://hl7.org/fhir/R5/patient.html\">Patient</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/patient.html\">Patient</a></p><p><b>mode</b>: Target Structure Definition</p></blockquote><blockquote><p><b>group</b></p><p><b>name</b>: StructPropToArray</p><blockquote><p><b>input</b></p><p><b>mode</b>: Source Instance</p><p><b>name</b>: src</p><p><b>type</b>: Patient</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>: Patient</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><h3>Targets</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>tgt</td><td>identifier</td><td>ident</td></tr></table><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>v</td></tr></table><blockquote><p><b>target</b></p><p><b>context</b>: ident</p><p><b>element</b>: value</p><p><b>transform</b>: copy</p><h3>Parameters</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>v</td></tr></table></blockquote><p><b>name</b>: r1</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>v</td></tr></table><blockquote><p><b>target</b></p><p><b>context</b>: ident</p><p><b>element</b>: system</p><p><b>transform</b>: copy</p><h3>Parameters</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>http://example.org/ids</td></tr></table></blockquote><p><b>name</b>: r2</p></blockquote><p><b>documentation</b>: map scalar id into a repeating identifier element</p><p><b>name</b>: r3</p></blockquote></blockquote></div>"
},
"url" : "http://hl7.org/fhir/uv/fml/StructureMap/StructPropToArray",
"name" : "StructPropToArray",
"status" : "active",
"description" : "Example demonstrating mapping a scalar property into a repeating array element",
"structure" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/Patient",
"mode" : "source"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/Patient",
"mode" : "target"
}
],
"group" : [
{
"name" : "StructPropToArray",
"input" : [
{
"mode" : "source",
"name" : "src",
"type" : "Patient"
},
{
"mode" : "target",
"name" : "tgt",
"type" : "Patient"
}
],
"rule" : [
{
"source" : [
{
"context" : "src",
"element" : [
"id"
],
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : [
"identifier"
],
"variable" : "ident"
}
],
"rule" : [
{
"source" : [
{
"context" : "v"
}
],
"target" : [
{
"context" : "ident",
"element" : [
"value"
],
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
],
"name" : "r1"
},
{
"source" : [
{
"context" : "v"
}
],
"target" : [
{
"context" : "ident",
"element" : [
"system"
],
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://example.org/ids"
}
]
}
],
"name" : "r2"
}
],
"documentation" : "map scalar id into a repeating identifier element",
"name" : "r3"
}
]
}
],
"id" : "StructPropToArray"
}