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

FHIR IG analytics

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

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 PlanNetToNdhHealthcareServiceSM

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

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

uses "http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-HealthcareService" alias HealthcareServicePN as source
uses "http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-HealthcareService" alias HealthcareServiceNDH as target

group PlanNetToNdhHealthcareService(source src : HealthcareServicePN, target tgt : HealthcareServiceNDH) {
  src.language as vLanguage -> tgt.language = vLanguage;
  src.text as vText -> tgt.text = vText;
  src.extension as vNewPatientsSrc where (url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/newpatients') -> tgt.extension as vNewPatientsTgt then {
    vNewPatientsSrc as vNewPatientsForUrl -> vNewPatientsTgt.url = 'http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-newpatients' "setNewPatientsUrl";
    vNewPatientsSrc.extension as vFromNetworkSrc where (url = 'fromNetwork') -> vNewPatientsTgt.extension = vFromNetworkSrc "copyNewPatientsFromNetwork";
    vNewPatientsSrc.extension as vCharacteristicsSrc where (url = 'characteristics') -> vNewPatientsTgt.extension = vCharacteristicsSrc "copyNewPatientsCharacteristics";
    vNewPatientsSrc.extension as vAcceptingPatientsSrc where (url = 'acceptingPatients') -> vNewPatientsTgt.extension as vAcceptingPatientsTgt then {
      vAcceptingPatientsSrc.url as vAcceptingPatientsUrl -> vAcceptingPatientsTgt.url = vAcceptingPatientsUrl "copyAcceptingPatientsUrl";
      vAcceptingPatientsSrc.value as vAcceptingPatientsValueSrc where (coding.exists()) -> vAcceptingPatientsTgt.value = create('CodeableConcept') as vAcceptingPatientsValueTgt then {
        vAcceptingPatientsValueSrc.coding as vAcceptingPatientsCodingSrc where (system = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/AcceptingPatientsCS') -> vAcceptingPatientsValueTgt.coding = translate(vAcceptingPatientsCodingSrc, 'http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-accepting-patients', 'Coding') "translateAcceptingPatientsCoding";
        vAcceptingPatientsValueSrc.coding as vAcceptingPatientsOtherCodingSrc where (system != 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/AcceptingPatientsCS') -> vAcceptingPatientsValueTgt.coding = vAcceptingPatientsOtherCodingSrc "copyAcceptingPatientsOtherCoding";
      } "copyAcceptingPatientsValue";
    } "copyNewPatientsAcceptingPatients";
  } "copyNewPatientsExtension";
  src.extension as vDeliveryMethod where (url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/delivery-method') -> tgt.extension as vDeliveryMethodTgt then {
    vDeliveryMethod as vDeliveryMethodForUrl -> vDeliveryMethodTgt.url = 'http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-delivery-method' "setDeliveryMethodUrl";
    vDeliveryMethod.extension as vDeliveryMethodTypeSrc where (url = 'type') -> vDeliveryMethodTgt.extension as vDeliveryMethodTypeTgt then {
      vDeliveryMethodTypeSrc as vDeliveryMethodTypeForUrl -> vDeliveryMethodTypeTgt.url = 'deliveryMethodtype' "setDeliveryMethodTypeUrl";
      vDeliveryMethodTypeSrc.value as vDeliveryMethodTypeValueSrc where (coding.exists() and ($this is CodeableConcept)) -> vDeliveryMethodTypeTgt.value = create('CodeableConcept') as vDeliveryMethodTypeValueTgt then {
        vDeliveryMethodTypeValueSrc.coding as vDeliveryMethodTypeCodingSrc where (system = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/DeliveryMethodCS') -> vDeliveryMethodTypeValueTgt.coding = translate(vDeliveryMethodTypeCodingSrc, 'http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-delivery-method', 'Coding') "translateDeliveryMethodTypeCoding";
        vDeliveryMethodTypeValueSrc.coding as vDeliveryMethodTypeOtherCodingSrc where (system != 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/DeliveryMethodCS') -> vDeliveryMethodTypeValueTgt.coding = vDeliveryMethodTypeOtherCodingSrc "copyDeliveryMethodTypeOtherCoding";
      } "copyDeliveryMethodTypeValue";
    } "copyDeliveryMethodTypeSubExt";
    vDeliveryMethod.extension as vVirtualModalitiesSrc where (url = 'virtualModalities') -> vDeliveryMethodTgt.extension as vVirtualModalitiesTgt then {
      vVirtualModalitiesSrc.url as vVirtualModalitiesUrl -> vVirtualModalitiesTgt.url = vVirtualModalitiesUrl "copyVirtualModalitiesUrl";
      vVirtualModalitiesSrc.value as vVirtualModalitiesValueSrc where (coding.exists() and ($this is CodeableConcept)) -> vVirtualModalitiesTgt.value = create('CodeableConcept') as vVirtualModalitiesValueTgt then {
        vVirtualModalitiesValueSrc.coding as vVirtualModalitiesCodingSrc where (system = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/VirtualModalitiesCS') -> vVirtualModalitiesValueTgt.coding = translate(vVirtualModalitiesCodingSrc, 'http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-virtual-modalities', 'Coding') "translateVirtualModalitiesCoding";
        vVirtualModalitiesValueSrc.coding as vVirtualModalitiesOtherCodingSrc where (system != 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/VirtualModalitiesCS') -> vVirtualModalitiesValueTgt.coding = vVirtualModalitiesOtherCodingSrc "copyVirtualModalitiesOtherCoding";
      } "copyVirtualModalitiesValue";
    } "copyVirtualModalitiesSubExt";
    vDeliveryMethod.extension as vDeliveryMethodOtherSubExt where ((url != 'type') and (url != 'virtualModalities')) -> vDeliveryMethodTgt.extension = vDeliveryMethodOtherSubExt "copyDeliveryMethodOtherSubExt";
  } "copyDeliveryMethodExtension";
  src.identifier as vIdentifier -> tgt.identifier = vIdentifier;
  src.location as vLocation -> tgt.location = vLocation;
  src.name as vName -> tgt.name = vName;
  src.telecom as vTelecomSrc -> tgt.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.
  } "copyTelecom";
  src.program as vProgram -> tgt.program = vProgram;
  src.endpoint as vEndpoint -> tgt.endpoint = vEndpoint;
  src.active as vActive -> tgt.active = vActive;
  src.providedBy as vProvidedBy -> tgt.providedBy = vProvidedBy;
  src.coverageArea as vCoverageArea -> tgt.coverageArea = vCoverageArea;
  // Translate Plan-Net HealthcareService category coding to NDH coding via ConceptMap.
  src.category as vCategorySrc -> tgt.category as vCategoryTgt then {
    vCategorySrc.text as vCategoryText -> vCategoryTgt.text = vCategoryText "copyCategoryText";
    vCategorySrc.coding as vCategoryCodingSrc where (system = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/HealthcareServiceCategoryCS') -> vCategoryTgt.coding as vCategoryCodingTgt then {
      vCategoryCodingSrc as vCategoryCodingForSystem -> vCategoryCodingTgt.system = 'http://terminology.hl7.org/CodeSystem/ndh-healthcare-service-category' "setCategoryCodingSystem";
      vCategoryCodingSrc.code as vCategoryCodeSrc -> vCategoryCodingTgt.code = translate(vCategoryCodeSrc, 'http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-healthcare-service-category', 'code') "translateCategoryCode";
      vCategoryCodingSrc.display as vCategoryDisplay -> vCategoryCodingTgt.display = vCategoryDisplay "copyCategoryDisplay";
    } "translateCategoryCoding";
    vCategorySrc.coding as vCategoryCodingOtherSrc where (system != 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/HealthcareServiceCategoryCS') -> vCategoryTgt.coding = vCategoryCodingOtherSrc "copyCategoryCodingOther";
  } "copyCategory";
  src.type as vType -> tgt.type = vType;
  src.specialty as vSpecialty -> tgt.specialty = vSpecialty;
  src.appointmentRequired as vAppointmentRequired -> tgt.appointmentRequired = vAppointmentRequired;
  src.availableTime as vAvailableTime -> tgt.availableTime = vAvailableTime;
  src.notAvailable as vNotAvailable -> tgt.notAvailable = vNotAvailable;
  src.availabilityExceptions as vAvailabilityExceptions -> tgt.availabilityExceptions = vAvailabilityExceptions;
  src.eligibility as vEligibility -> tgt.eligibility = vEligibility;
  src.serviceProvisionCode as vServiceProvisionCode -> tgt.serviceProvisionCode = vServiceProvisionCode;
  src.comment as vComment -> tgt.comment = vComment;
  src.extraDetails as vExtraDetails -> tgt.extraDetails = vExtraDetails;
  src.photo as vPhoto -> tgt.photo = vPhoto;
  src.characteristic as vCharacteristic -> tgt.characteristic = vCharacteristic;
  src.communication as vCommunication -> tgt.communication = vCommunication;
  src.referralMethod as vReferralMethod -> tgt.referralMethod = vReferralMethod;
  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-HealthcareService' "setTargetProfile";
  } "copyMeta";
}


Source1

{
  "resourceType": "StructureMap",
  "id": "PlanNetToNdhHealthcareServiceSM",
  "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/PlanNetToNdhHealthcareServiceSM",
  "identifier": [
    {
      "system": "urn:ietf:rfc:3986",
      "value": "urn:oid:2.16.840.1.113883.4.642.40.43.43.2"
    }
  ],
  "version": "2.0.0-current",
  "name": "PlanNetToNdhHealthcareServiceSM",
  "title": "Plan-Net HealthcareService to NDH HealthcareService 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 HealthcareService to NDH HealthcareService.",
  "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-HealthcareService",
      "mode": "source",
      "alias": "HealthcareServicePN"
    },
    {
      "url": "http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-HealthcareService",
      "mode": "target",
      "alias": "HealthcareServiceNDH"
    }
  ],
  "group": [
    {
      "name": "PlanNetToNdhHealthcareService",
      "typeMode": "none",
      "input": [
        {
          "name": "src",
          "type": "HealthcareServicePN",
          "mode": "source"
        },
        {
          "name": "tgt",
          "type": "HealthcareServiceNDH",
          "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": "copyNewPatientsExtension",
          "source": [
            {
              "context": "src",
              "element": "extension",
              "variable": "vNewPatientsSrc",
              "condition": "url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/newpatients'"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "extension",
              "variable": "vNewPatientsTgt"
            }
          ],
          "rule": [
            {
              "name": "setNewPatientsUrl",
              "source": [
                {
                  "context": "vNewPatientsSrc",
                  "variable": "vNewPatientsForUrl"
                }
              ],
              "target": [
                {
                  "context": "vNewPatientsTgt",
                  "contextType": "variable",
                  "element": "url",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueString": "http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-newpatients"
                    }
                  ]
                }
              ]
            },
            {
              "name": "copyNewPatientsFromNetwork",
              "source": [
                {
                  "context": "vNewPatientsSrc",
                  "element": "extension",
                  "variable": "vFromNetworkSrc",
                  "condition": "url = 'fromNetwork'"
                }
              ],
              "target": [
                {
                  "context": "vNewPatientsTgt",
                  "contextType": "variable",
                  "element": "extension",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueId": "vFromNetworkSrc"
                    }
                  ]
                }
              ]
            },
            {
              "name": "copyNewPatientsCharacteristics",
              "source": [
                {
                  "context": "vNewPatientsSrc",
                  "element": "extension",
                  "variable": "vCharacteristicsSrc",
                  "condition": "url = 'characteristics'"
                }
              ],
              "target": [
                {
                  "context": "vNewPatientsTgt",
                  "contextType": "variable",
                  "element": "extension",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueId": "vCharacteristicsSrc"
                    }
                  ]
                }
              ]
            },
            {
              "name": "copyNewPatientsAcceptingPatients",
              "source": [
                {
                  "context": "vNewPatientsSrc",
                  "element": "extension",
                  "variable": "vAcceptingPatientsSrc",
                  "condition": "url = 'acceptingPatients'"
                }
              ],
              "target": [
                {
                  "context": "vNewPatientsTgt",
                  "contextType": "variable",
                  "element": "extension",
                  "variable": "vAcceptingPatientsTgt"
                }
              ],
              "rule": [
                {
                  "name": "copyAcceptingPatientsUrl",
                  "source": [
                    {
                      "context": "vAcceptingPatientsSrc",
                      "element": "url",
                      "variable": "vAcceptingPatientsUrl"
                    }
                  ],
                  "target": [
                    {
                      "context": "vAcceptingPatientsTgt",
                      "contextType": "variable",
                      "element": "url",
                      "transform": "copy",
                      "parameter": [
                        {
                          "valueId": "vAcceptingPatientsUrl"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "copyAcceptingPatientsValue",
                  "source": [
                    {
                      "context": "vAcceptingPatientsSrc",
                      "element": "value",
                      "variable": "vAcceptingPatientsValueSrc",
                      "condition": "coding.exists()"
                    }
                  ],
                  "target": [
                    {
                      "context": "vAcceptingPatientsTgt",
                      "contextType": "variable",
                      "element": "value",
                      "variable": "vAcceptingPatientsValueTgt",
                      "transform": "create",
                      "parameter": [
                        {
                          "valueString": "CodeableConcept"
                        }
                      ]
                    }
                  ],
                  "rule": [
                    {
                      "name": "translateAcceptingPatientsCoding",
                      "source": [
                        {
                          "context": "vAcceptingPatientsValueSrc",
                          "element": "coding",
                          "variable": "vAcceptingPatientsCodingSrc",
                          "condition": "system = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/AcceptingPatientsCS'"
                        }
                      ],
                      "target": [
                        {
                          "context": "vAcceptingPatientsValueTgt",
                          "contextType": "variable",
                          "element": "coding",
                          "transform": "translate",
                          "parameter": [
                            {
                              "valueId": "vAcceptingPatientsCodingSrc"
                            },
                            {
                              "valueString": "http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-accepting-patients"
                            },
                            {
                              "valueString": "Coding"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "copyAcceptingPatientsOtherCoding",
                      "source": [
                        {
                          "context": "vAcceptingPatientsValueSrc",
                          "element": "coding",
                          "variable": "vAcceptingPatientsOtherCodingSrc",
                          "condition": "system != 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/AcceptingPatientsCS'"
                        }
                      ],
                      "target": [
                        {
                          "context": "vAcceptingPatientsValueTgt",
                          "contextType": "variable",
                          "element": "coding",
                          "transform": "copy",
                          "parameter": [
                            {
                              "valueId": "vAcceptingPatientsOtherCodingSrc"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name": "copyDeliveryMethodExtension",
          "source": [
            {
              "context": "src",
              "element": "extension",
              "variable": "vDeliveryMethod",
              "condition": "url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/delivery-method'"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "extension",
              "variable": "vDeliveryMethodTgt"
            }
          ],
          "rule": [
            {
              "name": "setDeliveryMethodUrl",
              "source": [
                {
                  "context": "vDeliveryMethod",
                  "variable": "vDeliveryMethodForUrl"
                }
              ],
              "target": [
                {
                  "context": "vDeliveryMethodTgt",
                  "contextType": "variable",
                  "element": "url",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueString": "http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-delivery-method"
                    }
                  ]
                }
              ]
            },
            {
              "name": "copyDeliveryMethodTypeSubExt",
              "source": [
                {
                  "context": "vDeliveryMethod",
                  "element": "extension",
                  "variable": "vDeliveryMethodTypeSrc",
                  "condition": "url = 'type'"
                }
              ],
              "target": [
                {
                  "context": "vDeliveryMethodTgt",
                  "contextType": "variable",
                  "element": "extension",
                  "variable": "vDeliveryMethodTypeTgt"
                }
              ],
              "rule": [
                {
                  "name": "setDeliveryMethodTypeUrl",
                  "source": [
                    {
                      "context": "vDeliveryMethodTypeSrc",
                      "variable": "vDeliveryMethodTypeForUrl"
                    }
                  ],
                  "target": [
                    {
                      "context": "vDeliveryMethodTypeTgt",
                      "contextType": "variable",
                      "element": "url",
                      "transform": "copy",
                      "parameter": [
                        {
                          "valueString": "deliveryMethodtype"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "copyDeliveryMethodTypeValue",
                  "source": [
                    {
                      "context": "vDeliveryMethodTypeSrc",
                      "element": "value",
                      "variable": "vDeliveryMethodTypeValueSrc",
                      "condition": "coding.exists() and ($this is CodeableConcept)"
                    }
                  ],
                  "target": [
                    {
                      "context": "vDeliveryMethodTypeTgt",
                      "contextType": "variable",
                      "element": "value",
                      "variable": "vDeliveryMethodTypeValueTgt",
                      "transform": "create",
                      "parameter": [
                        {
                          "valueString": "CodeableConcept"
                        }
                      ]
                    }
                  ],
                  "rule": [
                    {
                      "name": "translateDeliveryMethodTypeCoding",
                      "source": [
                        {
                          "context": "vDeliveryMethodTypeValueSrc",
                          "element": "coding",
                          "variable": "vDeliveryMethodTypeCodingSrc",
                          "condition": "system = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/DeliveryMethodCS'"
                        }
                      ],
                      "target": [
                        {
                          "context": "vDeliveryMethodTypeValueTgt",
                          "contextType": "variable",
                          "element": "coding",
                          "transform": "translate",
                          "parameter": [
                            {
                              "valueId": "vDeliveryMethodTypeCodingSrc"
                            },
                            {
                              "valueString": "http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-delivery-method"
                            },
                            {
                              "valueString": "Coding"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "copyDeliveryMethodTypeOtherCoding",
                      "source": [
                        {
                          "context": "vDeliveryMethodTypeValueSrc",
                          "element": "coding",
                          "variable": "vDeliveryMethodTypeOtherCodingSrc",
                          "condition": "system != 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/DeliveryMethodCS'"
                        }
                      ],
                      "target": [
                        {
                          "context": "vDeliveryMethodTypeValueTgt",
                          "contextType": "variable",
                          "element": "coding",
                          "transform": "copy",
                          "parameter": [
                            {
                              "valueId": "vDeliveryMethodTypeOtherCodingSrc"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name": "copyVirtualModalitiesSubExt",
              "source": [
                {
                  "context": "vDeliveryMethod",
                  "element": "extension",
                  "variable": "vVirtualModalitiesSrc",
                  "condition": "url = 'virtualModalities'"
                }
              ],
              "target": [
                {
                  "context": "vDeliveryMethodTgt",
                  "contextType": "variable",
                  "element": "extension",
                  "variable": "vVirtualModalitiesTgt"
                }
              ],
              "rule": [
                {
                  "name": "copyVirtualModalitiesUrl",
                  "source": [
                    {
                      "context": "vVirtualModalitiesSrc",
                      "element": "url",
                      "variable": "vVirtualModalitiesUrl"
                    }
                  ],
                  "target": [
                    {
                      "context": "vVirtualModalitiesTgt",
                      "contextType": "variable",
                      "element": "url",
                      "transform": "copy",
                      "parameter": [
                        {
                          "valueId": "vVirtualModalitiesUrl"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "copyVirtualModalitiesValue",
                  "source": [
                    {
                      "context": "vVirtualModalitiesSrc",
                      "element": "value",
                      "variable": "vVirtualModalitiesValueSrc",
                      "condition": "coding.exists() and ($this is CodeableConcept)"
                    }
                  ],
                  "target": [
                    {
                      "context": "vVirtualModalitiesTgt",
                      "contextType": "variable",
                      "element": "value",
                      "variable": "vVirtualModalitiesValueTgt",
                      "transform": "create",
                      "parameter": [
                        {
                          "valueString": "CodeableConcept"
                        }
                      ]
                    }
                  ],
                  "rule": [
                    {
                      "name": "translateVirtualModalitiesCoding",
                      "source": [
                        {
                          "context": "vVirtualModalitiesValueSrc",
                          "element": "coding",
                          "variable": "vVirtualModalitiesCodingSrc",
                          "condition": "system = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/VirtualModalitiesCS'"
                        }
                      ],
                      "target": [
                        {
                          "context": "vVirtualModalitiesValueTgt",
                          "contextType": "variable",
                          "element": "coding",
                          "transform": "translate",
                          "parameter": [
                            {
                              "valueId": "vVirtualModalitiesCodingSrc"
                            },
                            {
                              "valueString": "http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-virtual-modalities"
                            },
                            {
                              "valueString": "Coding"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "copyVirtualModalitiesOtherCoding",
                      "source": [
                        {
                          "context": "vVirtualModalitiesValueSrc",
                          "element": "coding",
                          "variable": "vVirtualModalitiesOtherCodingSrc",
                          "condition": "system != 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/VirtualModalitiesCS'"
                        }
                      ],
                      "target": [
                        {
                          "context": "vVirtualModalitiesValueTgt",
                          "contextType": "variable",
                          "element": "coding",
                          "transform": "copy",
                          "parameter": [
                            {
                              "valueId": "vVirtualModalitiesOtherCodingSrc"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name": "copyDeliveryMethodOtherSubExt",
              "source": [
                {
                  "context": "vDeliveryMethod",
                  "element": "extension",
                  "variable": "vDeliveryMethodOtherSubExt",
                  "condition": "(url != 'type') and (url != 'virtualModalities')"
                }
              ],
              "target": [
                {
                  "context": "vDeliveryMethodTgt",
                  "contextType": "variable",
                  "element": "extension",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueId": "vDeliveryMethodOtherSubExt"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name": "identifier",
          "source": [
            {
              "context": "src",
              "element": "identifier",
              "variable": "vIdentifier"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "identifier",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vIdentifier"
                }
              ]
            }
          ]
        },
        {
          "name": "location",
          "source": [
            {
              "context": "src",
              "element": "location",
              "variable": "vLocation"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "location",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vLocation"
                }
              ]
            }
          ]
        },
        {
          "name": "name",
          "source": [
            {
              "context": "src",
              "element": "name",
              "variable": "vName"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "name",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vName"
                }
              ]
            }
          ]
        },
        {
          "name": "copyTelecom",
          "source": [
            {
              "context": "src",
              "element": "telecom",
              "variable": "vTelecomSrc"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "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": "program",
          "source": [
            {
              "context": "src",
              "element": "program",
              "variable": "vProgram"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "program",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vProgram"
                }
              ]
            }
          ]
        },
        {
          "name": "endpoint",
          "source": [
            {
              "context": "src",
              "element": "endpoint",
              "variable": "vEndpoint"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "endpoint",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vEndpoint"
                }
              ]
            }
          ]
        },
        {
          "name": "active",
          "source": [
            {
              "context": "src",
              "element": "active",
              "variable": "vActive"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "active",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vActive"
                }
              ]
            }
          ]
        },
        {
          "name": "providedBy",
          "source": [
            {
              "context": "src",
              "element": "providedBy",
              "variable": "vProvidedBy"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "providedBy",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vProvidedBy"
                }
              ]
            }
          ]
        },
        {
          "name": "coverageArea",
          "source": [
            {
              "context": "src",
              "element": "coverageArea",
              "variable": "vCoverageArea"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "coverageArea",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vCoverageArea"
                }
              ]
            }
          ]
        },
        {
          "name": "copyCategory",
          "source": [
            {
              "context": "src",
              "element": "category",
              "variable": "vCategorySrc"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "category",
              "variable": "vCategoryTgt"
            }
          ],
          "rule": [
            {
              "name": "copyCategoryText",
              "source": [
                {
                  "context": "vCategorySrc",
                  "element": "text",
                  "variable": "vCategoryText"
                }
              ],
              "target": [
                {
                  "context": "vCategoryTgt",
                  "contextType": "variable",
                  "element": "text",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueId": "vCategoryText"
                    }
                  ]
                }
              ]
            },
            {
              "name": "translateCategoryCoding",
              "source": [
                {
                  "context": "vCategorySrc",
                  "element": "coding",
                  "variable": "vCategoryCodingSrc",
                  "condition": "system = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/HealthcareServiceCategoryCS'"
                }
              ],
              "target": [
                {
                  "context": "vCategoryTgt",
                  "contextType": "variable",
                  "element": "coding",
                  "variable": "vCategoryCodingTgt"
                }
              ],
              "rule": [
                {
                  "name": "setCategoryCodingSystem",
                  "source": [
                    {
                      "context": "vCategoryCodingSrc",
                      "variable": "vCategoryCodingForSystem"
                    }
                  ],
                  "target": [
                    {
                      "context": "vCategoryCodingTgt",
                      "contextType": "variable",
                      "element": "system",
                      "transform": "copy",
                      "parameter": [
                        {
                          "valueString": "http://terminology.hl7.org/CodeSystem/ndh-healthcare-service-category"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "translateCategoryCode",
                  "source": [
                    {
                      "context": "vCategoryCodingSrc",
                      "element": "code",
                      "variable": "vCategoryCodeSrc"
                    }
                  ],
                  "target": [
                    {
                      "context": "vCategoryCodingTgt",
                      "contextType": "variable",
                      "element": "code",
                      "transform": "translate",
                      "parameter": [
                        {
                          "valueId": "vCategoryCodeSrc"
                        },
                        {
                          "valueString": "http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-healthcare-service-category"
                        },
                        {
                          "valueString": "code"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "copyCategoryDisplay",
                  "source": [
                    {
                      "context": "vCategoryCodingSrc",
                      "element": "display",
                      "variable": "vCategoryDisplay"
                    }
                  ],
                  "target": [
                    {
                      "context": "vCategoryCodingTgt",
                      "contextType": "variable",
                      "element": "display",
                      "transform": "copy",
                      "parameter": [
                        {
                          "valueId": "vCategoryDisplay"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name": "copyCategoryCodingOther",
              "source": [
                {
                  "context": "vCategorySrc",
                  "element": "coding",
                  "variable": "vCategoryCodingOtherSrc",
                  "condition": "system != 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/HealthcareServiceCategoryCS'"
                }
              ],
              "target": [
                {
                  "context": "vCategoryTgt",
                  "contextType": "variable",
                  "element": "coding",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueId": "vCategoryCodingOtherSrc"
                    }
                  ]
                }
              ]
            }
          ],
          "documentation": "Translate Plan-Net HealthcareService category coding to NDH coding via ConceptMap."
        },
        {
          "name": "type",
          "source": [
            {
              "context": "src",
              "element": "type",
              "variable": "vType"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "type",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vType"
                }
              ]
            }
          ]
        },
        {
          "name": "specialty",
          "source": [
            {
              "context": "src",
              "element": "specialty",
              "variable": "vSpecialty"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "specialty",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vSpecialty"
                }
              ]
            }
          ]
        },
        {
          "name": "appointmentRequired",
          "source": [
            {
              "context": "src",
              "element": "appointmentRequired",
              "variable": "vAppointmentRequired"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "appointmentRequired",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vAppointmentRequired"
                }
              ]
            }
          ]
        },
        {
          "name": "availableTime",
          "source": [
            {
              "context": "src",
              "element": "availableTime",
              "variable": "vAvailableTime"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "availableTime",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vAvailableTime"
                }
              ]
            }
          ]
        },
        {
          "name": "notAvailable",
          "source": [
            {
              "context": "src",
              "element": "notAvailable",
              "variable": "vNotAvailable"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "notAvailable",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vNotAvailable"
                }
              ]
            }
          ]
        },
        {
          "name": "availabilityExceptions",
          "source": [
            {
              "context": "src",
              "element": "availabilityExceptions",
              "variable": "vAvailabilityExceptions"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "availabilityExceptions",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vAvailabilityExceptions"
                }
              ]
            }
          ]
        },
        {
          "name": "eligibility",
          "source": [
            {
              "context": "src",
              "element": "eligibility",
              "variable": "vEligibility"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "eligibility",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vEligibility"
                }
              ]
            }
          ]
        },
        {
          "name": "serviceProvisionCode",
          "source": [
            {
              "context": "src",
              "element": "serviceProvisionCode",
              "variable": "vServiceProvisionCode"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "serviceProvisionCode",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vServiceProvisionCode"
                }
              ]
            }
          ]
        },
        {
          "name": "comment",
          "source": [
            {
              "context": "src",
              "element": "comment",
              "variable": "vComment"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "comment",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vComment"
                }
              ]
            }
          ]
        },
        {
          "name": "extraDetails",
          "source": [
            {
              "context": "src",
              "element": "extraDetails",
              "variable": "vExtraDetails"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "extraDetails",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vExtraDetails"
                }
              ]
            }
          ]
        },
        {
          "name": "photo",
          "source": [
            {
              "context": "src",
              "element": "photo",
              "variable": "vPhoto"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "photo",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vPhoto"
                }
              ]
            }
          ]
        },
        {
          "name": "characteristic",
          "source": [
            {
              "context": "src",
              "element": "characteristic",
              "variable": "vCharacteristic"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "characteristic",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vCharacteristic"
                }
              ]
            }
          ]
        },
        {
          "name": "communication",
          "source": [
            {
              "context": "src",
              "element": "communication",
              "variable": "vCommunication"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "communication",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vCommunication"
                }
              ]
            }
          ]
        },
        {
          "name": "referralMethod",
          "source": [
            {
              "context": "src",
              "element": "referralMethod",
              "variable": "vReferralMethod"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "contextType": "variable",
              "element": "referralMethod",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "vReferralMethod"
                }
              ]
            }
          ]
        },
        {
          "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-HealthcareService"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}