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

FHIR IG Statistics: StructureMap/manageaefi-to-ngimm-aefi-profiles

Packageng.gov.nphcda.immunization
Resource TypeStructureMap
Idmanageaefi-to-ngimm-aefi-profiles
FHIR VersionR4
Sourcehttp://nphcda.gov.ng/ig/immunization/https://build.fhir.org/ig/Nigeria-FHIR-Community/ImmunizationIG/StructureMap-manageaefi-to-ngimm-aefi-profiles.html
URLhttps://nphcda.gov.ng/immunizationIG/StructureMap/manageaefi-to-ngimm-aefi-profiles
Version1.0.0
Statusactive
Date2025-08-04T10:06:52+00:00
NameManageAEFIToNgImmAEFIProfiles
TitleStructureMap: ManageAEFI to AllergyIntolerance, Encounter, Practitioner, and Patient
DescriptionMaps ManageAEFI logical model to NgImmAllergyIntolerance, NgImmEncounter, NgImmPractitioner, and NgImmPatient profiles

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 manageaefi-to-ngimm-aefi-profiles

map "https://nphcda.gov.ng/immunizationIG/StructureMap/manageaefi-to-ngimm-aefi-profiles" = "ManageAEFIToNgImmAEFIProfiles"

// Maps ManageAEFI logical model to NgImmAllergyIntolerance, NgImmEncounter, NgImmPractitioner, and NgImmPatient profiles

uses "https://nphcda.gov.ng/immunizationIG/StructureDefinition/manage-aefi" alias AEFI as source
uses "https://nphcda.gov.ng/immunizationIG/StructureDefinition/allergy-intolerance-profile" alias Allergy as target
uses "https://nphcda.gov.ng/immunizationIG/StructureDefinition/ng-imm-encounter" alias Encounter as target
uses "https://nphcda.gov.ng/immunizationIG/StructureDefinition/ng-imm-practitioner" alias Practitioner as target
uses "https://nphcda.gov.ng/immunizationIG/StructureDefinition/ng-imm-patient" alias Patient as target

group manageAefiToAllergyIntolerance(source AEFI, target Allergy) {
  AEFI.reactionDate -> Allergy.extension[1].valueInteger = copy() "reactionDateToOnset";
  AEFI.totalDoses -> Allergy "totalDosesToExtension";
}

group manageAefiToEncounter(source AEFI, target Encounter) {
  AEFI.observationId -> Encounter.identifier[0].value = copy() "aefiIdToEncounterId";
  AEFI.visitType -> Encounter.class = copy() "visitTypeToClass";
  AEFI.officerId -> Encounter.participant[0].individual.reference = copy() "practitionerToParticipant";
  AEFI.facilityId -> Encounter.location[0].location.reference = copy() "locationToEncounterLocation";
}

group manageAefiToPractitioner(source AEFI, target Practitioner) {
  AEFI.officerId -> Practitioner.identifier[0].value = copy() "officerIdToIdentifier";
  AEFI.officerName -> Practitioner.name[0].text = copy() "officerNameToName";
}

group manageAefiToPatient(source AEFI, target Patient) {
  AEFI.clientId -> Patient.identifier[0].value = copy() "patientIdToIdentifier";
  AEFI.clientName -> Patient.name[0].text = copy() "patientNameToName";
  AEFI.sex -> Patient.gender = copy() "patientSexToGender";
}


Source

