{
  "name": "health-spending-by-country",
  "title": "Health Spending by Country",
  "description": "How much each country spends on health, as a share of GDP and per person, and who pays. The United States spends 16.7% of GDP, about $13,500 a person; the average country spends 6.8%.",
  "status": "monitored",
  "keywords": [
    "health spending by country",
    "health expenditure % of GDP",
    "health spending per capita",
    "out-of-pocket health spending",
    "government health expenditure",
    "healthcare costs by country",
    "US health spending vs other countries",
    "WHO Global Health Expenditure Database",
    "who pays for health care",
    "universal health coverage"
  ],
  "licenses": [
    {
      "name": "WHO-Data-Terms",
      "title": "WHO Data Policy: Terms and conditions for the use of datasets",
      "path": "https://www.who.int/about/policies/publishing/data-policy/terms-and-conditions"
    }
  ],
  "sources": [
    {
      "title": "World Health Organization, Global Health Expenditure Database (GHED), served by the Global Health Observatory (GHO) OData API: indicators GHED_CHEGDP_SHA2011, GHED_CHE_pc_US_SHA2011, GHED_GGHE-DGDP_SHA2011, GHED_GGHE-DCHE_SHA2011, GHED_OOPSCHE_SHA2011, GHED_PVT-DCHE_SHA2011, GHED_EXTCHE_SHA2011, GHED_OOP_pc_US_SHA2011, GHED_GGHE-DGGE_SHA2011",
      "path": "https://apps.who.int/nha/database"
    },
    {
      "title": "WHO GHO OData API",
      "path": "https://ghoapi.azureedge.net/api/GHED_CHEGDP_SHA2011"
    }
  ],
  "upkeep": {
    "mode": "living",
    "refresh": "annual",
    "workflow": ".github/workflows/update.yml"
  },
  "resources": [
    {
      "path": "data/health-spending-by-country.csv",
      "name": "health-spending-countries",
      "title": "Health spending by country and year, 2000-2023",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          {
            "name": "iso3",
            "type": "string",
            "description": "ISO 3166-1 alpha-3 code as used by WHO (GHO SpatialDim)."
          },
          {
            "name": "country",
            "type": "string",
            "description": "Country or territory, as named by WHO (for example Naoero is Nauru)."
          },
          {
            "name": "who_region",
            "type": "string",
            "description": "WHO region: Africa, Americas, Eastern Mediterranean, Europe, South-East Asia or Western Pacific."
          },
          {
            "name": "year",
            "type": "integer",
            "description": "Calendar year, 2000 to 2023.",
            "constraints": {
              "minimum": 2000,
              "maximum": 2023
            }
          },
          {
            "name": "health_spending_pct_gdp",
            "type": "number",
            "description": "Current health expenditure as % of gross domestic product (WHO GHED, GHO code GHED_CHEGDP_SHA2011). Current spending only: capital investment (hospital building, equipment) is not included.",
            "constraints": {
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "health_spending_per_person_usd",
            "type": "number",
            "description": "Current health expenditure per person, in current US dollars at market exchange rates, not adjusted for prices (GHED_CHE_pc_US_SHA2011).",
            "constraints": {
              "minimum": 0,
              "maximum": 30000
            }
          },
          {
            "name": "government_health_spending_pct_gdp",
            "type": "number",
            "description": "Domestic general government health expenditure (tax and social insurance funded) as % of GDP (GHED_GGHE-DGDP_SHA2011).",
            "constraints": {
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "government_share_pct",
            "type": "number",
            "description": "Domestic general government health expenditure as % of current health expenditure (GHED_GGHE-DCHE_SHA2011).",
            "constraints": {
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "out_of_pocket_share_pct",
            "type": "number",
            "description": "Out-of-pocket spending, what households pay directly at the point of care, as % of current health expenditure (GHED_OOPSCHE_SHA2011).",
            "constraints": {
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "private_share_pct",
            "type": "number",
            "description": "Domestic private health expenditure (out-of-pocket plus voluntary insurance and other private funds) as % of current health expenditure (GHED_PVT-DCHE_SHA2011).",
            "constraints": {
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "external_share_pct",
            "type": "number",
            "description": "External health expenditure (foreign aid and other funds from abroad) as % of current health expenditure (GHED_EXTCHE_SHA2011).",
            "constraints": {
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "out_of_pocket_per_person_usd",
            "type": "number",
            "description": "Out-of-pocket spending per person, in current US dollars (GHED_OOP_pc_US_SHA2011).",
            "constraints": {
              "minimum": 0,
              "maximum": 30000
            }
          },
          {
            "name": "government_health_pct_of_gov_spending",
            "type": "number",
            "description": "Domestic general government health expenditure as % of general government expenditure, all spending (GHED_GGHE-DGGE_SHA2011).",
            "constraints": {
              "minimum": 0,
              "maximum": 100
            }
          }
        ],
        "primaryKey": [
          "iso3",
          "year"
        ]
      }
    },
    {
      "path": "data/health-spending-aggregates.csv",
      "name": "health-spending-aggregates",
      "title": "The same measures averaged over the countries in the world, WHO regions and World Bank income groups, by year",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          {
            "name": "group_type",
            "type": "string",
            "constraints": {
              "enum": [
                "global",
                "who-region",
                "income-group"
              ]
            },
            "description": "Kind of group. Group values are simple averages across the countries in the group, as published by WHO, not weighted by population, GDP or spending."
          },
          {
            "name": "group_code",
            "type": "string",
            "description": "WHO's code for the group (GLOBAL, AFR, AMR, EMR, EUR, SEAR, WPR, WB_LI, WB_LMI, WB_UMI, WB_HI)."
          },
          {
            "name": "group_name",
            "type": "string",
            "description": "Group name."
          },
          {
            "name": "year",
            "type": "integer",
            "description": "Calendar year, 2000 to 2023.",
            "constraints": {
              "minimum": 2000,
              "maximum": 2023
            }
          },
          {
            "name": "health_spending_pct_gdp",
            "type": "number",
            "description": "Current health expenditure as % of gross domestic product (WHO GHED, GHO code GHED_CHEGDP_SHA2011). Current spending only: capital investment (hospital building, equipment) is not included.",
            "constraints": {
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "health_spending_per_person_usd",
            "type": "number",
            "description": "Current health expenditure per person, in current US dollars at market exchange rates, not adjusted for prices (GHED_CHE_pc_US_SHA2011).",
            "constraints": {
              "minimum": 0,
              "maximum": 30000
            }
          },
          {
            "name": "government_health_spending_pct_gdp",
            "type": "number",
            "description": "Domestic general government health expenditure (tax and social insurance funded) as % of GDP (GHED_GGHE-DGDP_SHA2011).",
            "constraints": {
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "government_share_pct",
            "type": "number",
            "description": "Domestic general government health expenditure as % of current health expenditure (GHED_GGHE-DCHE_SHA2011).",
            "constraints": {
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "out_of_pocket_share_pct",
            "type": "number",
            "description": "Out-of-pocket spending, what households pay directly at the point of care, as % of current health expenditure (GHED_OOPSCHE_SHA2011).",
            "constraints": {
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "private_share_pct",
            "type": "number",
            "description": "Domestic private health expenditure (out-of-pocket plus voluntary insurance and other private funds) as % of current health expenditure (GHED_PVT-DCHE_SHA2011).",
            "constraints": {
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "external_share_pct",
            "type": "number",
            "description": "External health expenditure (foreign aid and other funds from abroad) as % of current health expenditure (GHED_EXTCHE_SHA2011).",
            "constraints": {
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "out_of_pocket_per_person_usd",
            "type": "number",
            "description": "Out-of-pocket spending per person, in current US dollars (GHED_OOP_pc_US_SHA2011).",
            "constraints": {
              "minimum": 0,
              "maximum": 30000
            }
          },
          {
            "name": "government_health_pct_of_gov_spending",
            "type": "number",
            "description": "Domestic general government health expenditure as % of general government expenditure, all spending (GHED_GGHE-DGGE_SHA2011).",
            "constraints": {
              "minimum": 0,
              "maximum": 100
            }
          }
        ],
        "primaryKey": [
          "group_code",
          "year"
        ]
      }
    }
  ],
  "views": [
    {
      "name": "us-vs-rich-countries",
      "title": "US health spending against other rich countries, 2000 to 2023",
      "description": "Health spending as a share of GDP. The United States went from 12.5% in 2000 to 16.7% in 2023 (18.5% in 2020), while eight other rich countries sit between 10% and 12%. The average country spends 6.8%.",
      "resourceName": "health-spending-countries",
      "specType": "plot",
      "spec": {
        "height": 400,
        "marginLeft": 48,
        "x": {
          "tickFormat": "d",
          "label": null
        },
        "y": {
          "tickFormat": ",d",
          "grid": true,
          "domain": [
            0,
            20
          ],
          "label": "% of GDP"
        },
        "marks": [
          {
            "type": "ruleY",
            "staticData": [
              {
                "v": 6.83
              }
            ],
            "y": "v",
            "stroke": "#9ca3af",
            "strokeDasharray": "4,4",
            "tip": false
          },
          {
            "type": "areaY",
            "x": "year",
            "y": "health_spending_pct_gdp",
            "fill": "#111827",
            "fillOpacity": 0.06,
            "tip": false,
            "filter": [
              {
                "field": "iso3",
                "eq": "USA"
              }
            ]
          },
          {
            "type": "line",
            "x": "year",
            "y": "health_spending_pct_gdp",
            "stroke": "#8b929d",
            "sort": "year",
            "filter": [
              {
                "field": "iso3",
                "eq": "GBR"
              },
              {
                "field": "health_spending_pct_gdp",
                "notNull": true
              }
            ]
          },
          {
            "type": "line",
            "x": "year",
            "y": "health_spending_pct_gdp",
            "stroke": "#8b929d",
            "sort": "year",
            "filter": [
              {
                "field": "iso3",
                "eq": "DEU"
              },
              {
                "field": "health_spending_pct_gdp",
                "notNull": true
              }
            ]
          },
          {
            "type": "line",
            "x": "year",
            "y": "health_spending_pct_gdp",
            "stroke": "#8b929d",
            "sort": "year",
            "filter": [
              {
                "field": "iso3",
                "eq": "FRA"
              },
              {
                "field": "health_spending_pct_gdp",
                "notNull": true
              }
            ]
          },
          {
            "type": "line",
            "x": "year",
            "y": "health_spending_pct_gdp",
            "stroke": "#8b929d",
            "sort": "year",
            "filter": [
              {
                "field": "iso3",
                "eq": "JPN"
              },
              {
                "field": "health_spending_pct_gdp",
                "notNull": true
              }
            ]
          },
          {
            "type": "line",
            "x": "year",
            "y": "health_spending_pct_gdp",
            "stroke": "#8b929d",
            "sort": "year",
            "filter": [
              {
                "field": "iso3",
                "eq": "CAN"
              },
              {
                "field": "health_spending_pct_gdp",
                "notNull": true
              }
            ]
          },
          {
            "type": "line",
            "x": "year",
            "y": "health_spending_pct_gdp",
            "stroke": "#8b929d",
            "sort": "year",
            "filter": [
              {
                "field": "iso3",
                "eq": "AUS"
              },
              {
                "field": "health_spending_pct_gdp",
                "notNull": true
              }
            ]
          },
          {
            "type": "line",
            "x": "year",
            "y": "health_spending_pct_gdp",
            "stroke": "#8b929d",
            "sort": "year",
            "filter": [
              {
                "field": "iso3",
                "eq": "SWE"
              },
              {
                "field": "health_spending_pct_gdp",
                "notNull": true
              }
            ]
          },
          {
            "type": "line",
            "x": "year",
            "y": "health_spending_pct_gdp",
            "stroke": "#8b929d",
            "sort": "year",
            "filter": [
              {
                "field": "iso3",
                "eq": "CHE"
              },
              {
                "field": "health_spending_pct_gdp",
                "notNull": true
              }
            ]
          },
          {
            "type": "line",
            "x": "year",
            "y": "health_spending_pct_gdp",
            "stroke": "#111827",
            "sort": "year",
            "filter": [
              {
                "field": "iso3",
                "eq": "USA"
              },
              {
                "field": "health_spending_pct_gdp",
                "notNull": true
              }
            ]
          },
          {
            "type": "text",
            "staticData": [
              {
                "year": 2023,
                "v": 15.3,
                "label": "United States 16.7% in 2023"
              }
            ],
            "x": "year",
            "y": "v",
            "text": "label",
            "textAnchor": "end"
          },
          {
            "type": "text",
            "staticData": [
              {
                "year": 2023,
                "v": 13.9,
                "label": "Eight other rich countries: 10% to 12%"
              }
            ],
            "x": "year",
            "y": "v",
            "text": "label",
            "textAnchor": "end"
          },
          {
            "type": "text",
            "staticData": [
              {
                "year": 2023,
                "v": 6.83,
                "label": "Average country 6.8% in 2023"
              }
            ],
            "x": "year",
            "y": "v",
            "text": "label",
            "dy": 12,
            "textAnchor": "end"
          }
        ]
      }
    },
    {
      "name": "out-of-pocket-share",
      "title": "Countries where households pay most of the health bill, 2023",
      "description": "Out-of-pocket spending as a share of all health spending in 2023, for countries above 65%. Armenia (80%), Bangladesh (79%), Turkmenistan (77%) and Afghanistan (77%) lead; the average country is at 30% and the United States at 11%.",
      "resourceName": "health-spending-countries",
      "specType": "plot",
      "spec": {
        "height": 340,
        "marginLeft": 130,
        "x": {
          "domain": [
            0,
            100
          ],
          "label": "% of health spending paid out of pocket",
          "tickFormat": ",d"
        },
        "y": {
          "grid": false
        },
        "marks": [
          {
            "type": "barX",
            "x": "out_of_pocket_share_pct",
            "y": "country",
            "fill": "#111827",
            "sort": "out_of_pocket_share_pct",
            "filter": [
              {
                "field": "year",
                "eq": 2023
              },
              {
                "field": "out_of_pocket_share_pct",
                "gte": 65
              }
            ]
          }
        ]
      }
    },
    {
      "name": "world-who-pays",
      "title": "Who pays for health care in the average country since 2000",
      "description": "Government, out-of-pocket and foreign-aid shares of health spending, averaged across countries. Households' direct payments fell from 37% in 2000 to 30% in 2023, while foreign funds roughly doubled from 5% to 10%; government stayed near 52%.",
      "resourceName": "health-spending-aggregates",
      "specType": "plot",
      "spec": {
        "height": 380,
        "marginLeft": 48,
        "x": {
          "tickFormat": "d",
          "label": null
        },
        "y": {
          "tickFormat": ",d",
          "grid": true,
          "domain": [
            0,
            60
          ],
          "label": "% of health spending"
        },
        "marks": [
          {
            "type": "areaY",
            "x": "year",
            "y": "government_share_pct",
            "fill": "#111827",
            "fillOpacity": 0.06,
            "tip": false,
            "filter": [
              {
                "field": "group_code",
                "eq": "GLOBAL"
              }
            ]
          },
          {
            "type": "line",
            "x": "year",
            "y": "government_share_pct",
            "stroke": "#111827",
            "sort": "year",
            "filter": [
              {
                "field": "group_code",
                "eq": "GLOBAL"
              }
            ]
          },
          {
            "type": "line",
            "x": "year",
            "y": "out_of_pocket_share_pct",
            "stroke": "#8b929d",
            "sort": "year",
            "filter": [
              {
                "field": "group_code",
                "eq": "GLOBAL"
              }
            ]
          },
          {
            "type": "line",
            "x": "year",
            "y": "external_share_pct",
            "stroke": "#8b929d",
            "strokeDasharray": "4,4",
            "sort": "year",
            "filter": [
              {
                "field": "group_code",
                "eq": "GLOBAL"
              }
            ]
          },
          {
            "type": "text",
            "staticData": [
              {
                "year": 2023,
                "v": 52.7,
                "label": "Government 53%"
              }
            ],
            "x": "year",
            "y": "v",
            "text": "label",
            "dy": -8,
            "textAnchor": "end"
          },
          {
            "type": "text",
            "staticData": [
              {
                "year": 2023,
                "v": 30.3,
                "label": "Out of pocket 30%"
              }
            ],
            "x": "year",
            "y": "v",
            "text": "label",
            "dy": -8,
            "textAnchor": "end"
          },
          {
            "type": "text",
            "staticData": [
              {
                "year": 2023,
                "v": 9.8,
                "label": "Foreign funds 10%"
              }
            ],
            "x": "year",
            "y": "v",
            "text": "label",
            "dy": -8,
            "textAnchor": "end"
          }
        ]
      }
    }
  ]
}
