FHIR Extensions Pack
1.0.0 - Working Copy International flag

This page is part of the FHIR Core Extensions Registry (v1.0.0: Releases) based on FHIR v5.0.0. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

: FML Conversion for DeviceDefinition: R5 to R4 - JSON Representation

Page standards status: Trial-use Maturity Level: 1

Raw json | Download


{
  "resourceType" : "StructureMap",
  "id" : "DeviceDefinition5to4",
  "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/DeviceDefinition5to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'DeviceDefinition5to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'FML Conversion for DeviceDefinition: R5 to R4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>conceptmap</b><span style=\"color: navy\"> &quot;</span>DeviceNameType<span style=\"color: navy\">&quot; {\r\n</span><b>  prefix </b>s<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R5/codesystem-device-nametype.html\" title=\"Device Name Type\">http://hl7.org/fhir/device-nametype</a><span style=\"color: navy\">&quot;\r\n</span><b>  prefix </b>t<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R4/codesystem-device-nametype.html\" title=\"DeviceNameType\">http://hl7.org/fhir/4.0/device-nametype</a><span style=\"color: navy\">&quot;\r\n</span>\r\n  s<span style=\"color: navy\">:</span>&quot;user-friendly-name&quot; <b>-</b> t<span style=\"color: navy\">:</span><span style=\"color: navy\">&quot;</span>user-friendly-name<span style=\"color: navy\">&quot;</span>\r\n  s<span style=\"color: navy\">:</span>&quot;patient-reported-name&quot; <b>-</b> t<span style=\"color: navy\">:</span><span style=\"color: navy\">&quot;</span>patient-reported-name<span style=\"color: navy\">&quot;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R5/devicedefinition.html\" title=\"DeviceDefinition\">http://hl7.org/fhir/StructureDefinition/DeviceDefinition</a><span style=\"color: navy\">&quot; </span><b>alias </b>DeviceDefinitionR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R4/devicedefinition.html\" title=\"DeviceDefinition\">http://hl7.org/fhir/4.0/StructureDefinition/DeviceDefinition</a><span style=\"color: navy\">&quot; </span><b>alias </b>DeviceDefinitionR4 <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/StructureMap/*5to4<span style=\"color: navy\">&quot;\r\n</span>\r\n<b>group </b>DeviceDefinition<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>DeviceDefinitionR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>DeviceDefinitionR4<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style=\"color: navy\"> {\r\n</span>  src.identifier<span style=\"color: navy\"><b> -&gt; </b></span>tgt.identifier<span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.description -&gt; tgt.description;</span>\r\n  src.udiDeviceIdentifier<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.udiDeviceIdentifier<b> as </b><span style=\"color: maroon\">t</span><b> then </b>DeviceDefinitionUdiDeviceIdentifier<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n  src.manufacturer<span style=\"color: navy\"><b> -&gt; </b></span>tgt.manufacturer<span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.regulatoryIdentifier as s -&gt; tgt.regulatoryIdentifier as t then DeviceDefinitionRegulatoryIdentifier(s,t);</span>\r\n  src.deviceName<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.deviceName<b> as </b><span style=\"color: maroon\">t</span><b> then </b>DeviceDefinitionDeviceName<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n  src.modelNumber<span style=\"color: navy\"><b> -&gt; </b></span>tgt.modelNumber<span style=\"color: navy\">;</span>\r\n  src.version<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span><span style=\"color: maroon\">tgt</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    s.value<span style=\"color: navy\"><b> -&gt; </b></span>tgt.version<span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.classification as s -&gt; tgt.classification as t then DeviceDefinitionClassification(s,t);</span>\r\n  src.safety<span style=\"color: navy\"><b> -&gt; </b></span>tgt.safety<span style=\"color: navy\">;</span>\r\n  src.shelfLifeStorage<span style=\"color: navy\"><b> -&gt; </b></span>tgt.shelfLifeStorage<span style=\"color: navy\">;</span>\r\n  src.languageCode<span style=\"color: navy\"><b> -&gt; </b></span>tgt.languageCode<span style=\"color: navy\">;</span>\r\n  src.property<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.property<b> as </b><span style=\"color: maroon\">t</span><b> then </b>DeviceDefinitionProperty<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n  src.owner<span style=\"color: navy\"><b> -&gt; </b></span>tgt.owner<span style=\"color: navy\">;</span>\r\n  src.contact<span style=\"color: navy\"><b> -&gt; </b></span>tgt.contact<span style=\"color: navy\">;</span>\r\n  src.note<span style=\"color: navy\"><b> -&gt; </b></span>tgt.note<span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.link as s -&gt; tgt.link as t then DeviceDefinitionLink(s,t);</span>\r\n  src.material<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.material<b> as </b><span style=\"color: maroon\">t</span><b> then </b>DeviceDefinitionMaterial<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>DeviceDefinitionUdiDeviceIdentifier<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span>  src.deviceIdentifier<span style=\"color: navy\"><b> -&gt; </b></span>tgt.deviceIdentifier<span style=\"color: navy\">;</span>\r\n  src.issuer<span style=\"color: navy\"><b> -&gt; </b></span>tgt.issuer<span style=\"color: navy\">;</span>\r\n  src.jurisdiction<span style=\"color: navy\"><b> -&gt; </b></span>tgt.jurisdiction<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">group DeviceDefinitionUdiDeviceIdentifierMarketDistribution(source src, target tgt) extends BackboneElement {</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.marketPeriod -&gt; tgt.marketPeriod;</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.subJurisdiction -&gt; tgt.subJurisdiction;</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">}</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">group DeviceDefinitionRegulatoryIdentifier(source src, target tgt) extends BackboneElement {</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.type as v -&gt; tgt.type = translate(v, '#DeviceRegulatoryIdentifierType', 'code');</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.deviceIdentifier -&gt; tgt.deviceIdentifier;</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.issuer -&gt; tgt.issuer;</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.jurisdiction -&gt; tgt.jurisdiction;</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">}</span>\r\n<b>group </b>DeviceDefinitionDeviceName<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span>  src.name<span style=\"color: navy\"><b> -&gt; </b></span>tgt.name<span style=\"color: navy\">;</span>\r\n  src.type<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.type = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'#DeviceNameType'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">group DeviceDefinitionClassification(source src, target tgt) extends BackboneElement {</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.type -&gt; tgt.type;</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.justification -&gt; tgt.justification;</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">}</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">group DeviceDefinitionConformsTo(source src, target tgt) extends BackboneElement {</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.category -&gt; tgt.category;</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.specification -&gt; tgt.specification;</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.version -&gt; tgt.version;</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.source -&gt; tgt.source;</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">}</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">group DeviceDefinitionHasPart(source src, target tgt) extends BackboneElement {</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.reference -&gt; tgt.reference;</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.count -&gt; tgt.count;</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">}</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">group DeviceDefinitionPackaging(source src, target tgt) extends BackboneElement {</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.identifier -&gt; tgt.identifier;</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.type -&gt; tgt.type;</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.count -&gt; tgt.count;</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.distributor as s -&gt; tgt.distributor as t then DeviceDefinitionPackagingDistributor(s,t);</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">}</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">group DeviceDefinitionPackagingDistributor(source src, target tgt) extends BackboneElement {</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.name -&gt; tgt.name;</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.organizationReference -&gt; tgt.organizationReference;</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">}</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">group DeviceDefinitionVersion(source src, target tgt) extends BackboneElement {</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.type -&gt; tgt.type;</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.component -&gt; tgt.component;</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.value -&gt; tgt.value;</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">}</span>\r\n<b>group </b>DeviceDefinitionProperty<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span>  src.type<span style=\"color: navy\"><b> -&gt; </b></span>tgt.type<span style=\"color: navy\">;</span>\r\n  src.value<span style=\"color: navy\"> : </span>Quantity<span style=\"color: navy\"><b> -&gt; </b></span>tgt.valueQuantity<span style=\"color: navy\">;</span>\r\n  src.value<span style=\"color: navy\"> : </span>CodeableConcept<span style=\"color: navy\"><b> -&gt; </b></span>tgt.valueCode<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">group DeviceDefinitionLink(source src, target tgt) extends BackboneElement {</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.relation -&gt; tgt.relation;</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.relatedDevice -&gt; tgt.relatedDevice;</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">}</span>\r\n<b>group </b>DeviceDefinitionMaterial<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span>  src.substance<span style=\"color: navy\"><b> -&gt; </b></span>tgt.substance<span style=\"color: navy\">;</span>\r\n  src.alternate<span style=\"color: navy\"><b> -&gt; </b></span>tgt.alternate<span style=\"color: navy\">;</span>\r\n  src.allergenicIndicator<span style=\"color: navy\"><b> -&gt; </b></span>tgt.allergenicIndicator<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  },
  "contained" : [
    {
      "resourceType" : "ConceptMap",
      "id" : "DeviceNameType",
      "status" : "active",
      "group" : [
        {
          "source" : "http://hl7.org/fhir/device-nametype",
          "target" : "http://hl7.org/fhir/4.0/device-nametype",
          "element" : [
            {
              "code" : "user-friendly-name",
              "target" : [
                {
                  "code" : "user-friendly-name",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "patient-reported-name",
              "target" : [
                {
                  "code" : "patient-reported-name",
                  "relationship" : "related-to"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "extension" : [
    {
      "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.extensions"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode" : "trial-use",
      "_valueCode" : {
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"
          }
        ]
      }
    }
  ],
  "url" : "http://hl7.org/fhir/StructureMap/DeviceDefinition5to4",
  "version" : "1.0.0",
  "name" : "DeviceDefinition5to4",
  "title" : "FML Conversion for DeviceDefinition: R5 to R4",
  "status" : "active",
  "date" : "2023-03-26T08:47:34+11:00",
  "publisher" : "HL7 International / FHIR Infrastructure",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://hl7.org/Special/committees/fhir-i"
        }
      ]
    }
  ],
  "description" : "FMLConversionforDeviceDefinitionR5toR4",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/DeviceDefinition",
      "mode" : "source",
      "alias" : "DeviceDefinitionR5"
    },
    {
      "url" : "http://hl7.org/fhir/4.0/StructureDefinition/DeviceDefinition",
      "mode" : "target",
      "alias" : "DeviceDefinitionR4"
    }
  ],
  "import" : [
    "http://hl7.org/fhir/StructureMap/*5to4"
  ],
  "group" : [
    {
      "name" : "DeviceDefinition",
      "extends" : "DomainResource",
      "typeMode" : "type-and-types",
      "input" : [
        {
          "name" : "src",
          "type" : "DeviceDefinitionR5",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "type" : "DeviceDefinitionR4",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "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"
                }
              ]
            }
          ],
          "documentation" : "src.description -> tgt.description;"
        },
        {
          "name" : "udiDeviceIdentifier",
          "source" : [
            {
              "context" : "src",
              "element" : "udiDeviceIdentifier",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "udiDeviceIdentifier",
              "variable" : "t"
            }
          ],
          "dependent" : [
            {
              "name" : "DeviceDefinitionUdiDeviceIdentifier",
              "parameter" : [
                {
                  "valueId" : "s"
                },
                {
                  "valueId" : "t"
                }
              ]
            }
          ]
        },
        {
          "name" : "manufacturer",
          "source" : [
            {
              "context" : "src",
              "element" : "manufacturer",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "manufacturer",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ],
          "documentation" : "src.regulatoryIdentifier as s -> tgt.regulatoryIdentifier as t then DeviceDefinitionRegulatoryIdentifier(s,t);"
        },
        {
          "name" : "deviceName",
          "source" : [
            {
              "context" : "src",
              "element" : "deviceName",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "deviceName",
              "variable" : "t"
            }
          ],
          "dependent" : [
            {
              "name" : "DeviceDefinitionDeviceName",
              "parameter" : [
                {
                  "valueId" : "s"
                },
                {
                  "valueId" : "t"
                }
              ]
            }
          ]
        },
        {
          "name" : "modelNumber",
          "source" : [
            {
              "context" : "src",
              "element" : "modelNumber",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "modelNumber",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "version",
          "source" : [
            {
              "context" : "src",
              "element" : "version",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "tgt"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "value",
              "source" : [
                {
                  "context" : "s",
                  "element" : "value",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "version",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            }
          ],
          "documentation" : "src.classification as s -> tgt.classification as t then DeviceDefinitionClassification(s,t);"
        },
        {
          "name" : "safety",
          "source" : [
            {
              "context" : "src",
              "element" : "safety",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "safety",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "shelfLifeStorage",
          "source" : [
            {
              "context" : "src",
              "element" : "shelfLifeStorage",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "shelfLifeStorage",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "languageCode",
          "source" : [
            {
              "context" : "src",
              "element" : "languageCode",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "languageCode",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "property",
          "source" : [
            {
              "context" : "src",
              "element" : "property",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "property",
              "variable" : "t"
            }
          ],
          "dependent" : [
            {
              "name" : "DeviceDefinitionProperty",
              "parameter" : [
                {
                  "valueId" : "s"
                },
                {
                  "valueId" : "t"
                }
              ]
            }
          ]
        },
        {
          "name" : "owner",
          "source" : [
            {
              "context" : "src",
              "element" : "owner",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "owner",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "contact",
          "source" : [
            {
              "context" : "src",
              "element" : "contact",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "contact",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "note",
          "source" : [
            {
              "context" : "src",
              "element" : "note",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "note",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ],
          "documentation" : "src.link as s -> tgt.link as t then DeviceDefinitionLink(s,t);"
        },
        {
          "name" : "material",
          "source" : [
            {
              "context" : "src",
              "element" : "material",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "material",
              "variable" : "t"
            }
          ],
          "dependent" : [
            {
              "name" : "DeviceDefinitionMaterial",
              "parameter" : [
                {
                  "valueId" : "s"
                },
                {
                  "valueId" : "t"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "DeviceDefinitionUdiDeviceIdentifier",
      "extends" : "BackboneElement",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "deviceIdentifier",
          "source" : [
            {
              "context" : "src",
              "element" : "deviceIdentifier",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "deviceIdentifier",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "issuer",
          "source" : [
            {
              "context" : "src",
              "element" : "issuer",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "issuer",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "jurisdiction",
          "source" : [
            {
              "context" : "src",
              "element" : "jurisdiction",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "jurisdiction",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "DeviceDefinitionDeviceName",
      "extends" : "BackboneElement",
      "documentation" : "group DeviceDefinitionUdiDeviceIdentifierMarketDistribution(source src, target tgt) extends BackboneElement {\r\nsrc.marketPeriod -> tgt.marketPeriod;\r\nsrc.subJurisdiction -> tgt.subJurisdiction;\r\n}\r\ngroup DeviceDefinitionRegulatoryIdentifier(source src, target tgt) extends BackboneElement {\r\nsrc.type as v -> tgt.type = translate(v, '#DeviceRegulatoryIdentifierType', 'code');\r\nsrc.deviceIdentifier -> tgt.deviceIdentifier;\r\nsrc.issuer -> tgt.issuer;\r\nsrc.jurisdiction -> tgt.jurisdiction;\r\n}",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "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" : "type",
          "source" : [
            {
              "context" : "src",
              "element" : "type",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "type",
              "transform" : "translate",
              "parameter" : [
                {
                  "valueId" : "v"
                },
                {
                  "valueString" : "#DeviceNameType"
                },
                {
                  "valueString" : "code"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "DeviceDefinitionProperty",
      "extends" : "BackboneElement",
      "documentation" : "group DeviceDefinitionClassification(source src, target tgt) extends BackboneElement {\r\nsrc.type -> tgt.type;\r\nsrc.justification -> tgt.justification;\r\n}\r\ngroup DeviceDefinitionConformsTo(source src, target tgt) extends BackboneElement {\r\nsrc.category -> tgt.category;\r\nsrc.specification -> tgt.specification;\r\nsrc.version -> tgt.version;\r\nsrc.source -> tgt.source;\r\n}\r\ngroup DeviceDefinitionHasPart(source src, target tgt) extends BackboneElement {\r\nsrc.reference -> tgt.reference;\r\nsrc.count -> tgt.count;\r\n}\r\ngroup DeviceDefinitionPackaging(source src, target tgt) extends BackboneElement {\r\nsrc.identifier -> tgt.identifier;\r\nsrc.type -> tgt.type;\r\nsrc.count -> tgt.count;\r\nsrc.distributor as s -> tgt.distributor as t then DeviceDefinitionPackagingDistributor(s,t);\r\n}\r\ngroup DeviceDefinitionPackagingDistributor(source src, target tgt) extends BackboneElement {\r\nsrc.name -> tgt.name;\r\nsrc.organizationReference -> tgt.organizationReference;\r\n}\r\ngroup DeviceDefinitionVersion(source src, target tgt) extends BackboneElement {\r\nsrc.type -> tgt.type;\r\nsrc.component -> tgt.component;\r\nsrc.value -> tgt.value;\r\n}",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "type",
          "source" : [
            {
              "context" : "src",
              "element" : "type",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "type",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "valueQuantity",
          "source" : [
            {
              "context" : "src",
              "type" : "Quantity",
              "element" : "value",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "valueQuantity",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "valueCodeableConcept",
          "source" : [
            {
              "context" : "src",
              "type" : "CodeableConcept",
              "element" : "value",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "valueCode",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "DeviceDefinitionMaterial",
      "extends" : "BackboneElement",
      "documentation" : "group DeviceDefinitionLink(source src, target tgt) extends BackboneElement {\r\nsrc.relation -> tgt.relation;\r\nsrc.relatedDevice -> tgt.relatedDevice;\r\n}",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "substance",
          "source" : [
            {
              "context" : "src",
              "element" : "substance",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "substance",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "alternate",
          "source" : [
            {
              "context" : "src",
              "element" : "alternate",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "alternate",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "allergenicIndicator",
          "source" : [
            {
              "context" : "src",
              "element" : "allergenicIndicator",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "allergenicIndicator",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}