{
  "resourceType": "StructureMap",
  "id": "manageaefi-to-ngimm-aefi-profiles",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "url": "https://nphcda.gov.ng/immunizationIG/StructureMap/manageaefi-to-ngimm-aefi-profiles",
  "version": "1.0.0",
  "name": "ManageAEFIToNgImmAEFIProfiles",
  "title": "StructureMap: ManageAEFI to AllergyIntolerance, Encounter, Practitioner, and Patient",
  "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": "Maps ManageAEFI logical model to NgImmAllergyIntolerance, NgImmEncounter, NgImmPractitioner, and NgImmPatient profiles",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "NG",
          "display": "Nigeria"
        }
      ]
    }
  ],
  "structure": [
    {
      "url": "https://nphcda.gov.ng/immunizationIG/StructureDefinition/manage-aefi",
      "mode": "source",
      "alias": "AEFI"
    },
    {
      "url": "https://nphcda.gov.ng/immunizationIG/StructureDefinition/allergy-intolerance-profile",
      "mode": "target",
      "alias": "Allergy"
    },
    {
      "url": "https://nphcda.gov.ng/immunizationIG/StructureDefinition/ng-imm-encounter",
      "mode": "target",
      "alias": "Encounter"
    },
    {
      "url": "https://nphcda.gov.ng/immunizationIG/StructureDefinition/ng-imm-practitioner",
      "mode": "target",
      "alias": "Practitioner"
    },
    {
      "url": "https://nphcda.gov.ng/immunizationIG/StructureDefinition/ng-imm-patient",
      "mode": "target",
      "alias": "Patient"
    }
  ],
  "group": [
    {
      "name": "manageAefiToAllergyIntolerance",
      "typeMode": "none",
      "input": [
        {
          "name": "AEFI",
          "mode": "source"
        },
        {
          "name": "Allergy",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "reactionDateToOnset",
          "source": [
            {
              "context": "AEFI",
              "element": "reactionDate"
            }
          ],
          "target": [
            {
              "context": "Allergy",
              "contextType": "variable",
              "element": "extension[1].valueInteger",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "totalDosesToExtension",
          "source": [
            {
              "context": "AEFI",
              "element": "totalDoses"
            }
          ],
          "target": [
            {
              "context": "Allergy",
              "contextType": "variable"
            }
          ]
        }
      ]
    },
    {
      "name": "manageAefiToEncounter",
      "typeMode": "none",
      "input": [
        {
          "name": "AEFI",
          "mode": "source"
        },
        {
          "name": "Encounter",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "aefiIdToEncounterId",
          "source": [
            {
              "context": "AEFI",
              "element": "observationId"
            }
          ],
          "target": [
            {
              "context": "Encounter",
              "contextType": "variable",
              "element": "identifier[0].value",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "visitTypeToClass",
          "source": [
            {
              "context": "AEFI",
              "element": "visitType"
            }
          ],
          "target": [
            {
              "context": "Encounter",
              "contextType": "variable",
              "element": "class",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "practitionerToParticipant",
          "source": [
            {
              "context": "AEFI",
              "element": "officerId"
            }
          ],
          "target": [
            {
              "context": "Encounter",
              "contextType": "variable",
              "element": "participant[0].individual.reference",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "locationToEncounterLocation",
          "source": [
            {
              "context": "AEFI",
              "element": "facilityId"
            }
          ],
          "target": [
            {
              "context": "Encounter",
              "contextType": "variable",
              "element": "location[0].location.reference",
              "transform": "copy"
            }
          ]
        }
      ]
    },
    {
      "name": "manageAefiToPractitioner",
      "typeMode": "none",
      "input": [
        {
          "name": "AEFI",
          "mode": "source"
        },
        {
          "name": "Practitioner",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "officerIdToIdentifier",
          "source": [
            {
              "context": "AEFI",
              "element": "officerId"
            }
          ],
          "target": [
            {
              "context": "Practitioner",
              "contextType": "variable",
              "element": "identifier[0].value",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "officerNameToName",
          "source": [
            {
              "context": "AEFI",
              "element": "officerName"
            }
          ],
          "target": [
            {
              "context": "Practitioner",
              "contextType": "variable",
              "element": "name[0].text",
              "transform": "copy"
            }
          ]
        }
      ]
    },
    {
      "name": "manageAefiToPatient",
      "typeMode": "none",
      "input": [
        {
          "name": "AEFI",
          "mode": "source"
        },
        {
          "name": "Patient",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "patientIdToIdentifier",
          "source": [
            {
              "context": "AEFI",
              "element": "clientId"
            }
          ],
          "target": [
            {
              "context": "Patient",
              "contextType": "variable",
              "element": "identifier[0].value",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "patientNameToName",
          "source": [
            {
              "context": "AEFI",
              "element": "clientName"
            }
          ],
          "target": [
            {
              "context": "Patient",
              "contextType": "variable",
              "element": "name[0].text",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "patientSexToGender",
          "source": [
            {
              "context": "AEFI",
              "element": "sex"
            }
          ],
          "target": [
            {
              "context": "Patient",
              "contextType": "variable",
              "element": "gender",
              "transform": "copy"
            }
          ]
        }
      ]
    }
  ]
}