{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/axuall/json-schema/axuall-paginated-results-schema-assigned-task-schema-schema.json",
  "title": "PaginatedResultsSchema[AssignedTaskSchema]",
  "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_AssignedTaskSchema_",
  "properties": {
    "total_results": {
      "type": "integer",
      "title": "Total Results",
      "description": "The total number of records available"
    },
    "results": {
      "items": {
        "$ref": "#/$defs/AssignedTaskSchema"
      },
      "type": "array",
      "title": "Results",
      "description": "The list of records returned by the search criteria"
    }
  },
  "type": "object",
  "required": [
    "total_results",
    "results"
  ],
  "$defs": {
    "AssignedTaskSchema": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "provider_id": {
          "anyOf": [
            {
              "type": "string",
              "title": "National Council of State Boards of Nursing",
              "description": "National Council of State Boards of Nursing ID"
            },
            {
              "type": "string",
              "maxLength": 10,
              "minLength": 10,
              "title": "National Provider Identifier",
              "description": "National Provider Identifier"
            }
          ],
          "title": "Provider Id"
        },
        "task_id": {
          "type": "string",
          "format": "uuid",
          "title": "Task Id"
        },
        "task_name": {
          "type": "string",
          "title": "Task Name",
          "description": "The name of the task"
        },
        "task_status": {
          "type": "string",
          "title": "Task Status",
          "description": "The status of the assigned task"
        },
        "required_for_share": {
          "type": "boolean",
          "title": "Required For Share",
          "description": "An indication if this task required for the clinican to complete their share"
        },
        "assigned": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Assigned"
        },
        "completed": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Completed"
        }
      },
      "type": "object",
      "required": [
        "id",
        "provider_id",
        "task_id",
        "task_name",
        "task_status",
        "required_for_share",
        "assigned",
        "completed"
      ],
      "title": "AssignedTaskSchema"
    }
  }
}