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

FHIR IG Statistics: StructureMap/reportgeneration-to-measurereport

Packageng.gov.nphcda.immunization
Resource TypeStructureMap
Idreportgeneration-to-measurereport
FHIR VersionR4
Sourcehttp://nphcda.gov.ng/ig/immunization/https://build.fhir.org/ig/Nigeria-FHIR-Community/ImmunizationIG/StructureMap-reportgeneration-to-measurereport.html
URLhttps://nphcda.gov.ng/immunizationIG/StructureMap/reportgeneration-to-measurereport
Version1.0.0
Statusactive
Date2025-08-04T10:06:52+00:00
NameReportGenerationToMeasureReport
TitleStructureMap: ReportGeneration to MeasureReport and Related Profiles
DescriptionMap ReportGeneration logical model to NgImmMeasureReport, NgImmMeasure, and NgImmPractitioner

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 reportgeneration-to-measurereport

map "https://nphcda.gov.ng/immunizationIG/StructureMap/reportgeneration-to-measurereport" = "ReportGenerationToMeasureReport"

// Map ReportGeneration logical model to NgImmMeasureReport, NgImmMeasure, and NgImmPractitioner

uses "https://nphcda.gov.ng/immunizationIG/StructureDefinition/reportgeneration" alias RG as source
uses "https://nphcda.gov.ng/immunizationIG/StructureDefinition/ngimm-measurereport" alias MR as target
uses "https://nphcda.gov.ng/immunizationIG/StructureDefinition/ngimm-measure" alias MEASURE as target
uses "https://nphcda.gov.ng/immunizationIG/StructureDefinition/ng-imm-practitioner" alias PRAC as target

group reportGenerationToMeasureReport(source RG, target MR) {
  RG.reportId -> MR.identifier.value = copy();
  RG.generationDate -> MR.date = copy() "reportDate";
  RG.reportingStart -> MR.period.start = copy() "reportingPeriod";
  RG.reportingEnd -> MR.period.end = copy() "reportingPeriodEnd";
  RG.calculatedValue -> MR.group[0].measureScore.value = copy() "measureScore";
  RG.calculatedUnit -> MR.group[0].measureScore.unit = copy() "unit";
}

group reportGenerationToMeasure(source RG, target MEASURE) {
  RG.indicatorId -> MEASURE.identifier.value = copy() "indicatorCode";
  RG.indicatorName -> MEASURE.name = copy();
  RG.indicatorTitle -> MEASURE.title = copy();
}

group reportGenerationToPractitioner(source RG, target PRAC) {
  RG.reporterId -> PRAC.identifier.value = copy();
  RG.reporterName -> PRAC.name[0].text = copy();
}


Source

