<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="1800de7f-1f5f-46d6-86bc-33888162c5c6" />
  <text>
    <status value="empty" />
    <div xmlns="http://www.w3.org/1999/xhtml">No human-readable text provided in this case.</div>
  </text>
  <url value="https://health.gov.on.ca/sadie/fhir/StructureDefinition/FlexFormsRole" />
  <version value="1.0.0" />
  <name value="FlexFormsRole" />
  <title value="FlexFormsRole" />
  <status value="active" />
  <description value="This is a Practitioner Role in the FlexForms system." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="servd" />
    <uri value="http://www.omg.org/spec/ServD/1.0/" />
    <name value="ServD" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="PractitionerRole" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
  <derivation value="constraint" />
  <differential>
    <element id="PractitionerRole">
      <path value="PractitionerRole" />
      <definition value="#### **_`FOR SADIE USE:  This is for all roles in the application.  Users can have more than one role.`_**&#xA;&#xA;A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time." />
    </element>
    <element id="PractitionerRole.extension">
      <path value="PractitionerRole.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="PractitionerRole.extension:RelatedPractitionerRole">
      <path value="PractitionerRole.extension" />
      <sliceName value="RelatedPractitionerRole" />
      <definition value="#### **_` FOR SADIE USE:  This is the id of the related Practitioner Role.`_**" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://health.gov.on.ca/sadie/fhir/StructureDefinition/RelatedPractitionerRole" />
      </type>
    </element>
    <element id="PractitionerRole.extension:RelatedRequestorRole">
      <path value="PractitionerRole.extension" />
      <sliceName value="RelatedRequestorRole" />
      <definition value="#### **_` FOR SADIE USE:  This is the id of the related Requestor Role.`_**" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://health.gov.on.ca/sadie/fhir/StructureDefinition/RelatedRequestorRole" />
      </type>
    </element>
    <element id="PractitionerRole.extension:TeamMemberName">
      <path value="PractitionerRole.extension" />
      <sliceName value="TeamMemberName" />
      <definition value="#### **_` FOR SADIE USE:  This is used by the User Maintenance Screen. This the name a Requestor gives to a member of their team. It can be nickname or whatever the requestor wants and doesn’t have to correlate with their name in EBSE`_**" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://health.gov.on.ca/sadie/fhir/StructureDefinition/TeamMemberName" />
      </type>
    </element>
    <element id="PractitionerRole.extension:GeneralConsent">
      <path value="PractitionerRole.extension" />
      <sliceName value="GeneralConsent" />
      <definition value="#### **_` FOR SADIE USE:  The Terms Of Use Consent that the user creating/updating the record agreed to. The user needs to agree to the Terms of Use everytime they create of update the record.`_**" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://health.gov.on.ca/sadie/fhir/StructureDefinition/RelatedGeneralConsent" />
      </type>
    </element>
    <element id="PractitionerRole.extension:TeamMaintenanceConsent">
      <path value="PractitionerRole.extension" />
      <sliceName value="TeamMaintenanceConsent" />
      <definition value="#### **_` FOR SADIE USE:  The Terms Of Use Consent that the user agreed to when creating/updating this record using  Team Maintenance.`_**" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://health.gov.on.ca/sadie/fhir/StructureDefinition/RelatedTeamMaintenanceConsent" />
      </type>
    </element>
    <element id="PractitionerRole.identifier">
      <path value="PractitionerRole.identifier" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.active">
      <path value="PractitionerRole.active" />
      <definition value="#### **_`FOR SADIE USE: Missing or True means the applicant record is active.`_**" />
    </element>
    <element id="PractitionerRole.period">
      <path value="PractitionerRole.period" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.practitioner">
      <path value="PractitionerRole.practitioner" />
      <definition value="#### **_` FOR SADIE USE:  This is either a user or a potential user (only GoSecure email address)`_**&#xA;&#xA;Practitioner that is able to provide the defined services for the organization." />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://health.gov.on.ca/sadie/fhir/StructureDefinition/FlexFormUser" />
        <targetProfile value="https://health.gov.on.ca/sadie/fhir/StructureDefinition/FlexFormPotentialUser" />
      </type>
    </element>
    <element id="PractitionerRole.organization">
      <path value="PractitionerRole.organization" />
      <definition value="#### **_` FOR SADIE USE:   This is the Program Area for this Role`_**&#xA;&#xA;The organization where the Practitioner performs the roles associated." />
      <type>
        <code value="Reference" />
        <targetProfile value="https://health.gov.on.ca/sadie/fhir/StructureDefinition/ProgramArea" />
      </type>
    </element>
    <element id="PractitionerRole.code">
      <path value="PractitionerRole.code" />
      <definition value="#### **_`FOR SADIE USE:  This is an authorization role ( ODSP-REQUESTOR, ODSP-DELEGATE, etc) .`_**&#xA;&#xA;&#xA;Roles which this practitioner is authorized to perform for the organization." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="PractitionerRole.code.coding.system">
      <path value="PractitionerRole.code.coding.system" />
      <definition value="#### **_`FOR SADIE USE:  This is always the SADIE internal code system https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete`_**&#xA;&#xA;The identification of the code system that defines the meaning of the symbol in the code." />
      <min value="1" />
      <fixedUri value="https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete" />
    </element>
    <element id="PractitionerRole.code.coding.version">
      <path value="PractitionerRole.code.coding.version" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.code.coding.code">
      <path value="PractitionerRole.code.coding.code" />
      <definition value="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)." />
      <min value="1" />
      <binding>
        <strength value="required" />
        <valueSet value="http://health.gov.on.ca/sadie/fhir/ValueSet/FlexForms-AuthorizationRoles" />
      </binding>
    </element>
    <element id="PractitionerRole.code.coding.display">
      <path value="PractitionerRole.code.coding.display" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.code.coding.userSelected">
      <path value="PractitionerRole.code.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.code.text">
      <path value="PractitionerRole.code.text" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.specialty">
      <path value="PractitionerRole.specialty" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.location">
      <path value="PractitionerRole.location" />
      <definition value="#### **_` FOR SADIE USE:   These are Requestor's office locations`_**&#xA;&#xA;The location(s) at which this practitioner provides care." />
      <type>
        <code value="Reference" />
        <targetProfile value="https://health.gov.on.ca/sadie/fhir/StructureDefinition/RequestorLocation" />
      </type>
    </element>
    <element id="PractitionerRole.healthcareService">
      <path value="PractitionerRole.healthcareService" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.telecom">
      <path value="PractitionerRole.telecom" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.availableTime">
      <path value="PractitionerRole.availableTime" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.notAvailable">
      <path value="PractitionerRole.notAvailable" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.availabilityExceptions">
      <path value="PractitionerRole.availabilityExceptions" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.endpoint">
      <path value="PractitionerRole.endpoint" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>