{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/axuall/json-schema/axuall-paginated-results-schema-subscriber-group-task-schema-schema.json",
  "title": "PaginatedResultsSchema[SubscriberGroupTaskSchema]",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axuall-tasks-api-openapi.yml#/components/schemas/PaginatedResultsSchema_SubscriberGroupTaskSchema_",
  "properties": {
    "total_results": {
      "type": "integer",
      "title": "Total Results",
      "description": "The total number of records available"
    },
    "results": {
      "items": {
        "$ref": "#/$defs/SubscriberGroupTaskSchema"
      },
      "type": "array",
      "title": "Results",
      "description": "The list of records returned by the search criteria"
    }
  },
  "type": "object",
  "required": [
    "total_results",
    "results"
  ],
  "$defs": {
    "SubscriberGroupTaskSchema": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name",
          "description": "Name of the task"
        },
        "description": {
          "type": "string",
          "title": "Description",
          "description": "A description of the subscriber group task"
        },
        "task_type": {
          "$ref": "#/$defs/TaskType",
          "description": "This is the type of task (document or question)"
        },
        "active": {
          "type": "boolean",
          "title": "Active",
          "description": "An indication if this task is still a task that is available to be assigned to the clinician"
        },
        "provider_task_name": {
          "type": "string",
          "title": "Provider Task Name",
          "description": "The clinician facing task name"
        },
        "config": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Config",
          "description": "Task configuration including wallet_location"
        }
      },
      "type": "object",
      "required": [
        "id",
        "name",
        "description",
        "task_type",
        "active",
        "provider_task_name"
      ],
      "title": "SubscriberGroupTaskSchema"
    },
    "TaskType": {
      "type": "string",
      "enum": [
        "enroll",
        "work_history",
        "question",
        "document",
        "signature",
        "privileging"
      ],
      "title": "TaskType"
    }
  }
}