{
  "resourceType": "StructureDefinition",
  "id": "PractitionerRolePSAB",
  "url": "https://www.alberta.ca/fhir/psab/StructureDefinition/PractitionerRolePSAB",
  "version": "1.2.0",
  "name": "PractitionerRolePSAB",
  "title": "PractitionerRole (PS-AB)",
  "status": "draft",
  "description": "This profile defines a set of constraints to the FHIR PractitionerRole resource for use in Alberta Patient Summaries (PS-AB). It includes constraints that represent the minimum expectations for the PractitionerRole resource when used in the PS-AB Composition profile or in one of the referred resources.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "PractitionerRole",
  "baseDefinition": "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/practitionerrole-ca-ps",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "PractitionerRole",
        "path": "PractitionerRole",
        "comment": "PractitionerRole resources included in Alberta Patient Summary Document Bundles have rules that certain attributes are not to be contained in PractitionerRole resource. These are mechanically enforced through invariants at the PS-AB Bundle level."
      },
      {
        "id": "PractitionerRole.active",
        "path": "PractitionerRole.active",
        "comment": "If PractitionerRole.active is populated it must always be Active at the time of patient summary submission",
        "patternBoolean": true
      },
      {
        "id": "PractitionerRole.practitioner",
        "path": "PractitionerRole.practitioner",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.alberta.ca/fhir/psab/StructureDefinition/PractitionerPSAB"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.practitioner.reference",
        "path": "PractitionerRole.practitioner.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.code",
        "path": "PractitionerRole.code",
        "binding": {
          "strength": "preferred",
          "valueSet": "https://www.alberta.ca/fhir/abcore/ValueSet/provider-role-type-ab"
        }
      },
      {
        "id": "PractitionerRole.specialty",
        "path": "PractitionerRole.specialty",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.location",
        "path": "PractitionerRole.location",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.alberta.ca/fhir/psab/StructureDefinition/LocationPSAB"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.location.reference",
        "path": "PractitionerRole.location.reference",
        "min": 1,
        "mustSupport": true
      }
    ]
  }
}