FHIR Cross-Version Mapping Pack
0.1.0 - Ballot for Release 5.1.0 International flag

FHIR Cross-Version Mapping Pack, 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/fhir-cross-version/ and changes regularly. See the Directory of published versions

: StructureDefinition Transforms: R2 to R3 - JSON Representation

Page standards status: Draft Maturity Level: 1

Raw json | Download


{
  "resourceType" : "StructureMap",
  "id" : "StructureDefinition2to3",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/StructureDefinition2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'StructureDefinition2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'StructureDefinition Transforms: R2 to R3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/1.0/StructureDefinition<span style=\"color: navy\">&quot; </span><b>alias </b>StructureDefinitionR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/3.0/StructureDefinition<span style=\"color: navy\">&quot; </span><b>alias </b>StructureDefinition <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/StructureMap/*2to3<span style=\"color: navy\">&quot;\r\n</span>\r\n<b>group </b>StructureDefinition<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>StructureDefinitionR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>StructureDefinition<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style=\"color: navy\"> {\r\n</span>  src.url<span style=\"color: navy\"><b> -&gt; </b></span>tgt.url <i>&quot;StructureDefinition-url&quot;</i><span style=\"color: navy\">;</span>\r\n  src.identifier<span style=\"color: navy\"><b> -&gt; </b></span>tgt.identifier <i>&quot;StructureDefinition-identifier&quot;</i><span style=\"color: navy\">;</span>\r\n  src.version<span style=\"color: navy\"><b> -&gt; </b></span>tgt.version <i>&quot;StructureDefinition-version&quot;</i><span style=\"color: navy\">;</span>\r\n  src.name<span style=\"color: navy\"><b> -&gt; </b></span>tgt.name <i>&quot;StructureDefinition-name&quot;</i><span style=\"color: navy\">;</span>\r\n  src.display<span style=\"color: navy\"><b> -&gt; </b></span>tgt.title <i>&quot;StructureDefinition-title&quot;</i><span style=\"color: navy\">;</span>\r\n  src.status<span style=\"color: navy\"><b> -&gt; </b></span>tgt.status <i>&quot;StructureDefinition-status&quot;</i><span style=\"color: navy\">;</span>\r\n  src.experimental<span style=\"color: navy\"><b> -&gt; </b></span>tgt.experimental <i>&quot;StructureDefinition-experimental&quot;</i><span style=\"color: navy\">;</span>\r\n  src.publisher<span style=\"color: navy\"><b> -&gt; </b></span>tgt.publisher <i>&quot;StructureDefinition-publisher&quot;</i><span style=\"color: navy\">;</span>\r\n  src.contact<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.contact<b> as </b><span style=\"color: maroon\">vt0</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    vs0.name<span style=\"color: navy\"><b> -&gt; </b></span>vt0.name <i>&quot;ContactDetail-name&quot;</i><span style=\"color: navy\">;</span>\r\n    vs0.telecom<span style=\"color: navy\"><b> -&gt; </b></span>vt0.telecom <i>&quot;ContactDetail-telecom&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;StructureDefinition-contact&quot;</i><span style=\"color: navy\">;</span>\r\n  src.date<span style=\"color: navy\"><b> -&gt; </b></span>tgt.date <i>&quot;StructureDefinition-date&quot;</i><span style=\"color: navy\">;</span>\r\n  src.description<span style=\"color: navy\"><b> -&gt; </b></span>tgt.description <i>&quot;StructureDefinition-description&quot;</i><span style=\"color: navy\">;</span>\r\n  src.requirements<span style=\"color: navy\"><b> -&gt; </b></span>tgt.purpose <i>&quot;StructureDefinition-purpose&quot;</i><span style=\"color: navy\">;</span>\r\n  src.copyright<span style=\"color: navy\"><b> -&gt; </b></span>tgt.copyright <i>&quot;StructureDefinition-copyright&quot;</i><span style=\"color: navy\">;</span>\r\n  src.useContext<b> where </b>coding.system = 'urn:iso:std:iso:3166'<span style=\"color: navy\"><b> -&gt; </b></span>tgt.jurisdiction <i>&quot;StructureDefinition-jurisdiction&quot;</i><span style=\"color: navy\">;</span>\r\n  src.useContext<b> as </b><span style=\"color: maroon\">vs</span><b> where </b>(coding.system = 'urn:iso:std:iso:3166').not()<span style=\"color: navy\"><b> -&gt; </b></span> tgt.useContext<b> as </b><span style=\"color: maroon\">uc</span><span style=\"color: navy\">, </span> uc.code<b> as </b><span style=\"color: maroon\">ucc</span><span style=\"color: navy\">, </span> ucc.system = <span style=\"color: blue\">'http://hl7.org/fhir/usage-context-type'</span><span style=\"color: navy\">, </span> ucc.code = <span style=\"color: blue\">'task'</span><span style=\"color: navy\">, </span> uc.value<b> as </b><span style=\"color: maroon\">vt</span><b> then </b>CodeableConcept<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span> <i>&quot;StructureDefinition-useContext&quot;</i><span style=\"color: navy\">;</span>\r\n  src.code<span style=\"color: navy\"><b> -&gt; </b></span>tgt.keyword <i>&quot;StructureDefinition-keyword&quot;</i><span style=\"color: navy\">;</span>\r\n  src.fhirVersion<span style=\"color: navy\"><b> -&gt; </b></span>tgt.fhirVersion <i>&quot;StructureDefinition-fhirVersion&quot;</i><span style=\"color: navy\">;</span>\r\n  src.mapping<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.mapping<b> as </b><span style=\"color: maroon\">vt0</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    vs0.identity<span style=\"color: navy\"><b> -&gt; </b></span>vt0.identity <i>&quot;mapping-identity&quot;</i><span style=\"color: navy\">;</span>\r\n    vs0.uri<span style=\"color: navy\"><b> -&gt; </b></span>vt0.uri <i>&quot;mapping-uri&quot;</i><span style=\"color: navy\">;</span>\r\n    vs0.name<span style=\"color: navy\"><b> -&gt; </b></span>vt0.name <i>&quot;mapping-name&quot;</i><span style=\"color: navy\">;</span>\r\n    vs0.comments<span style=\"color: navy\"><b> -&gt; </b></span>vt0.comment <i>&quot;mapping-comments&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;StructureDefinition-mapping&quot;</i><span style=\"color: navy\">;</span>\r\n  src<b> where </b>constrainedType.empty()<span style=\"color: navy\"><b> -&gt; </b></span>tgt.derivation = <span style=\"color: blue\">'specialization'</span> <i>&quot;StructureDefinition-derivation-1&quot;</i><span style=\"color: navy\">;</span>\r\n  src.id<b> as </b><span style=\"color: maroon\">vs</span><b> where </b>src.constrainedType.empty()<span style=\"color: navy\"><b> -&gt; </b></span>tgt.type = <span style=\"color: maroon\">vs</span> <i>&quot;StructureDefinition-type-1&quot;</i><span style=\"color: navy\">;</span>\r\n  src<b> where </b>constrainedType.exists()<span style=\"color: navy\"><b> -&gt; </b></span>tgt.derivation = <span style=\"color: blue\">'constraint'</span> <i>&quot;StructureDefinition-derivation-2&quot;</i><span style=\"color: navy\">;</span>\r\n  src.constrainedType<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.type = <span style=\"color: maroon\">vs</span> <i>&quot;StructureDefinition-type-2&quot;</i><span style=\"color: navy\">;</span>\r\n  src.kind<b> where </b>$this = 'logical'<span style=\"color: navy\"><b> -&gt; </b></span>tgt.kind <i>&quot;StructureDefinition-kind-1&quot;</i><span style=\"color: navy\">;</span>\r\n  src.kind<b> where </b>$this = 'resource'<span style=\"color: navy\"><b> -&gt; </b></span>tgt.kind <i>&quot;StructureDefinition-kind-2&quot;</i><span style=\"color: navy\">;</span>\r\n  src.kind<b> as </b><span style=\"color: maroon\">vt</span><b> where </b>($this = 'datatype') and (src.id in ('boolean' | 'integer' | 'string' | 'decimal' | 'uri' | 'base64Binary' | 'instant' | 'date' | 'dateTime' | 'time' | 'code' | 'oid' | 'id' | 'markdown' | 'unsignedInt' | 'positiveInt'))<span style=\"color: navy\"><b> -&gt; </b></span>tgt.kind = <span style=\"color: blue\">'primitive-type'</span><b> as </b><span style=\"color: maroon\">vt</span> <i>&quot;StructureDefinition-kind-3&quot;</i><span style=\"color: navy\">;</span>\r\n  src.kind<b> as </b><span style=\"color: maroon\">vt</span><b> where </b>($this = 'datatype') and (src.id in ('boolean' | 'integer' | 'string' | 'decimal' | 'uri' | 'base64Binary' | 'instant' | 'date' | 'dateTime' | 'time' | 'code' | 'oid' | 'id' | 'markdown' | 'unsignedInt' | 'positiveInt')).not()<span style=\"color: navy\"><b> -&gt; </b></span>tgt.kind = <span style=\"color: blue\">'complex-type'</span><b> as </b><span style=\"color: maroon\">vt</span> <i>&quot;StructureDefinition-kind-4&quot;</i><span style=\"color: navy\">;</span>\r\n  src.abstract<span style=\"color: navy\"><b> -&gt; </b></span>tgt.abstract <i>&quot;StructureDefinition-abstract&quot;</i><span style=\"color: navy\">;</span>\r\n  src.contextType<span style=\"color: navy\"><b> -&gt; </b></span>tgt.contextType <i>&quot;StructureDefinition-contextType&quot;</i><span style=\"color: navy\">;</span>\r\n  src.context<span style=\"color: navy\"><b> -&gt; </b></span>tgt.context <i>&quot;StructureDefinition-context&quot;</i><span style=\"color: navy\">;</span>\r\n  src.constrainedType<span style=\"color: navy\"><b> -&gt; </b></span>tgt.type <i>&quot;StructureDefinition-type&quot;</i><span style=\"color: navy\">;</span>\r\n  src.base<span style=\"color: navy\"><b> -&gt; </b></span>tgt.baseDefinition <i>&quot;StructureDefinition-baseDefinition&quot;</i><span style=\"color: navy\">;</span>\r\n  src.snapshot<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.snapshot<b> as </b><span style=\"color: maroon\">vt0</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    vs0.element first<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -&gt; </b></span> vt0.element<b> as </b><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span> <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'boolean'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">first</span><span style=\"color: navy\">, </span> first.value = <span style=\"color: blue\">'true'</span><b> then </b>ElementDefinition<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">first</span><span style=\"color: navy\">)</span> <i>&quot;snapshot-element-1&quot;</i><span style=\"color: navy\">;</span>\r\n    vs0.element not_first<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -&gt; </b></span> vt0.element<b> as </b><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span> <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'boolean'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">first</span><span style=\"color: navy\">, </span> first.value = <span style=\"color: blue\">'false'</span><b> then </b>ElementDefinition<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">first</span><span style=\"color: navy\">)</span> <i>&quot;snapshot-element-2&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;StructureDefinition-snapshot&quot;</i><span style=\"color: navy\">;</span>\r\n  src.differential first<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.differential<b> as </b><span style=\"color: maroon\">vt0</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    vs0.element first<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -&gt; </b></span> vt0.element<b> as </b><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span> <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'boolean'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">first</span><span style=\"color: navy\">, </span> first.value = <span style=\"color: blue\">'true'</span><b> then </b>ElementDefinition<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">first</span><span style=\"color: navy\">)</span> <i>&quot;differential-element-1&quot;</i><span style=\"color: navy\">;</span>\r\n    vs0.element not_first<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -&gt; </b></span> vt0.element<b> as </b><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span> <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'boolean'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">first</span><span style=\"color: navy\">, </span> first.value = <span style=\"color: blue\">'false'</span><b> then </b>ElementDefinition<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">first</span><span style=\"color: navy\">)</span> <i>&quot;differential-element-2&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;StructureDefinition-differential&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  },
  "extension" : [
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode" : "fhir"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger" : 1,
      "_valueInteger" : {
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode" : "draft",
      "_valueCode" : {
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
          }
        ]
      }
    }
  ],
  "url" : "http://hl7.org/fhir/StructureMap/StructureDefinition2to3",
  "version" : "0.1.0",
  "name" : "StructureDefinition2to3",
  "title" : "StructureDefinition Transforms: R2 to R3",
  "status" : "active",
  "date" : "2024-02-22T03:16:50+00:00",
  "publisher" : "HL7 International / FHIR Infrastructure",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "description" : "StructureDefinitionTransformsR2toR3",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://hl7.org/fhir/1.0/StructureDefinition",
      "mode" : "source",
      "alias" : "StructureDefinitionR2"
    },
    {
      "url" : "http://hl7.org/fhir/3.0/StructureDefinition",
      "mode" : "target",
      "alias" : "StructureDefinition"
    }
  ],
  "import" : [
    "http://hl7.org/fhir/StructureMap/*2to3"
  ],
  "group" : [
    {
      "name" : "StructureDefinition",
      "extends" : "DomainResource",
      "typeMode" : "type-and-types",
      "input" : [
        {
          "name" : "src",
          "type" : "StructureDefinitionR2",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "type" : "StructureDefinition",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "StructureDefinition-url",
          "source" : [
            {
              "context" : "src",
              "element" : "url",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "url",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-identifier",
          "source" : [
            {
              "context" : "src",
              "element" : "identifier",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "identifier",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-version",
          "source" : [
            {
              "context" : "src",
              "element" : "version",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "version",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-name",
          "source" : [
            {
              "context" : "src",
              "element" : "name",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "name",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-title",
          "source" : [
            {
              "context" : "src",
              "element" : "display",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "title",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-status",
          "source" : [
            {
              "context" : "src",
              "element" : "status",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "status",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-experimental",
          "source" : [
            {
              "context" : "src",
              "element" : "experimental",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "experimental",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-publisher",
          "source" : [
            {
              "context" : "src",
              "element" : "publisher",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "publisher",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-contact",
          "source" : [
            {
              "context" : "src",
              "element" : "contact",
              "variable" : "vs0"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "contact",
              "variable" : "vt0"
            }
          ],
          "rule" : [
            {
              "name" : "ContactDetail-name",
              "source" : [
                {
                  "context" : "vs0",
                  "element" : "name",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "vt0",
                  "element" : "name",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "ContactDetail-telecom",
              "source" : [
                {
                  "context" : "vs0",
                  "element" : "telecom",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "vt0",
                  "element" : "telecom",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-date",
          "source" : [
            {
              "context" : "src",
              "element" : "date",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "date",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-description",
          "source" : [
            {
              "context" : "src",
              "element" : "description",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "description",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-purpose",
          "source" : [
            {
              "context" : "src",
              "element" : "requirements",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "purpose",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-copyright",
          "source" : [
            {
              "context" : "src",
              "element" : "copyright",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "copyright",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-jurisdiction",
          "source" : [
            {
              "context" : "src",
              "element" : "useContext",
              "variable" : "vvv",
              "condition" : "coding.system = 'urn:iso:std:iso:3166'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "jurisdiction",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-useContext",
          "source" : [
            {
              "context" : "src",
              "element" : "useContext",
              "variable" : "vs",
              "condition" : "(coding.system = 'urn:iso:std:iso:3166').not()"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "useContext",
              "variable" : "uc"
            },
            {
              "context" : "uc",
              "element" : "code",
              "variable" : "ucc"
            },
            {
              "context" : "ucc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/usage-context-type"
                }
              ]
            },
            {
              "context" : "ucc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "task"
                }
              ]
            },
            {
              "context" : "uc",
              "element" : "value",
              "variable" : "vt"
            }
          ],
          "dependent" : [
            {
              "name" : "CodeableConcept",
              "parameter" : [
                {
                  "valueId" : "vs"
                },
                {
                  "valueId" : "vt"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-keyword",
          "source" : [
            {
              "context" : "src",
              "element" : "code",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "keyword",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-fhirVersion",
          "source" : [
            {
              "context" : "src",
              "element" : "fhirVersion",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "fhirVersion",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-mapping",
          "source" : [
            {
              "context" : "src",
              "element" : "mapping",
              "variable" : "vs0"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "mapping",
              "variable" : "vt0"
            }
          ],
          "rule" : [
            {
              "name" : "mapping-identity",
              "source" : [
                {
                  "context" : "vs0",
                  "element" : "identity",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "vt0",
                  "element" : "identity",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "mapping-uri",
              "source" : [
                {
                  "context" : "vs0",
                  "element" : "uri",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "vt0",
                  "element" : "uri",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "mapping-name",
              "source" : [
                {
                  "context" : "vs0",
                  "element" : "name",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "vt0",
                  "element" : "name",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "mapping-comments",
              "source" : [
                {
                  "context" : "vs0",
                  "element" : "comments",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "vt0",
                  "element" : "comment",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-derivation-1",
          "source" : [
            {
              "context" : "src",
              "condition" : "constrainedType.empty()"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "derivation",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "specialization"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-type-1",
          "source" : [
            {
              "context" : "src",
              "element" : "id",
              "variable" : "vs",
              "condition" : "src.constrainedType.empty()"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "type",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "vs"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-derivation-2",
          "source" : [
            {
              "context" : "src",
              "condition" : "constrainedType.exists()"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "derivation",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "constraint"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-type-2",
          "source" : [
            {
              "context" : "src",
              "element" : "constrainedType",
              "variable" : "vs"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "type",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "vs"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-kind-1",
          "source" : [
            {
              "context" : "src",
              "element" : "kind",
              "variable" : "vvv",
              "condition" : "$this = 'logical'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "kind",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-kind-2",
          "source" : [
            {
              "context" : "src",
              "element" : "kind",
              "variable" : "vvv",
              "condition" : "$this = 'resource'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "kind",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-kind-3",
          "source" : [
            {
              "context" : "src",
              "element" : "kind",
              "variable" : "vt",
              "condition" : "($this = 'datatype') and (src.id in ('boolean' | 'integer' | 'string' | 'decimal' | 'uri' | 'base64Binary' | 'instant' | 'date' | 'dateTime' | 'time' | 'code' | 'oid' | 'id' | 'markdown' | 'unsignedInt' | 'positiveInt'))"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "kind",
              "variable" : "vt",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "primitive-type"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-kind-4",
          "source" : [
            {
              "context" : "src",
              "element" : "kind",
              "variable" : "vt",
              "condition" : "($this = 'datatype') and (src.id in ('boolean' | 'integer' | 'string' | 'decimal' | 'uri' | 'base64Binary' | 'instant' | 'date' | 'dateTime' | 'time' | 'code' | 'oid' | 'id' | 'markdown' | 'unsignedInt' | 'positiveInt')).not()"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "kind",
              "variable" : "vt",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "complex-type"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-abstract",
          "source" : [
            {
              "context" : "src",
              "element" : "abstract",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "abstract",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-contextType",
          "source" : [
            {
              "context" : "src",
              "element" : "contextType",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "contextType",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-context",
          "source" : [
            {
              "context" : "src",
              "element" : "context",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "context",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-type",
          "source" : [
            {
              "context" : "src",
              "element" : "constrainedType",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "type",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-baseDefinition",
          "source" : [
            {
              "context" : "src",
              "element" : "base",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "baseDefinition",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-snapshot",
          "source" : [
            {
              "context" : "src",
              "element" : "snapshot",
              "variable" : "vs0"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "snapshot",
              "variable" : "vt0"
            }
          ],
          "rule" : [
            {
              "name" : "snapshot-element-1",
              "source" : [
                {
                  "context" : "vs0",
                  "element" : "element",
                  "listMode" : "first",
                  "variable" : "vs"
                }
              ],
              "target" : [
                {
                  "context" : "vt0",
                  "element" : "element",
                  "variable" : "vt"
                },
                {
                  "variable" : "first",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "boolean"
                    }
                  ]
                },
                {
                  "context" : "first",
                  "element" : "value",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "true"
                    }
                  ]
                }
              ],
              "dependent" : [
                {
                  "name" : "ElementDefinition",
                  "parameter" : [
                    {
                      "valueId" : "vs"
                    },
                    {
                      "valueId" : "vt"
                    },
                    {
                      "valueId" : "first"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "snapshot-element-2",
              "source" : [
                {
                  "context" : "vs0",
                  "element" : "element",
                  "listMode" : "not_first",
                  "variable" : "vs"
                }
              ],
              "target" : [
                {
                  "context" : "vt0",
                  "element" : "element",
                  "variable" : "vt"
                },
                {
                  "variable" : "first",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "boolean"
                    }
                  ]
                },
                {
                  "context" : "first",
                  "element" : "value",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "false"
                    }
                  ]
                }
              ],
              "dependent" : [
                {
                  "name" : "ElementDefinition",
                  "parameter" : [
                    {
                      "valueId" : "vs"
                    },
                    {
                      "valueId" : "vt"
                    },
                    {
                      "valueId" : "first"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "StructureDefinition-differential",
          "source" : [
            {
              "context" : "src",
              "element" : "differential",
              "listMode" : "first",
              "variable" : "vs0"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "differential",
              "variable" : "vt0"
            }
          ],
          "rule" : [
            {
              "name" : "differential-element-1",
              "source" : [
                {
                  "context" : "vs0",
                  "element" : "element",
                  "listMode" : "first",
                  "variable" : "vs"
                }
              ],
              "target" : [
                {
                  "context" : "vt0",
                  "element" : "element",
                  "variable" : "vt"
                },
                {
                  "variable" : "first",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "boolean"
                    }
                  ]
                },
                {
                  "context" : "first",
                  "element" : "value",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "true"
                    }
                  ]
                }
              ],
              "dependent" : [
                {
                  "name" : "ElementDefinition",
                  "parameter" : [
                    {
                      "valueId" : "vs"
                    },
                    {
                      "valueId" : "vt"
                    },
                    {
                      "valueId" : "first"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "differential-element-2",
              "source" : [
                {
                  "context" : "vs0",
                  "element" : "element",
                  "listMode" : "not_first",
                  "variable" : "vs"
                }
              ],
              "target" : [
                {
                  "context" : "vt0",
                  "element" : "element",
                  "variable" : "vt"
                },
                {
                  "variable" : "first",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "boolean"
                    }
                  ]
                },
                {
                  "context" : "first",
                  "element" : "value",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "false"
                    }
                  ]
                }
              ],
              "dependent" : [
                {
                  "name" : "ElementDefinition",
                  "parameter" : [
                    {
                      "valueId" : "vs"
                    },
                    {
                      "valueId" : "vt"
                    },
                    {
                      "valueId" : "first"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}