{
  "resourceType": "StructureDefinition",
  "id": "profile-practitioner",
  "url": "http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-practitioner",
  "version": "1.1.2",
  "name": "PractitionerProfile",
  "title": "Practitioner Profile (General)",
  "status": "draft",
  "date": "2026-01-09",
  "publisher": "HL7 Canada - FHIR Implementation Work Group",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "https://infocentral.infoway-inforoute.ca/en/collaboration/wg/fhir-implementations"
        }
      ]
    }
  ],
  "description": "Proposed constraints and extensions on the Practitioner Resource for general use.",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "CA"
        }
      ]
    }
  ],
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "servd",
      "uri": "http://www.omg.org/spec/ServD/1.0/",
      "name": "ServD"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Practitioner",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Practitioner",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Practitioner",
        "path": "Practitioner",
        "short": "Practitioner Profile",
        "definition": "The Practitioner Profile is based upon the core FHIR Practitioner Resource"
      },
      {
        "id": "Practitioner.identifier",
        "path": "Practitioner.identifier",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-identifier"
            ]
          }
        ]
      },
      {
        "id": "Practitioner.name",
        "path": "Practitioner.name",
        "constraint": [
          {
            "key": "ca-baseline-practitioner-name",
            "severity": "error",
            "human": "Either name.given and/or name.family SHALL be present or a Data Absent Reason Extension SHALL be present",
            "expression": "(family.exists() or given.exists()) xor extension.where(url='http://hl7.org/fhir/StructureDefinition/data-absent-reason').exists()",
            "xpath": "(/f:extension/@url='http://hl7.org/fhir/StructureDefinition/data-absent-reason' and not(/f:family or /f:given)) or (not(/f:extension/@url='http://hl7.org/fhir/StructureDefinition/data-absent-reason') and (/f:family or /f:given))"
          }
        ]
      },
      {
        "id": "Practitioner.name.family",
        "path": "Practitioner.name.family",
        "condition": [
          "ca-baseline-practitioner-name"
        ]
      },
      {
        "id": "Practitioner.name.given",
        "path": "Practitioner.name.given",
        "condition": [
          "ca-baseline-practitioner-name"
        ]
      },
      {
        "id": "Practitioner.address.extension",
        "path": "Practitioner.address.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Practitioner.address.extension:preferred",
        "path": "Practitioner.address.extension",
        "sliceName": "preferred",
        "short": "HL7 Preferred Address Flag extension",
        "definition": "Flag denoting whether parent address item is preferred",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/iso21090-preferred"
            ]
          }
        ]
      },
      {
        "id": "Practitioner.qualification",
        "path": "Practitioner.qualification",
        "definition": "A code system for the degree or educational rank that the credential specifies. May also apply to an Expertise type.",
        "comment": "The binding strength of this element is [Preferred](https://www.hl7.org/fhir/terminologies.html#strength), meaning that codes are encouraged to draw from the QualifiedRoleType code system for interoperability purposes but are not required to do so to be considered conformant.",
        "binding": {
          "strength": "example",
          "description": "A code system for the degree or educational rank that the credential specifies",
          "valueSet": "https://fhir.infoway-inforoute.ca/ValueSet/qualifiedroletype"
        }
      }
    ]
  }
}