SMART PH4H
0.9.9 - release

This page is part of the PH4H (v0.9.9: Releases Draft) based on FHIR (HL7® FHIR® Standard) R4. 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

StructureMap: MedicationOverviewMinToMedicationOverviewBundle

Official URL: http://smart.who.int/ph4h/StructureMap/MedicationOverviewMinToMedicationOverviewBundle Version: 0.9.9
Draft as of 2026-07-09 Computable Name: MedicationOverviewMinToMedicationOverviewBundle

map "http://smart.who.int/ph4h/StructureMap/MedicationOverviewMinToMedicationOverviewBundle" = "MedicationOverviewMinToMedicationOverviewBundle"

uses "http://smart.who.int/ph4h/StructureDefinition/MedicationOverviewMin" alias MedicationOverviewMin as source
uses "https://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicationOverview" alias MedicationOverviewBundle as target
uses "https://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicationOverviewLM" alias MedicationOverviewLM as target

imports "http://smart.who.int/ph4h/StructureMap/MedicationOverviewMinToMedicationOverviewLM"
imports "http://smart.who.int/ph4h/StructureMap/MedicationOverviewLMToMedicationOverviewBundle"

group MedicationOverviewMinToMedicationOverviewBundle(source src : MedicationOverviewMin, target tgt : MedicationOverviewBundle) {
  src -> create('MedicationOverviewLM') as lm then {
    src -> lm then MedicationOverviewMinToMedicationOverviewLM(src, lm) "stage1MinToLM";
    // NOTE: the rule's source context must be a SOURCE-mode variable — `lm` is
    // a target variable (created above) and may only appear as a dependent
    // parameter. `lm -> tgt then ...` fails with "Unknown input variable lm".
    src -> tgt then MedicationOverviewLMToMedicationOverviewBundle(lm, tgt) "stage2LMToBundle";
  } "chainMinToBundle";
}