FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureMap/IMMZ.D13.LMToBundle

Packagesmart.who.int.immunizations
Resource TypeStructureMap
IdIMMZ.D13.LMToBundle
FHIR VersionR4
Sourcehttp://smart.who.int/immunizations/https://build.fhir.org/ig/WorldHealthOrganization/smart-immunizations/StructureMap-IMMZ.D13.LMToBundle.html
URLhttp://smart.who.int/immunizations/StructureMap/IMMZ.D13.LMToBundle
Version0.2.0
Statusdraft
Date2025-08-08T19:12:11+00:00
NameIMMZ.D13.LMToBundle
Authoritywho
DescriptionImmunization Administer Vaccine - Transform Logical Model to Immunization resources

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 IMMZ.D13.LMToBundle

map "http://smart.who.int/immunizations/StructureMap/IMMZ.D13.LMToBundle" = "IMMZ.D13.LMToBundle"

// Immunization Administer Vaccine - Transform Logical Model to Immunization resources

uses "http://smart.who.int/immunizations/StructureDefinition/IMMZD13" alias IMMZD13 as source
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target

imports "http://smart.who.int/immunizations/StructureMap/IMMZ.Helpers"

group IMMZD13ToBundle(source immz : IMMZD13, target bundle : Bundle) {
  immz -> bundle.type = 'transaction' "SetBundleType";
  immz.patient as patient -> uuid() as immid then {
    immz then MakeImmunization(patient, immid, immz, bundle) "MakeImmunization";
    immz then D1andD13Observations(patient, immid, immz, bundle) "MakeD1andD13Observations";
  } "GetPatient";
}


Source

{
  "resourceType": "StructureMap",
  "id": "IMMZ.D13.LMToBundle",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://smart.who.int/immunizations/StructureMap/IMMZ.D13.LMToBundle",
  "version": "0.2.0",
  "name": "IMMZ.D13.LMToBundle",
  "status": "draft",
  "date": "2025-08-08T19:12:11+00:00",
  "publisher": "WHO",
  "contact": [
    {
      "name": "WHO",
      "telecom": [
        {
          "system": "url",
          "value": "http://who.int"
        }
      ]
    }
  ],
  "description": "Immunization Administer Vaccine - Transform Logical Model to Immunization resources",
  "structure": [
    {
      "url": "http://smart.who.int/immunizations/StructureDefinition/IMMZD13",
      "mode": "source",
      "alias": "IMMZD13"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/Bundle",
      "mode": "target",
      "alias": "Bundle"
    }
  ],
  "import": [
    "http://smart.who.int/immunizations/StructureMap/IMMZ.Helpers"
  ],
  "group": [
    {
      "name": "IMMZD13ToBundle",
      "typeMode": "none",
      "input": [
        {
          "name": "immz",
          "type": "IMMZD13",
          "mode": "source"
        },
        {
          "name": "bundle",
          "type": "Bundle",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "SetBundleType",
          "source": [
            {
              "context": "immz"
            }
          ],
          "target": [
            {
              "context": "bundle",
              "contextType": "variable",
              "element": "type",
              "transform": "copy",
              "parameter": [
                {
                  "valueString": "transaction"
                }
              ]
            }
          ]
        },
        {
          "name": "GetPatient",
          "source": [
            {
              "context": "immz",
              "element": "patient",
              "variable": "patient"
            }
          ],
          "target": [
            {
              "contextType": "variable",
              "variable": "immid",
              "transform": "uuid"
            }
          ],
          "rule": [
            {
              "name": "MakeImmunization",
              "source": [
                {
                  "context": "immz"
                }
              ],
              "dependent": [
                {
                  "name": "MakeImmunization",
                  "variable": [
                    "patient",
                    "immid",
                    "immz",
                    "bundle"
                  ]
                }
              ]
            },
            {
              "name": "MakeD1andD13Observations",
              "source": [
                {
                  "context": "immz"
                }
              ],
              "dependent": [
                {
                  "name": "D1andD13Observations",
                  "variable": [
                    "patient",
                    "immid",
                    "immz",
                    "bundle"
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}