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

FHIR IG Statistics: StructureMap/PreQualDBtoProductAuthorizationLM

Packagesmart.who.int.pcmt-vaxprequal
Resource TypeStructureMap
IdPreQualDBtoProductAuthorizationLM
FHIR VersionR5
Sourcehttp://smart.who.int/pcmt-vaxprequal/https://build.fhir.org/ig/WorldHealthOrganization/smart-pcmt-vaxprequal/StructureMap-PreQualDBtoProductAuthorizationLM.html
URLhttp://smart.who.int/icvp/StructureMap/PreQualDBtoProductAuthorizationLM
Version0.2.0
Statusdraft
Date2025-07-01T11:06:49+00:00
NamePreQualDBtoProductAuthorizationLM
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 PreQualDBtoProductAuthorizationLM

/// url = 'http://smart.who.int/icvp/StructureMap/PreQualDBtoProductAuthorizationLM'
/// name = 'PreQualDBtoProductAuthorizationLM'
/// status = 'draft'

uses "http://smart.who.int/icvp/StructureDefinition/PreQualDBwithIds" alias PreQualDB as source
uses "http://smart.who.int/icvp/StructureDefinition/ProductAuthorization" alias ProductAuthorization as target

group PreQualDBtoProductAuthorizationLM(source prequal : PreQualDB, target productAuth : ProductAuthoization) {
  productAuth.status as status -> status = 'active';
  productAuth.type as type -> type = 'prequal' "set prequal";
  prequal.responsibleNRAReference as respNRARef then {
    respNRARef as respNRARef -> productAuth.holder = respNRARef "set national regulatory authority holder";
  } "process nra";
  prequal.validityPeriod as validityPeriod then {
    validityPeriod as validityPeriod -> productAuth.validityPeriod = validityPeriod "set validity period";
  } "process validity period";
  productAuth.jurisdiction as j then {
    j.coding as coding -> coding.display = 'WHO' "set WHO";
  } "process juris";
  prequal.index as index -> productAuth.number = index "set number/index";
  prequal.productReference as prodRef -> productAuth.product = prodRef "set prod ref";
}


Source

{
  "resourceType": "StructureMap",
  "id": "PreQualDBtoProductAuthorizationLM",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://smart.who.int/icvp/StructureMap/PreQualDBtoProductAuthorizationLM",
  "version": "0.2.0",
  "name": "PreQualDBtoProductAuthorizationLM",
  "status": "draft",
  "date": "2025-07-01T11:06:49+00:00",
  "publisher": "WHO",
  "contact": [
    {
      "name": "WHO",
      "telecom": [
        {
          "system": "url",
          "value": "http://who.int"
        }
      ]
    }
  ],
  "structure": [
    {
      "url": "http://smart.who.int/icvp/StructureDefinition/PreQualDBwithIds",
      "mode": "source",
      "alias": "PreQualDB"
    },
    {
      "url": "http://smart.who.int/icvp/StructureDefinition/ProductAuthorization",
      "mode": "target",
      "alias": "ProductAuthorization"
    }
  ],
  "group": [
    {
      "name": "PreQualDBtoProductAuthorizationLM",
      "input": [
        {
          "name": "prequal",
          "type": "PreQualDB",
          "mode": "source"
        },
        {
          "name": "productAuth",
          "type": "ProductAuthoization",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "status",
          "source": [
            {
              "context": "productAuth",
              "element": "status",
              "variable": "status"
            }
          ],
          "target": [
            {
              "context": "status",
              "transform": "copy",
              "parameter": [
                {
                  "valueString": "active"
                }
              ]
            }
          ]
        },
        {
          "name": "set prequal",
          "source": [
            {
              "context": "productAuth",
              "element": "type",
              "variable": "type"
            }
          ],
          "target": [
            {
              "context": "type",
              "transform": "copy",
              "parameter": [
                {
                  "valueString": "prequal"
                }
              ]
            }
          ]
        },
        {
          "name": "process nra",
          "source": [
            {
              "context": "prequal",
              "element": "responsibleNRAReference",
              "variable": "respNRARef"
            }
          ],
          "rule": [
            {
              "name": "set national regulatory authority holder",
              "source": [
                {
                  "context": "respNRARef",
                  "variable": "respNRARef"
                }
              ],
              "target": [
                {
                  "context": "productAuth",
                  "element": "holder",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueId": "respNRARef"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name": "process validity period",
          "source": [
            {
              "context": "prequal",
              "element": "validityPeriod",
              "variable": "validityPeriod"
            }
          ],
          "rule": [
            {
              "name": "set validity period",
              "source": [
                {
                  "context": "validityPeriod",
                  "variable": "validityPeriod"
                }
              ],
              "target": [
                {
                  "context": "productAuth",
                  "element": "validityPeriod",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueId": "validityPeriod"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name": "process juris",
          "source": [
            {
              "context": "productAuth",
              "element": "jurisdiction",
              "variable": "j"
            }
          ],
          "rule": [
            {
              "name": "set WHO",
              "source": [
                {
                  "context": "j",
                  "element": "coding",
                  "variable": "coding"
                }
              ],
              "target": [
                {
                  "context": "coding",
                  "element": "display",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueString": "WHO"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name": "set number/index",
          "source": [
            {
              "context": "prequal",
              "element": "index",
              "variable": "index"
            }
          ],
          "target": [
            {
              "context": "productAuth",
              "element": "number",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "index"
                }
              ]
            }
          ]
        },
        {
          "name": "set prod ref",
          "source": [
            {
              "context": "prequal",
              "element": "productReference",
              "variable": "prodRef"
            }
          ],
          "target": [
            {
              "context": "productAuth",
              "element": "product",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "prodRef"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}