<?xml version="1.0" encoding="UTF-8"?>

<StructureMap xmlns="http://hl7.org/fhir">
  <id value="PlanNetToNdhLocationSM"/>
  <language value="en"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap PlanNetToNdhLocationSM</b></p><a name="PlanNetToNdhLocationSM"> </a><a name="hcPlanNetToNdhLocationSM"> </a><pre class="fml">
<b>map</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/us/ndh/StructureMap/PlanNetToNdhLocationSM<span style="color: navy">&quot; = &quot;</span>PlanNetToNdhLocationSM<span style="color: navy">&quot;

</span><span style="color: navy">// </span><span style="color: green">This StructureMap defines the mapping from Plan-Net Location to NDH Location.</span>

<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/us/davinci-pdex-plan-net/STU1.2/StructureDefinition-plannet-Location.html" title="Plan-Net Location">http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-Location</a><span style="color: navy">&quot; </span><b>alias </b>Source <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-ndh-Location.html" title="NDH Location Profile">http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-Location</a><span style="color: navy">&quot; </span><b>alias </b>Target <b>as </b><b>target</b>

<b>group </b>PlanNetToNdhLocation<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>Location, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>Location<span style="color: navy">)</span><span style="color: navy"> {
</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"> {
</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>&quot;setNewPatientsUrl&quot;</i><span style="color: navy">;</span>
    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>&quot;copyNewPatientsFromNetwork&quot;</i><span style="color: navy">;</span>
    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>&quot;copyNewPatientsCharacteristics&quot;</i><span style="color: navy">;</span>
    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"> {
</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>&quot;copyAcceptingPatientsUrl&quot;</i><span style="color: navy">;</span>
      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"> {
</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>&quot;translateAcceptingPatientsCoding&quot;</i><span style="color: navy">;</span>
        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>&quot;copyAcceptingPatientsOtherCoding&quot;</i><span style="color: navy">;</span>
      <span style="color: navy">}</span> <i>&quot;copyAcceptingPatientsValue&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;copyNewPatientsAcceptingPatients&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;copyNewPatientsExtension&quot;</i><span style="color: navy">;</span>
  src.extension<b> as </b><span style="color: maroon">vAccessibilitySrc</span><b> where </b>(url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/accessibility')<span style="color: navy"><b> -&gt; </b></span>tgt.extension<b> as </b><span style="color: maroon">vAccessibilityTgt</span><b> then</b><span style="color: navy"> {
</span>    vAccessibilitySrc<b> as </b><span style="color: maroon">vAccessibilityForUrl</span><span style="color: navy"><b> -&gt; </b></span>vAccessibilityTgt.url = <span style="color: blue">'http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-accessibility'</span> <i>&quot;setAccessibilityUrl&quot;</i><span style="color: navy">;</span>
    vAccessibilitySrc.value<b> as </b><span style="color: maroon">vAccessibilityValueSrc</span><b> where </b>(coding.exists())<span style="color: navy"><b> -&gt; </b></span>vAccessibilityTgt.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">vAccessibilityValueTgt</span><b> then</b><span style="color: navy"> {
</span>      vAccessibilityValueSrc.coding<b> as </b><span style="color: maroon">vAccessibilityCodingSrc</span><b> where </b>(system = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/AccessibilityCS')<span style="color: navy"><b> -&gt; </b></span>vAccessibilityValueTgt.coding = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">vAccessibilityCodingSrc</span><span style="color: navy">, </span><span style="color: blue">'http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-accessibility'</span><span style="color: navy">, </span><span style="color: blue">'Coding'</span><span style="color: navy">)</span> <i>&quot;translateAccessibilityCoding&quot;</i><span style="color: navy">;</span>
      vAccessibilityValueSrc.coding<b> as </b><span style="color: maroon">vAccessibilityOtherCodingSrc</span><b> where </b>(system != 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/AccessibilityCS')<span style="color: navy"><b> -&gt; </b></span>vAccessibilityValueTgt.coding = <span style="color: maroon">vAccessibilityOtherCodingSrc</span> <i>&quot;copyAccessibilityOtherCoding&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;copyAccessibilityValue&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;copyAccessibilityExtension&quot;</i><span style="color: navy">;</span>
  src.extension<b> as </b><span style="color: maroon">vRegion</span><b> where </b>(url = 'http://hl7.org/fhir/StructureDefinition/location-boundary-geojson')<span style="color: navy"><b> -&gt; </b></span>tgt.extension = <span style="color: maroon">vRegion</span> <i>&quot;copyRegionExtension&quot;</i><span style="color: navy">;</span>
  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>
  src.status<b> as </b><span style="color: maroon">vStatus</span><span style="color: navy"><b> -&gt; </b></span>tgt.status = <span style="color: maroon">vStatus</span><span style="color: navy">;</span>
  src.operationalStatus<b> as </b><span style="color: maroon">vOperationalStatus</span><span style="color: navy"><b> -&gt; </b></span>tgt.operationalStatus = <span style="color: maroon">vOperationalStatus</span><span style="color: navy">;</span>
  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>
  src.alias<b> as </b><span style="color: maroon">vAlias</span><span style="color: navy"><b> -&gt; </b></span>tgt.alias = <span style="color: maroon">vAlias</span><span style="color: navy">;</span>
  src.description<b> as </b><span style="color: maroon">vDescription</span><span style="color: navy"><b> -&gt; </b></span>tgt.description = <span style="color: maroon">vDescription</span><span style="color: navy">;</span>
  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>
  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"> {
</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>&quot;copyTelecomSystem&quot;</i><span style="color: navy">;</span>
    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>&quot;copyTelecomValue&quot;</i><span style="color: navy">;</span>
    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>&quot;copyTelecomUse&quot;</i><span style="color: navy">;</span>
    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>&quot;copyTelecomRank&quot;</i><span style="color: navy">;</span>
    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>&quot;copyTelecomPeriod&quot;</i><span style="color: navy">;</span>
    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"> {
</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>&quot;setContactpointAvailabletimeUrl&quot;</i><span style="color: navy">;</span>
      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>&quot;copyContactpointAvailabletimeSubExt&quot;</i><span style="color: navy">;</span>
      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>&quot;copyContactpointAvailabletimeValue&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;copyTelecomContactpointAvailabletime&quot;</i><span style="color: navy">;</span>
    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"> {
</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>&quot;setViaIntermediaryUrl&quot;</i><span style="color: navy">;</span>
      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>&quot;copyViaIntermediarySubExt&quot;</i><span style="color: navy">;</span>
      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>&quot;copyViaIntermediaryValue&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;copyTelecomViaIntermediary&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;copyTelecom&quot;</i><span style="color: navy">;</span>
  src.address<b> as </b><span style="color: maroon">vAddress</span><span style="color: navy"><b> -&gt; </b></span>tgt.address = <span style="color: maroon">vAddress</span><span style="color: navy">;</span>
  src.physicalType<b> as </b><span style="color: maroon">vPhysicalType</span><span style="color: navy"><b> -&gt; </b></span>tgt.physicalType = <span style="color: maroon">vPhysicalType</span><span style="color: navy">;</span>
  src.position<b> as </b><span style="color: maroon">vPosition</span><span style="color: navy"><b> -&gt; </b></span>tgt.position = <span style="color: maroon">vPosition</span><span style="color: navy">;</span>
  src.managingOrganization<b> as </b><span style="color: maroon">vManagingOrganization</span><span style="color: navy"><b> -&gt; </b></span>tgt.managingOrganization = <span style="color: maroon">vManagingOrganization</span><span style="color: navy">;</span>
  src.partOf<b> as </b><span style="color: maroon">vPartOf</span><span style="color: navy"><b> -&gt; </b></span>tgt.partOf = <span style="color: maroon">vPartOf</span><span style="color: navy">;</span>
  src.hoursOfOperation<b> as </b><span style="color: maroon">vHoursOfOperation</span><span style="color: navy"><b> -&gt; </b></span>tgt.hoursOfOperation = <span style="color: maroon">vHoursOfOperation</span><span style="color: navy">;</span>
  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>
  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>
  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"> {
</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><span style="color: navy">;</span>
  <span style="color: navy">}</span><span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="pa"/>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="4">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
        <valueCanonical value="http://hl7.org/fhir/us/ndh/ImplementationGuide/hl7.fhir.us.ndh"/>
      </extension>
    </valueInteger>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
        <valueCanonical value="http://hl7.org/fhir/us/ndh/ImplementationGuide/hl7.fhir.us.ndh"/>
      </extension>
    </valueCode>
  </extension>
  <url value="http://hl7.org/fhir/us/ndh/StructureMap/PlanNetToNdhLocationSM"/>
  <version value="2.0.0-current"/>
  <name value="PlanNetToNdhLocationSM"/>
  <title value="This StructureMap defines the mapping from Plan-Net Location to NDH Location."/>
  <status value="active"/>
  <date value="2026-05-29T16:56:26+00:00"/>
  <publisher value="HL7 International / Patient Administration"/>
  <contact>
    <name value="HL7 International / Patient Administration"/>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/pafm"/>
    </telecom>
    <telecom>
      <system value="email"/>
      <value value="pafm@lists.hl7.org"/>
    </telecom>
  </contact>
  <description value="This StructureMap defines the mapping from Plan-Net Location to NDH Location."/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="US"/>
      <display value="United States of America"/>
    </coding>
  </jurisdiction>
  <structure>
    <url value="http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-Location"/>
    <mode value="source"/>
    <alias value="Source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-Location"/>
    <mode value="target"/>
    <alias value="Target"/>
  </structure>
  <group>
    <name value="PlanNetToNdhLocation"/>
    <typeMode value="none"/>
    <input>
      <name value="src"/>
      <type value="Location"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="Location"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="copyNewPatientsExtension"/>
      <source>
        <context value="src"/>
        <element value="extension"/>
        <variable value="vNewPatientsSrc"/>
        <condition value="(url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/newpatients')"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="extension"/>
        <variable value="vNewPatientsTgt"/>
      </target>
      <rule>
        <name value="setNewPatientsUrl"/>
        <source>
          <context value="vNewPatientsSrc"/>
          <variable value="vNewPatientsForUrl"/>
        </source>
        <target>
          <context value="vNewPatientsTgt"/>
          <contextType value="variable"/>
          <element value="url"/>
          <transform value="copy"/>
          <parameter>
            <valueString value="http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-newpatients"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="copyNewPatientsFromNetwork"/>
        <source>
          <context value="vNewPatientsSrc"/>
          <element value="extension"/>
          <variable value="vFromNetworkSrc"/>
          <condition value="(url = 'fromNetwork')"/>
        </source>
        <target>
          <context value="vNewPatientsTgt"/>
          <contextType value="variable"/>
          <element value="extension"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="vFromNetworkSrc"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="copyNewPatientsCharacteristics"/>
        <source>
          <context value="vNewPatientsSrc"/>
          <element value="extension"/>
          <variable value="vCharacteristicsSrc"/>
          <condition value="(url = 'characteristics')"/>
        </source>
        <target>
          <context value="vNewPatientsTgt"/>
          <contextType value="variable"/>
          <element value="extension"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="vCharacteristicsSrc"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="copyNewPatientsAcceptingPatients"/>
        <source>
          <context value="vNewPatientsSrc"/>
          <element value="extension"/>
          <variable value="vAcceptingPatientsSrc"/>
          <condition value="(url = 'acceptingPatients')"/>
        </source>
        <target>
          <context value="vNewPatientsTgt"/>
          <contextType value="variable"/>
          <element value="extension"/>
          <variable value="vAcceptingPatientsTgt"/>
        </target>
        <rule>
          <name value="copyAcceptingPatientsUrl"/>
          <source>
            <context value="vAcceptingPatientsSrc"/>
            <element value="url"/>
            <variable value="vAcceptingPatientsUrl"/>
          </source>
          <target>
            <context value="vAcceptingPatientsTgt"/>
            <contextType value="variable"/>
            <element value="url"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="vAcceptingPatientsUrl"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="copyAcceptingPatientsValue"/>
          <source>
            <context value="vAcceptingPatientsSrc"/>
            <element value="value"/>
            <variable value="vAcceptingPatientsValueSrc"/>
            <condition value="(coding.exists())"/>
          </source>
          <target>
            <context value="vAcceptingPatientsTgt"/>
            <contextType value="variable"/>
            <element value="value"/>
            <variable value="vAcceptingPatientsValueTgt"/>
            <transform value="create"/>
            <parameter>
              <valueString value="CodeableConcept"/>
            </parameter>
          </target>
          <rule>
            <name value="translateAcceptingPatientsCoding"/>
            <source>
              <context value="vAcceptingPatientsValueSrc"/>
              <element value="coding"/>
              <variable value="vAcceptingPatientsCodingSrc"/>
              <condition value="(system = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/AcceptingPatientsCS')"/>
            </source>
            <target>
              <context value="vAcceptingPatientsValueTgt"/>
              <contextType value="variable"/>
              <element value="coding"/>
              <transform value="translate"/>
              <parameter>
                <valueId value="vAcceptingPatientsCodingSrc"/>
              </parameter>
              <parameter>
                <valueString value="http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-accepting-patients"/>
              </parameter>
              <parameter>
                <valueString value="Coding"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="copyAcceptingPatientsOtherCoding"/>
            <source>
              <context value="vAcceptingPatientsValueSrc"/>
              <element value="coding"/>
              <variable value="vAcceptingPatientsOtherCodingSrc"/>
              <condition value="(system != 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/AcceptingPatientsCS')"/>
            </source>
            <target>
              <context value="vAcceptingPatientsValueTgt"/>
              <contextType value="variable"/>
              <element value="coding"/>
              <transform value="copy"/>
              <parameter>
                <valueId value="vAcceptingPatientsOtherCodingSrc"/>
              </parameter>
            </target>
          </rule>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="copyAccessibilityExtension"/>
      <source>
        <context value="src"/>
        <element value="extension"/>
        <variable value="vAccessibilitySrc"/>
        <condition value="(url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/accessibility')"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="extension"/>
        <variable value="vAccessibilityTgt"/>
      </target>
      <rule>
        <name value="setAccessibilityUrl"/>
        <source>
          <context value="vAccessibilitySrc"/>
          <variable value="vAccessibilityForUrl"/>
        </source>
        <target>
          <context value="vAccessibilityTgt"/>
          <contextType value="variable"/>
          <element value="url"/>
          <transform value="copy"/>
          <parameter>
            <valueString value="http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-accessibility"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="copyAccessibilityValue"/>
        <source>
          <context value="vAccessibilitySrc"/>
          <element value="value"/>
          <variable value="vAccessibilityValueSrc"/>
          <condition value="(coding.exists())"/>
        </source>
        <target>
          <context value="vAccessibilityTgt"/>
          <contextType value="variable"/>
          <element value="value"/>
          <variable value="vAccessibilityValueTgt"/>
          <transform value="create"/>
          <parameter>
            <valueString value="CodeableConcept"/>
          </parameter>
        </target>
        <rule>
          <name value="translateAccessibilityCoding"/>
          <source>
            <context value="vAccessibilityValueSrc"/>
            <element value="coding"/>
            <variable value="vAccessibilityCodingSrc"/>
            <condition value="(system = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/AccessibilityCS')"/>
          </source>
          <target>
            <context value="vAccessibilityValueTgt"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <transform value="translate"/>
            <parameter>
              <valueId value="vAccessibilityCodingSrc"/>
            </parameter>
            <parameter>
              <valueString value="http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-accessibility"/>
            </parameter>
            <parameter>
              <valueString value="Coding"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="copyAccessibilityOtherCoding"/>
          <source>
            <context value="vAccessibilityValueSrc"/>
            <element value="coding"/>
            <variable value="vAccessibilityOtherCodingSrc"/>
            <condition value="(system != 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/AccessibilityCS')"/>
          </source>
          <target>
            <context value="vAccessibilityValueTgt"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="vAccessibilityOtherCodingSrc"/>
            </parameter>
          </target>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="copyRegionExtension"/>
      <source>
        <context value="src"/>
        <element value="extension"/>
        <variable value="vRegion"/>
        <condition value="(url = 'http://hl7.org/fhir/StructureDefinition/location-boundary-geojson')"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="extension"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="vRegion"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="identifier"/>
      <source>
        <context value="src"/>
        <element value="identifier"/>
        <variable value="vIdentifier"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="identifier"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="vIdentifier"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="status"/>
      <source>
        <context value="src"/>
        <element value="status"/>
        <variable value="vStatus"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="status"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="vStatus"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="operationalStatus"/>
      <source>
        <context value="src"/>
        <element value="operationalStatus"/>
        <variable value="vOperationalStatus"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="operationalStatus"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="vOperationalStatus"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="name"/>
      <source>
        <context value="src"/>
        <element value="name"/>
        <variable value="vName"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="name"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="vName"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="alias"/>
      <source>
        <context value="src"/>
        <element value="alias"/>
        <variable value="vAlias"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="alias"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="vAlias"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="description"/>
      <source>
        <context value="src"/>
        <element value="description"/>
        <variable value="vDescription"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="description"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="vDescription"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="type"/>
      <source>
        <context value="src"/>
        <element value="type"/>
        <variable value="vType"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="type"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="vType"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="copyTelecom"/>
      <source>
        <context value="src"/>
        <element value="telecom"/>
        <variable value="vTelecomSrc"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="telecom"/>
        <variable value="vTelecomTgt"/>
      </target>
      <rule>
        <name value="copyTelecomSystem"/>
        <source>
          <context value="vTelecomSrc"/>
          <element value="system"/>
          <variable value="vTelecomSystem"/>
        </source>
        <target>
          <context value="vTelecomTgt"/>
          <contextType value="variable"/>
          <element value="system"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="vTelecomSystem"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="copyTelecomValue"/>
        <source>
          <context value="vTelecomSrc"/>
          <element value="value"/>
          <variable value="vTelecomValue"/>
        </source>
        <target>
          <context value="vTelecomTgt"/>
          <contextType value="variable"/>
          <element value="value"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="vTelecomValue"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="copyTelecomUse"/>
        <source>
          <context value="vTelecomSrc"/>
          <element value="use"/>
          <variable value="vTelecomUse"/>
        </source>
        <target>
          <context value="vTelecomTgt"/>
          <contextType value="variable"/>
          <element value="use"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="vTelecomUse"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="copyTelecomRank"/>
        <source>
          <context value="vTelecomSrc"/>
          <element value="rank"/>
          <variable value="vTelecomRank"/>
        </source>
        <target>
          <context value="vTelecomTgt"/>
          <contextType value="variable"/>
          <element value="rank"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="vTelecomRank"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="copyTelecomPeriod"/>
        <source>
          <context value="vTelecomSrc"/>
          <element value="period"/>
          <variable value="vTelecomPeriod"/>
        </source>
        <target>
          <context value="vTelecomTgt"/>
          <contextType value="variable"/>
          <element value="period"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="vTelecomPeriod"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="copyTelecomContactpointAvailabletime"/>
        <source>
          <context value="vTelecomSrc"/>
          <element value="extension"/>
          <variable value="vContactpointAvailabletimeSrc"/>
          <condition value="(url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/contactpoint-availabletime')"/>
        </source>
        <target>
          <context value="vTelecomTgt"/>
          <contextType value="variable"/>
          <element value="extension"/>
          <variable value="vContactpointAvailabletimeTgt"/>
        </target>
        <rule>
          <name value="setContactpointAvailabletimeUrl"/>
          <source>
            <context value="vContactpointAvailabletimeSrc"/>
            <variable value="vContactpointAvailabletimeForUrl"/>
          </source>
          <target>
            <context value="vContactpointAvailabletimeTgt"/>
            <contextType value="variable"/>
            <element value="url"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-contactpoint-availabletime"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="copyContactpointAvailabletimeSubExt"/>
          <source>
            <context value="vContactpointAvailabletimeSrc"/>
            <element value="extension"/>
            <variable value="vContactpointAvailabletimeSubExt"/>
          </source>
          <target>
            <context value="vContactpointAvailabletimeTgt"/>
            <contextType value="variable"/>
            <element value="extension"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="vContactpointAvailabletimeSubExt"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="copyContactpointAvailabletimeValue"/>
          <source>
            <context value="vContactpointAvailabletimeSrc"/>
            <element value="value"/>
            <variable value="vContactpointAvailabletimeValue"/>
          </source>
          <target>
            <context value="vContactpointAvailabletimeTgt"/>
            <contextType value="variable"/>
            <element value="value"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="vContactpointAvailabletimeValue"/>
            </parameter>
          </target>
        </rule>
      </rule>
      <rule>
        <name value="copyTelecomViaIntermediary"/>
        <source>
          <context value="vTelecomSrc"/>
          <element value="extension"/>
          <variable value="vViaIntermediarySrc"/>
          <condition value="(url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/via-intermediary')"/>
        </source>
        <target>
          <context value="vTelecomTgt"/>
          <contextType value="variable"/>
          <element value="extension"/>
          <variable value="vViaIntermediaryTgt"/>
        </target>
        <rule>
          <name value="setViaIntermediaryUrl"/>
          <source>
            <context value="vViaIntermediarySrc"/>
            <variable value="vViaIntermediaryForUrl"/>
          </source>
          <target>
            <context value="vViaIntermediaryTgt"/>
            <contextType value="variable"/>
            <element value="url"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-via-intermediary"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="copyViaIntermediarySubExt"/>
          <source>
            <context value="vViaIntermediarySrc"/>
            <element value="extension"/>
            <variable value="vViaIntermediarySubExt"/>
          </source>
          <target>
            <context value="vViaIntermediaryTgt"/>
            <contextType value="variable"/>
            <element value="extension"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="vViaIntermediarySubExt"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="copyViaIntermediaryValue"/>
          <source>
            <context value="vViaIntermediarySrc"/>
            <element value="value"/>
            <variable value="vViaIntermediaryValue"/>
          </source>
          <target>
            <context value="vViaIntermediaryTgt"/>
            <contextType value="variable"/>
            <element value="value"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="vViaIntermediaryValue"/>
            </parameter>
          </target>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="address"/>
      <source>
        <context value="src"/>
        <element value="address"/>
        <variable value="vAddress"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="address"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="vAddress"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="physicalType"/>
      <source>
        <context value="src"/>
        <element value="physicalType"/>
        <variable value="vPhysicalType"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="physicalType"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="vPhysicalType"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="position"/>
      <source>
        <context value="src"/>
        <element value="position"/>
        <variable value="vPosition"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="position"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="vPosition"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="managingOrganization"/>
      <source>
        <context value="src"/>
        <element value="managingOrganization"/>
        <variable value="vManagingOrganization"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="managingOrganization"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="vManagingOrganization"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="partOf"/>
      <source>
        <context value="src"/>
        <element value="partOf"/>
        <variable value="vPartOf"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="partOf"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="vPartOf"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="hoursOfOperation"/>
      <source>
        <context value="src"/>
        <element value="hoursOfOperation"/>
        <variable value="vHoursOfOperation"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="hoursOfOperation"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="vHoursOfOperation"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="availabilityExceptions"/>
      <source>
        <context value="src"/>
        <element value="availabilityExceptions"/>
        <variable value="vAvailabilityExceptions"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="availabilityExceptions"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="vAvailabilityExceptions"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="endpoint"/>
      <source>
        <context value="src"/>
        <element value="endpoint"/>
        <variable value="vEndpoint"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="endpoint"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="vEndpoint"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="meta"/>
      <source>
        <context value="src"/>
        <element value="meta"/>
        <variable value="vMetaSrc"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="meta"/>
        <variable value="vMetaTgt"/>
      </target>
      <rule>
        <name value="lastUpdated"/>
        <source>
          <context value="vMetaSrc"/>
          <element value="lastUpdated"/>
          <variable value="vLastUpdated"/>
        </source>
        <target>
          <context value="vMetaTgt"/>
          <contextType value="variable"/>
          <element value="lastUpdated"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="vLastUpdated"/>
          </parameter>
        </target>
      </rule>
    </rule>
  </group>
</StructureMap>