FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagesmart.who.int.ph4h
Resource TypeStructureMap
IdStructureMap-MedicationOverviewMinToMedicationOverviewBundle.json
FHIR VersionR4
Sourcehttp://smart.who.int/ph4h/0.9.9/StructureMap-MedicationOverviewMinToMedicationOverviewBundle.html
URLhttp://smart.who.int/ph4h/StructureMap/MedicationOverviewMinToMedicationOverviewBundle
Version0.9.9
Statusdraft
Date2026-07-09T08:34:46+00:00
NameMedicationOverviewMinToMedicationOverviewBundle
Authoritywho

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureMap 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";
}


Source1

{
  "resourceType": "StructureMap",
  "id": "MedicationOverviewMinToMedicationOverviewBundle",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://smart.who.int/ph4h/StructureMap/MedicationOverviewMinToMedicationOverviewBundle",
  "version": "0.9.9",
  "name": "MedicationOverviewMinToMedicationOverviewBundle",
  "status": "draft",
  "date": "2026-07-09T08:34:46+00:00",
  "publisher": "WHO",
  "contact": [
    {
      "name": "WHO",
      "telecom": [
        {
          "system": "url",
          "value": "http://who.int"
        }
      ]
    }
  ],
  "structure": [
    {
      "url": "http://smart.who.int/ph4h/StructureDefinition/MedicationOverviewMin",
      "mode": "source",
      "alias": "MedicationOverviewMin"
    },
    {
      "url": "https://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicationOverview",
      "mode": "target",
      "alias": "MedicationOverviewBundle"
    },
    {
      "url": "https://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicationOverviewLM",
      "mode": "target",
      "alias": "MedicationOverviewLM"
    }
  ],
  "import": [
    "http://smart.who.int/ph4h/StructureMap/MedicationOverviewMinToMedicationOverviewLM",
    "http://smart.who.int/ph4h/StructureMap/MedicationOverviewLMToMedicationOverviewBundle"
  ],
  "group": [
    {
      "name": "MedicationOverviewMinToMedicationOverviewBundle",
      "typeMode": "none",
      "input": [
        {
          "name": "src",
          "type": "MedicationOverviewMin",
          "mode": "source"
        },
        {
          "name": "tgt",
          "type": "MedicationOverviewBundle",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "chainMinToBundle",
          "source": [
            {
              "context": "src"
            }
          ],
          "target": [
            {
              "contextType": "variable",
              "variable": "lm",
              "transform": "create",
              "parameter": [
                {
                  "valueString": "MedicationOverviewLM"
                }
              ]
            }
          ],
          "rule": [
            {
              "name": "stage1MinToLM",
              "source": [
                {
                  "context": "src"
                }
              ],
              "target": [
                {
                  "context": "lm",
                  "contextType": "variable"
                }
              ],
              "dependent": [
                {
                  "name": "MedicationOverviewMinToMedicationOverviewLM",
                  "variable": [
                    "src",
                    "lm"
                  ]
                }
              ]
            },
            {
              "name": "stage2LMToBundle",
              "source": [
                {
                  "context": "src"
                }
              ],
              "target": [
                {
                  "context": "tgt",
                  "contextType": "variable"
                }
              ],
              "dependent": [
                {
                  "name": "MedicationOverviewLMToMedicationOverviewBundle",
                  "variable": [
                    "lm",
                    "tgt"
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}