{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/halaxy/json-schema/halaxy-practitioner-schema.json",
  "title": "Practitioner",
  "description": "A Practitioner. See https://hl7.org/fhir/r4/practitioner.html",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/halaxy-practitioner-api-openapi.yml#/components/schemas/Practitioner",
  "type": "object",
  "deprecated": false,
  "properties": {
    "identifier": {
      "description": "Identifies this practitioner across multiple systems",
      "type": "array",
      "items": {
        "$ref": "#/$defs/FhirIdentifier"
      }
    },
    "active": {
      "description": "Indicates if the user's record is in active use - changes to false if the user's profile is deactivated from the practice group",
      "type": [
        "boolean",
        "null"
      ]
    },
    "name": {
      "description": "The name/s associated with the practitioner",
      "type": "array",
      "items": {
        "$ref": "#/$defs/FhirHumanName"
      }
    },
    "telecom": {
      "description": "A unique email address linked to the practitioner",
      "type": "array",
      "items": {
        "$ref": "#/$defs/FhirContactPoint"
      }
    },
    "address": {
      "description": "Address(es) of the practitioner that are not role specific",
      "type": "array",
      "items": {
        "$ref": "#/$defs/FhirAddress"
      }
    },
    "gender": {
      "description": "male | female | other | unknown",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "male",
        "female",
        "other",
        "unknown",
        null
      ]
    },
    "birthDate": {
      "description": "The date on which the practitioner was born",
      "type": [
        "string",
        "null"
      ]
    },
    "qualification": {
      "maxItems": 1,
      "description": "The practitioner's profession in their profile",
      "type": "array",
      "items": {
        "$ref": "#/$defs/FhirQualification"
      }
    },
    "text": {
      "readOnly": true,
      "description": "Text summary of the resource, for human interpretation",
      "anyOf": [
        {
          "$ref": "#/$defs/FhirNarrative"
        },
        {
          "type": "null"
        }
      ]
    },
    "contained": {
      "readOnly": true,
      "description": "Contained, inline Resources",
      "type": "array",
      "items": {
        "$ref": "#/$defs/FhirResourceInterface"
      }
    },
    "id": {
      "readOnly": true,
      "description": "The practitioner identifier within the practice group, wherein the ID includes the appropriate prefix for internal practitioner (PR-) or professional contact (EP-)",
      "type": [
        "string",
        "null"
      ]
    },
    "meta": {
      "description": "Metadata about the resource",
      "anyOf": [
        {
          "$ref": "#/$defs/FhirResourceMeta"
        },
        {
          "type": "null"
        }
      ]
    },
    "resourceType": {
      "description": "Resource Type",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "$defs": {
    "FhirAddress": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "use": {
          "description": "The purpose of this address",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "home",
            "work",
            "billing",
            "mailing",
            null
          ]
        },
        "type": {
          "description": "Distinguishes between a physical address and mailing address",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "both",
            null
          ]
        },
        "text": {
          "description": "The full address in text format",
          "type": [
            "string",
            "null"
          ]
        },
        "line": {
          "description": "Contains the street name, number, direction and P.O. Box in the order in which lines should appear on an address label",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "city": {
          "description": "Name of city or town",
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "description": "State, province, or regions in ISO 3166-2 code (e.g., VIC, AUK, ON)",
          "type": [
            "string",
            "null"
          ]
        },
        "postalCode": {
          "description": "Postal or zip code of address",
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "description": "Country of the address in ISO 3166-1 alpha-2 code (e.g., AU, NZ, CA)",
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirCodeableConcept": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "coding": {
          "description": "defined by a terminology system",
          "type": "array",
          "items": {
            "$ref": "#/$defs/FhirCoding"
          }
        },
        "text": {
          "description": "Plain text representation of the concept",
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirCoding": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "system": {
          "format": "uri",
          "description": "Identity of the terminology system",
          "type": [
            "string",
            "null"
          ]
        },
        "code": {
          "description": "Symbol in syntax defined by the system",
          "type": [
            "string",
            "null"
          ]
        },
        "display": {
          "description": "Representation defined by the system",
          "type": [
            "string",
            "null"
          ]
        },
        "userSelected": {
          "readOnly": true,
          "description": "If this coding was chosen directly by the user",
          "type": [
            "boolean",
            "null"
          ]
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirContactPoint": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "system": {
          "description": "Type of contact detail",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "phone",
            "fax",
            "email",
            "sms",
            null
          ]
        },
        "value": {
          "description": "The actual phone number or email address",
          "type": [
            "string",
            "null"
          ]
        },
        "use": {
          "description": "Purpose of the contact detail",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "home",
            "work",
            "mobile",
            null
          ]
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirHumanName": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "use": {
          "description": "The type of name - 'official' for legal names, 'usual' for single name",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "usual",
            "official",
            null
          ]
        },
        "text": {
          "readOnly": true,
          "description": "The full name in text format",
          "type": [
            "string",
            "null"
          ]
        },
        "family": {
          "description": "Family name (often called 'surname')",
          "type": [
            "string",
            "null"
          ]
        },
        "given": {
          "description": "Given names - includes middle name/s",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "prefix": {
          "description": "Title before the patient's name",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirIdentifier": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "use": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "usual",
            "official",
            "temp",
            "secondary",
            "old",
            null
          ]
        },
        "type": {
          "description": "Description of identifier",
          "anyOf": [
            {
              "$ref": "#/$defs/FhirCodeableConcept"
            },
            {
              "type": "null"
            }
          ]
        },
        "system": {
          "description": "The namespace for the identifier value",
          "type": [
            "string",
            "null"
          ]
        },
        "value": {
          "description": "The unique identifier",
          "type": [
            "string",
            "null"
          ]
        },
        "period": {
          "description": "The time period when identifier is/was valid for use",
          "anyOf": [
            {
              "$ref": "#/$defs/FhirPeriodDateTime"
            },
            {
              "type": "null"
            }
          ]
        },
        "assigner": {
          "description": "Organization that issued id (may be just text)",
          "anyOf": [
            {
              "$ref": "#/$defs/FhirReference"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirNarrative": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "status": {
          "readOnly": true,
          "description": "Describes how the narrative was generated",
          "type": "string",
          "enum": [
            "generated",
            "extensions",
            "additional",
            "empty"
          ]
        },
        "div": {
          "readOnly": true,
          "description": "Limited xhtml content",
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirPeriodDateTime": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "start": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "end": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirQualification": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "identifier": {
          "description": "An identifier for this qualification",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/FhirIdentifier"
          }
        },
        "code": {
          "description": "Coded representation of the qualification",
          "$ref": "#/$defs/FhirCodeableConcept"
        },
        "period": {
          "description": "Period during which the qualification is valid",
          "anyOf": [
            {
              "$ref": "#/$defs/FhirPeriodDateTime"
            },
            {
              "type": "null"
            }
          ]
        },
        "issuer": {
          "description": "Organization that regulates and issues the qualification",
          "anyOf": [
            {
              "$ref": "#/$defs/FhirReference"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirReference": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "required": [
        "reference"
      ],
      "properties": {
        "reference": {
          "description": "The URL (relative or absolute) to the resource being referenced",
          "type": "string"
        },
        "type": {
          "description": "The type of resource being referenced",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "Organization",
            "Patient",
            "Practitioner",
            "PractitionerRole",
            "Appointment",
            "Coverage",
            "Invoice",
            "Communication",
            "Group",
            "DocumentReference",
            "InvoiceLine",
            "PaymentTransaction",
            "Referral",
            "ReferralDefinition",
            "Schedule",
            "Slot",
            "HealthcareService",
            "AllergyIntolerance",
            "Condition",
            "Immunization",
            "Subscription",
            "SubscriptionTopic",
            "ChargeItemDefinition",
            "ServiceRequest",
            "Medication",
            "MedicationRequest",
            "Questionnaire",
            "QuestionnaireResponse",
            "ValueSet",
            "ValueSetConcept",
            "Observation",
            "Binary",
            "Bundle",
            "OperationOutcome",
            "Parameters",
            "List",
            null
          ]
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirResourceInterface": {
      "type": "object",
      "description": "",
      "deprecated": false
    },
    "FhirResourceMeta": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "lastUpdated": {
          "readOnly": true,
          "description": "When the resource version last changed",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "profile": {
          "description": "Profiles this resource claims to conform to",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}