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

: MedicationOrder Transforms: R2 to R3 - JSON Representation

Page standards status: Draft Maturity Level: 1

Raw json | Download


{
  "resourceType" : "StructureMap",
  "id" : "MedicationOrder2to3",
  "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/MedicationOrder2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'MedicationOrder2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'MedicationOrder 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/MedicationOrder<span style=\"color: navy\">&quot; </span><b>alias </b>MedicationOrderR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/3.0/MedicationRequest<span style=\"color: navy\">&quot; </span><b>alias </b>MedicationRequest <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>MedicationOrder<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>MedicationOrderR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>MedicationRequest<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style=\"color: navy\"> {\r\n</span>  src<span style=\"color: navy\"><b> -&gt; </b></span>tgt.intent = <span style=\"color: blue\">'order'</span> <i>&quot;MedicationOrder-intent&quot;</i><span style=\"color: navy\">;</span>\r\n  src.identifier<span style=\"color: navy\"><b> -&gt; </b></span>tgt.identifier <i>&quot;MedicationOrder-identifier&quot;</i><span style=\"color: navy\">;</span>\r\n  src.dateWritten<span style=\"color: navy\"><b> -&gt; </b></span>tgt.authoredOn <i>&quot;MedicationOrder-dateWritten&quot;</i><span style=\"color: navy\">;</span>\r\n  src.status<span style=\"color: navy\"><b> -&gt; </b></span>tgt.status <i>&quot;MedicationOrder-status&quot;</i><span style=\"color: navy\">;</span>\r\n  src.patient<span style=\"color: navy\"><b> -&gt; </b></span>tgt.subject <i>&quot;MedicationOrder-patient&quot;</i><span style=\"color: navy\">;</span>\r\n  src<b> where </b>prescriber.exists()<span style=\"color: navy\"><b> -&gt; </b></span>tgt.requester<b> as </b><span style=\"color: maroon\">vt</span><b> then </b>medRequestor<span style=\"color: navy\">(</span><span style=\"color: maroon\">src</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span> <i>&quot;MedicationOrder-prescriber&quot;</i><span style=\"color: navy\">;</span>\r\n  src.encounter<span style=\"color: navy\"><b> -&gt; </b></span>tgt.context <i>&quot;MedicationOrder-encounter&quot;</i><span style=\"color: navy\">;</span>\r\n  src.reason<b> where </b>$this is CodeableConcept<span style=\"color: navy\"><b> -&gt; </b></span>tgt.reasonCode <i>&quot;MedicationOrder-reasonCode&quot;</i><span style=\"color: navy\">;</span>\r\n  src.reason<b> where </b>$this is Reference<span style=\"color: navy\"><b> -&gt; </b></span>tgt.reasonReference <i>&quot;MedicationOrder-reasonCode&quot;</i><span style=\"color: navy\">;</span>\r\n  src.note<span style=\"color: navy\"><b> -&gt; </b></span>tgt.note <i>&quot;MedicationOrder-note&quot;</i><span style=\"color: navy\">;</span>\r\n  src.medication<span style=\"color: navy\"><b> -&gt; </b></span>tgt.medication <i>&quot;MedicationOrder-medication&quot;</i><span style=\"color: navy\">;</span>\r\n  src.dosageInstruction<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.dosageInstruction<b> as </b><span style=\"color: maroon\">vt</span><b> then </b>medDosageInstruction<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;MedicationOrder-dosageInstruction&quot;</i><span style=\"color: navy\">;</span>\r\n  src.dispenseRequest<b> as </b><span style=\"color: maroon\">vs</span><b> check </b>medication.empty()<span style=\"color: navy\"><b> -&gt; </b></span>tgt.dispenseRequest<b> as </b><span style=\"color: maroon\">vt</span><b> then </b>medDispenseRequest<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;MedicationOrder-dispenseRequest&quot;</i><span style=\"color: navy\">;</span>\r\n  src.substitution<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.substitution<b> as </b><span style=\"color: maroon\">vt</span><b> then </b>medSubstitution<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;MedicationOrder-substitution&quot;</i><span style=\"color: navy\">;</span>\r\n  src.priorPrescription<span style=\"color: navy\"><b> -&gt; </b></span>tgt.priorPrescription <i>&quot;MedicationOrder-priorPrescription&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>medDosageInstruction<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.text<span style=\"color: navy\"><b> -&gt; </b></span>tgt.text <i>&quot;dosage-text&quot;</i><span style=\"color: navy\">;</span>\r\n  src.additionalInstructions<span style=\"color: navy\"><b> -&gt; </b></span>tgt.additionalInstruction <i>&quot;dosage-additionalInstructions&quot;</i><span style=\"color: navy\">;</span>\r\n  src.timing<span style=\"color: navy\"><b> -&gt; </b></span>tgt.timing <i>&quot;dosage-timing&quot;</i><span style=\"color: navy\">;</span>\r\n  src.asNeeded<span style=\"color: navy\"><b> -&gt; </b></span>tgt.asNeeded <i>&quot;dosage-asNeeded&quot;</i><span style=\"color: navy\">;</span>\r\n  src.site<b> where </b>$this is CodeableConcept<span style=\"color: navy\"><b> -&gt; </b></span>tgt.site <i>&quot;dosage-site&quot;</i><span style=\"color: navy\">;</span>\r\n  src.route<span style=\"color: navy\"><b> -&gt; </b></span>tgt.route <i>&quot;dosage-route&quot;</i><span style=\"color: navy\">;</span>\r\n  src.method<span style=\"color: navy\"><b> -&gt; </b></span>tgt.method <i>&quot;dosage-method&quot;</i><span style=\"color: navy\">;</span>\r\n  src.dose<span style=\"color: navy\"><b> -&gt; </b></span>tgt.dose <i>&quot;dosage-dose&quot;</i><span style=\"color: navy\">;</span>\r\n  src.rate<span style=\"color: navy\"><b> -&gt; </b></span>tgt.rate <i>&quot;dosage-rate&quot;</i><span style=\"color: navy\">;</span>\r\n  src.maxDosePerPeriod<span style=\"color: navy\"><b> -&gt; </b></span>tgt.maxDosePerPeriod <i>&quot;dosage-maxDosePerPeriod&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>medDispenseRequest<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.validityPeriod<span style=\"color: navy\"><b> -&gt; </b></span>tgt.validityPeriod <i>&quot;dispenseRequest-validityPeriod&quot;</i><span style=\"color: navy\">;</span>\r\n  src.numberOfRepeatsAllowed<span style=\"color: navy\"><b> -&gt; </b></span>tgt.numberOfRepeatsAllowed <i>&quot;dispenseRequest-numberOfRepeatsAllowed&quot;</i><span style=\"color: navy\">;</span>\r\n  src.quantity<span style=\"color: navy\"><b> -&gt; </b></span>tgt.quantity <i>&quot;dispenseRequest-quantity&quot;</i><span style=\"color: navy\">;</span>\r\n  src.expectedSupplyDuration<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.expectedSupplyDuration<b> as </b><span style=\"color: maroon\">d</span><b> then </b>QuantityToDuration<span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">d</span><span style=\"color: navy\">)</span> <i>&quot;dispenseRequest-expectedSupplyDuration&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>medSubstitution<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.reason<span style=\"color: navy\"><b> -&gt; </b></span>tgt.reason <i>&quot;substitution-reason&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>medRequestor<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.prescriber<span style=\"color: navy\"><b> -&gt; </b></span>tgt.agent <i>&quot;MedicationOrder-prescriber2&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/MedicationOrder2to3",
  "version" : "0.1.0",
  "name" : "MedicationOrder2to3",
  "title" : "MedicationOrder 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" : "MedicationOrderTransformsR2toR3",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://hl7.org/fhir/1.0/MedicationOrder",
      "mode" : "source",
      "alias" : "MedicationOrderR2"
    },
    {
      "url" : "http://hl7.org/fhir/3.0/MedicationRequest",
      "mode" : "target",
      "alias" : "MedicationRequest"
    }
  ],
  "import" : [
    "http://hl7.org/fhir/StructureMap/*2to3"
  ],
  "group" : [
    {
      "name" : "MedicationOrder",
      "extends" : "DomainResource",
      "typeMode" : "type-and-types",
      "input" : [
        {
          "name" : "src",
          "type" : "MedicationOrderR2",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "type" : "MedicationRequest",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "MedicationOrder-intent",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "intent",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "order"
                }
              ]
            }
          ]
        },
        {
          "name" : "MedicationOrder-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" : "MedicationOrder-dateWritten",
          "source" : [
            {
              "context" : "src",
              "element" : "dateWritten",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "authoredOn",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "MedicationOrder-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" : "MedicationOrder-patient",
          "source" : [
            {
              "context" : "src",
              "element" : "patient",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "subject",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "MedicationOrder-prescriber",
          "source" : [
            {
              "context" : "src",
              "condition" : "prescriber.exists()"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "requester",
              "variable" : "vt"
            }
          ],
          "dependent" : [
            {
              "name" : "medRequestor",
              "parameter" : [
                {
                  "valueId" : "src"
                },
                {
                  "valueId" : "vt"
                }
              ]
            }
          ]
        },
        {
          "name" : "MedicationOrder-encounter",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "context",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "MedicationOrder-reasonCode",
          "source" : [
            {
              "context" : "src",
              "element" : "reason",
              "variable" : "vvv",
              "condition" : "$this is CodeableConcept"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "reasonCode",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "MedicationOrder-reasonCode",
          "source" : [
            {
              "context" : "src",
              "element" : "reason",
              "variable" : "vvv",
              "condition" : "$this is Reference"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "reasonReference",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "MedicationOrder-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"
                }
              ]
            }
          ]
        },
        {
          "name" : "MedicationOrder-medication",
          "source" : [
            {
              "context" : "src",
              "element" : "medication",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "medication",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "MedicationOrder-dosageInstruction",
          "source" : [
            {
              "context" : "src",
              "element" : "dosageInstruction",
              "variable" : "vs"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "dosageInstruction",
              "variable" : "vt"
            }
          ],
          "dependent" : [
            {
              "name" : "medDosageInstruction",
              "parameter" : [
                {
                  "valueId" : "vs"
                },
                {
                  "valueId" : "vt"
                }
              ]
            }
          ]
        },
        {
          "name" : "MedicationOrder-dispenseRequest",
          "source" : [
            {
              "context" : "src",
              "element" : "dispenseRequest",
              "variable" : "vs",
              "check" : "medication.empty()"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "dispenseRequest",
              "variable" : "vt"
            }
          ],
          "dependent" : [
            {
              "name" : "medDispenseRequest",
              "parameter" : [
                {
                  "valueId" : "vs"
                },
                {
                  "valueId" : "vt"
                }
              ]
            }
          ]
        },
        {
          "name" : "MedicationOrder-substitution",
          "source" : [
            {
              "context" : "src",
              "element" : "substitution",
              "variable" : "vs"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "substitution",
              "variable" : "vt"
            }
          ],
          "dependent" : [
            {
              "name" : "medSubstitution",
              "parameter" : [
                {
                  "valueId" : "vs"
                },
                {
                  "valueId" : "vt"
                }
              ]
            }
          ]
        },
        {
          "name" : "MedicationOrder-priorPrescription",
          "source" : [
            {
              "context" : "src",
              "element" : "priorPrescription",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "priorPrescription",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "medDosageInstruction",
      "extends" : "Element",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "dosage-text",
          "source" : [
            {
              "context" : "src",
              "element" : "text",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "text",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "dosage-additionalInstructions",
          "source" : [
            {
              "context" : "src",
              "element" : "additionalInstructions",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "additionalInstruction",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "dosage-timing",
          "source" : [
            {
              "context" : "src",
              "element" : "timing",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "timing",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "dosage-asNeeded",
          "source" : [
            {
              "context" : "src",
              "element" : "asNeeded",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "asNeeded",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "dosage-site",
          "source" : [
            {
              "context" : "src",
              "element" : "site",
              "variable" : "vvv",
              "condition" : "$this is CodeableConcept"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "site",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "dosage-route",
          "source" : [
            {
              "context" : "src",
              "element" : "route",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "route",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "dosage-method",
          "source" : [
            {
              "context" : "src",
              "element" : "method",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "method",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "dosage-dose",
          "source" : [
            {
              "context" : "src",
              "element" : "dose",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "dose",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "dosage-rate",
          "source" : [
            {
              "context" : "src",
              "element" : "rate",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "rate",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "dosage-maxDosePerPeriod",
          "source" : [
            {
              "context" : "src",
              "element" : "maxDosePerPeriod",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "maxDosePerPeriod",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "medDispenseRequest",
      "extends" : "BackboneElement",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "dispenseRequest-validityPeriod",
          "source" : [
            {
              "context" : "src",
              "element" : "validityPeriod",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "validityPeriod",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "dispenseRequest-numberOfRepeatsAllowed",
          "source" : [
            {
              "context" : "src",
              "element" : "numberOfRepeatsAllowed",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "numberOfRepeatsAllowed",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "dispenseRequest-quantity",
          "source" : [
            {
              "context" : "src",
              "element" : "quantity",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "quantity",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "dispenseRequest-expectedSupplyDuration",
          "source" : [
            {
              "context" : "src",
              "element" : "expectedSupplyDuration",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "expectedSupplyDuration",
              "variable" : "d"
            }
          ],
          "dependent" : [
            {
              "name" : "QuantityToDuration",
              "parameter" : [
                {
                  "valueId" : "v"
                },
                {
                  "valueId" : "d"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "medSubstitution",
      "extends" : "BackboneElement",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "substitution-reason",
          "source" : [
            {
              "context" : "src",
              "element" : "reason",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "reason",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "medRequestor",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "MedicationOrder-prescriber2",
          "source" : [
            {
              "context" : "src",
              "element" : "prescriber",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "agent",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}