{
  "openapi": "3.1.0",
  "info": {
    "title": "geneeskunde.ai openbare leesinterface",
    "version": "1.0.0",
    "description": "Selectie en duiding: geneeskunde.ai; oorspronkelijke bronnen afzonderlijk. public-reading-v1 is openbare raadpleging, geen commerciële licentie. Geen authenticatie, AI-aanroep of nieuwe onbeperkte bulkexport. Datums behouden historische precisie. Scores zijn inschattingen."
  },
  "servers": [
    {
      "url": "https://www.geneeskunde.ai"
    }
  ],
  "externalDocs": {
    "url": "https://www.geneeskunde.ai/voor-ai"
  },
  "paths": {
    "/api/v1/signals": {
      "get": {
        "summary": "Maximaal 30 signalen: recente radarwijzigingen of bronpublicaties binnen 30 kalenderdagen.",
        "responses": {
          "200": {
            "description": "Goedgekeurde openbare gegevens. Statusmeldingen bevatten geen eerdere inhoud.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Dataset-Version": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Selection"
                }
              }
            }
          },
          "304": {
            "description": "Ongewijzigde weergave op basis van If-None-Match."
          },
          "400": {
            "description": "invalid_query (onbekend/dubbel), invalid_source_since (formaat, ongeldige of toekomstige datum), source_window_exceeded (ouder dan 30 kalenderdagen).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "invalid_query",
                  "documentation": "/voor-ai"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "source_since",
            "in": "query",
            "required": false,
            "description": "Inclusieve YYYY-MM-DD binnen de laatste 30 kalenderdagen (Europe/Amsterdam), tot en met vandaag. Selecteert uit alle goedgekeurde signalen vóór limiet 30, sorteert nieuwste bekende brondatum aflopend. Onbekende/toekomstige brondatums uitgesloten; geen historische doorloop. Dubbele of onbekende parameters zijn ongeldig.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ]
      }
    },
    "/api/v1/signals/{id}": {
      "get": {
        "summary": "Eén openbaar signaal of minimale statusvermelding.",
        "responses": {
          "200": {
            "description": "Goedgekeurde openbare gegevens. Statusmeldingen bevatten geen eerdere inhoud.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Dataset-Version": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Last-Modified": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Detail"
                }
              }
            }
          },
          "304": {
            "description": "Ongewijzigde weergave op basis van If-None-Match."
          },
          "400": {
            "description": "Onbekende queryparameter.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "invalid_query",
                  "documentation": "/voor-ai"
                }
              }
            }
          },
          "404": {
            "description": "Geen openbaar signaal voor dit ID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "not_found",
                  "documentation": "/voor-ai"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "large-language-models-in-healthcare-are-susceptible-to-sprea"
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-Modified-Since",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/changes": {
      "get": {
        "summary": "Recente openbare wijzigingen; 30 per pagina, vaste snapshot en periode.",
        "responses": {
          "200": {
            "description": "Goedgekeurde openbare gegevens. Statusmeldingen bevatten geen eerdere inhoud.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Dataset-Version": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changes"
                }
              }
            }
          },
          "304": {
            "description": "Ongewijzigde weergave op basis van If-None-Match."
          },
          "400": {
            "description": "Ongeldige cursor of onbekende queryparameter.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "invalid_query",
                  "documentation": "/voor-ai"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot gewijzigd of cursor na 15 minuten verlopen; opnieuw beginnen en event_id ontdubbelen.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "snapshot_changed",
                  "documentation": "/voor-ai"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 2048
            },
            "description": "Ondoorzichtige next_cursor uit het vorige antwoord; maximaal 15 minuten geldig, geen onbeperkte historie."
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Source": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "title",
          "publisher",
          "url",
          "date",
          "language"
        ],
        "properties": {
          "title": {
            "type": "string"
          },
          "publisher": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "date": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date"
                  },
                  {
                    "type": "string",
                    "format": "date-time"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "Signal": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "publisher",
          "canonical_url",
          "credit_text",
          "published_at",
          "content_updated_at",
          "content_version",
          "terms_url",
          "usage_policy",
          "title",
          "summary",
          "why_it_matters",
          "sector",
          "ring",
          "implication",
          "scores",
          "confidence",
          "tags",
          "original_sources",
          "tier",
          "geo_scope",
          "role_relevance",
          "nl_relevance",
          "editorial_pick",
          "editorial_note",
          "editorial_picked_at",
          "editorial_pick_week",
          "generation",
          "related_ids",
          "status"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "publisher": {
            "type": "string",
            "const": "geneeskunde.ai"
          },
          "canonical_url": {
            "type": "string",
            "format": "uri"
          },
          "credit_text": {
            "type": "string"
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "content_updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "content_version": {
            "type": "string"
          },
          "terms_url": {
            "type": "string",
            "format": "uri"
          },
          "usage_policy": {
            "type": "string",
            "const": "public-reading-v1"
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "why_it_matters": {
            "type": "string"
          },
          "sector": {
            "type": "string"
          },
          "ring": {
            "type": "string"
          },
          "implication": {
            "type": "string"
          },
          "scores": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "impact",
              "urgency",
              "uncertainty"
            ],
            "properties": {
              "impact": {
                "type": "integer",
                "minimum": 1,
                "maximum": 5
              },
              "urgency": {
                "type": "integer",
                "minimum": 1,
                "maximum": 5
              },
              "uncertainty": {
                "type": "integer",
                "minimum": 1,
                "maximum": 5
              }
            }
          },
          "confidence": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "original_sources": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/Source"
            }
          },
          "tier": {
            "type": "string",
            "enum": [
              "tier_1_radar",
              "tier_2_feed"
            ]
          },
          "geo_scope": {
            "type": "string",
            "enum": [
              "NL",
              "EU",
              "INTERNATIONAL"
            ]
          },
          "role_relevance": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "minimum": 0,
              "maximum": 5
            }
          },
          "nl_relevance": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "editorial_pick": {
            "type": "boolean"
          },
          "editorial_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "editorial_picked_at": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date"
                  },
                  {
                    "type": "string",
                    "format": "date-time"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "editorial_pick_week": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "generation": {
            "type": "string",
            "enum": [
              "manual",
              "automated"
            ]
          },
          "related_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "type": "string",
            "const": "active"
          },
          "interpretation_status": {
            "type": "string",
            "enum": [
              "review_required",
              "source_checked"
            ],
            "description": "Optionele broncontrolestatus van de duiding; ontbrekend is geen bewijs van controle."
          },
          "interpretation_note": {
            "type": "string",
            "description": "Openbare toelichting op broncontrole. Geen interne reviewnotities."
          }
        }
      },
      "Status": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "publisher",
          "canonical_url",
          "credit_text",
          "published_at",
          "content_updated_at",
          "content_version",
          "terms_url",
          "usage_policy",
          "status"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "publisher": {
            "type": "string",
            "const": "geneeskunde.ai"
          },
          "canonical_url": {
            "type": "string",
            "format": "uri"
          },
          "credit_text": {
            "type": "string"
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "content_updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "content_version": {
            "type": "string"
          },
          "terms_url": {
            "type": "string",
            "format": "uri"
          },
          "usage_policy": {
            "type": "string",
            "const": "public-reading-v1"
          },
          "status": {
            "type": "string",
            "enum": [
              "archived",
              "withdrawn"
            ]
          }
        }
      },
      "Change": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "event_id",
          "signal_id",
          "content_version",
          "date",
          "type",
          "note",
          "changed_fields",
          "canonical_url"
        ],
        "properties": {
          "event_id": {
            "type": "string"
          },
          "signal_id": {
            "type": "string"
          },
          "content_version": {
            "type": "string",
            "description": "Hash van de gepubliceerde versie; legacy-unknown bij historische gebeurtenissen."
          },
          "date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "new",
              "updated",
              "reclassified",
              "corrected",
              "archived",
              "withdrawn"
            ]
          },
          "note": {
            "type": "string"
          },
          "changed_fields": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "canonical_url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Selection": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schema_version",
          "dataset_version",
          "published_at",
          "publisher",
          "terms_url",
          "usage_policy",
          "window_days",
          "limit",
          "items",
          "next_cursor",
          "selection_basis"
        ],
        "properties": {
          "schema_version": {
            "type": "integer",
            "const": 1
          },
          "dataset_version": {
            "type": "string"
          },
          "published_at": {
            "type": "string",
            "format": "date-time"
          },
          "publisher": {
            "type": "string",
            "const": "geneeskunde.ai"
          },
          "terms_url": {
            "type": "string",
            "format": "uri"
          },
          "usage_policy": {
            "type": "string",
            "const": "public-reading-v1"
          },
          "window_days": {
            "type": "integer",
            "const": 30
          },
          "limit": {
            "type": "integer",
            "const": 30
          },
          "items": {
            "type": "array",
            "maxItems": 30,
            "items": {
              "$ref": "#/components/schemas/Signal"
            }
          },
          "next_cursor": {
            "type": "null"
          },
          "selection_basis": {
            "type": "string",
            "enum": [
              "radar_change",
              "source_publication"
            ]
          },
          "source_since": {
            "type": "string",
            "format": "date"
          },
          "source_until": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "Detail": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schema_version",
          "dataset_version",
          "published_at",
          "publisher",
          "terms_url",
          "usage_policy",
          "signal"
        ],
        "properties": {
          "schema_version": {
            "type": "integer",
            "const": 1
          },
          "dataset_version": {
            "type": "string"
          },
          "published_at": {
            "type": "string",
            "format": "date-time"
          },
          "publisher": {
            "type": "string",
            "const": "geneeskunde.ai"
          },
          "terms_url": {
            "type": "string",
            "format": "uri"
          },
          "usage_policy": {
            "type": "string",
            "const": "public-reading-v1"
          },
          "signal": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Signal"
              },
              {
                "$ref": "#/components/schemas/Status"
              }
            ]
          }
        }
      },
      "Changes": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schema_version",
          "dataset_version",
          "published_at",
          "publisher",
          "terms_url",
          "usage_policy",
          "window_start",
          "window_end",
          "window_days",
          "items",
          "next_cursor"
        ],
        "properties": {
          "schema_version": {
            "type": "integer",
            "const": 1
          },
          "dataset_version": {
            "type": "string"
          },
          "published_at": {
            "type": "string",
            "format": "date-time"
          },
          "publisher": {
            "type": "string",
            "const": "geneeskunde.ai"
          },
          "terms_url": {
            "type": "string",
            "format": "uri"
          },
          "usage_policy": {
            "type": "string",
            "const": "public-reading-v1"
          },
          "window_start": {
            "type": "string",
            "format": "date-time"
          },
          "window_end": {
            "type": "string",
            "format": "date-time"
          },
          "window_days": {
            "type": "integer",
            "const": 30
          },
          "items": {
            "type": "array",
            "maxItems": 30,
            "items": {
              "$ref": "#/components/schemas/Change"
            }
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "Error": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "error",
          "documentation"
        ],
        "properties": {
          "error": {
            "type": "string",
            "enum": [
              "invalid_query",
              "invalid_cursor",
              "cursor_expired",
              "snapshot_changed",
              "not_found"
            ]
          },
          "documentation": {
            "type": "string",
            "const": "/voor-ai"
          }
        }
      }
    }
  }
}
