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 Comments</b></p><a name=\"Comments\"> </a><a name=\"hcComments\"> </a><p><b>url</b>: <a href=\"http://hl7.org/fhir/uv/fml/StructureMap/Comments\">http://hl7.org/fhir/uv/fml/StructureMap/Comments</a></p><p><b>name</b>: Comments</p><p><b>status</b>: Active</p><p><b>description</b>: </p><div><p>Example demonstrating the use of comments in FML</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><p><b>documentation</b>: trailing comment 1</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><p><b>documentation</b>: trailing comment 2</p></blockquote><blockquote><p><b>group</b></p><p><b>documentation</b>: This is a comment on the group</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>birthDate</td><td>vvv</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><td><b>Transform</b></td></tr><tr><td style=\"display: none\">*</td><td>tgt</td><td>birthDate</td><td>vvv</td><td>create</td></tr></table><blockquote><p><b>dependent</b></p><p><b>name</b>: DefaultMappingGroupAnonymousAlias</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>vvv</td></tr><tr><td style=\"display: none\">*</td><td>vvv</td></tr></table></blockquote><p><b>documentation</b>: A comment preceding a rule R1</p><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><td><b>Element</b></td><td><b>Variable</b></td></tr><tr><td style=\"display: none\">*</td><td>src</td><td>active</td><td>vvv</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><td><b>Transform</b></td></tr><tr><td style=\"display: none\">*</td><td>tgt</td><td>active</td><td>vvv</td><td>create</td></tr></table><blockquote><p><b>dependent</b></p><p><b>name</b>: DefaultMappingGroupAnonymousAlias</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>vvv</td></tr><tr><td style=\"display: none\">*</td><td>vvv</td></tr></table></blockquote><p><b>name</b>: R2</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>name</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>name</td><td>tn</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><td><b>Element</b></td><td><b>Variable</b></td></tr><tr><td style=\"display: none\">*</td><td>v</td><td>family</td><td>vvv</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><td><b>Transform</b></td></tr><tr><td style=\"display: none\">*</td><td>tn</td><td>family</td><td>vvv</td><td>create</td></tr></table><blockquote><p><b>dependent</b></p><p><b>name</b>: DefaultMappingGroupAnonymousAlias</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>vvv</td></tr><tr><td style=\"display: none\">*</td><td>vvv</td></tr></table></blockquote><p><b>documentation</b>: before R3 comment</p><p><b>name</b>: R3</p></blockquote><p><b>documentation</b>: A comment after R2</p><p><b>name</b>: R4</p></blockquote><p><b>name</b>: CommentsDemo</p></blockquote></div>"
},
"url" : "http://hl7.org/fhir/uv/fml/StructureMap/Comments",
"name" : "Comments",
"status" : "active",
"description" : "Example demonstrating the use of comments in FML",
"structure" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/Patient",
"mode" : "source",
"documentation" : "trailing comment 1"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/Patient",
"mode" : "target",
"documentation" : "trailing comment 2"
}
],
"group" : [
{
"documentation" : "This is a comment on the group",
"input" : [
{
"mode" : "source",
"name" : "src",
"type" : "Patient"
},
{
"mode" : "target",
"name" : "tgt",
"type" : "Patient"
}
],
"rule" : [
{
"source" : [
{
"context" : "src",
"element" : [
"birthDate"
],
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : [
"birthDate"
],
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
],
"documentation" : "A comment preceding a rule R1",
"name" : "R1"
},
{
"source" : [
{
"context" : "src",
"element" : [
"active"
],
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : [
"active"
],
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
],
"name" : "R2"
},
{
"source" : [
{
"context" : "src",
"element" : [
"name"
],
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : [
"name"
],
"variable" : "tn"
}
],
"rule" : [
{
"source" : [
{
"context" : "v",
"element" : [
"family"
],
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tn",
"element" : [
"family"
],
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
],
"documentation" : "before R3 comment",
"name" : "R3"
}
],
"documentation" : "A comment after R2",
"name" : "R4"
}
],
"name" : "CommentsDemo"
}
],
"id" : "Comments"
}