{
  "resourceType": "StructureDefinition",
  "id": "ca-on-eReferral-profile-PractitionerRole",
  "url": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-PractitionerRole",
  "version": "1.1.0",
  "name": "EReferralPractitionerRole",
  "title": "PractitionerRole",
  "status": "draft",
  "description": "The PractitionerRole represents the activity (such as specialty and job title) and contact information that a Practitioner may perform at an organization/location.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "PractitionerRole",
  "baseDefinition": "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-PractitionerRole",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "PractitionerRole.meta",
        "path": "PractitionerRole.meta",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.meta.profile",
        "path": "PractitionerRole.meta.profile",
        "comment": "#### **_` FOR eREFERRAL USAGE: The meta.profile = http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-PractitionerRole|1.1.0 `_**\r\n\r\nIt is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.identifier",
        "path": "PractitionerRole.identifier",
        "mustSupport": false
      },
      {
        "id": "PractitionerRole.identifier.type.coding.id",
        "path": "PractitionerRole.identifier.type.coding.id",
        "max": "0"
      },
      {
        "id": "PractitionerRole.identifier.type.coding.system",
        "path": "PractitionerRole.identifier.type.coding.system",
        "min": 1
      },
      {
        "id": "PractitionerRole.identifier.type.coding.version",
        "path": "PractitionerRole.identifier.type.coding.version",
        "max": "0"
      },
      {
        "id": "PractitionerRole.identifier.type.coding.code",
        "path": "PractitionerRole.identifier.type.coding.code",
        "min": 1
      },
      {
        "id": "PractitionerRole.identifier.type.coding.display",
        "path": "PractitionerRole.identifier.type.coding.display",
        "min": 1
      },
      {
        "id": "PractitionerRole.identifier.type.coding.userSelected",
        "path": "PractitionerRole.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "PractitionerRole.active",
        "path": "PractitionerRole.active",
        "mustSupport": false
      },
      {
        "id": "PractitionerRole.practitioner",
        "path": "PractitionerRole.practitioner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Practitioner"
            ]
          }
        ]
      },
      {
        "id": "PractitionerRole.organization",
        "path": "PractitionerRole.organization",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Organization"
            ]
          }
        ]
      },
      {
        "id": "PractitionerRole.code",
        "path": "PractitionerRole.code",
        "binding": {
          "strength": "extensible"
        }
      },
      {
        "id": "PractitionerRole.code.coding.system",
        "path": "PractitionerRole.code.coding.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.code.coding.code",
        "path": "PractitionerRole.code.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.code.coding.display",
        "path": "PractitionerRole.code.coding.display",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.specialty",
        "path": "PractitionerRole.specialty",
        "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.\r\n\r\n### To access the ValueSet <a href=\"https://tgateway.infoway-inforoute.ca/singlesubset.html?id=2.16.840.1.113883.3.239.12.38&versionid=20191129\" target=\"_blank\">click here</a>",
        "binding": {
          "strength": "extensible"
        }
      },
      {
        "id": "PractitionerRole.specialty.coding",
        "path": "PractitionerRole.specialty.coding",
        "mustSupport": false,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ontariohealth.ca/fhir/ValueSet/qualified-expertise-role-type"
        }
      },
      {
        "id": "PractitionerRole.specialty.coding.system",
        "path": "PractitionerRole.specialty.coding.system",
        "min": 1,
        "fixedUri": "https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.specialty.coding.code",
        "path": "PractitionerRole.specialty.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.specialty.coding.display",
        "path": "PractitionerRole.specialty.coding.display",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.location",
        "path": "PractitionerRole.location",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Location"
            ]
          }
        ]
      },
      {
        "id": "PractitionerRole.telecom.rank",
        "path": "PractitionerRole.telecom.rank",
        "mustSupport": false
      }
    ]
  }
}