<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="pr-practitioner-role" />
  <meta>
    <source value="https://www.icanbwell.com/fhir_profile_definitions" />
    <security>
      <system value="https://www.icanbwell.com/owner" />
      <code value="bwell" />
    </security>
    <security>
      <system value="https://www.icanbwell.com/access" />
      <code value="bwell" />
    </security>
  </meta>
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">Enter you narrative here</div>
  </text>
  <url value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/pr-practitioner-role" />
  <version value="1.2" />
  <name value="PractitionerRole" />
  <title value="Profile: Practitioner Role" />
  <status value="active" />
  <experimental value="false" />
  <date value="2024-03-26T20:41:40.2059926+00:00" />
  <publisher value="b.Well Connected Health" />
  <description value="Included but not limited to: practitioner specialties, practitioner's location, appointment types, healthcare services, accepted insurance." />
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166" />
      <code value="US" />
      <display value="United States of America" />
    </coding>
    <text value="United States of America" />
  </jurisdiction>
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="true" />
  <type value="PractitionerRole" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
  <derivation value="constraint" />
  <differential>
    <element id="PractitionerRole.id">
      <path value="PractitionerRole.id" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.meta">
      <path value="PractitionerRole.meta" />
      <min value="1" />
      <type>
        <code value="Meta" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/de-meta" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.extension:accepted-patients">
      <path value="PractitionerRole.extension" />
      <sliceName value="accepted-patients" />
      <short value="Characteristics of patients accepted by this provider" />
      <definition value="Combines a DaVinci extension and custom content" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/ex-accepted-patients" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="PractitionerRole.extension:accepted-patients.extension:fromNetwork">
      <path value="PractitionerRole.extension.extension" />
      <sliceName value="fromNetwork" />
    </element>
    <element id="PractitionerRole.extension:accepted-patients.extension:fromNetwork.value[x]">
      <path value="PractitionerRole.extension.extension.value[x]" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-Network" />
        <targetProfile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/pr-network-organization" />
      </type>
    </element>
    <element id="PractitionerRole.extension:network-reference">
      <path value="PractitionerRole.extension" />
      <sliceName value="network-reference" />
      <definition value="If an insurance plan extension is also present, the insurance plan presumably belongs to the network." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/ex-network-reference" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="PractitionerRole.extension:insurance-plan">
      <path value="PractitionerRole.extension" />
      <sliceName value="insurance-plan" />
      <short value="An insurance plan accepted by the practitioner at the given facility" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/ex-insurance-plan" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="PractitionerRole.identifier">
      <path value="PractitionerRole.identifier" />
      <slicing>
        <description value="slice by type" />
        <rules value="open" />
      </slicing>
      <type>
        <code value="Identifier" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/de-identifier" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.identifier:NPI">
      <path value="PractitionerRole.identifier" />
      <sliceName value="NPI" />
      <short value="The Practitioner's NPI" />
      <min value="1" />
      <max value="1" />
      <patternIdentifier>
        <use value="official" />
        <type>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
            <code value="NPI" />
          </coding>
        </type>
        <system value="http://hl7.org/fhir/sid/us-npi" />
      </patternIdentifier>
    </element>
    <element id="PractitionerRole.active">
      <path value="PractitionerRole.active" />
      <definition value="Default to active" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.period">
      <path value="PractitionerRole.period" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.practitioner">
      <path value="PractitionerRole.practitioner" />
      <comment value="References to resources with id = NPI must be appended with `|nppes`" />
      <alias value="provider" />
      <alias value="physician" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/pr-practitioner" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.organization">
      <path value="PractitionerRole.organization" />
      <short value="A healthcare location's managing organization" />
      <comment value="References to resources with id = NPI must be appended with `|nppes`" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/pr-healthcare-organization" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.code">
      <path value="PractitionerRole.code" />
      <slicing>
        <description value="slice by type" />
        <rules value="open" />
      </slicing>
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/de-codeable-concept" />
      </type>
      <example>
        <label value="PCP provider" />
        <valueCodeableConcept id="characteristic">
          <coding id="primary-care">
            <system value="http://nucc.org/provider-characteristics" />
            <version value="5.0" />
            <code value="13" />
            <display value="This is a primary care provider" />
          </coding>
        </valueCodeableConcept>
      </example>
      <mustSupport value="true" />
      <binding>
        <strength value="example" />
        <valueSet value="https://fhir.icanbwell.com/4_0_0/ValueSet/vs-practitioner-role-code" />
      </binding>
    </element>
    <element id="PractitionerRole.code:primary-care-indicator">
      <path value="PractitionerRole.code" />
      <sliceName value="primary-care-indicator" />
      <short value="Indicates the practitioner is considered primary care" />
      <definition value="NUCC Characteristic code to indicate Primary Care" />
      <alias value="is-pcp" />
      <alias value="primary-care" />
      <patternCodeableConcept>
        <coding>
          <system value="https://nucc.org/provider-characteristics" />
          <version value="5.0" />
          <code value="13" />
          <display value="Primary Care" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="PractitionerRole.code:employed">
      <path value="PractitionerRole.code" />
      <sliceName value="employed" />
      <short value="Indicates practitioner is employed by the facility" />
      <requirements value="Influences the &quot;client_preferred&quot; element in PSS" />
      <max value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="https://fhir.icanbwell.com/4_0_0/CodeSystem/vs-practitioner-role-code" />
          <code value="employed" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="PractitionerRole.specialty">
      <path value="PractitionerRole.specialty" />
      <label value="specialty" />
      <slicing>
        <description value="slice by type" />
        <rules value="open" />
      </slicing>
      <short value="A practitioner's specialties" />
      <definition value="Includes: NUCC taxonomy codes, specialty aliases, etc" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/de-codeable-concept" />
      </type>
      <example>
        <label value="Example specialty" />
        <valueCodeableConcept id="1120">
          <coding id="1120">
            <system value="https://www.kyruus.com/specialty" />
            <code value="1120" />
            <display value="Pediatrics" />
          </coding>
        </valueCodeableConcept>
      </example>
      <mustSupport value="true" />
      <binding>
        <strength value="preferred" />
        <description value="Provider specialties" />
        <valueSet value="https://fhir.icanbwell.com/4_0_0/ValueSet/vs-provider-specialty" />
      </binding>
    </element>
    <element id="PractitionerRole.specialty:roster-specialty">
      <path value="PractitionerRole.specialty" />
      <sliceName value="roster-specialty" />
      <short value="Specailty values provided from a roster source" />
    </element>
    <element id="PractitionerRole.specialty:taxonomy">
      <path value="PractitionerRole.specialty" />
      <sliceName value="taxonomy" />
      <short value="NUCC taxonomy code" />
      <definition value="Healthcare specialty NUCC taxonomy code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://nucc.org/provider-taxonomy" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="PractitionerRole.location">
      <path value="PractitionerRole.location" />
      <label value="location" />
      <short value="The location where this role is performed" />
      <comment value="References to resources with id = NPI must be appended with `|nppes`" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/pr-healthcare-location" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.healthcareService">
      <path value="PractitionerRole.healthcareService" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/pr-healthcare-service" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.telecom">
      <path value="PractitionerRole.telecom" />
      <type>
        <code value="ContactPoint" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/de-contact-point" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.endpoint">
      <path value="PractitionerRole.endpoint" />
      <requirements value="https://icanbwell.atlassian.net/wiki/spaces/HEL/pages/4111434192/FDR+Practitioner-Health+System#Decision-complete" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>