Canonical Resource Management Infrastructure Implementation Guide
2.0.0-ballot - STU 2 - Ballot International flag

This page is part of the Canonical Resource Management Infrastructure Implementation Guide (v2.0.0-ballot: STU 2 Ballot) based on FHIR (HL7® FHIR® Standard) R4. This version is a pre-release. The current official version is 1.0.0. For a full list of available versions, see the Directory of published versions

: Shareable Structure Map Example - JSON Representation

Page standards status: Informative

Raw json | Download

{
  "resourceType" : "StructureMap",
  "id" : "shareable-example",
  "meta" : {
    "profile" : [
      🔗 "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablestructuremap"
    ]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap shareable-example</b></p><a name=\"shareable-example\"> </a><a name=\"hcshareable-example\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-crmi-shareablestructuremap.html\">CRMI Shareable StructureMap</a></p></div><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/uv/crmi/StructureMap/shareable-example<span style=\"color: navy\">&quot; = &quot;</span>ShareableStructureMapExample<span style=\"color: navy\">&quot;\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Example Structure Map</span>\r\n\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// Source.test -&gt; Destination.testValue</span>\r\n<b>group </b>Examples<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">Source</span>, <b>target</b> <span style=\"color: maroon\">Destination</span><span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span>  Source.test<span style=\"color: navy\"> : </span>SourceClassA<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\"><b> -&gt; </b></span>Destination.testValue = <b>copy</b><span style=\"color: navy\">(</span><span style=\"color: navy\">)</span> <i>&quot;rule1&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  },
  "url" : "http://hl7.org/fhir/uv/crmi/StructureMap/shareable-example",
  "identifier" : [
    {
      "system" : "urn:ietf:rfc:3986",
      "value" : "urn:oid:2.16.840.1.113883.4.642.40.38.43.2"
    }
  ],
  "version" : "0.1",
  "name" : "ShareableStructureMapExample",
  "title" : "Shareable Structure Map Example",
  "status" : "draft",
  "experimental" : true,
  "date" : "2017-03-09",
  "publisher" : "HL7 FHIR Standard",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://hl7.org/fhir"
        }
      ]
    }
  ],
  "description" : "Example Structure Map",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "009",
          "display" : "Oceania"
        }
      ]
    }
  ],
  "group" : [
    {
      "name" : "Examples",
      "typeMode" : "none",
      "documentation" : "Source.test -> Destination.testValue",
      "input" : [
        {
          "name" : "Source",
          "mode" : "source"
        },
        {
          "name" : "Destination",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "rule1",
          "source" : [
            {
              "context" : "Source",
              "type" : "SourceClassA",
              "element" : "test",
              "variable" : "t"
            }
          ],
          "target" : [
            {
              "context" : "Destination",
              "contextType" : "variable",
              "element" : "testValue",
              "transform" : "copy"
            }
          ]
        }
      ]
    }
  ]
}