{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/axuall/json-schema/axuall-monitoring-result-set-finding-schema.json",
  "title": "MonitoringResultSet[Finding]",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axuall-monitoring-reports-api-openapi.yml#/components/schemas/MonitoringResultSet_Finding_",
  "properties": {
    "total_clinicians": {
      "type": "integer",
      "title": "Total Clinicians",
      "description": "The total number of currently active clinicians"
    },
    "filtered_clinicians": {
      "type": "integer",
      "title": "Filtered Clinicians",
      "description": "The total number of active clinicians applicable to the search criteria"
    },
    "total": {
      "type": "integer",
      "title": "Total",
      "description": "The total number of records applicable to the search criteria"
    },
    "results": {
      "items": {
        "$ref": "#/$defs/Finding"
      },
      "type": "array",
      "title": "Results",
      "description": "The list of records returned by the search criteria"
    }
  },
  "type": "object",
  "required": [
    "total_clinicians",
    "filtered_clinicians",
    "total",
    "results"
  ],
  "$defs": {
    "Finding": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id",
          "description": "The ID of the finding record"
        },
        "dimensions": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "title": "Dimensions",
          "description": "The dimensions associated with the finding"
        },
        "profile": {
          "$ref": "#/$defs/MonitoringProfile"
        },
        "verification": {
          "$ref": "#/$defs/Verification",
          "description": "The verification record associated with the findings"
        },
        "reported_at": {
          "type": "string",
          "format": "date-time",
          "title": "Reported At",
          "description": "The date and time the finding was recorded by Axuall"
        },
        "activation_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Activation Date",
          "description": "The primary-source activation date for the adverse finding, when available (from primary_source_query_log.details). Shown as Reported Date in Admin."
        },
        "most_current": {
          "type": "boolean",
          "title": "Most Current",
          "description": "Whether the finding relates to the most current credential in Axuall"
        },
        "artifact_id": {
          "type": "string",
          "format": "uuid",
          "title": "Artifact Id",
          "description": "The ID of the Axuall credential record associated with the finding"
        }
      },
      "type": "object",
      "required": [
        "id",
        "dimensions",
        "profile",
        "verification",
        "reported_at",
        "most_current",
        "artifact_id"
      ],
      "title": "Finding"
    },
    "MonitoringProfile": {
      "properties": {
        "provider_id": {
          "type": "string",
          "title": "Provider Id",
          "description": "The provider ID of the clinician"
        },
        "first_name": {
          "type": "string",
          "title": "First Name"
        },
        "middle_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Middle Name"
        },
        "last_name": {
          "type": "string",
          "title": "Last Name"
        },
        "degree": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Degree",
          "description": "The short degree name of the clinician",
          "default": ""
        },
        "degree_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Degree Name",
          "description": "The full degree name of the clinician",
          "default": ""
        },
        "holder_id": {
          "type": "string",
          "format": "uuid",
          "title": "Holder Id",
          "description": "The Axuall ID of the clinician"
        },
        "checklist_id": {
          "type": "string",
          "title": "Checklist Id",
          "description": "The ID used to view the checklist of the clinician"
        },
        "checklist_url": {
          "type": "string",
          "title": "Checklist Url",
          "description": "The URL used to view the checklist of the clinician"
        }
      },
      "type": "object",
      "required": [
        "provider_id",
        "first_name",
        "middle_name",
        "last_name",
        "holder_id",
        "checklist_id",
        "checklist_url"
      ],
      "title": "MonitoringProfile"
    },
    "Verification": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name",
          "description": "The name of the source verification"
        },
        "name_formatted": {
          "type": "string",
          "title": "Name Formatted",
          "description": "The formatted name of the source verification"
        },
        "attributes": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Attributes",
          "description": "Attributes specific to the source verification",
          "default": {}
        },
        "last_revalidated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Revalidated At",
          "description": "The last time the verification was revalidated"
        },
        "next_verification_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Verification At",
          "description": "The approximate next time the verification should be revalidated"
        }
      },
      "type": "object",
      "required": [
        "name",
        "name_formatted"
      ],
      "title": "Verification"
    }
  }
}