{
  "resourceType": "StructureMap",
  "id": "reportgeneration-to-measurereport",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "url": "https://nphcda.gov.ng/immunizationIG/StructureMap/reportgeneration-to-measurereport",
  "version": "1.0.0",
  "name": "ReportGenerationToMeasureReport",
  "title": "StructureMap: ReportGeneration to MeasureReport and Related Profiles",
  "status": "active",
  "date": "2025-08-04T10:06:52+00:00",
  "publisher": "https://nphcda.gov.ng",
  "contact": [
    {
      "name": "https://nphcda.gov.ng",
      "telecom": [
        {
          "system": "url",
          "value": "https://nphcda.gov.ng"
        },
        {
          "system": "email",
          "value": "kasim.sani@nphcda.gov.ng"
        }
      ]
    },
    {
      "name": "Nigeria Primary Healthcare Development Agency.",
      "telecom": [
        {
          "system": "email",
          "value": "ig@nphcda.gov.ng",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Map ReportGeneration logical model to NgImmMeasureReport, NgImmMeasure, and NgImmPractitioner",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "NG",
          "display": "Nigeria"
        }
      ]
    }
  ],
  "structure": [
    {
      "url": "https://nphcda.gov.ng/immunizationIG/StructureDefinition/reportgeneration",
      "mode": "source",
      "alias": "RG"
    },
    {
      "url": "https://nphcda.gov.ng/immunizationIG/StructureDefinition/ngimm-measurereport",
      "mode": "target",
      "alias": "MR"
    },
    {
      "url": "https://nphcda.gov.ng/immunizationIG/StructureDefinition/ngimm-measure",
      "mode": "target",
      "alias": "MEASURE"
    },
    {
      "url": "https://nphcda.gov.ng/immunizationIG/StructureDefinition/ng-imm-practitioner",
      "mode": "target",
      "alias": "PRAC"
    }
  ],
  "group": [
    {
      "name": "reportGenerationToMeasureReport",
      "typeMode": "none",
      "input": [
        {
          "name": "RG",
          "mode": "source"
        },
        {
          "name": "MR",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "reportId",
          "source": [
            {
              "context": "RG",
              "element": "reportId"
            }
          ],
          "target": [
            {
              "context": "MR",
              "contextType": "variable",
              "element": "identifier.value",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "reportDate",
          "source": [
            {
              "context": "RG",
              "element": "generationDate"
            }
          ],
          "target": [
            {
              "context": "MR",
              "contextType": "variable",
              "element": "date",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "reportingPeriod",
          "source": [
            {
              "context": "RG",
              "element": "reportingStart"
            }
          ],
          "target": [
            {
              "context": "MR",
              "contextType": "variable",
              "element": "period.start",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "reportingPeriodEnd",
          "source": [
            {
              "context": "RG",
              "element": "reportingEnd"
            }
          ],
          "target": [
            {
              "context": "MR",
              "contextType": "variable",
              "element": "period.end",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "measureScore",
          "source": [
            {
              "context": "RG",
              "element": "calculatedValue"
            }
          ],
          "target": [
            {
              "context": "MR",
              "contextType": "variable",
              "element": "group[0].measureScore.value",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "unit",
          "source": [
            {
              "context": "RG",
              "element": "calculatedUnit"
            }
          ],
          "target": [
            {
              "context": "MR",
              "contextType": "variable",
              "element": "group[0].measureScore.unit",
              "transform": "copy"
            }
          ]
        }
      ]
    },
    {
      "name": "reportGenerationToMeasure",
      "typeMode": "none",
      "input": [
        {
          "name": "RG",
          "mode": "source"
        },
        {
          "name": "MEASURE",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "indicatorCode",
          "source": [
            {
              "context": "RG",
              "element": "indicatorId"
            }
          ],
          "target": [
            {
              "context": "MEASURE",
              "contextType": "variable",
              "element": "identifier.value",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "indicatorName",
          "source": [
            {
              "context": "RG",
              "element": "indicatorName"
            }
          ],
          "target": [
            {
              "context": "MEASURE",
              "contextType": "variable",
              "element": "name",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "indicatorTitle",
          "source": [
            {
              "context": "RG",
              "element": "indicatorTitle"
            }
          ],
          "target": [
            {
              "context": "MEASURE",
              "contextType": "variable",
              "element": "title",
              "transform": "copy"
            }
          ]
        }
      ]
    },
    {
      "name": "reportGenerationToPractitioner",
      "typeMode": "none",
      "input": [
        {
          "name": "RG",
          "mode": "source"
        },
        {
          "name": "PRAC",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "reporterId",
          "source": [
            {
              "context": "RG",
              "element": "reporterId"
            }
          ],
          "target": [
            {
              "context": "PRAC",
              "contextType": "variable",
              "element": "identifier.value",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "reporterName",
          "source": [
            {
              "context": "RG",
              "element": "reporterName"
            }
          ],
          "target": [
            {
              "context": "PRAC",
              "contextType": "variable",
              "element": "name[0].text",
              "transform": "copy"
            }
          ]
        }
      ]
    }
  ]
}