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

FHIR IG analytics

Packagehl7.fhir.us.ndh
Resource TypeStructureMap
IdStructureMap-PlanNetToNdhNetworkSM.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/HL7/fhir-us-ndh/StructureMap-PlanNetToNdhNetworkSM.html
URLhttp://hl7.org/fhir/us/ndh/StructureMap/PlanNetToNdhNetworkSM
Version2.0.0-current
Statusactive
Date2026-08-03T21:11:28+00:00
NamePlanNetToNdhNetworkSM
TitlePlan-Net Network to NDH Network StructureMap
Realmus
Authorityhl7
DescriptionThis StructureMap defines the mapping from Plan-Net Network to NDH Network.

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 PlanNetToNdhNetworkSM

map "http://hl7.org/fhir/us/ndh/StructureMap/PlanNetToNdhNetworkSM" = "PlanNetToNdhNetworkSM"

// This StructureMap defines the mapping from Plan-Net Network to NDH Network.

uses "http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-Network" alias NetworkPN as source
uses "http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-Network" alias NetworkNDH as target

group PlanNetToNdhNetwork(source src : NetworkPN, target tgt : NetworkNDH) {
  src.language as vLanguage -> tgt.language = vLanguage;
  src.text as vText -> tgt.text = vText;
  src.extension as vLocationSrc where (url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/location-reference') -> tgt.extension as vLocationTgt then {
    vLocationSrc as vLocationForUrl -> vLocationTgt.url = 'http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-location-reference' "setLocationReferenceUrl";
    vLocationSrc.value as vLocationValue -> vLocationTgt.value = vLocationValue "copyLocationReferenceValue";
  } "copyLocationReferenceExtension";
  src.identifier as vIdentifier -> tgt.identifier = vIdentifier;
  src.active as vActive -> tgt.active = true;
  src.type as vTypeSrc -> tgt.type as vTypeTgt then {
    vTypeSrc.text as vTypeText -> vTypeTgt.text = vTypeText "copyTypeText";
    vTypeSrc.coding as vTypeCodingSrc where (system = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/OrgTypeCS') -> vTypeTgt.coding = translate(vTypeCodingSrc, 'http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-org-type', 'Coding') "translateTypeCoding";
    vTypeSrc.coding as vTypeOtherCodingSrc where (system != 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/OrgTypeCS') -> vTypeTgt.coding = vTypeOtherCodingSrc "copyTypeOtherCoding";
  } "copyType";
  src.name as vName -> tgt.name = vName;
  src.address as vAddress -> tgt.address = vAddress;
  src.partOf as vPartOf -> tgt.partOf = vPartOf;
  src.contact as vContactSrc -> tgt.contact as vContactTgt then {
    vContactSrc.name as vContactName -> vContactTgt.name = vContactName "copyContactName";
    vContactSrc.address as vContactAddress -> vContactTgt.address = vContactAddress "copyContactAddress";
    vContactSrc.telecom as vTelecomSrc -> vContactTgt.telecom as vTelecomTgt then {
      vTelecomSrc.system as vTelecomSystem -> vTelecomTgt.system = vTelecomSystem "copyTelecomSystem";
      vTelecomSrc.value as vTelecomValue -> vTelecomTgt.value = vTelecomValue "copyTelecomValue";
      vTelecomSrc.use as vTelecomUse -> vTelecomTgt.use = vTelecomUse "copyTelecomUse";
      vTelecomSrc.rank as vTelecomRank -> vTelecomTgt.rank = vTelecomRank "copyTelecomRank";
      vTelecomSrc.period as vTelecomPeriod -> vTelecomTgt.period = vTelecomPeriod "copyTelecomPeriod";
      vTelecomSrc.extension as vDroppedContactpointAvailabletimeSrc where (url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/contactpoint-availabletime') "dropPlanNetContactpointAvailabletime"; // intentionally not mapped because ContactPointAvailableTime was removed from NDH.
      vTelecomSrc.extension as vDroppedViaIntermediarySrc where (url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/via-intermediary') "dropPlanNetViaIntermediary"; // intentionally not mapped because ViaIntermediary was removed from NDH.
    } "copyContactTelecom";
  } "copyLocationReference";
  src.endpoint as vEndpoint -> tgt.endpoint = vEndpoint;
  src.meta as vMetaSrc -> tgt.meta as vMetaTgt then {
    vMetaSrc.lastUpdated as vLastUpdated -> vMetaTgt.lastUpdated = vLastUpdated "copyMetaLastUpdated";
    vMetaSrc as vMetaProfileSrc -> vMetaTgt.profile = 'http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-Network' "setTargetProfile";
  } "copyMeta";
}


Source1

{
  "resourceType": "StructureMap",
  "id": "PlanNetToNdhNetworkSM",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pa"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 4,
      "_valueInteger": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://hl7.org/fhir/us/ndh/ImplementationGuide/hl7.fhir.us.ndh"
          }
        ]
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use",
      "_valueCode": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://hl7.org/fhir/us/ndh/ImplementationGuide/hl7.fhir.us.ndh"
          }
        ]
      }
    }
  ],
  "url": "http://hl7.org/fhir/us/ndh/StructureMap/PlanNetToNdhNetworkSM",
  "identifier": [
    {
      "system": "urn:ietf:rfc:3986",
      "value": "urn:oid:2.16.840.1.113883.4.642.40.43.43.5"
    }
  ],
  "version": "2.0.0-current",
  "name": "PlanNetToNdhNetworkSM",
  "title": "Plan-Net Network to NDH Network StructureMap",
  "status": "active",
  "date": "2026-08-03T21:11:28+00:00",
  "publisher": "HL7 International / Patient Administration",
  "contact": [
    {
      "name": "HL7 International / Patient Administration",
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/pafm"
        },
        {
          "system": "email",
          "value": "pafm@lists.hl7.org"
        }
      ]
    }
  ],
  "description": "This StructureMap defines the mapping from Plan-Net Network to NDH Network.",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "US",
          "display": "United States of America"
        }
      ]
    }
  ],
  "structure": [
    {
      "url": "http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-Network",
      "mode": "source",
      "alias": "NetworkPN"
    },
    {
      "url": "http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-Network",
      "mode": "target",
      "alias": "NetworkNDH"
    }
  ],
  "group": [
    {
      "name": "PlanNetToNdhNetwork",
      "typeMode": "none",
      "input": [
        {
          "name": "src",
          "type": "NetworkPN",
          "mode": "source"
        },
        {
          "name": "tgt",
          "type": "NetworkNDH",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "language",
          "source": [
            {
              "context": "src",
              "element": "language",
              "variable": "vLanguage"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "language",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vLanguage"
                }
              ]
            }
          ]
        },
        {
          "name": "text",
          "source": [
            {
              "context": "src",
              "element": "text",
              "variable": "vText"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "text",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vText"
                }
              ]
            }
          ]
        },
        {
          "name": "copyLocationReferenceExtension",
          "source": [
            {
              "context": "src",
              "element": "extension",
              "variable": "vLocationSrc",
              "condition": "url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/location-reference'"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "extension",
              "variable": "vLocationTgt"
            }
          ],
          "rule": [
            {
              "name": "setLocationReferenceUrl",
              "source": [
                {
                  "context": "vLocationSrc",
                  "variable": "vLocationForUrl"
                }
              ],
              "target": [
                {
                  "context": "vLocationTgt",
                  "contextType": "variable",
                  "element": "url",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueString": "http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-location-reference"
                    }
                  ]
                }
              ]
            },
            {
              "name": "copyLocationReferenceValue",
              "source": [
                {
                  "context": "vLocationSrc",
                  "element": "value",
                  "variable": "vLocationValue"
                }
              ],
              "target": [
                {
                  "context": "vLocationTgt",
                  "contextType": "variable",
                  "element": "value",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueId": "vLocationValue"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name": "identifier",
          "source": [
            {
              "context": "src",
              "element": "identifier",
              "variable": "vIdentifier"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "identifier",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vIdentifier"
                }
              ]
            }
          ]
        },
        {
          "name": "active",
          "source": [
            {
              "context": "src",
              "element": "active",
              "variable": "vActive"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "active",
              "transform": "copy",
              "parameter": [
                {
                  "valueBoolean": true
                }
              ]
            }
          ]
        },
        {
          "name": "copyType",
          "source": [
            {
              "context": "src",
              "element": "type",
              "variable": "vTypeSrc"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "type",
              "variable": "vTypeTgt"
            }
          ],
          "rule": [
            {
              "name": "copyTypeText",
              "source": [
                {
                  "context": "vTypeSrc",
                  "element": "text",
                  "variable": "vTypeText"
                }
              ],
              "target": [
                {
                  "context": "vTypeTgt",
                  "contextType": "variable",
                  "element": "text",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueId": "vTypeText"
                    }
                  ]
                }
              ]
            },
            {
              "name": "translateTypeCoding",
              "source": [
                {
                  "context": "vTypeSrc",
                  "element": "coding",
                  "variable": "vTypeCodingSrc",
                  "condition": "system = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/OrgTypeCS'"
                }
              ],
              "target": [
                {
                  "context": "vTypeTgt",
                  "contextType": "variable",
                  "element": "coding",
                  "transform": "translate",
                  "parameter": [
                    {
                      "valueId": "vTypeCodingSrc"
                    },
                    {
                      "valueString": "http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-org-type"
                    },
                    {
                      "valueString": "Coding"
                    }
                  ]
                }
              ]
            },
            {
              "name": "copyTypeOtherCoding",
              "source": [
                {
                  "context": "vTypeSrc",
                  "element": "coding",
                  "variable": "vTypeOtherCodingSrc",
                  "condition": "system != 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/OrgTypeCS'"
                }
              ],
              "target": [
                {
                  "context": "vTypeTgt",
                  "contextType": "variable",
                  "element": "coding",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueId": "vTypeOtherCodingSrc"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name": "name",
          "source": [
            {
              "context": "src",
              "element": "name",
              "variable": "vName"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "name",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vName"
                }
              ]
            }
          ]
        },
        {
          "name": "address",
          "source": [
            {
              "context": "src",
              "element": "address",
              "variable": "vAddress"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "address",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vAddress"
                }
              ]
            }
          ]
        },
        {
          "name": "partOf",
          "source": [
            {
              "context": "src",
              "element": "partOf",
              "variable": "vPartOf"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "partOf",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vPartOf"
                }
              ]
            }
          ]
        },
        {
          "name": "copyLocationReference",
          "source": [
            {
              "context": "src",
              "element": "contact",
              "variable": "vContactSrc"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "contact",
              "variable": "vContactTgt"
            }
          ],
          "rule": [
            {
              "name": "copyContactName",
              "source": [
                {
                  "context": "vContactSrc",
                  "element": "name",
                  "variable": "vContactName"
                }
              ],
              "target": [
                {
                  "context": "vContactTgt",
                  "contextType": "variable",
                  "element": "name",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueId": "vContactName"
                    }
                  ]
                }
              ]
            },
            {
              "name": "copyContactAddress",
              "source": [
                {
                  "context": "vContactSrc",
                  "element": "address",
                  "variable": "vContactAddress"
                }
              ],
              "target": [
                {
                  "context": "vContactTgt",
                  "contextType": "variable",
                  "element": "address",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueId": "vContactAddress"
                    }
                  ]
                }
              ]
            },
            {
              "name": "copyContactTelecom",
              "source": [
                {
                  "context": "vContactSrc",
                  "element": "telecom",
                  "variable": "vTelecomSrc"
                }
              ],
              "target": [
                {
                  "context": "vContactTgt",
                  "contextType": "variable",
                  "element": "telecom",
                  "variable": "vTelecomTgt"
                }
              ],
              "rule": [
                {
                  "name": "copyTelecomSystem",
                  "source": [
                    {
                      "context": "vTelecomSrc",
                      "element": "system",
                      "variable": "vTelecomSystem"
                    }
                  ],
                  "target": [
                    {
                      "context": "vTelecomTgt",
                      "contextType": "variable",
                      "element": "system",
                      "transform": "copy",
                      "parameter": [
                        {
                          "valueId": "vTelecomSystem"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "copyTelecomValue",
                  "source": [
                    {
                      "context": "vTelecomSrc",
                      "element": "value",
                      "variable": "vTelecomValue"
                    }
                  ],
                  "target": [
                    {
                      "context": "vTelecomTgt",
                      "contextType": "variable",
                      "element": "value",
                      "transform": "copy",
                      "parameter": [
                        {
                          "valueId": "vTelecomValue"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "copyTelecomUse",
                  "source": [
                    {
                      "context": "vTelecomSrc",
                      "element": "use",
                      "variable": "vTelecomUse"
                    }
                  ],
                  "target": [
                    {
                      "context": "vTelecomTgt",
                      "contextType": "variable",
                      "element": "use",
                      "transform": "copy",
                      "parameter": [
                        {
                          "valueId": "vTelecomUse"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "copyTelecomRank",
                  "source": [
                    {
                      "context": "vTelecomSrc",
                      "element": "rank",
                      "variable": "vTelecomRank"
                    }
                  ],
                  "target": [
                    {
                      "context": "vTelecomTgt",
                      "contextType": "variable",
                      "element": "rank",
                      "transform": "copy",
                      "parameter": [
                        {
                          "valueId": "vTelecomRank"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "copyTelecomPeriod",
                  "source": [
                    {
                      "context": "vTelecomSrc",
                      "element": "period",
                      "variable": "vTelecomPeriod"
                    }
                  ],
                  "target": [
                    {
                      "context": "vTelecomTgt",
                      "contextType": "variable",
                      "element": "period",
                      "transform": "copy",
                      "parameter": [
                        {
                          "valueId": "vTelecomPeriod"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "dropPlanNetContactpointAvailabletime",
                  "source": [
                    {
                      "context": "vTelecomSrc",
                      "element": "extension",
                      "variable": "vDroppedContactpointAvailabletimeSrc",
                      "condition": "url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/contactpoint-availabletime'"
                    }
                  ]
                },
                {
                  "name": "dropPlanNetViaIntermediary",
                  "source": [
                    {
                      "context": "vTelecomSrc",
                      "element": "extension",
                      "variable": "vDroppedViaIntermediarySrc",
                      "condition": "url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/via-intermediary'"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name": "endpoint",
          "source": [
            {
              "context": "src",
              "element": "endpoint",
              "variable": "vEndpoint"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "endpoint",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vEndpoint"
                }
              ]
            }
          ]
        },
        {
          "name": "copyMeta",
          "source": [
            {
              "context": "src",
              "element": "meta",
              "variable": "vMetaSrc"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "meta",
              "variable": "vMetaTgt"
            }
          ],
          "rule": [
            {
              "name": "copyMetaLastUpdated",
              "source": [
                {
                  "context": "vMetaSrc",
                  "element": "lastUpdated",
                  "variable": "vLastUpdated"
                }
              ],
              "target": [
                {
                  "context": "vMetaTgt",
                  "contextType": "variable",
                  "element": "lastUpdated",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueId": "vLastUpdated"
                    }
                  ]
                }
              ]
            },
            {
              "name": "setTargetProfile",
              "source": [
                {
                  "context": "vMetaSrc",
                  "variable": "vMetaProfileSrc"
                }
              ],
              "target": [
                {
                  "context": "vMetaTgt",
                  "contextType": "variable",
                  "element": "profile",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueString": "http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-Network"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}