{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anpheros-com/json-schema/anpheros-com-pattern-finding-schema.json",
  "title": "PatternFinding",
  "description": "O constatare: ce arată dosarul pe o perioadă, cu datele suport, metoda și limitările ei.\nNu e diagnostic; o asociere nu e o cauză; doar `statistically_supported = true` are susținere statistică.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anpheros-com-openapi.json#/components/schemas/PatternFinding",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "patient": {
      "type": "string",
      "title": "Patient"
    },
    "type": {
      "type": "string",
      "enum": [
        "trend",
        "baseline_deviation",
        "recurrence",
        "association",
        "convergence"
      ],
      "title": "Type"
    },
    "subtype": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Subtype"
    },
    "epistemic_status": {
      "type": "string",
      "enum": [
        "descriptive_observation",
        "statistical_association",
        "validated_prediction"
      ],
      "title": "Epistemic Status"
    },
    "strength": {
      "type": "string",
      "enum": [
        "strong",
        "moderate",
        "weak",
        "not_tested"
      ],
      "title": "Strength"
    },
    "statistically_supported": {
      "type": "boolean",
      "title": "Statistically Supported"
    },
    "summary_code": {
      "type": "string",
      "title": "Summary Code"
    },
    "summary_text": {
      "type": "string",
      "title": "Summary Text"
    },
    "variables": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Variables"
    },
    "window": {
      "additionalProperties": true,
      "type": "object",
      "title": "Window"
    },
    "comparison_window": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Comparison Window"
    },
    "result": {
      "additionalProperties": true,
      "type": "object",
      "title": "Result"
    },
    "statistics": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Statistics"
    },
    "threshold": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Threshold"
    },
    "evidence": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Evidence"
    },
    "evidence_total": {
      "type": "integer",
      "title": "Evidence Total"
    },
    "limitations": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Limitations"
    },
    "method": {
      "additionalProperties": true,
      "type": "object",
      "title": "Method"
    },
    "engine_version": {
      "type": "string",
      "title": "Engine Version"
    },
    "input_fingerprint": {
      "type": "string",
      "title": "Input Fingerprint"
    },
    "config_fingerprint": {
      "type": "string",
      "title": "Config Fingerprint"
    },
    "safety": {
      "additionalProperties": true,
      "type": "object",
      "title": "Safety"
    },
    "review": {
      "additionalProperties": true,
      "type": "object",
      "title": "Review"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "id",
    "patient",
    "type",
    "epistemic_status",
    "strength",
    "statistically_supported",
    "summary_code",
    "summary_text",
    "variables",
    "window",
    "result",
    "evidence",
    "evidence_total",
    "limitations",
    "method",
    "engine_version",
    "input_fingerprint",
    "config_fingerprint",
    "safety",
    "review"
  ]
}