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

FHIR IG Statistics: StructureMap/IMMZ.D1.QRToBundle

Packagesmart.who.int.immunizations
Resource TypeStructureMap
IdIMMZ.D1.QRToBundle
FHIR VersionR4
Sourcehttp://smart.who.int/immunizations/https://build.fhir.org/ig/WorldHealthOrganization/smart-immunizations/StructureMap-IMMZ.D1.QRToBundle.html
URLhttp://smart.who.int/immunizations/StructureMap/IMMZ.D1.QRToBundle
Version0.2.0
Statusdraft
Date2025-08-08T19:12:11+00:00
NameIMMZ.D1.QRToBundle
Authoritywho
DescriptionImmunization Administer Vaccine - Transform QuestionnaireResponse 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.D1.QRToBundle

map "http://smart.who.int/immunizations/StructureMap/IMMZ.D1.QRToBundle" = "IMMZ.D1.QRToBundle"

// Immunization Administer Vaccine - Transform QuestionnaireResponse to Immunization resources

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

imports "http://smart.who.int/immunizations/StructureMap/IMMZ.D1.QRToLM"
imports "http://smart.who.int/immunizations/StructureMap/IMMZ.D1.LMToBundle"

group QRespToBundle(source qr : QResp, target bundle : Bundle) {
  qr -> create('http://smart.who.int/immunizations/StructureDefinition/IMMZD1') as model then {
    qr -> model then QRespToIMMZD1(qr, model) "QRtoLM";
    qr -> bundle then IMMZD1ToBundle(model, bundle) "LMtoBundle";
  } "QRtoBundle";
}


Source

{
  "resourceType": "StructureMap",
  "id": "IMMZ.D1.QRToBundle",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://smart.who.int/immunizations/StructureMap/IMMZ.D1.QRToBundle",
  "version": "0.2.0",
  "name": "IMMZ.D1.QRToBundle",
  "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 QuestionnaireResponse to Immunization resources",
  "structure": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
      "mode": "source",
      "alias": "QResp"
    },
    {
      "url": "http://smart.who.int/immunizations/StructureDefinition/IMMZD1",
      "mode": "source",
      "alias": "IMMZD1"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/Bundle",
      "mode": "target",
      "alias": "Bundle"
    }
  ],
  "import": [
    "http://smart.who.int/immunizations/StructureMap/IMMZ.D1.QRToLM",
    "http://smart.who.int/immunizations/StructureMap/IMMZ.D1.LMToBundle"
  ],
  "group": [
    {
      "name": "QRespToBundle",
      "typeMode": "none",
      "input": [
        {
          "name": "qr",
          "type": "QResp",
          "mode": "source"
        },
        {
          "name": "bundle",
          "type": "Bundle",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "QRtoBundle",
          "source": [
            {
              "context": "qr"
            }
          ],
          "target": [
            {
              "contextType": "variable",
              "variable": "model",
              "transform": "create",
              "parameter": [
                {
                  "valueString": "http://smart.who.int/immunizations/StructureDefinition/IMMZD1"
                }
              ]
            }
          ],
          "rule": [
            {
              "name": "QRtoLM",
              "source": [
                {
                  "context": "qr"
                }
              ],
              "target": [
                {
                  "context": "model",
                  "contextType": "variable"
                }
              ],
              "dependent": [
                {
                  "name": "QRespToIMMZD1",
                  "variable": [
                    "qr",
                    "model"
                  ]
                }
              ]
            },
            {
              "name": "LMtoBundle",
              "source": [
                {
                  "context": "qr"
                }
              ],
              "target": [
                {
                  "context": "bundle",
                  "contextType": "variable"
                }
              ],
              "dependent": [
                {
                  "name": "IMMZD1ToBundle",
                  "variable": [
                    "model",
                    "bundle"
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}