This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions
Example
{
"resourceType" : "StructureMap",
"id" : "example",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <p class=\"res-header-id\">\n <b>Generated Narrative: StructureMap example</b>\n </p>\n <a name=\"example\"> </a>\n <a name=\"hcexample\"> </a>\n <a name=\"example-en-US\"> </a>\n <pre class=\"fml\">\n\n <span style=\"color: #cc00cc\">/// \n <b>url</b> = \n </span>\n <span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/example'</span>\n\n <span style=\"color: #cc00cc\">/// \n <b>name</b> = \n </span>\n <span style=\"color: blue\">'ExampleMap'</span>\n\n <span style=\"color: #cc00cc\">/// \n <b>title</b> = \n </span>\n <span style=\"color: blue\">'Example Map'</span>\n\n <span style=\"color: #cc00cc\">/// \n <b>status</b> = \n </span>\n <span style=\"color: blue\">'draft'</span>\n\n\n <span style=\"color: navy\">// </span>\n <span style=\"color: green\">test -> testValue</span>\n\n <b>group </b>Examples\n <span style=\"color: navy\">(</span>\n <b>source</b> \n <span style=\"color: maroon\">testSrc</span>, \n <b>target</b> \n <span style=\"color: maroon\">testTgt</span>\n <span style=\"color: navy\">)</span>\n <span style=\"color: navy\"> {\n</span> testSrc.test\n <span style=\"color: navy\"> : </span>SourceClassA\n <b> as </b>\n <span style=\"color: maroon\">t</span>\n <span style=\"color: navy\">\n <b> -> </b>\n </span>testTgt.testValue = \n <b>copy</b>\n <span style=\"color: navy\">(</span>\n <span style=\"color: navy\">)</span> \n <i>"rule1"</i>\n <span style=\"color: navy\">;</span>\n\n <span style=\"color: navy\">}\n\n</span>\n </pre>\n </div>"
},
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode" : "fhir"
}],
"url" : "http://hl7.org/fhir/StructureMap/example",
"identifier" : [{
"system" : "urn:ietf:rfc:3986",
"value" : "urn:oid:2.16.840.1.113883.4.642.13.2"
}],
"version" : "6.0.0-ballot2",
"name" : "ExampleMap",
"title" : "Example Map",
"status" : "draft",
"experimental" : true,
"date" : "2017-03-09",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [{
"telecom" : [{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}]
}],
"description" : "Example Structure Map",
"jurisdiction" : [{
"coding" : [{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "009",
"display" : "Oceania"
}]
}],
"group" : [{
"name" : "Examples",
"documentation" : "test -> testValue",
"input" : [{
"name" : "testSrc",
"mode" : "source"
},
{
"name" : "testTgt",
"mode" : "target"
}],
"rule" : [{
"name" : "rule1",
"source" : [{
"context" : "testSrc",
"type" : "SourceClassA",
"element" : "test",
"variable" : "t"
}],
"target" : [{
"context" : "testTgt",
"element" : "testValue",
"transform" : "copy"
}]
}]
}]
}
Usage note: every effort has been made to ensure that the
examples are correct and useful, but they are not a normative part
of the specification.