{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/helena-bio/json-schema/helena-bio-ad-risk-response-schema-schema.json",
  "title": "AdRiskResponseSchema",
  "description": "Response with AD recurrence risk findings.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/helena-bio-recurrence-risk-api-openapi.yml#/components/schemas/AdRiskResponseSchema",
  "properties": {
    "session_id": {
      "type": "string",
      "format": "uuid",
      "title": "Session Id"
    },
    "total_ad_risk": {
      "type": "integer",
      "title": "Total Ad Risk"
    },
    "findings": {
      "items": {
        "$ref": "#/$defs/AdRiskResultSchema"
      },
      "type": "array",
      "title": "Findings"
    }
  },
  "type": "object",
  "required": [
    "session_id",
    "total_ad_risk",
    "findings"
  ],
  "$defs": {
    "AdRiskResultSchema": {
      "properties": {
        "variant_idx": {
          "type": "integer",
          "title": "Variant Idx"
        },
        "gene_symbol": {
          "type": "string",
          "title": "Gene Symbol"
        },
        "risk_type": {
          "type": "string",
          "title": "Risk Type",
          "description": "AD_RISK"
        },
        "inheritance_mode": {
          "type": "string",
          "title": "Inheritance Mode"
        },
        "disease_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Disease Name"
        },
        "clinical_note": {
          "type": "string",
          "title": "Clinical Note"
        },
        "recurrence_risk": {
          "type": "string",
          "title": "Recurrence Risk",
          "description": "e.g. 50% transmission probability"
        },
        "confidence": {
          "type": "string",
          "title": "Confidence",
          "description": "HIGH or MODERATE"
        },
        "acmg_class": {
          "type": "string",
          "title": "Acmg Class"
        },
        "chromosome": {
          "type": "string",
          "title": "Chromosome"
        },
        "position": {
          "type": "integer",
          "title": "Position"
        },
        "genotype": {
          "type": "string",
          "title": "Genotype"
        },
        "hgvs_protein": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Hgvs Protein"
        },
        "transcript_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Transcript Id"
        },
        "transcript_representations": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Transcript Representations"
        },
        "hgvs_cdna": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Hgvs Cdna"
        },
        "rsid": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rsid"
        },
        "global_af": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Global Af"
        },
        "review_stars": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Review Stars"
        }
      },
      "type": "object",
      "required": [
        "variant_idx",
        "gene_symbol",
        "risk_type",
        "inheritance_mode",
        "clinical_note",
        "recurrence_risk",
        "confidence",
        "acmg_class",
        "chromosome",
        "position",
        "genotype"
      ],
      "title": "AdRiskResultSchema",
      "description": "Single AD recurrence risk finding."
    }
  }
}