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

: Medication Transforms: R3 to R4 - JSON Representation

Page standards status: Draft Maturity Level: 1

Raw json | Download


{
  "resourceType" : "StructureMap",
  "id" : "Medication3to4",
  "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/Medication3to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'Medication3to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'Medication Transforms: R3 to R4 '</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/3.0/Medication<span style=\"color: navy\">&quot; </span><b>alias </b>MedicationR3 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/4.0/Medication<span style=\"color: navy\">&quot; </span><b>alias </b>Medication <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/StructureMap/*3to4<span style=\"color: navy\">&quot;\r\n</span>\r\n<b>group </b>Medication<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>MedicationR3, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>Medication<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style=\"color: navy\"> {\r\n</span>  src.code<span style=\"color: navy\"><b> -&gt; </b></span>tgt.code<span style=\"color: navy\">;</span>\r\n  src.status<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.extension<b> as </b><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span> vt.url = <span style=\"color: blue\">'http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.status'</span><span style=\"color: navy\">, </span> vt.value = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>\r\n  src.isBrand<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.extension<b> as </b><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span> vt.url = <span style=\"color: blue\">'hhttp://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.isBrand'</span><span style=\"color: navy\">, </span> vt.value = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>\r\n  src.isOverTheCounter<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.extension<b> as </b><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span> vt.url = <span style=\"color: blue\">'http://hl7.org/fhir/3.0/StructureDefinition/extension-MedicationOTC'</span><span style=\"color: navy\">, </span> vt.value = <span style=\"color: maroon\">v</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>\r\n  src.form<span style=\"color: navy\"><b> -&gt; </b></span>tgt.form<span style=\"color: navy\">;</span>\r\n  src.ingredient<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.ingredient<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>ingredient<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt0</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n  src.package<b> as </b><span style=\"color: maroon\">vs0</span><b> then </b>package<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n  src.image<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.extension<b> as </b><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span> vt.url = <span style=\"color: blue\">'http://hl7.org/fhir/3.0/StructureDefinition/extension-MedicationImage'</span><span style=\"color: navy\">, </span> vt.value = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>ingredient<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.item<span style=\"color: navy\"> : </span>CodeableConcept<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.item = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><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><span style=\"color: navy\">;</span>\r\n  src.item<span style=\"color: navy\"> : </span>Reference<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.item = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Reference'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">vt</span><b> then </b>Reference<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: navy\">;</span>\r\n  src.isActive<span style=\"color: navy\"><b> -&gt; </b></span>tgt.isActive<span style=\"color: navy\">;</span>\r\n  src.amount<span style=\"color: navy\"><b> -&gt; </b></span>tgt.strength<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>package<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><span style=\"color: navy\"> {\r\n</span>  src.container<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.extension<b> as </b><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span> vt.url = <span style=\"color: blue\">'http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.package.container'</span><span style=\"color: navy\">, </span> vt.value = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>\r\n  src.content<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.extension<b> as </b><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span> vt.url = <span style=\"color: blue\">'http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.package.content'</span><b> then </b>content<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n  src.batch<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.batch<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>batch<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt0</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>content<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>Element<span style=\"color: navy\"> {\r\n</span>  src.item<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.extension<b> as </b><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span> vt.url = <span style=\"color: blue\">'http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.package.content'</span><span style=\"color: navy\">, </span> vt.value = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>\r\n  src.amount<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.extension<b> as </b><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span> vt.url = <span style=\"color: blue\">'http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.package.content.amount'</span><span style=\"color: navy\">, </span> vt.value = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>batch<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.lotNumber<span style=\"color: navy\"><b> -&gt; </b></span>tgt.lotNumber<span style=\"color: navy\">;</span>\r\n  src.expirationDate<span style=\"color: navy\"><b> -&gt; </b></span>tgt.expirationDate<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/Medication3to4",
  "version" : "0.1.0",
  "name" : "Medication3to4",
  "title" : "Medication Transforms: R3 to R4 ",
  "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" : "MedicationTransformsR3toR4",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://hl7.org/fhir/3.0/Medication",
      "mode" : "source",
      "alias" : "MedicationR3"
    },
    {
      "url" : "http://hl7.org/fhir/4.0/Medication",
      "mode" : "target",
      "alias" : "Medication"
    }
  ],
  "import" : [
    "http://hl7.org/fhir/StructureMap/*3to4"
  ],
  "group" : [
    {
      "name" : "Medication",
      "extends" : "DomainResource",
      "typeMode" : "type-and-types",
      "input" : [
        {
          "name" : "src",
          "type" : "MedicationR3",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "type" : "Medication",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "code",
          "source" : [
            {
              "context" : "src",
              "element" : "code",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "code",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "status",
          "source" : [
            {
              "context" : "src",
              "element" : "status",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "extension",
              "variable" : "vt"
            },
            {
              "context" : "vt",
              "element" : "url",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.status"
                }
              ]
            },
            {
              "context" : "vt",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "v"
                }
              ]
            }
          ]
        },
        {
          "name" : "isBrand",
          "source" : [
            {
              "context" : "src",
              "element" : "isBrand",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "extension",
              "variable" : "vt"
            },
            {
              "context" : "vt",
              "element" : "url",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "hhttp://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.isBrand"
                }
              ]
            },
            {
              "context" : "vt",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "v"
                }
              ]
            }
          ]
        },
        {
          "name" : "isOverTheCounter",
          "source" : [
            {
              "context" : "src",
              "element" : "isOverTheCounter",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "extension",
              "variable" : "vt"
            },
            {
              "context" : "vt",
              "element" : "url",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/3.0/StructureDefinition/extension-MedicationOTC"
                }
              ]
            },
            {
              "context" : "vt",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "v"
                }
              ]
            }
          ]
        },
        {
          "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"
                }
              ]
            }
          ]
        },
        {
          "name" : "form",
          "source" : [
            {
              "context" : "src",
              "element" : "form",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "form",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "ingredient",
          "source" : [
            {
              "context" : "src",
              "element" : "ingredient",
              "variable" : "vs0"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "ingredient",
              "variable" : "vt0"
            }
          ],
          "dependent" : [
            {
              "name" : "ingredient",
              "parameter" : [
                {
                  "valueId" : "vs0"
                },
                {
                  "valueId" : "vt0"
                }
              ]
            }
          ]
        },
        {
          "name" : "package",
          "source" : [
            {
              "context" : "src",
              "element" : "package",
              "variable" : "vs0"
            }
          ],
          "dependent" : [
            {
              "name" : "package",
              "parameter" : [
                {
                  "valueId" : "vs0"
                },
                {
                  "valueId" : "tgt"
                }
              ]
            }
          ]
        },
        {
          "name" : "image",
          "source" : [
            {
              "context" : "src",
              "element" : "image",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "extension",
              "variable" : "vt"
            },
            {
              "context" : "vt",
              "element" : "url",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/3.0/StructureDefinition/extension-MedicationImage"
                }
              ]
            },
            {
              "context" : "vt",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "v"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "ingredient",
      "extends" : "BackboneElement",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "itemCodeableConcept",
          "source" : [
            {
              "context" : "src",
              "type" : "CodeableConcept",
              "element" : "item",
              "variable" : "vs"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "item",
              "variable" : "vt",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "CodeableConcept",
              "parameter" : [
                {
                  "valueId" : "vs"
                },
                {
                  "valueId" : "vt"
                }
              ]
            }
          ]
        },
        {
          "name" : "itemReference",
          "source" : [
            {
              "context" : "src",
              "type" : "Reference",
              "element" : "item",
              "variable" : "vs"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "item",
              "variable" : "vt",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Reference"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "Reference",
              "parameter" : [
                {
                  "valueId" : "vs"
                },
                {
                  "valueId" : "vt"
                }
              ]
            }
          ]
        },
        {
          "name" : "isActive",
          "source" : [
            {
              "context" : "src",
              "element" : "isActive",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "isActive",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "amount",
          "source" : [
            {
              "context" : "src",
              "element" : "amount",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "strength",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "package",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "container",
          "source" : [
            {
              "context" : "src",
              "element" : "container",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "extension",
              "variable" : "vt"
            },
            {
              "context" : "vt",
              "element" : "url",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.package.container"
                }
              ]
            },
            {
              "context" : "vt",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "v"
                }
              ]
            }
          ]
        },
        {
          "name" : "content",
          "source" : [
            {
              "context" : "src",
              "element" : "content",
              "variable" : "vs0"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "extension",
              "variable" : "vt"
            },
            {
              "context" : "vt",
              "element" : "url",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.package.content"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "content",
              "parameter" : [
                {
                  "valueId" : "vs0"
                },
                {
                  "valueId" : "vt"
                }
              ]
            }
          ]
        },
        {
          "name" : "batch",
          "source" : [
            {
              "context" : "src",
              "element" : "batch",
              "variable" : "vs0"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "batch",
              "variable" : "vt0"
            }
          ],
          "dependent" : [
            {
              "name" : "batch",
              "parameter" : [
                {
                  "valueId" : "vs0"
                },
                {
                  "valueId" : "vt0"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "content",
      "extends" : "Element",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "item",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "extension",
              "variable" : "vt"
            },
            {
              "context" : "vt",
              "element" : "url",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.package.content"
                }
              ]
            },
            {
              "context" : "vt",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "v"
                }
              ]
            }
          ]
        },
        {
          "name" : "amount",
          "source" : [
            {
              "context" : "src",
              "element" : "amount",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "extension",
              "variable" : "vt"
            },
            {
              "context" : "vt",
              "element" : "url",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/3.0/StructureDefinition/extension-Medication.package.content.amount"
                }
              ]
            },
            {
              "context" : "vt",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "v"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "batch",
      "extends" : "BackboneElement",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "lotNumber",
          "source" : [
            {
              "context" : "src",
              "element" : "lotNumber",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "lotNumber",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "expirationDate",
          "source" : [
            {
              "context" : "src",
              "element" : "expirationDate",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "expirationDate",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}