{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/nextgen-healthcare/main/json-schema/nextgen-healthcare-practitioner-schema.json",
  "title": "Practitioner",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nextgen-healthcare-practitioner-api-openapi.yml#/components/schemas/Practitioner",
  "type": "object",
  "properties": {
    "responseType": {
      "type": "string",
      "minLength": 1
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "description": "id of the resource"
    },
    "meta": {
      "type": "object",
      "description": "Metadata about the resource",
      "properties": {
        "profile": {
          "description": "Profiles this resource claims to conform to",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "profile"
      ]
    },
    "identifier": {
      "description": "An identifier for the person as this agent",
      "type": "array",
      "uniqueItems": true,
      "minItems": 1,
      "items": {
        "type": "object",
        "properties": {
          "system": {
            "type": "string",
            "minLength": 1,
            "description": "The namespace for the identifier value"
          },
          "value": {
            "type": "string",
            "minLength": 1,
            "description": "The value that is unique"
          }
        },
        "required": [
          "system",
          "value"
        ]
      }
    },
    "name": {
      "type": "array",
      "description": "The name(s) associated with the practitioner",
      "items": {
        "type": "object",
        "properties": {
          "family": {
            "type": "string",
            "description": "Family name (often called 'Surname')"
          },
          "given": {
            "type": "array",
            "description": "Given names (not always 'first'). Includes middle names",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "family"
        ]
      }
    },
    "active": {
      "type": "boolean",
      "description": "Whether this practitioner's record is in active use"
    },
    "address": {
      "type": "array",
      "description": "Address(es) of the practitioner that are not role specific (typically home address)",
      "items": {
        "type": "object",
        "properties": {
          "line": {
            "type": "array",
            "description": "Street name, number, direction & P.O. Box etc.",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "type": "string",
            "description": "Name of city, town etc."
          },
          "state": {
            "type": "string",
            "description": "Sub-unit of country"
          },
          "postalCode": {
            "type": "string",
            "description": "Postal code for area"
          }
        },
        "required": [
          "city",
          "state",
          "postalCode"
        ]
      }
    }
  },
  "required": [
    "responseType",
    "id",
    "meta",
    "identifier",
    "name",
    "active",
    "address"
  ]
}