FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packageng.gov.nphcda.immunization
Resource TypeStructureMap
Idregisterfacilitymodel-to-ngimmorganization-location
FHIR VersionR4
Sourcehttp://nphcda.gov.ng/ig/immunization/https://build.fhir.org/ig/Nigeria-FHIR-Community/ImmunizationIG/StructureMap-registerfacilitymodel-to-ngimmorganization-location.html
URLhttps://nphcda.gov.ng/immunizationIG/StructureMap/registerfacilitymodel-to-ngimmorganization-location
Version1.0.0
Statusactive
Date2025-08-04T10:06:52+00:00
NameRegisterFacilityModelToNgImmOrganizationAndNgImmLocation
TitleStructureMap: RegisterFacilityModel to NgImmOrganization and NgImmLocation
DescriptionMap logical RegisterFacilityModel to NgImmOrganization and NgImmLocation 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 registerfacilitymodel-to-ngimmorganization-location

map "https://nphcda.gov.ng/immunizationIG/StructureMap/registerfacilitymodel-to-ngimmorganization-location" = "RegisterFacilityModelToNgImmOrganizationAndNgImmLocation"

// Map logical RegisterFacilityModel to NgImmOrganization and NgImmLocation profiles

uses "https://nphcda.gov.ng/immunizationIG/StructureDefinition/register-facility-model" alias RFM as source
uses "https://nphcda.gov.ng/immunizationIG/StructureDefinition/ng-imm-organization" alias Org as target
uses "https://nphcda.gov.ng/immunizationIG/StructureDefinition/nigeria-location" alias Loc as target

group registerFacilityToOrganization(source RFM, target Org) {
  RFM.facilityId -> Org.identifier[0].value = copy() "facilityIdToIdentifier";
  RFM.regulator -> Org.identifier[0].system = copy() "regulatorToIdentifierSystem";
  RFM.facilityName -> Org.name = copy() "facilityNameToName";
  RFM.facilityType -> Org.type[0] = copy() "facilityTypeToType";
  RFM.facilityStatus -> Org.active = true "activeTrue";
}

group registerFacilityToLocation(source RFM, target Loc) {
  RFM.facilityName -> Loc.name = copy() "facilityNameToLocationName";
  RFM.facilityType -> Loc.type[0] = copy() "facilityTypeToLocationType";
  RFM.addressLine -> Loc.address.line[0] = copy() "addressLineToLine";
  RFM.city -> Loc.address.city = copy() "cityToCity";
  RFM.lga -> Loc.address.district = copy() "lgaToDistrict";
  RFM.state -> Loc.address.state = copy() "stateToState";
  RFM.latitude -> Loc.position.latitude = copy() "latitudeToLatitude";
  RFM.longitude -> Loc.position.longitude = copy() "longitudeToLongitude";
  RFM.country -> Loc.address.country = 'NG' "countryFixed";
  RFM.facilitystatus -> Loc.status = 'active' "locationStatusActive";
  RFM.facilityId -> Loc.managingOrganization.reference = append('Organization/', facilityId) "organizationReferenceToManagingOrg";
}


Source1

