@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 -------------------------------------------------------------------

<http://hl7.org/fhir/us/ndh/StructureMap/PlanNetToNdhPractitionerRoleSM> a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "PlanNetToNdhPractitionerRoleSM"] ; # 
  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 PlanNetToNdhPractitionerRoleSM</b></p><a name=\"PlanNetToNdhPractitionerRoleSM\"> </a><a name=\"hcPlanNetToNdhPractitionerRoleSM\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>http://hl7.org/fhir/us/ndh/StructureMap/PlanNetToNdhPractitionerRoleSM<span style=\"color: navy\">\" = \"</span>PlanNetToNdhPractitionerRoleSM<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 PractitionerRole to NDH PractitionerRole.</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-PractitionerRole.html\" title=\"Plan-Net PractitionerRole\">http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-PractitionerRole</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-PractitionerRole.html\" title=\"NDH PractitionerRole\">http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-PractitionerRole</a><span style=\"color: navy\">\" </span><b>alias </b>Target <b>as </b><b>target</b>#xD;\n#xD;\n<b>group </b>PlanNetToNdhPractitionerRole<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>PractitionerRole, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>PractitionerRole<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  <span style=\"color: navy\">// </span><span style=\"color: green\">Plan-Net PractitionerRole.network maps to NDH network extension.</span>#xD;\n  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\">vNetworkReferenceSrc</span><b> where </b>(url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/network-reference')<span style=\"color: navy\"><b> -&gt; </b></span>tgt.extension<b> as </b><span style=\"color: maroon\">vNetworkReferenceTgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    vNetworkReferenceSrc<b> as </b><span style=\"color: maroon\">vNetworkReferenceForUrl</span><span style=\"color: navy\"><b> -&gt; </b></span>vNetworkReferenceTgt.url = <span style=\"color: blue\">'http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-network-reference'</span> <i>\"setNetworkReferenceUrl\"</i><span style=\"color: navy\">;</span>#xD;\n    vNetworkReferenceSrc.value<b> as </b><span style=\"color: maroon\">vNetworkReferenceValue</span><span style=\"color: navy\"><b> -&gt; </b></span>vNetworkReferenceTgt.value = <span style=\"color: maroon\">vNetworkReferenceValue</span> <i>\"copyNetworkReferenceValue\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"copyNetworkReferenceExtension\"</i><span style=\"color: navy\">;</span>#xD;\n  src.extension<b> as </b><span style=\"color: maroon\">vQualificationSrc</span><b> where </b>(url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/qualification')<span style=\"color: navy\"><b> -&gt; </b></span>tgt.extension<b> as </b><span style=\"color: maroon\">vQualificationTgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    vQualificationSrc<b> as </b><span style=\"color: maroon\">vQualificationForUrl</span><span style=\"color: navy\"><b> -&gt; </b></span>vQualificationTgt.url = <span style=\"color: blue\">'http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-qualification'</span> <i>\"setQualificationUrl\"</i><span style=\"color: navy\">;</span>#xD;\n    vQualificationSrc.extension<b> as </b><span style=\"color: maroon\">vQualificationSubExt</span><span style=\"color: navy\"><b> -&gt; </b></span>vQualificationTgt.extension = <span style=\"color: maroon\">vQualificationSubExt</span> <i>\"copyQualificationSubExt\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"copyQualificationExtension\"</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.healthcareService<b> as </b><span style=\"color: maroon\">vHealthcareService</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.healthcareService = <span style=\"color: maroon\">vHealthcareService</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: blue\">true</span><span style=\"color: navy\">;</span>#xD;\n  src.period<b> as </b><span style=\"color: maroon\">vPeriod</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.period = <span style=\"color: maroon\">vPeriod</span><span style=\"color: navy\">;</span>#xD;\n  src.practitioner<b> as </b><span style=\"color: maroon\">vPractitioner</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.practitioner = <span style=\"color: maroon\">vPractitioner</span><span style=\"color: navy\">;</span>#xD;\n  src.organization<b> as </b><span style=\"color: maroon\">vOrganization</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.organization = <span style=\"color: maroon\">vOrganization</span><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Translate Plan-Net PractitionerRole codes to the NDH code system.</span>#xD;\n  src.code<b> as </b><span style=\"color: maroon\">vCodeSrc</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.code<b> as </b><span style=\"color: maroon\">vCodeTgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    vCodeSrc.text<b> as </b><span style=\"color: maroon\">vCodeText</span><span style=\"color: navy\"><b> -&gt; </b></span>vCodeTgt.text = <span style=\"color: maroon\">vCodeText</span> <i>\"copyCodeText\"</i><span style=\"color: navy\">;</span>#xD;\n    vCodeSrc.coding<b> as </b><span style=\"color: maroon\">vCodeCodingSrc</span><b> where </b>(system = 'http://terminology.hl7.org/CodeSystem/practitioner-role')<span style=\"color: navy\"><b> -&gt; </b></span>vCodeTgt.coding = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">vCodeCodingSrc</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-practitioner-role'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span> <i>\"translateCodeCoding\"</i><span style=\"color: navy\">;</span>#xD;\n    vCodeSrc.coding<b> as </b><span style=\"color: maroon\">vCodeOtherCodingSrc</span><b> where </b>(system != 'http://terminology.hl7.org/CodeSystem/practitioner-role')<span style=\"color: navy\"><b> -&gt; </b></span>vCodeTgt.coding = <span style=\"color: maroon\">vCodeOtherCodingSrc</span> <i>\"copyCodeOtherCoding\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"copyCode\"</i><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.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.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.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.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.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/PlanNetToNdhPractitionerRoleSM"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/us/ndh/StructureMap/PlanNetToNdhPractitionerRoleSM>
  ] ; # 
  fhir:version [ fhir:v "2.0.0-current"] ; # 
  fhir:name [ fhir:v "PlanNetToNdhPractitionerRoleSM"] ; # 
  fhir:title [ fhir:v "This StructureMap defines the mapping from Plan-Net PractitionerRole to NDH PractitionerRole."] ; # 
  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 PractitionerRole to NDH PractitionerRole."] ; # 
  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-PractitionerRole"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-PractitionerRole>
     ] ;
     fhir:mode [ fhir:v "source" ] ;
     fhir:alias [ fhir:v "Source" ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-PractitionerRole"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-PractitionerRole>
     ] ;
     fhir:mode [ fhir:v "target" ] ;
     fhir:alias [ fhir:v "Target" ]
  ] ) ; # 
  fhir:group ( [
     fhir:name [ fhir:v "PlanNetToNdhPractitionerRole" ] ;
     fhir:typeMode [ fhir:v "none" ] ;
     fhir:input ( [
       fhir:name [ fhir:v "src" ] ;
       fhir:type [ fhir:v "PractitionerRole" ] ;
       fhir:mode [ fhir:v "source" ]
     ] [
       fhir:name [ fhir:v "tgt" ] ;
       fhir:type [ fhir:v "PractitionerRole" ] ;
       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 "copyNetworkReferenceExtension" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "src" ] ;
         fhir:element [ fhir:v "extension" ] ;
         fhir:variable [ fhir:v "vNetworkReferenceSrc" ] ;
         fhir:condition [ fhir:v "(url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/network-reference')" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "extension" ] ;
         fhir:variable [ fhir:v "vNetworkReferenceTgt" ]
       ] ) ;
       fhir:rule ( [
         fhir:name [ fhir:v "setNetworkReferenceUrl" ] ;
         fhir:source ( [
           fhir:context [ fhir:v "vNetworkReferenceSrc" ] ;
           fhir:variable [ fhir:v "vNetworkReferenceForUrl" ]
         ] ) ;
         fhir:target ( [
           fhir:context [ fhir:v "vNetworkReferenceTgt" ] ;
           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-network-reference"
             ]
           ] )
         ] )
       ] [
         fhir:name [ fhir:v "copyNetworkReferenceValue" ] ;
         fhir:source ( [
           fhir:context [ fhir:v "vNetworkReferenceSrc" ] ;
           fhir:element [ fhir:v "value" ] ;
           fhir:variable [ fhir:v "vNetworkReferenceValue" ]
         ] ) ;
         fhir:target ( [
           fhir:context [ fhir:v "vNetworkReferenceTgt" ] ;
           fhir:contextType [ fhir:v "variable" ] ;
           fhir:element [ fhir:v "value" ] ;
           fhir:transform [ fhir:v "copy" ] ;
           fhir:parameter ( [
             fhir:value [
               a fhir:Id ;
               fhir:v "vNetworkReferenceValue"
             ]
           ] )
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "copyQualificationExtension" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "src" ] ;
         fhir:element [ fhir:v "extension" ] ;
         fhir:variable [ fhir:v "vQualificationSrc" ] ;
         fhir:condition [ fhir:v "(url = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/qualification')" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "extension" ] ;
         fhir:variable [ fhir:v "vQualificationTgt" ]
       ] ) ;
       fhir:rule ( [
         fhir:name [ fhir:v "setQualificationUrl" ] ;
         fhir:source ( [
           fhir:context [ fhir:v "vQualificationSrc" ] ;
           fhir:variable [ fhir:v "vQualificationForUrl" ]
         ] ) ;
         fhir:target ( [
           fhir:context [ fhir:v "vQualificationTgt" ] ;
           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-qualification"
             ]
           ] )
         ] )
       ] [
         fhir:name [ fhir:v "copyQualificationSubExt" ] ;
         fhir:source ( [
           fhir:context [ fhir:v "vQualificationSrc" ] ;
           fhir:element [ fhir:v "extension" ] ;
           fhir:variable [ fhir:v "vQualificationSubExt" ]
         ] ) ;
         fhir:target ( [
           fhir:context [ fhir:v "vQualificationTgt" ] ;
           fhir:contextType [ fhir:v "variable" ] ;
           fhir:element [ fhir:v "extension" ] ;
           fhir:transform [ fhir:v "copy" ] ;
           fhir:parameter ( [
             fhir:value [
               a fhir:Id ;
               fhir:v "vQualificationSubExt"
             ]
           ] )
         ] )
       ] )
     ] [
       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 "healthcareService" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "src" ] ;
         fhir:element [ fhir:v "healthcareService" ] ;
         fhir:variable [ fhir:v "vHealthcareService" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "healthcareService" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "vHealthcareService"
           ]
         ] )
       ] )
     ] [
       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:Boolean ;
             fhir:v true
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "period" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "src" ] ;
         fhir:element [ fhir:v "period" ] ;
         fhir:variable [ fhir:v "vPeriod" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "period" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "vPeriod"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "practitioner" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "src" ] ;
         fhir:element [ fhir:v "practitioner" ] ;
         fhir:variable [ fhir:v "vPractitioner" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "practitioner" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "vPractitioner"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "organization" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "src" ] ;
         fhir:element [ fhir:v "organization" ] ;
         fhir:variable [ fhir:v "vOrganization" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "organization" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "vOrganization"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "copyCode" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "src" ] ;
         fhir:element [ fhir:v "code" ] ;
         fhir:variable [ fhir:v "vCodeSrc" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "code" ] ;
         fhir:variable [ fhir:v "vCodeTgt" ]
       ] ) ;
       fhir:rule ( [
         fhir:name [ fhir:v "copyCodeText" ] ;
         fhir:source ( [
           fhir:context [ fhir:v "vCodeSrc" ] ;
           fhir:element [ fhir:v "text" ] ;
           fhir:variable [ fhir:v "vCodeText" ]
         ] ) ;
         fhir:target ( [
           fhir:context [ fhir:v "vCodeTgt" ] ;
           fhir:contextType [ fhir:v "variable" ] ;
           fhir:element [ fhir:v "text" ] ;
           fhir:transform [ fhir:v "copy" ] ;
           fhir:parameter ( [
             fhir:value [
               a fhir:Id ;
               fhir:v "vCodeText"
             ]
           ] )
         ] )
       ] [
         fhir:name [ fhir:v "translateCodeCoding" ] ;
         fhir:source ( [
           fhir:context [ fhir:v "vCodeSrc" ] ;
           fhir:element [ fhir:v "coding" ] ;
           fhir:variable [ fhir:v "vCodeCodingSrc" ] ;
           fhir:condition [ fhir:v "(system = 'http://terminology.hl7.org/CodeSystem/practitioner-role')" ]
         ] ) ;
         fhir:target ( [
           fhir:context [ fhir:v "vCodeTgt" ] ;
           fhir:contextType [ fhir:v "variable" ] ;
           fhir:element [ fhir:v "coding" ] ;
           fhir:transform [ fhir:v "translate" ] ;
           fhir:parameter ( [
             fhir:value [
               a fhir:Id ;
               fhir:v "vCodeCodingSrc"
             ]
           ] [
             fhir:value [
               a fhir:String ;
               fhir:v "http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-practitioner-role"
             ]
           ] [
             fhir:value [
               a fhir:String ;
               fhir:v "Coding"
             ]
           ] )
         ] )
       ] [
         fhir:name [ fhir:v "copyCodeOtherCoding" ] ;
         fhir:source ( [
           fhir:context [ fhir:v "vCodeSrc" ] ;
           fhir:element [ fhir:v "coding" ] ;
           fhir:variable [ fhir:v "vCodeOtherCodingSrc" ] ;
           fhir:condition [ fhir:v "(system != 'http://terminology.hl7.org/CodeSystem/practitioner-role')" ]
         ] ) ;
         fhir:target ( [
           fhir:context [ fhir:v "vCodeTgt" ] ;
           fhir:contextType [ fhir:v "variable" ] ;
           fhir:element [ fhir:v "coding" ] ;
           fhir:transform [ fhir:v "copy" ] ;
           fhir:parameter ( [
             fhir:value [
               a fhir:Id ;
               fhir:v "vCodeOtherCodingSrc"
             ]
           ] )
         ] )
       ] )
     ] [
       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 "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 "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 "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 "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 "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"
             ]
           ] )
         ] )
       ] )
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

