radoslawkrolikowski / health-care-analysis

Health care facilities and specialists access analysis.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accessibility Analysis of Health Care Facilities and Specialists

Health care access is one of the most important aspects of each society. Irrespective of the part of the world, each child and adolescence deserve equal access to primary health care (PHC) facilities. Demographic changes such as ageing population or a substantial increase in births can further stretch health care systems, deepening the inequities in accessing to essential health care. Armed conflicts cause migration of people, putting a strain on already stretched health systems, damages to the road network can substantially impede the access to essential health care. Targeted attacks on health facilities have occurred in Syria, Yemen or Iraq infringing upon the International Humanitarian Law. To help to identify populations at risk for insufficient health care access we will create maps of health facilities and specialists, isolines and choropleths of the population with health care access, taking into account the driving distance to the nearest health facility or specialist. Those types of maps can pinpoint the areas most in need of development, either in health care and infrastructure.

The repository will walk you through the process of conducting health care accessibility analysis, which encompasses the gathering of indispensable data, preparing it for further analysis (clipping, reprojecting, filtering), and creating the following three types of maps:

  • map of health care facilities,
  • map of health care access isolines,
  • choropleth of the population with health care access.

The second part of the project encompasses the extraction with Scrapy spiders data regarding health specialists and performing the analysis of that data by creating the map of health specialists, isolines and choropleth. For example, the specializations may be as follows (depending on the data source):

  • medical oncology
  • general surgery
  • radiotherapy
  • urologist, and others.

Table of contents

  • Download and prepare data

    In this notebook, we are going to download and prepare the data that is required to conduct the analysis of the health facilities accessibility. The data includes the following:

    • Administrative boundaries of a country at level 2 (second sub-national level) from the GADM Database of Global Administrative Areas
    • Health care location data from healthsites.io
    • Distribution of the population as the spatial raster dataset from European Commission Global Human Settlement GHS-POP dataset
  • Openrouteservice health facilities access isolines

    In this notebook we will use the Openrouteservice API to compute the isolines for health facilities, we will also create the following maps:

    • Map of health care facilities
    • Map of health care access isolines
    • Choropleth of the population with health care access
  • OSMNX health facilities access isolines

    This notebook covers the use of the OSMNX library to compute the isolines for health facilities, but also we will create the same types of maps as in the previous notebook.

  • Health specialists access isolines

    In this notebook we are going to obtain the data regarding the health specialists. Depending on the country of interest the process of data retrieving will be different (for example using Scrapy spiders to scrap the data from the website)

    We will create the following three types of maps:

    • Map of health specialists
    • Map of health specialists access isolines
    • Choropleth of the population with access to health specialists
  • Utilities

    Python file that includes the following:

    • Definitions of the ORS and photon geocoders
    • Definitions of the helper functions.
    • Your Openrouteservice API key.
    • ISO 3166 alpha-3 country codes
  • ven_health_spec_spider

    Implementation of the Scrapy Spider that extracts the health specialists data for Venezuela from http://oncologia.org.ve/site/estructuras/

  • nam_health_spec_spider

    Implementation of the Scrapy Spider that extracts the health specialists data for Namibia from http://www.methealth.com.na/doctor_types.php

Map examples

You can find the maps in HTML format for Venezuela in Venezuela directory.

map gif

Dataset

Datasets used in this project are listed in the Download and prepare data and References sections.

Data is going to be stored in a folder structure according to the following template:

{Country_name}
            ├── Administrative_boundaries/
            ├── Health_facilities/
            ├── Population/
            └── Roads/

World_population_data/ directory contains the global population data, downloaded from the European Commission Global Human Settlement website.

Requirements

  1. Create a virtual environment (conda, virtualenv etc.).

    conda create -n <env_name> python=3.7

  2. Activate your environment.

    conda activate <env_name>

  3. Create a new kernel.

    pip install ipykernel

    python -m ipykernel install --user --name <env_name>

  4. Go to the directory: .local/share/jupyter/kernels/<env_name> and ensure that kernel.json file contains the path to your environment python interpreter (can be checked by which python command).

{
 "argv": [
  "home/user/anaconda3/envs/<env_name>/bin/python",
  "-m",
  "ipykernel_launcher",
  "-f",
  "{connection_file}"
 ],
 "display_name": "<env_name>",
 "language": "python"
}
  1. Install GDAL.

    • conda install -c conda-forge gdal
  2. Install requirements.

  3. Install ogr2osm.

    To be able to convert shapefiles to OSM format we have to install the ogr2osm.

    • git clone --recursive https://github.com/pnorman/ogr2osm

    To update the repository:

    • cd ogr2osm
    • git pull
    • git submodule update

    For more information regarding the installation and required dependencies visit: https://github.com/pnorman/ogr2osm

  4. Restart your environment.

    conda deactivate

    conda activate <env_name>

References

About

Health care facilities and specialists access analysis.


Languages

Language:Jupyter Notebook 100.0%Language:Python 0.0%