{
  "resourceType": "StructureMap",
  "id": "registerfacilitymodel-to-ngimmorganization-location",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "url": "https://nphcda.gov.ng/immunizationIG/StructureMap/registerfacilitymodel-to-ngimmorganization-location",
  "version": "1.0.0",
  "name": "RegisterFacilityModelToNgImmOrganizationAndNgImmLocation",
  "title": "StructureMap: RegisterFacilityModel to NgImmOrganization and NgImmLocation",
  "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 logical RegisterFacilityModel to NgImmOrganization and NgImmLocation profiles",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "NG",
          "display": "Nigeria"
        }
      ]
    }
  ],
  "structure": [
    {
      "url": "https://nphcda.gov.ng/immunizationIG/StructureDefinition/register-facility-model",
      "mode": "source",
      "alias": "RFM"
    },
    {
      "url": "https://nphcda.gov.ng/immunizationIG/StructureDefinition/ng-imm-organization",
      "mode": "target",
      "alias": "Org"
    },
    {
      "url": "https://nphcda.gov.ng/immunizationIG/StructureDefinition/nigeria-location",
      "mode": "target",
      "alias": "Loc"
    }
  ],
  "group": [
    {
      "name": "registerFacilityToOrganization",
      "typeMode": "none",
      "input": [
        {
          "name": "RFM",
          "mode": "source"
        },
        {
          "name": "Org",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "facilityIdToIdentifier",
          "source": [
            {
              "context": "RFM",
              "element": "facilityId"
            }
          ],
          "target": [
            {
              "context": "Org",
              "contextType": "variable",
              "element": "identifier[0].value",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "regulatorToIdentifierSystem",
          "source": [
            {
              "context": "RFM",
              "element": "regulator"
            }
          ],
          "target": [
            {
              "context": "Org",
              "contextType": "variable",
              "element": "identifier[0].system",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "facilityNameToName",
          "source": [
            {
              "context": "RFM",
              "element": "facilityName"
            }
          ],
          "target": [
            {
              "context": "Org",
              "contextType": "variable",
              "element": "name",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "facilityTypeToType",
          "source": [
            {
              "context": "RFM",
              "element": "facilityType"
            }
          ],
          "target": [
            {
              "context": "Org",
              "contextType": "variable",
              "element": "type[0]",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "activeTrue",
          "source": [
            {
              "context": "RFM",
              "element": "facilityStatus"
            }
          ],
          "target": [
            {
              "context": "Org",
              "contextType": "variable",
              "element": "active",
              "transform": "copy",
              "parameter": [
                {
                  "valueBoolean": true
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "registerFacilityToLocation",
      "typeMode": "none",
      "input": [
        {
          "name": "RFM",
          "mode": "source"
        },
        {
          "name": "Loc",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "facilityNameToLocationName",
          "source": [
            {
              "context": "RFM",
              "element": "facilityName"
            }
          ],
          "target": [
            {
              "context": "Loc",
              "contextType": "variable",
              "element": "name",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "facilityTypeToLocationType",
          "source": [
            {
              "context": "RFM",
              "element": "facilityType"
            }
          ],
          "target": [
            {
              "context": "Loc",
              "contextType": "variable",
              "element": "type[0]",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "addressLineToLine",
          "source": [
            {
              "context": "RFM",
              "element": "addressLine"
            }
          ],
          "target": [
            {
              "context": "Loc",
              "contextType": "variable",
              "element": "address.line[0]",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "cityToCity",
          "source": [
            {
              "context": "RFM",
              "element": "city"
            }
          ],
          "target": [
            {
              "context": "Loc",
              "contextType": "variable",
              "element": "address.city",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "lgaToDistrict",
          "source": [
            {
              "context": "RFM",
              "element": "lga"
            }
          ],
          "target": [
            {
              "context": "Loc",
              "contextType": "variable",
              "element": "address.district",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "stateToState",
          "source": [
            {
              "context": "RFM",
              "element": "state"
            }
          ],
          "target": [
            {
              "context": "Loc",
              "contextType": "variable",
              "element": "address.state",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "latitudeToLatitude",
          "source": [
            {
              "context": "RFM",
              "element": "latitude"
            }
          ],
          "target": [
            {
              "context": "Loc",
              "contextType": "variable",
              "element": "position.latitude",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "longitudeToLongitude",
          "source": [
            {
              "context": "RFM",
              "element": "longitude"
            }
          ],
          "target": [
            {
              "context": "Loc",
              "contextType": "variable",
              "element": "position.longitude",
              "transform": "copy"
            }
          ]
        },
        {
          "name": "countryFixed",
          "source": [
            {
              "context": "RFM",
              "element": "country"
            }
          ],
          "target": [
            {
              "context": "Loc",
              "contextType": "variable",
              "element": "address.country",
              "transform": "copy",
              "parameter": [
                {
                  "valueString": "NG"
                }
              ]
            }
          ]
        },
        {
          "name": "locationStatusActive",
          "source": [
            {
              "context": "RFM",
              "element": "facilitystatus"
            }
          ],
          "target": [
            {
              "context": "Loc",
              "contextType": "variable",
              "element": "status",
              "transform": "copy",
              "parameter": [
                {
                  "valueString": "active"
                }
              ]
            }
          ]
        },
        {
          "name": "organizationReferenceToManagingOrg",
          "source": [
            {
              "context": "RFM",
              "element": "facilityId"
            }
          ],
          "target": [
            {
              "context": "Loc",
              "contextType": "variable",
              "element": "managingOrganization.reference",
              "transform": "append",
              "parameter": [
                {
                  "valueString": "Organization/"
                },
                {
                  "valueId": "facilityId"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}