{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/jefferson-health/refs/heads/main/json-schema/jefferson-health-practitioner-schema.json",
  "title": "Jefferson Health Plans Plan-Net Practitioner",
  "description": "Subset JSON Schema for the Da Vinci Plan-Net Practitioner profile as returned by the Jefferson Health Plans Provider Directory FHIR R4 endpoint.",
  "type": "object",
  "required": ["resourceType", "name"],
  "properties": {
    "resourceType": { "type": "string", "const": "Practitioner" },
    "id": { "type": "string" },
    "identifier": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "system": { "type": "string", "format": "uri" },
          "value": { "type": "string" }
        }
      }
    },
    "active": { "type": "boolean" },
    "name": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "use": { "type": "string" },
          "family": { "type": "string" },
          "given": { "type": "array", "items": { "type": "string" } }
        }
      }
    },
    "telecom": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "system": { "type": "string" },
          "value": { "type": "string" },
          "use": { "type": "string" }
        }
      }
    },
    "gender": { "type": "string", "enum": ["male","female","other","unknown"] }
  }
}
