Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 4 new columns ({'type', 'description', 'nullable', 'constraints'}) and 13 missing columns ({'source', 'osm_id', 'operator_type', 'facility_type', 'operational_status', 'speciality', 'beds', 'emergency', 'operator', 'amenity', 'address', 'longitude', 'latitude'}).

This happened while the csv dataset builder was generating data using

hf://datasets/opendoc-pakistan/pakistan_health_facility_registry/data_dictionary.csv (at revision ebd7bf77bc10243be1bf8914217aea4f11a2ab62), ['hf://datasets/opendoc-pakistan/pakistan_health_facility_registry@ebd7bf77bc10243be1bf8914217aea4f11a2ab62/data/processed/health_facilities.csv', 'hf://datasets/opendoc-pakistan/pakistan_health_facility_registry@ebd7bf77bc10243be1bf8914217aea4f11a2ab62/data_dictionary.csv']

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1837, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 773, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              name: string
              type: string
              description: string
              nullable: bool
              constraints: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 849
              to
              {'name': Value('string'), 'facility_type': Value('string'), 'amenity': Value('string'), 'speciality': Value('string'), 'operator': Value('string'), 'operator_type': Value('float64'), 'beds': Value('float64'), 'emergency': Value('string'), 'address': Value('string'), 'operational_status': Value('float64'), 'longitude': Value('float64'), 'latitude': Value('float64'), 'osm_id': Value('int64'), 'source': Value('string')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1683, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1839, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 4 new columns ({'type', 'description', 'nullable', 'constraints'}) and 13 missing columns ({'source', 'osm_id', 'operator_type', 'facility_type', 'operational_status', 'speciality', 'beds', 'emergency', 'operator', 'amenity', 'address', 'longitude', 'latitude'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/opendoc-pakistan/pakistan_health_facility_registry/data_dictionary.csv (at revision ebd7bf77bc10243be1bf8914217aea4f11a2ab62), ['hf://datasets/opendoc-pakistan/pakistan_health_facility_registry@ebd7bf77bc10243be1bf8914217aea4f11a2ab62/data/processed/health_facilities.csv', 'hf://datasets/opendoc-pakistan/pakistan_health_facility_registry@ebd7bf77bc10243be1bf8914217aea4f11a2ab62/data_dictionary.csv']
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

name
string
facility_type
string
amenity
string
speciality
null
operator
null
operator_type
null
beds
null
emergency
null
address
null
operational_status
null
longitude
float64
latitude
float64
osm_id
int64
source
null
Karim Bux Nursing Hostal
hospital
hospital
null
null
null
null
null
null
null
67.064846
24.898128
5,147,825,920
null
Chohan Clinic
doctors
doctors
null
null
null
null
null
null
null
74.327058
31.542741
4,387,287,290
null
Moosani Dental Surgery
clinic
clinic
null
null
null
null
null
null
null
67.056008
24.864497
5,133,026,894
null
Aga Khan Dispensary Salimabad
clinic
clinic
null
null
null
null
null
null
null
67.075686
24.934709
5,146,930,683
null
Dr Azhra Hospital
hospital
hospital
null
null
null
null
null
null
null
67.101853
24.922907
4,793,731,858
null
Hospital
hospital
hospital
null
null
null
null
null
null
null
73.151913
32.373558
5,507,599,315
null
Dr Dil Raj
doctor
doctors
null
null
null
null
null
null
null
72.460068
34.506087
6,536,727,726
null
Fatima Hospital
hospital
hospital
null
null
null
null
null
null
null
74.147526
32.307013
2,961,536,114
null
Sadia Tariq Clinic
clinic
clinic
null
null
null
null
null
null
null
71.672653
29.407284
4,923,820,119
null
Kara Medical Clinic
clinic
clinic
null
null
null
null
null
null
null
67.064195
24.889942
4,779,033,041
null
Pak Medico Store
pharmacy
pharmacy
null
null
null
null
null
null
null
67.0881
24.87484
4,788,607,083
null
null
hospital
hospital
null
null
null
null
null
null
null
73.581369
32.42991
4,366,015,691
null
Tehsil Head Quatar Hospital Jahanian
hospital
hospital
null
null
null
null
null
null
null
null
null
531,275,744
null
Zahid Medical Centre & Maternity Home
hospital
hospital
null
null
null
null
null
null
null
66.884894
25.027175
5,314,852,221
null
United Hospital
hospital
hospital
null
null
null
null
null
null
null
73.137636
31.438768
5,267,889,391
null
Nishtar Medical College
hospital
hospital
null
null
null
null
null
null
null
71.444061
30.202948
444,356,921
null
Doctors Plaza, The Plaza
hospital
hospital
null
null
null
null
null
null
null
67.034916
24.821564
5,133,405,491
null
Safdar Medical Store
pharmacy
pharmacy
null
null
null
null
null
null
null
74.871053
32.101178
4,258,681,192
null
Waqar Medical Store
pharmacy
pharmacy
null
null
null
null
null
null
null
66.932226
24.964273
5,312,348,466
null
Kosar Medical Center
hospital
hospital
null
null
null
null
null
null
null
67.060628
24.916159
5,286,054,986
null
Al Hammed Medical Store
pharmacy
pharmacy
null
null
null
null
null
null
null
67.072678
24.960261
5,117,635,011
null
Hearts Pharmacy
pharmacy
pharmacy
null
null
null
null
null
null
null
73.10651
33.561787
1,423,658,185
null
Karachi Psychiatric Hospital
hospital
hospital
null
null
null
null
null
null
null
67.030941
24.917029
5,128,052,897
null
Altamash Institute of Dental Medicine
dentist
dentist
null
null
null
null
null
null
null
67.021558
24.814703
4,785,000,935
null
SAJID MEDICAL STORE
pharmacy
pharmacy
null
null
null
null
null
null
null
71.933637
34.581772
5,312,436,429
null
Faiz E Aam General Hospital And Maternity
hospital
hospital
null
null
null
null
null
null
null
67.127644
25.01624
5,069,109,836
null
Homeopathic Pharmacy
pharmacy
pharmacy
null
null
null
null
null
null
null
67.067268
24.881867
4,777,144,240
null
DOCTORS PLAZA
hospital
hospital
null
null
null
null
null
null
null
68.356747
25.371198
1,088,992,109
null
Primary Health Center
hospital
hospital
null
null
null
null
null
null
null
73.609949
33.024933
5,533,146,521
null
Shifa ul Mulk Memorial Hospital
hospital
hospital
null
null
null
null
null
null
null
67.014008
25.090022
5,134,471,725
null
Al-Nasar
hospital
hospital
null
null
null
null
null
null
null
74.303033
31.474864
5,334,281,221
null
Jameel Medicos
pharmacy
pharmacy
null
null
null
null
null
null
null
67.068484
24.96694
5,084,136,016
null
Umar Pharmacy
hospital
hospital
null
null
null
null
null
null
null
71.542775
32.581705
4,327,680,649
null
Surgimed Hospital Lahore
hospital
hospital
null
null
null
null
null
null
null
74.351274
31.538094
5,255,279,607
null
Sailani Medical & Super Store
clinic
clinic
null
null
null
null
null
null
null
67.094256
24.93244
4,739,833,631
null
Dr.Shagufta Zaheer Maternity Clinic
hospital
hospital
null
null
null
null
null
null
null
73.112324
31.402605
5,259,931,219
null
Corner Chemist
pharmacy
pharmacy
null
null
null
null
null
null
null
67.050647
24.956706
3,847,129,039
null
Shezad medical store
clinic
clinic
null
null
null
null
null
null
null
73.078704
31.421078
6,344,941,785
null
RHC Mandra
hospital
hospital
null
null
null
null
null
null
null
null
null
256,582,068
null
Government Veterinary Hospital Chak No 220 RB Faisalabad
hospital
hospital
null
null
null
null
null
null
null
73.040618
31.418063
5,259,596,759
null
Bashir Butt Memorial Hospital
hospital
hospital
null
null
null
null
null
null
null
74.200259
32.174427
4,905,664,785
null
Cavalry Hospital Lahore
hospital
hospital
null
null
null
null
null
null
null
74.36307
31.501934
5,259,654,964
null
Sajid Clinic
clinic
clinic
null
null
null
null
null
null
null
67.012995
24.941
5,147,772,667
null
East Side Hospital - Korangi
hospital
hospital
null
null
null
null
null
null
null
67.118828
24.837999
4,769,518,748
null
Sindh Institute of Ophthalmology Eye Hospital Hyderabad
clinic
clinic
null
null
null
null
null
null
null
68.365018
25.411975
4,838,571,870
null
null
pharmacy
pharmacy
null
null
null
null
null
null
null
71.682478
29.391361
4,502,424,990
null
MI Room
hospital
hospital
null
null
null
null
null
null
null
71.990297
34.056725
5,293,768,021
null
Sharjah Medical Store
pharmacy
pharmacy
null
null
null
null
null
null
null
74.177106
32.123456
4,905,790,438
null
Umar Hospital
hospital
hospital
null
null
null
null
null
null
null
73.080504
31.435249
5,193,820,226
null
null
dentist
dentist
null
null
null
null
null
null
null
71.400771
30.168755
4,749,346,321
null
Rahim Hospital
doctors
doctors
null
null
null
null
null
null
null
null
null
258,522,573
null
Fatma Hospital
hospital
hospital
null
null
null
null
null
null
null
67.110807
24.917986
6,305,478,232
null
Al Shifa Medical and Welfare Clinic
clinic
clinic
null
null
null
null
null
null
null
67.137485
24.934895
5,130,443,944
null
Noor Clinic
clinic
clinic
null
null
null
null
null
null
null
null
null
541,330,379
null
BHU Basic Health Centre
clinic
clinic
null
null
null
null
null
null
null
null
null
263,412,807
null
null
pharmacy
pharmacy
null
null
null
null
null
null
null
74.354928
35.901657
6,758,748,285
null
Amna Skin Care and Hair Transplant
clinic
clinic
null
null
null
null
null
null
null
72.724446
33.785398
5,416,875,311
null
MMC
hospital
hospital
null
null
null
null
null
null
null
71.599578
34.033108
6,385,698,386
null
Shaukat Khanum Laboratory Collection Centre
pharmacy
pharmacy
null
null
null
null
null
null
null
73.057908
33.709842
4,966,256,877
null
Al-Mujeeb Hospital
hospital
hospital
null
null
null
null
null
null
null
67.065133
25.02393
5,329,382,230
null
Irfan Medical Store
pharmacy
pharmacy
null
null
null
null
null
null
null
74.423978
32.382452
3,501,693,086
null
PPHI
clinic
clinic
null
null
null
null
null
null
null
69.015184
25.434101
5,406,055,639
null
The Smart School, Iqbal Campus
hospital
hospital
null
null
null
null
null
null
null
67.133548
24.928733
5,317,775,547
null
Fatima Kidney Care Hospital
hospital
hospital
null
null
null
null
null
null
null
67.037744
25.002597
5,128,396,157
null
Johar Khatoon
hospital
hospital
null
null
null
null
null
null
null
null
null
106,359,697
null
BMC Medical College
doctors
doctors
null
null
null
null
null
null
null
66.974314
30.191222
4,492,365,191
null
heart Specialist
clinic
clinic
null
null
null
null
null
null
null
73.742019
33.147045
6,408,007,785
null
null
hospital
hospital
null
null
null
null
null
null
null
73.568293
32.430001
4,439,299,795
null
Hameed Hospital
hospital
hospital
null
null
null
null
null
null
null
72.402364
33.879399
4,475,431,689
null
City Mart & Pharmacy
pharmacy
pharmacy
null
null
null
null
null
null
null
67.04664
24.799666
4,788,531,526
null
Rehman Free Dialysis Center
hospital
hospital
null
null
null
null
null
null
null
73.128422
31.434459
5,267,806,240
null
Punjab Social Security Hospital
hospital
hospital
null
null
null
null
null
null
null
null
null
262,405,369
null
Taluka Hospital Lakhi
hospital
hospital
null
null
null
null
null
null
null
null
null
295,087,045
null
Banaras National Hospital
hospital
hospital
null
null
null
null
null
null
null
67.008499
24.943016
5,088,685,994
null
Kausar Medicos
pharmacy
pharmacy
null
null
null
null
null
null
null
67.012186
24.857431
4,791,991,084
null
Aliabad, Hospital
hospital
hospital
null
null
null
null
null
null
null
74.614497
36.309495
444,597,688
null
choohar chak gujranwala
clinic
clinic
null
null
null
null
null
null
null
73.944712
32.032896
4,543,006,229
null
DHQ Hospital
hospital
hospital
null
null
null
null
null
null
null
null
null
677,846,489
null
Labour Hospital
hospital
hospital
null
null
null
null
null
null
null
67.932325
30.106247
3,037,408,245
null
Vaccine Care
clinic
clinic
null
null
null
null
null
null
null
71.451833
33.994073
6,450,693,687
null
Jinnah Hospital
hospital
hospital
null
null
null
null
null
null
null
73.129972
31.403694
5,263,913,101
null
The Medicos
pharmacy
pharmacy
null
null
null
null
null
null
null
72.452588
34.598064
4,989,822,322
null
Hakeem Ubaid
doctors
doctors
null
null
null
null
null
null
null
71.349467
29.828188
4,437,516,391
null
Haleema Medical Complex
hospital
hospital
null
null
null
null
null
null
null
71.448791
30.203283
1,921,953,434
null
FAAS Pharmaceuticals
pharmacy
pharmacy
null
null
null
null
null
null
null
66.995365
24.905847
5,092,989,974
null
Tawakel Medical Cenyer
clinic
clinic
null
null
null
null
null
null
null
67.002274
24.952644
5,097,989,043
null
Agha Khan Diagnostic Center
hospital
hospital
null
null
null
null
null
null
null
67.033755
24.938497
4,739,903,920
null
Farooq Hospital
hospital
hospital
null
null
null
null
null
null
null
74.235773
31.46539
4,387,273,191
null
LRBT Eye Hospital
hospital
hospital
null
null
null
null
null
null
null
null
null
257,133,789
null
Farooq e Azam Computer Institute
hospital
hospital
null
null
null
null
null
null
null
67.052318
24.949322
5,199,415,800
null
Pharmic Plus
pharmacy
pharmacy
null
null
null
null
null
null
null
67.061778
24.80722
4,770,056,042
null
Citi Pharmacy
pharmacy
pharmacy
null
null
null
null
null
null
null
71.680027
29.39083
4,923,902,161
null
civil hospital road
hospital
hospital
null
null
null
null
null
null
null
71.917978
30.2844
4,577,564,289
null
PAF Hospital
hospital
hospital
null
null
null
null
null
null
null
72.680504
32.05635
4,320,650,680
null
Surgical Centre Islamabad
hospital
hospital
null
null
null
null
null
null
null
73.033315
33.714944
6,521,223,343
null
Shaheen Pharmacy
pharmacy
pharmacy
null
null
null
null
null
null
null
73.075512
33.729717
660,956,958
null
Tehsil Headquarters Hospital
hospital
hospital
null
null
null
null
null
null
null
72.257976
36.27165
3,559,437,851
null
Mujahid Pharmacy
pharmacy
pharmacy
null
null
null
null
null
null
null
73.118972
31.423242
5,194,296,828
null
Mian Meer Welfair Hospital
hospital
hospital
null
null
null
null
null
null
null
74.357159
31.548434
5,267,413,985
null
Al Noor Hospital
hospital
hospital
null
null
null
null
null
null
null
null
null
552,937,341
null
End of preview.

Pakistan Health Facility Registry (Geolocated)

A geolocated registry of health facilities in Pakistan (hospitals, clinics, dispensaries, pharmacies, doctors) with facility type, operator, bed counts where available, and coordinates. Derived from the OpenStreetMap-based healthsites.io export published on Open Data Pakistan, with personal-identifier columns removed.


Source: OpenDoc Pakistan

Pakistan Health Facility Registry (Geolocated)

Summary

A geolocated registry of health facilities across Pakistan — hospitals, clinics, dispensaries, doctors, dentists, and pharmacies — with facility type, operator, bed counts (where tagged), and WGS84 coordinates. It is derived from the OpenStreetMap-based healthsites.io export published on Open Data Pakistan. Personal-identifier columns present in the raw export (contact phone numbers, editor usernames, per-staff fields, UUIDs) have been removed during processing. Useful for health-access mapping, facility-density analysis, and geospatial ML.

Dataset Details

  • Dataset ID: pakistan-health-facility-registry
  • Version: 1.0.0
  • Category: Health
  • Tags: health-facilities, hospitals, clinics, geospatial, healthsites, osm, pakistan
  • Language: English
  • Geography: Pakistan (nationwide, point locations)
  • File Formats: CSV
  • Records: 2,997 facilities (2,872 named)
  • Update Frequency: Irregular (as source/OSM is refreshed)
  • Maintainer: OpenDoc Data Stewardship Team

Source and Provenance

  • Source Name: Open Data Pakistan — "Pakistan Health Sites" (healthsites.io / OpenStreetMap export)
  • Source URL: https://opendata.com.pk/dataset/pakistan-health-sites
  • Source Type: Open-data portal CSV resource, originating from OpenStreetMap contributors via healthsites.io
  • Collection Method: Direct download of the published CSV resource.
  • Collection Date: July 2026
  • Processing Pipeline: Selected facility-attribute columns; dropped PII columns (contact_number, changeset_user, uuid, staff_doctors, staff_nurses, changeset metadata); normalised facility_type (healthcare tag, falling back to amenity); kept rows with a name or a coordinate pair.
  • Raw Data Availability: Public on the ODP portal and healthsites.io.

License

  • Original License: Open Database License (ODbL) 1.0 — inherited from OpenStreetMap.
  • Repository License: ODbL 1.0 (share-alike; retained to comply with the source license).
  • Attribution Required: Yes — "© OpenStreetMap contributors".
  • Commercial Use: Allowed under ODbL terms.
  • Redistribution: Allowed under ODbL (derivative databases must remain ODbL).
  • Restrictions: Must attribute OpenStreetMap contributors and healthsites.io; share-alike applies.

Intended Use

Appropriate for:

  • Mapping health-facility access and geographic coverage gaps.
  • Facility-density and catchment analysis.
  • Geospatial ML (clustering, accessibility modelling).

Out-of-Scope Use

  • Authoritative facility licensing/accreditation decisions — this is crowd-sourced OSM data, not an official registry.
  • Contacting facilities — contact details have been intentionally removed.

Data Structure

Single CSV at data/processed/health_facilities.csv. One row per facility (point). See the data dictionary for all columns.

Data Dictionary

See data_dictionary.csv.

Quality Report

  • Quality Score: 85 / 100
  • Rating: Good (deductions: sparsely populated optional OSM columns; ODbL not in the scorer's open-license whitelist despite being an open license)
  • Records: 2,997 facilities; 2,872 have a name.
  • Missing Values: Many optional OSM tags (beds, operator, speciality, address) are sparsely populated — this reflects OSM coverage.
  • Validation Status: Passes Frictionless tabular-data-resource schema.
  • Known Issues: Coordinates and completeness vary; some points may be duplicated or stale in the underlying OSM data.

Privacy and Sensitivity Review

  • Privacy Level: P0 after redaction (facility locations are public infrastructure).
  • Personal Data Present: No (contact numbers, editor usernames, and per-staff fields removed).
  • Sensitive Data Present: No.
  • Redactions Applied: Dropped contact_number, changeset_user, uuid, staff_doctors, staff_nurses, and changeset metadata columns.
  • Reviewer: OpenDoc Compliance Board

Bias, Gaps, and Limitations

  • OSM coverage skews toward urban centres; rural facilities are under-represented.
  • Facility typing depends on volunteer tagging quality and is not standardised to a national health taxonomy.

Example Usage

import pandas as pd

df = pd.read_csv("data/processed/health_facilities.csv")

# Count facilities by type
print(df["facility_type"].value_counts().head(10))

# Hospitals with recorded coordinates
hospitals = df[(df["facility_type"] == "hospital") & df["latitude"].notna()]
print(len(hospitals))

Citation

OpenStreetMap contributors / healthsites.io via Open Data Pakistan, "Pakistan Health Sites", curated as "Pakistan Health Facility Registry" by OpenDoc Pakistan (OpenDoc), v1.0.0, 2026. © OpenStreetMap contributors, ODbL.
Downloads last month
16