{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/healthrecordrights-com/json-schema/healthrecordrights-com-case-schema.json",
  "title": "Case",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/healthrecordrights-com-openapi.json#/components/schemas/Case",
  "type": "object",
  "properties": {
    "date": {
      "type": "string"
    },
    "headline": {
      "type": "string"
    },
    "paraphrase": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "archiveUrl": {
      "type": "string",
      "description": "Optional: a Wayback Machine copy of the source, saved when the case was published."
    },
    "theme": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "finding",
        "admitted",
        "alleged",
        "self_reported"
      ]
    },
    "id": {
      "type": "string",
      "description": "The case id, like FIN-S001: it never changes and is never given to another case."
    },
    "pageUrl": {
      "type": "string",
      "description": "The case on /real-cases/, the address to cite."
    },
    "countryUrl": {
      "type": "string",
      "description": "The country brief."
    },
    "why": {
      "type": "string",
      "description": "Why it matters to patients, in our words."
    },
    "sourceType": {
      "type": "string",
      "enum": [
        "regulator_decision",
        "court_judgment",
        "parliament_testimony",
        "journalism",
        "advocacy_case",
        "own_blog"
      ],
      "description": "The kind of source."
    },
    "lang": {
      "type": "string",
      "description": "Two-letter code of the source's language. Our summary is always English (inLanguage)."
    },
    "providerName": {
      "type": "string",
      "description": "Optional: the hospital, company or other organization, named only when a regulator or court decided against it or it admitted the problem itself."
    },
    "lastVerified": {
      "type": "string",
      "format": "date",
      "description": "When the case was last checked against its source."
    },
    "addedOn": {
      "type": "string",
      "format": "date",
      "description": "The day the case was added to the index; cases already in it when it was published carry October 2, 2026."
    },
    "archivedOn": {
      "type": "string",
      "format": "date",
      "description": "Optional: the day the archived copy was made."
    },
    "inLanguage": {
      "type": "string",
      "description": "The language of our headline and summary: en."
    }
  }
}