National Directory of Healthcare Providers & Services (NDH) Implementation Guide
2.0.0-current - ci-build US

National Directory of Healthcare Providers & Services (NDH) Implementation Guide, published by HL7 International / Patient Administration. This guide is not an authorized publication; it is the continuous build for version 2.0.0-current built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-us-ndh/ and changes regularly. See the Directory of published versions

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

Page standards status: Trial-use Maturity Level: 4

Raw ttl | Download

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "PlanNetToNdhHealthcareServiceSM"] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap PlanNetToNdhHealthcareServiceSM</b></p><a name=\"PlanNetToNdhHealthcareServiceSM\"> </a><a name=\"hcPlanNetToNdhHealthcareServiceSM\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>http://hl7.org/fhir/us/ndh/StructureMap/PlanNetToNdhHealthcareServiceSM<span style=\"color: navy\">\" = \"</span>PlanNetToNdhHealthcareServiceSM<span style=\"color: navy\">\"#xD;\n#xD;\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">This StructureMap defines the mapping from Plan-Net HealthcareService to NDH HealthcareService.</span>#xD;\n#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/us/davinci-pdex-plan-net/STU1.2/StructureDefinition-plannet-HealthcareService.html\" title=\"Plan-Net HealthcareService\">http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-HealthcareService</a><span style=\"color: navy\">\" </span><b>alias </b>Source <b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-ndh-HealthcareService.html\" title=\"NDH HealthcareService Profile\">http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-HealthcareService</a><span style=\"color: navy\">\" </span><b>alias </b>Target <b>as </b><b>target</b>#xD;\n#xD;\n<b>group </b>PlanNetToNdhHealthcareService<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>HealthcareService, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>HealthcareService<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  src.extension<b> as </b><span style=\"color: maroon\">vNewPatientsSrc</span><b> where </b>(url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/newpatients')<span style=\"color: navy\"><b> -&gt; </b></span>tgt.extension<b> as </b><span style=\"color: maroon\">vNewPatientsTgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    vNewPatientsSrc<b> as </b><span style=\"color: maroon\">vNewPatientsForUrl</span><span style=\"color: navy\"><b> -&gt; </b></span>vNewPatientsTgt.url = <span style=\"color: blue\">'http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-newpatients'</span> <i>\"setNewPatientsUrl\"</i><span style=\"color: navy\">;</span>#xD;\n    vNewPatientsSrc.extension<b> as </b><span style=\"color: maroon\">vFromNetworkSrc</span><b> where </b>(url = 'fromNetwork')<span style=\"color: navy\"><b> -&gt; </b></span>vNewPatientsTgt.extension = <span style=\"color: maroon\">vFromNetworkSrc</span> <i>\"copyNewPatientsFromNetwork\"</i><span style=\"color: navy\">;</span>#xD;\n    vNewPatientsSrc.extension<b> as </b><span style=\"color: maroon\">vCharacteristicsSrc</span><b> where </b>(url = 'characteristics')<span style=\"color: navy\"><b> -&gt; </b></span>vNewPatientsTgt.extension = <span style=\"color: maroon\">vCharacteristicsSrc</span> <i>\"copyNewPatientsCharacteristics\"</i><span style=\"color: navy\">;</span>#xD;\n    vNewPatientsSrc.extension<b> as </b><span style=\"color: maroon\">vAcceptingPatientsSrc</span><b> where </b>(url = 'acceptingPatients')<span style=\"color: navy\"><b> -&gt; </b></span>vNewPatientsTgt.extension<b> as </b><span style=\"color: maroon\">vAcceptingPatientsTgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      vAcceptingPatientsSrc.url<b> as </b><span style=\"color: maroon\">vAcceptingPatientsUrl</span><span style=\"color: navy\"><b> -&gt; </b></span>vAcceptingPatientsTgt.url = <span style=\"color: maroon\">vAcceptingPatientsUrl</span> <i>\"copyAcceptingPatientsUrl\"</i><span style=\"color: navy\">;</span>#xD;\n      vAcceptingPatientsSrc.value<b> as </b><span style=\"color: maroon\">vAcceptingPatientsValueSrc</span><b> where </b>(coding.exists())<span style=\"color: navy\"><b> -&gt; </b></span>vAcceptingPatientsTgt.value = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">vAcceptingPatientsValueTgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>        vAcceptingPatientsValueSrc.coding<b> as </b><span style=\"color: maroon\">vAcceptingPatientsCodingSrc</span><b> where </b>(system = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/AcceptingPatientsCS')<span style=\"color: navy\"><b> -&gt; </b></span>vAcceptingPatientsValueTgt.coding = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">vAcceptingPatientsCodingSrc</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-accepting-patients'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span> <i>\"translateAcceptingPatientsCoding\"</i><span style=\"color: navy\">;</span>#xD;\n        vAcceptingPatientsValueSrc.coding<b> as </b><span style=\"color: maroon\">vAcceptingPatientsOtherCodingSrc</span><b> where </b>(system != 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/AcceptingPatientsCS')<span style=\"color: navy\"><b> -&gt; </b></span>vAcceptingPatientsValueTgt.coding = <span style=\"color: maroon\">vAcceptingPatientsOtherCodingSrc</span> <i>\"copyAcceptingPatientsOtherCoding\"</i><span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span> <i>\"copyAcceptingPatientsValue\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"copyNewPatientsAcceptingPatients\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"copyNewPatientsExtension\"</i><span style=\"color: navy\">;</span>#xD;\n  src.extension<b> as </b><span style=\"color: maroon\">vDeliveryMethod</span><b> where </b>(url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/delivery-method')<span style=\"color: navy\"><b> -&gt; </b></span>tgt.extension<b> as </b><span style=\"color: maroon\">vDeliveryMethodTgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    vDeliveryMethod<b> as </b><span style=\"color: maroon\">vDeliveryMethodForUrl</span><span style=\"color: navy\"><b> -&gt; </b></span>vDeliveryMethodTgt.url = <span style=\"color: blue\">'http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-delivery-method'</span> <i>\"setDeliveryMethodUrl\"</i><span style=\"color: navy\">;</span>#xD;\n    vDeliveryMethod.extension<b> as </b><span style=\"color: maroon\">vDeliveryMethodSubExt</span><span style=\"color: navy\"><b> -&gt; </b></span>vDeliveryMethodTgt.extension = <span style=\"color: maroon\">vDeliveryMethodSubExt</span> <i>\"copyDeliveryMethodSubExt\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"copyDeliveryMethodExtension\"</i><span style=\"color: navy\">;</span>#xD;\n  src.identifier<b> as </b><span style=\"color: maroon\">vIdentifier</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.identifier = <span style=\"color: maroon\">vIdentifier</span><span style=\"color: navy\">;</span>#xD;\n  src.location<b> as </b><span style=\"color: maroon\">vLocation</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.location = <span style=\"color: maroon\">vLocation</span><span style=\"color: navy\">;</span>#xD;\n  src.name<b> as </b><span style=\"color: maroon\">vName</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.name = <span style=\"color: maroon\">vName</span><span style=\"color: navy\">;</span>#xD;\n  src.telecom<b> as </b><span style=\"color: maroon\">vTelecomSrc</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.telecom<b> as </b><span style=\"color: maroon\">vTelecomTgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    vTelecomSrc.system<b> as </b><span style=\"color: maroon\">vTelecomSystem</span><span style=\"color: navy\"><b> -&gt; </b></span>vTelecomTgt.system = <span style=\"color: maroon\">vTelecomSystem</span> <i>\"copyTelecomSystem\"</i><span style=\"color: navy\">;</span>#xD;\n    vTelecomSrc.value<b> as </b><span style=\"color: maroon\">vTelecomValue</span><span style=\"color: navy\"><b> -&gt; </b></span>vTelecomTgt.value = <span style=\"color: maroon\">vTelecomValue</span> <i>\"copyTelecomValue\"</i><span style=\"color: navy\">;</span>#xD;\n    vTelecomSrc.use<b> as </b><span style=\"color: maroon\">vTelecomUse</span><span style=\"color: navy\"><b> -&gt; </b></span>vTelecomTgt.use = <span style=\"color: maroon\">vTelecomUse</span> <i>\"copyTelecomUse\"</i><span style=\"color: navy\">;</span>#xD;\n    vTelecomSrc.rank<b> as </b><span style=\"color: maroon\">vTelecomRank</span><span style=\"color: navy\"><b> -&gt; </b></span>vTelecomTgt.rank = <span style=\"color: maroon\">vTelecomRank</span> <i>\"copyTelecomRank\"</i><span style=\"color: navy\">;</span>#xD;\n    vTelecomSrc.period<b> as </b><span style=\"color: maroon\">vTelecomPeriod</span><span style=\"color: navy\"><b> -&gt; </b></span>vTelecomTgt.period = <span style=\"color: maroon\">vTelecomPeriod</span> <i>\"copyTelecomPeriod\"</i><span style=\"color: navy\">;</span>#xD;\n    vTelecomSrc.extension<b> as </b><span style=\"color: maroon\">vContactpointAvailabletimeSrc</span><b> where </b>(url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/contactpoint-availabletime')<span style=\"color: navy\"><b> -&gt; </b></span>vTelecomTgt.extension<b> as </b><span style=\"color: maroon\">vContactpointAvailabletimeTgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      vContactpointAvailabletimeSrc<b> as </b><span style=\"color: maroon\">vContactpointAvailabletimeForUrl</span><span style=\"color: navy\"><b> -&gt; </b></span>vContactpointAvailabletimeTgt.url = <span style=\"color: blue\">'http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-contactpoint-availabletime'</span> <i>\"setContactpointAvailabletimeUrl\"</i><span style=\"color: navy\">;</span>#xD;\n      vContactpointAvailabletimeSrc.extension<b> as </b><span style=\"color: maroon\">vContactpointAvailabletimeSubExt</span><span style=\"color: navy\"><b> -&gt; </b></span>vContactpointAvailabletimeTgt.extension = <span style=\"color: maroon\">vContactpointAvailabletimeSubExt</span> <i>\"copyContactpointAvailabletimeSubExt\"</i><span style=\"color: navy\">;</span>#xD;\n      vContactpointAvailabletimeSrc.value<b> as </b><span style=\"color: maroon\">vContactpointAvailabletimeValue</span><span style=\"color: navy\"><b> -&gt; </b></span>vContactpointAvailabletimeTgt.value = <span style=\"color: maroon\">vContactpointAvailabletimeValue</span> <i>\"copyContactpointAvailabletimeValue\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"copyTelecomContactpointAvailabletime\"</i><span style=\"color: navy\">;</span>#xD;\n    vTelecomSrc.extension<b> as </b><span style=\"color: maroon\">vViaIntermediarySrc</span><b> where </b>(url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/via-intermediary')<span style=\"color: navy\"><b> -&gt; </b></span>vTelecomTgt.extension<b> as </b><span style=\"color: maroon\">vViaIntermediaryTgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      vViaIntermediarySrc<b> as </b><span style=\"color: maroon\">vViaIntermediaryForUrl</span><span style=\"color: navy\"><b> -&gt; </b></span>vViaIntermediaryTgt.url = <span style=\"color: blue\">'http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-via-intermediary'</span> <i>\"setViaIntermediaryUrl\"</i><span style=\"color: navy\">;</span>#xD;\n      vViaIntermediarySrc.extension<b> as </b><span style=\"color: maroon\">vViaIntermediarySubExt</span><span style=\"color: navy\"><b> -&gt; </b></span>vViaIntermediaryTgt.extension = <span style=\"color: maroon\">vViaIntermediarySubExt</span> <i>\"copyViaIntermediarySubExt\"</i><span style=\"color: navy\">;</span>#xD;\n      vViaIntermediarySrc.value<b> as </b><span style=\"color: maroon\">vViaIntermediaryValue</span><span style=\"color: navy\"><b> -&gt; </b></span>vViaIntermediaryTgt.value = <span style=\"color: maroon\">vViaIntermediaryValue</span> <i>\"copyViaIntermediaryValue\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"copyTelecomViaIntermediary\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"copyTelecom\"</i><span style=\"color: navy\">;</span>#xD;\n  src.program<b> as </b><span style=\"color: maroon\">vProgram</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.program = <span style=\"color: maroon\">vProgram</span><span style=\"color: navy\">;</span>#xD;\n  src.endpoint<b> as </b><span style=\"color: maroon\">vEndpoint</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.endpoint = <span style=\"color: maroon\">vEndpoint</span><span style=\"color: navy\">;</span>#xD;\n  src.active<b> as </b><span style=\"color: maroon\">vActive</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.active = <span style=\"color: maroon\">vActive</span><span style=\"color: navy\">;</span>#xD;\n  src.providedBy<b> as </b><span style=\"color: maroon\">vProvidedBy</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.providedBy = <span style=\"color: maroon\">vProvidedBy</span><span style=\"color: navy\">;</span>#xD;\n  src.coverageArea<b> as </b><span style=\"color: maroon\">vCoverageArea</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.coverageArea = <span style=\"color: maroon\">vCoverageArea</span><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Translate Plan-Net HealthcareService category coding to NDH coding via ConceptMap.</span>#xD;\n  src.category<b> as </b><span style=\"color: maroon\">vCategorySrc</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.category<b> as </b><span style=\"color: maroon\">vCategoryTgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    vCategorySrc.text<b> as </b><span style=\"color: maroon\">vCategoryText</span><span style=\"color: navy\"><b> -&gt; </b></span>vCategoryTgt.text = <span style=\"color: maroon\">vCategoryText</span> <i>\"copyCategoryText\"</i><span style=\"color: navy\">;</span>#xD;\n    vCategorySrc.coding<b> as </b><span style=\"color: maroon\">vCategoryCodingSrc</span><b> where </b>(system = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/HealthcareServiceCategoryCS')<span style=\"color: navy\"><b> -&gt; </b></span>vCategoryTgt.coding<b> as </b><span style=\"color: maroon\">vCategoryCodingTgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      vCategoryCodingSrc<b> as </b><span style=\"color: maroon\">vCategoryCodingForSystem</span><span style=\"color: navy\"><b> -&gt; </b></span>vCategoryCodingTgt.system = <span style=\"color: blue\">'http://terminology.hl7.org/CodeSystem/ndh-healthcare-service-category'</span> <i>\"setCategoryCodingSystem\"</i><span style=\"color: navy\">;</span>#xD;\n      vCategoryCodingSrc.code<b> as </b><span style=\"color: maroon\">vCategoryCodeSrc</span><span style=\"color: navy\"><b> -&gt; </b></span>vCategoryCodingTgt.code = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">vCategoryCodeSrc</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-healthcare-service-category'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span> <i>\"translateCategoryCode\"</i><span style=\"color: navy\">;</span>#xD;\n      vCategoryCodingSrc.display<b> as </b><span style=\"color: maroon\">vCategoryDisplay</span><span style=\"color: navy\"><b> -&gt; </b></span>vCategoryCodingTgt.display = <span style=\"color: maroon\">vCategoryDisplay</span> <i>\"copyCategoryDisplay\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"translateCategoryCoding\"</i><span style=\"color: navy\">;</span>#xD;\n    vCategorySrc.coding<b> as </b><span style=\"color: maroon\">vCategoryCodingOtherSrc</span><b> where </b>(system != 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/HealthcareServiceCategoryCS')<span style=\"color: navy\"><b> -&gt; </b></span>vCategoryTgt.coding = <span style=\"color: maroon\">vCategoryCodingOtherSrc</span> <i>\"copyCategoryCodingOther\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"copyCategory\"</i><span style=\"color: navy\">;</span>#xD;\n  src.type<b> as </b><span style=\"color: maroon\">vType</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.type = <span style=\"color: maroon\">vType</span><span style=\"color: navy\">;</span>#xD;\n  src.specialty<b> as </b><span style=\"color: maroon\">vSpecialty</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.specialty = <span style=\"color: maroon\">vSpecialty</span><span style=\"color: navy\">;</span>#xD;\n  src.appointmentRequired<b> as </b><span style=\"color: maroon\">vAppointmentRequired</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.appointmentRequired = <span style=\"color: maroon\">vAppointmentRequired</span><span style=\"color: navy\">;</span>#xD;\n  src.availableTime<b> as </b><span style=\"color: maroon\">vAvailableTime</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.availableTime = <span style=\"color: maroon\">vAvailableTime</span><span style=\"color: navy\">;</span>#xD;\n  src.notAvailable<b> as </b><span style=\"color: maroon\">vNotAvailable</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.notAvailable = <span style=\"color: maroon\">vNotAvailable</span><span style=\"color: navy\">;</span>#xD;\n  src.availabilityExceptions<b> as </b><span style=\"color: maroon\">vAvailabilityExceptions</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.availabilityExceptions = <span style=\"color: maroon\">vAvailabilityExceptions</span><span style=\"color: navy\">;</span>#xD;\n  src.eligibility<b> as </b><span style=\"color: maroon\">vEligibility</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.eligibility = <span style=\"color: maroon\">vEligibility</span><span style=\"color: navy\">;</span>#xD;\n  src.serviceProvisionCode<b> as </b><span style=\"color: maroon\">vServiceProvisionCode</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.serviceProvisionCode = <span style=\"color: maroon\">vServiceProvisionCode</span><span style=\"color: navy\">;</span>#xD;\n  src.comment<b> as </b><span style=\"color: maroon\">vComment</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.comment = <span style=\"color: maroon\">vComment</span><span style=\"color: navy\">;</span>#xD;\n  src.extraDetails<b> as </b><span style=\"color: maroon\">vExtraDetails</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.extraDetails = <span style=\"color: maroon\">vExtraDetails</span><span style=\"color: navy\">;</span>#xD;\n  src.photo<b> as </b><span style=\"color: maroon\">vPhoto</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.photo = <span style=\"color: maroon\">vPhoto</span><span style=\"color: navy\">;</span>#xD;\n  src.characteristic<b> as </b><span style=\"color: maroon\">vCharacteristic</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.characteristic = <span style=\"color: maroon\">vCharacteristic</span><span style=\"color: navy\">;</span>#xD;\n  src.communication<b> as </b><span style=\"color: maroon\">vCommunication</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.communication = <span style=\"color: maroon\">vCommunication</span><span style=\"color: navy\">;</span>#xD;\n  src.referralMethod<b> as </b><span style=\"color: maroon\">vReferralMethod</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.referralMethod = <span style=\"color: maroon\">vReferralMethod</span><span style=\"color: navy\">;</span>#xD;\n  src.meta<b> as </b><span style=\"color: maroon\">vMetaSrc</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.meta<b> as </b><span style=\"color: maroon\">vMetaTgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    vMetaSrc.lastUpdated<b> as </b><span style=\"color: maroon\">vLastUpdated</span><span style=\"color: navy\"><b> -&gt; </b></span>vMetaTgt.lastUpdated = <span style=\"color: maroon\">vLastUpdated</span> <i>\"copyMetaLastUpdated\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"copyMeta\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg>     ] ;
fhir:value [
a fhir:Code ;
fhir:v "pa"     ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm>     ] ;
fhir:value [
a fhir:Integer ;
fhir:v 4 ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom>         ] ;
fhir:value [
a fhir:Canonical ;
fhir:v "http://hl7.org/fhir/us/ndh/ImplementationGuide/hl7.fhir.us.ndh"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ndh/ImplementationGuide/hl7.fhir.us.ndh>         ]       ] )     ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status>     ] ;
fhir:value [
a fhir:Code ;
fhir:v "trial-use" ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom>         ] ;
fhir:value [
a fhir:Canonical ;
fhir:v "http://hl7.org/fhir/us/ndh/ImplementationGuide/hl7.fhir.us.ndh"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ndh/ImplementationGuide/hl7.fhir.us.ndh>         ]       ] )     ]
  ] ) ; # 
  fhir:url [
fhir:v "http://hl7.org/fhir/us/ndh/StructureMap/PlanNetToNdhHealthcareServiceSM"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ndh/StructureMap/PlanNetToNdhHealthcareServiceSM>
  ] ; # 
  fhir:version [ fhir:v "2.0.0-current"] ; # 
  fhir:name [ fhir:v "PlanNetToNdhHealthcareServiceSM"] ; # 
  fhir:title [ fhir:v "This StructureMap defines the mapping from Plan-Net HealthcareService to NDH HealthcareService."] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:date [ fhir:v "2026-05-29T16:56:26+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "HL7 International / Patient Administration"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "HL7 International / Patient Administration" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "http://www.hl7.org/Special/committees/pafm" ]     ] [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "pafm@lists.hl7.org" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "This StructureMap defines the mapping from Plan-Net HealthcareService to NDH HealthcareService."] ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [
fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
fhir:l <urn:iso:std:iso:3166>       ] ;
fhir:code [ fhir:v "US" ] ;
fhir:display [ fhir:v "United States of America" ]     ] )
  ] ) ; # 
  fhir:structure ( [
fhir:url [
fhir:v "http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-HealthcareService"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-HealthcareService>     ] ;
fhir:mode [ fhir:v "source" ] ;
fhir:alias [ fhir:v "Source" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-HealthcareService"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-HealthcareService>     ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "Target" ]
  ] ) ; # 
  fhir:group ( [
fhir:name [ fhir:v "PlanNetToNdhHealthcareService" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "HealthcareService" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:type [ fhir:v "HealthcareService" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "copyNewPatientsExtension" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "vNewPatientsSrc" ] ;
fhir:condition [ fhir:v "(url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/newpatients')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "vNewPatientsTgt" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "setNewPatientsUrl" ] ;
        ( fhir:source [
fhir:context [ fhir:v "vNewPatientsSrc" ] ;
fhir:variable [ fhir:v "vNewPatientsForUrl" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "vNewPatientsTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [
a fhir:String ;
fhir:v "http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-newpatients"             ]           ] )         ] )       ] [
fhir:name [ fhir:v "copyNewPatientsFromNetwork" ] ;
        ( fhir:source [
fhir:context [ fhir:v "vNewPatientsSrc" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "vFromNetworkSrc" ] ;
fhir:condition [ fhir:v "(url = 'fromNetwork')" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "vNewPatientsTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vFromNetworkSrc"             ]           ] )         ] )       ] [
fhir:name [ fhir:v "copyNewPatientsCharacteristics" ] ;
        ( fhir:source [
fhir:context [ fhir:v "vNewPatientsSrc" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "vCharacteristicsSrc" ] ;
fhir:condition [ fhir:v "(url = 'characteristics')" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "vNewPatientsTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vCharacteristicsSrc"             ]           ] )         ] )       ] [
fhir:name [ fhir:v "copyNewPatientsAcceptingPatients" ] ;
        ( fhir:source [
fhir:context [ fhir:v "vNewPatientsSrc" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "vAcceptingPatientsSrc" ] ;
fhir:condition [ fhir:v "(url = 'acceptingPatients')" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "vNewPatientsTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "vAcceptingPatientsTgt" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "copyAcceptingPatientsUrl" ] ;
          ( fhir:source [
fhir:context [ fhir:v "vAcceptingPatientsSrc" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:variable [ fhir:v "vAcceptingPatientsUrl" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "vAcceptingPatientsTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vAcceptingPatientsUrl"               ]             ] )           ] )         ] [
fhir:name [ fhir:v "copyAcceptingPatientsValue" ] ;
          ( fhir:source [
fhir:context [ fhir:v "vAcceptingPatientsSrc" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "vAcceptingPatientsValueSrc" ] ;
fhir:condition [ fhir:v "(coding.exists())" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "vAcceptingPatientsTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "vAcceptingPatientsValueTgt" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:String ;
fhir:v "CodeableConcept"               ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "translateAcceptingPatientsCoding" ] ;
            ( fhir:source [
fhir:context [ fhir:v "vAcceptingPatientsValueSrc" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "vAcceptingPatientsCodingSrc" ] ;
fhir:condition [ fhir:v "(system = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/AcceptingPatientsCS')" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "vAcceptingPatientsValueTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "translate" ] ;
              ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vAcceptingPatientsCodingSrc"                 ]               ] [
fhir:value [
a fhir:String ;
fhir:v "http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-accepting-patients"                 ]               ] [
fhir:value [
a fhir:String ;
fhir:v "Coding"                 ]               ] )             ] )           ] [
fhir:name [ fhir:v "copyAcceptingPatientsOtherCoding" ] ;
            ( fhir:source [
fhir:context [ fhir:v "vAcceptingPatientsValueSrc" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "vAcceptingPatientsOtherCodingSrc" ] ;
fhir:condition [ fhir:v "(system != 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/AcceptingPatientsCS')" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "vAcceptingPatientsValueTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vAcceptingPatientsOtherCodingSrc"                 ]               ] )             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "copyDeliveryMethodExtension" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "vDeliveryMethod" ] ;
fhir:condition [ fhir:v "(url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/delivery-method')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "vDeliveryMethodTgt" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "setDeliveryMethodUrl" ] ;
        ( fhir:source [
fhir:context [ fhir:v "vDeliveryMethod" ] ;
fhir:variable [ fhir:v "vDeliveryMethodForUrl" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "vDeliveryMethodTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [
a fhir:String ;
fhir:v "http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-delivery-method"             ]           ] )         ] )       ] [
fhir:name [ fhir:v "copyDeliveryMethodSubExt" ] ;
        ( fhir:source [
fhir:context [ fhir:v "vDeliveryMethod" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "vDeliveryMethodSubExt" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "vDeliveryMethodTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vDeliveryMethodSubExt"             ]           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "identifier" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "vIdentifier" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vIdentifier"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "location" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "location" ] ;
fhir:variable [ fhir:v "vLocation" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "location" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vLocation"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "name" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vName" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vName"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "copyTelecom" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vTelecomSrc" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vTelecomTgt" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "copyTelecomSystem" ] ;
        ( fhir:source [
fhir:context [ fhir:v "vTelecomSrc" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:variable [ fhir:v "vTelecomSystem" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "vTelecomTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vTelecomSystem"             ]           ] )         ] )       ] [
fhir:name [ fhir:v "copyTelecomValue" ] ;
        ( fhir:source [
fhir:context [ fhir:v "vTelecomSrc" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "vTelecomValue" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "vTelecomTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vTelecomValue"             ]           ] )         ] )       ] [
fhir:name [ fhir:v "copyTelecomUse" ] ;
        ( fhir:source [
fhir:context [ fhir:v "vTelecomSrc" ] ;
fhir:element [ fhir:v "use" ] ;
fhir:variable [ fhir:v "vTelecomUse" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "vTelecomTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "use" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vTelecomUse"             ]           ] )         ] )       ] [
fhir:name [ fhir:v "copyTelecomRank" ] ;
        ( fhir:source [
fhir:context [ fhir:v "vTelecomSrc" ] ;
fhir:element [ fhir:v "rank" ] ;
fhir:variable [ fhir:v "vTelecomRank" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "vTelecomTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "rank" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vTelecomRank"             ]           ] )         ] )       ] [
fhir:name [ fhir:v "copyTelecomPeriod" ] ;
        ( fhir:source [
fhir:context [ fhir:v "vTelecomSrc" ] ;
fhir:element [ fhir:v "period" ] ;
fhir:variable [ fhir:v "vTelecomPeriod" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "vTelecomTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "period" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vTelecomPeriod"             ]           ] )         ] )       ] [
fhir:name [ fhir:v "copyTelecomContactpointAvailabletime" ] ;
        ( fhir:source [
fhir:context [ fhir:v "vTelecomSrc" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "vContactpointAvailabletimeSrc" ] ;
fhir:condition [ fhir:v "(url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/contactpoint-availabletime')" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "vTelecomTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "vContactpointAvailabletimeTgt" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "setContactpointAvailabletimeUrl" ] ;
          ( fhir:source [
fhir:context [ fhir:v "vContactpointAvailabletimeSrc" ] ;
fhir:variable [ fhir:v "vContactpointAvailabletimeForUrl" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "vContactpointAvailabletimeTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:String ;
fhir:v "http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-contactpoint-availabletime"               ]             ] )           ] )         ] [
fhir:name [ fhir:v "copyContactpointAvailabletimeSubExt" ] ;
          ( fhir:source [
fhir:context [ fhir:v "vContactpointAvailabletimeSrc" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "vContactpointAvailabletimeSubExt" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "vContactpointAvailabletimeTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vContactpointAvailabletimeSubExt"               ]             ] )           ] )         ] [
fhir:name [ fhir:v "copyContactpointAvailabletimeValue" ] ;
          ( fhir:source [
fhir:context [ fhir:v "vContactpointAvailabletimeSrc" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "vContactpointAvailabletimeValue" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "vContactpointAvailabletimeTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vContactpointAvailabletimeValue"               ]             ] )           ] )         ] )       ] [
fhir:name [ fhir:v "copyTelecomViaIntermediary" ] ;
        ( fhir:source [
fhir:context [ fhir:v "vTelecomSrc" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "vViaIntermediarySrc" ] ;
fhir:condition [ fhir:v "(url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/via-intermediary')" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "vTelecomTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "vViaIntermediaryTgt" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "setViaIntermediaryUrl" ] ;
          ( fhir:source [
fhir:context [ fhir:v "vViaIntermediarySrc" ] ;
fhir:variable [ fhir:v "vViaIntermediaryForUrl" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "vViaIntermediaryTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:String ;
fhir:v "http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-via-intermediary"               ]             ] )           ] )         ] [
fhir:name [ fhir:v "copyViaIntermediarySubExt" ] ;
          ( fhir:source [
fhir:context [ fhir:v "vViaIntermediarySrc" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "vViaIntermediarySubExt" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "vViaIntermediaryTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vViaIntermediarySubExt"               ]             ] )           ] )         ] [
fhir:name [ fhir:v "copyViaIntermediaryValue" ] ;
          ( fhir:source [
fhir:context [ fhir:v "vViaIntermediarySrc" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "vViaIntermediaryValue" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "vViaIntermediaryTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vViaIntermediaryValue"               ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "program" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "program" ] ;
fhir:variable [ fhir:v "vProgram" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "program" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vProgram"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "endpoint" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "endpoint" ] ;
fhir:variable [ fhir:v "vEndpoint" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "endpoint" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vEndpoint"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "active" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:variable [ fhir:v "vActive" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vActive"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "providedBy" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "providedBy" ] ;
fhir:variable [ fhir:v "vProvidedBy" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "providedBy" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vProvidedBy"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "coverageArea" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "coverageArea" ] ;
fhir:variable [ fhir:v "vCoverageArea" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coverageArea" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vCoverageArea"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "copyCategory" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "category" ] ;
fhir:variable [ fhir:v "vCategorySrc" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "category" ] ;
fhir:variable [ fhir:v "vCategoryTgt" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "copyCategoryText" ] ;
        ( fhir:source [
fhir:context [ fhir:v "vCategorySrc" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:variable [ fhir:v "vCategoryText" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "vCategoryTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vCategoryText"             ]           ] )         ] )       ] [
fhir:name [ fhir:v "translateCategoryCoding" ] ;
        ( fhir:source [
fhir:context [ fhir:v "vCategorySrc" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "vCategoryCodingSrc" ] ;
fhir:condition [ fhir:v "(system = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/HealthcareServiceCategoryCS')" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "vCategoryTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "vCategoryCodingTgt" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "setCategoryCodingSystem" ] ;
          ( fhir:source [
fhir:context [ fhir:v "vCategoryCodingSrc" ] ;
fhir:variable [ fhir:v "vCategoryCodingForSystem" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "vCategoryCodingTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:String ;
fhir:v "http://terminology.hl7.org/CodeSystem/ndh-healthcare-service-category"               ]             ] )           ] )         ] [
fhir:name [ fhir:v "translateCategoryCode" ] ;
          ( fhir:source [
fhir:context [ fhir:v "vCategoryCodingSrc" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vCategoryCodeSrc" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "vCategoryCodingTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "translate" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vCategoryCodeSrc"               ]             ] [
fhir:value [
a fhir:String ;
fhir:v "http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-healthcare-service-category"               ]             ] [
fhir:value [
a fhir:String ;
fhir:v "code"               ]             ] )           ] )         ] [
fhir:name [ fhir:v "copyCategoryDisplay" ] ;
          ( fhir:source [
fhir:context [ fhir:v "vCategoryCodingSrc" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:variable [ fhir:v "vCategoryDisplay" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "vCategoryCodingTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vCategoryDisplay"               ]             ] )           ] )         ] )       ] [
fhir:name [ fhir:v "copyCategoryCodingOther" ] ;
        ( fhir:source [
fhir:context [ fhir:v "vCategorySrc" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "vCategoryCodingOtherSrc" ] ;
fhir:condition [ fhir:v "(system != 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/HealthcareServiceCategoryCS')" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "vCategoryTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vCategoryCodingOtherSrc"             ]           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "type" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vType" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vType"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "specialty" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "specialty" ] ;
fhir:variable [ fhir:v "vSpecialty" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "specialty" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vSpecialty"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "appointmentRequired" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "appointmentRequired" ] ;
fhir:variable [ fhir:v "vAppointmentRequired" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "appointmentRequired" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vAppointmentRequired"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "availableTime" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "availableTime" ] ;
fhir:variable [ fhir:v "vAvailableTime" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "availableTime" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vAvailableTime"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "notAvailable" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "notAvailable" ] ;
fhir:variable [ fhir:v "vNotAvailable" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "notAvailable" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vNotAvailable"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "availabilityExceptions" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "availabilityExceptions" ] ;
fhir:variable [ fhir:v "vAvailabilityExceptions" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "availabilityExceptions" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vAvailabilityExceptions"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "eligibility" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "eligibility" ] ;
fhir:variable [ fhir:v "vEligibility" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "eligibility" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vEligibility"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "serviceProvisionCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "serviceProvisionCode" ] ;
fhir:variable [ fhir:v "vServiceProvisionCode" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "serviceProvisionCode" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vServiceProvisionCode"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "comment" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "comment" ] ;
fhir:variable [ fhir:v "vComment" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "comment" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vComment"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "extraDetails" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "extraDetails" ] ;
fhir:variable [ fhir:v "vExtraDetails" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extraDetails" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vExtraDetails"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "photo" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "photo" ] ;
fhir:variable [ fhir:v "vPhoto" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "photo" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vPhoto"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "characteristic" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "characteristic" ] ;
fhir:variable [ fhir:v "vCharacteristic" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "characteristic" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vCharacteristic"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "communication" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "communication" ] ;
fhir:variable [ fhir:v "vCommunication" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "communication" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vCommunication"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "referralMethod" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "referralMethod" ] ;
fhir:variable [ fhir:v "vReferralMethod" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "referralMethod" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vReferralMethod"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "copyMeta" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "vMetaSrc" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "vMetaTgt" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "copyMetaLastUpdated" ] ;
        ( fhir:source [
fhir:context [ fhir:v "vMetaSrc" ] ;
fhir:element [ fhir:v "lastUpdated" ] ;
fhir:variable [ fhir:v "vLastUpdated" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "vMetaTgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "lastUpdated" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "vLastUpdated"             ]           ] )         ] )       ] )     ] )
  ] ) . #