{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/healthrecordrights-com/json-schema/healthrecordrights-com-country-summary-schema.json",
  "title": "CountrySummary",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/healthrecordrights-com-openapi.json#/components/schemas/CountrySummary",
  "type": "object",
  "properties": {
    "iso3": {
      "type": "string"
    },
    "iso2": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "type": "string"
    },
    "region": {
      "type": "string"
    },
    "overall": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100,
      "description": "Overall score out of 100."
    },
    "band": {
      "type": "string",
      "enum": [
        "Poor",
        "Weak",
        "Mixed",
        "Strong",
        "Leading"
      ]
    },
    "rank": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Rank among all countries and territories. Tied countries share a number (1, 2, 2, 4). Null for the lead group: allowing for scoring error, any of them could rank first."
    },
    "tieRange": {
      "type": "object",
      "properties": {
        "low": {
          "type": "integer"
        },
        "high": {
          "type": "integer"
        }
      },
      "description": "The overall scores that tie with this one (4 or fewer points away). A tie never changes a band."
    },
    "rankTied": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Whether the rank is shared. Null for the lead group, which has no rank."
    },
    "leadGroup": {
      "type": "boolean"
    },
    "likelyRank": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "low": {
          "type": "integer"
        },
        "high": {
          "type": "integer"
        }
      },
      "required": [
        "low",
        "high"
      ],
      "description": "The 90% likely rank range: in 90% of simulations the country ranks between low and high."
    },
    "likelyRankText": {
      "type": [
        "string",
        "null"
      ],
      "description": "The same range in words, like \"50 to 60\"."
    },
    "confidence": {
      "type": "string",
      "enum": [
        "high",
        "medium",
        "low"
      ]
    },
    "keysModel": {
      "type": "string",
      "enum": [
        "Individual",
        "Shared",
        "Institutional",
        "State"
      ]
    },
    "apiUrl": {
      "type": "string",
      "description": "This country in the API."
    },
    "pageUrl": {
      "type": "string"
    }
  }
}