{
  "format": "dataset-manifest/1",
  "slug": "public-health-data",
  "version": 1,
  "seed": "public-health-data:1",
  "spec": {
    "format": "dataset/1",
    "slug": "public-health-data",
    "name": "Public Health Insights",
    "tagline": "Health surveys, vaccinations, prescriptions, and chronic conditions data from diverse patient populations.",
    "description": "Healthcare providers analyze vaccination rates and chronic conditions to inform public health initiatives. Clinics and hospitals collect health survey data to understand community needs and track health trends. Each health survey captures patient responses regarding their medical history, lifestyle choices, and current health status, providing a rich source of insights for healthcare professionals. Vaccination events are documented to monitor immunization rates, which are crucial for preventing disease outbreaks. Prescriptions detail medications prescribed to patients, giving insight into common health issues faced by the population. Chronic conditions, recorded for each patient, help in identifying prevalent health challenges and planning targeted interventions.\n\nThe tables in this dataset relate closely, forming a comprehensive picture of public health. Each row in the health_surveys table corresponds to an individual patient's responses, which can be linked to specific vaccination_events through patient identifiers. Prescriptions are tied to patients, allowing users to analyze medication trends in relation to chronic_conditions. By correlating vaccination events with health survey data, one can assess the effectiveness of vaccination campaigns on the health of various demographics.\n\nThis dataset answers critical questions about public health, such as: What vaccination rates are being achieved in different regions? How do chronic conditions influence prescription patterns? Are there any correlations between vaccination events and reported adverse health outcomes? The data is excellent for practicing data analysis techniques, such as joins and aggregations, and for generating insights that can lead to improved public health strategies. Keep in mind that the records are synthetic, designed for educational purposes, ensuring that no real patient information is included.",
    "domain": "pharmacy",
    "shape": "event-log",
    "useCases": [
      "analytics-demo",
      "etl-pipelines"
    ],
    "keywords": [
      "public health",
      "vaccination",
      "health surveys",
      "prescriptions",
      "chronic conditions",
      "data analytics",
      "synthetic data"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "health_surveys": {
        "description": "Each row represents a health survey response from a patient, linking to their demographic and health data.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each health survey response."
          },
          "patient_id": {
            "kind": "fk",
            "ref": "patients.id",
            "description": "ID of the patient who completed the survey."
          },
          "survey_date": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date when the survey was completed.",
            "trend": "seasonal"
          },
          "health_status": {
            "kind": "enum",
            "values": [
              "good",
              "fair",
              "poor"
            ],
            "description": "Self-reported health status of the patient."
          },
          "chronic_conditions": {
            "kind": "words",
            "max": 50,
            "description": "List of chronic conditions reported by the patient.",
            "nullable": true,
            "when": {
              "column": "health_status",
              "in": [
                "fair",
                "poor"
              ]
            }
          }
        }
      },
      "vaccination_events": {
        "description": "This table records vaccination events, detailing which patients received vaccinations and when.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each vaccination event."
          },
          "patient_id": {
            "kind": "fk",
            "ref": "patients.id",
            "description": "ID of the patient who received the vaccination."
          },
          "vaccine_type": {
            "kind": "enum",
            "values": [
              "flu",
              "MMR",
              "COVID-19",
              "HPV"
            ],
            "description": "Type of vaccine administered."
          },
          "vaccination_date": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date when the vaccination was administered.",
            "trend": "seasonal"
          },
          "adverse_event": {
            "kind": "bool",
            "trueRate": 0.1,
            "description": "Indicates if any adverse event was reported post-vaccination.",
            "nullable": true,
            "when": {
              "column": "vaccine_type",
              "in": [
                "flu",
                "MMR",
                "COVID-19"
              ]
            }
          }
        }
      },
      "prescriptions": {
        "description": "Each row details a prescription issued to patients, linking to the corresponding health survey and vaccination records.",
        "rows": 400,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each prescription."
          },
          "patient_id": {
            "kind": "fk",
            "ref": "patients.id",
            "description": "ID of the patient who received the prescription."
          },
          "medication_name": {
            "kind": "words",
            "max": 50,
            "description": "Name of the medication prescribed."
          },
          "prescription_date": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date when the prescription was issued.",
            "trend": "growing"
          },
          "dosage": {
            "kind": "words",
            "max": 20,
            "description": "Dosage instructions for the prescribed medication."
          }
        }
      },
      "chronic_conditions": {
        "description": "This table catalogs chronic conditions reported by patients, linking to their health surveys.",
        "rows": 250,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each chronic condition entry."
          },
          "patient_id": {
            "kind": "fk",
            "ref": "patients.id",
            "description": "ID of the patient with the chronic condition."
          },
          "condition_name": {
            "kind": "words",
            "max": 50,
            "description": "Name of the chronic condition."
          },
          "diagnosis_date": {
            "kind": "date",
            "from": "2010-01-01",
            "to": "2023-12-31",
            "description": "Date when the chronic condition was diagnosed.",
            "trend": "growing"
          }
        }
      },
      "patients": {
        "description": "The patients table holds demographic information of the patients involved in health surveys and vaccinations.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each patient."
          },
          "age": {
            "kind": "int",
            "min": 0,
            "max": 100,
            "description": "Age of the patient."
          },
          "gender": {
            "kind": "enum",
            "values": [
              "male",
              "female",
              "other"
            ],
            "description": "Gender of the patient."
          },
          "region": {
            "kind": "words",
            "max": 50,
            "description": "Region where the patient resides.",
            "nullable": true,
            "when": {
              "column": "gender",
              "in": [
                "other"
              ]
            }
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "high-cardinality",
      "categorical",
      "nullable"
    ],
    "analysisQuestions": [
      "What is the average age of patients receiving vaccinations?",
      "How do vaccination rates vary by region and gender?",
      "Are there any correlations between chronic conditions and the types of medications prescribed?",
      "What percentage of patients reported adverse events after vaccination?",
      "How has the prevalence of chronic conditions changed over the years?"
    ],
    "suggestedQueries": [
      {
        "title": "List all patients with their vaccination events",
        "sql": "SELECT p.id, p.age, v.vaccine_type, v.vaccination_date FROM patients AS p JOIN vaccination_events AS v ON p.id = v.patient_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count of vaccinations by vaccine type",
        "sql": "SELECT vaccine_type, COUNT(*) FROM vaccination_events GROUP BY vaccine_type;",
        "dialect": "postgres"
      },
      {
        "title": "Average age of patients with chronic conditions",
        "sql": "SELECT AVG(p.age) FROM patients AS p JOIN chronic_conditions AS c ON p.id = c.patient_id;",
        "dialect": "postgres"
      },
      {
        "title": "Patients with adverse events post-vaccination",
        "sql": "SELECT p.id, p.gender FROM patients AS p JOIN vaccination_events AS v ON p.id = v.patient_id WHERE v.adverse_event = TRUE;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Public Health Analysts",
        "body": "Public health analysts can utilize this dataset to examine health trends across different demographics and regions. By analyzing vaccination rates and chronic conditions, they can identify health disparities and recommend targeted health interventions to improve community health outcomes."
      },
      {
        "title": "Pharmaceutical Researchers",
        "body": "Pharmaceutical researchers can leverage the detailed prescription data to study the effectiveness of medications for chronic conditions. This dataset allows them to correlate health survey responses with medication outcomes, helping to inform clinical trials and drug development."
      },
      {
        "title": "Healthcare Policy Makers",
        "body": "Healthcare policymakers can use this dataset to understand the impact of vaccination programs and public health campaigns. Insights derived from the data can guide policy decisions aimed at increasing vaccination uptake and managing chronic diseases in the population."
      },
      {
        "title": "Data Scientists",
        "body": "Data scientists can practice their data analysis and ETL skills using this dataset. The variety of tables and relationships offers a rich ground for building predictive models, exploring data visualization techniques, and developing data-driven strategies for health improvements."
      }
    ]
  },
  "counts": {
    "patients": 500,
    "chronic_conditions": 250,
    "health_surveys": 500,
    "prescriptions": 400,
    "vaccination_events": 300
  },
  "stats": {
    "health_surveys": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "patient_id": {
          "nulls": 0,
          "distinct": 314,
          "min": 1,
          "max": 499
        },
        "survey_date": {
          "nulls": 0,
          "distinct": 343,
          "min": "2022-01-01",
          "max": "2023-12-30"
        },
        "health_status": {
          "nulls": 0,
          "distinct": 3,
          "min": "fair",
          "max": "poor"
        },
        "chronic_conditions": {
          "nulls": 181,
          "distinct": 319
        }
      }
    },
    "vaccination_events": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "patient_id": {
          "nulls": 0,
          "distinct": 239,
          "min": 1,
          "max": 500
        },
        "vaccine_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "COVID-19",
          "max": "flu"
        },
        "vaccination_date": {
          "nulls": 0,
          "distinct": 242,
          "min": "2022-01-02",
          "max": "2023-12-31"
        },
        "adverse_event": {
          "nulls": 63,
          "distinct": 2,
          "min": "false",
          "max": "true"
        }
      }
    },
    "prescriptions": {
      "rows": 400,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 400,
          "min": 1,
          "max": 400
        },
        "patient_id": {
          "nulls": 0,
          "distinct": 272,
          "min": 3,
          "max": 500
        },
        "medication_name": {
          "nulls": 0,
          "distinct": 400
        },
        "prescription_date": {
          "nulls": 0,
          "distinct": 308,
          "min": "2022-01-01",
          "max": "2023-12-31"
        },
        "dosage": {
          "nulls": 0,
          "distinct": 400
        }
      }
    },
    "chronic_conditions": {
      "rows": 250,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 250,
          "min": 1,
          "max": 250
        },
        "patient_id": {
          "nulls": 0,
          "distinct": 188,
          "min": 3,
          "max": 499
        },
        "condition_name": {
          "nulls": 0,
          "distinct": 250
        },
        "diagnosis_date": {
          "nulls": 0,
          "distinct": 243,
          "min": "2010-01-18",
          "max": "2023-12-30"
        }
      }
    },
    "patients": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "age": {
          "nulls": 0,
          "distinct": 101,
          "min": 0,
          "max": 100
        },
        "gender": {
          "nulls": 0,
          "distinct": 3,
          "min": "female",
          "max": "other"
        },
        "region": {
          "nulls": 330,
          "distinct": 170
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/patients.csv",
      "format": "csv",
      "table": "patients",
      "key": "datasets/public-health-data/v1/csv/patients.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/public-health-data/v1/csv/patients.csv",
      "bytes": 37079,
      "sha256": "0a085df07c8693e0ce6a21aad964a19d8cec5f1297924e9387c33a6ea54e2048",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/chronic_conditions.csv",
      "format": "csv",
      "table": "chronic_conditions",
      "key": "datasets/public-health-data/v1/csv/chronic_conditions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/public-health-data/v1/csv/chronic_conditions.csv",
      "bytes": 51292,
      "sha256": "196f9e74caba0ff93f450a0d58d898d9fed528974e2c254bcc329e5a39f2e565",
      "rows": 250,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/health_surveys.csv",
      "format": "csv",
      "table": "health_surveys",
      "key": "datasets/public-health-data/v1/csv/health_surveys.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/public-health-data/v1/csv/health_surveys.csv",
      "bytes": 69704,
      "sha256": "8ddd0ec75279c3289cbf582be2d76a117c96d936f0aa52ccd80abccebe8409d3",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/prescriptions.csv",
      "format": "csv",
      "table": "prescriptions",
      "key": "datasets/public-health-data/v1/csv/prescriptions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/public-health-data/v1/csv/prescriptions.csv",
      "bytes": 107607,
      "sha256": "50bd6b83149b5e631f626b8525ae9f1fde982b8cd763b9e266af5cfa1b7ed6cf",
      "rows": 400,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/vaccination_events.csv",
      "format": "csv",
      "table": "vaccination_events",
      "key": "datasets/public-health-data/v1/csv/vaccination_events.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/public-health-data/v1/csv/vaccination_events.csv",
      "bytes": 8985,
      "sha256": "1caf659ac456d30e33b8361fdf25d6ad551afde9ff56c83a3031c1d7697756af",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "public-health-data.json",
      "format": "json",
      "table": null,
      "key": "datasets/public-health-data/v1/public-health-data.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/public-health-data/v1/public-health-data.json",
      "bytes": 487283,
      "sha256": "48b062baec7aba6d6cfcf2036303282a71ceee0709b0bf7fb080b97320f0c235",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/public-health-data/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/public-health-data/v1/sql/postgres.sql",
      "bytes": 307714,
      "sha256": "d21bc4fa70bbe4c41e02ab1b972fd81bfc6b5233d8f1f9ee20ac7eb66555a66a",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/public-health-data/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/public-health-data/v1/sql/mysql.sql",
      "bytes": 306188,
      "sha256": "d9f13a75c67e2d08eaa22cb705e07a9d4a652d66344bce9c391ad5f7b5290481",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/public-health-data/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/public-health-data/v1/sql/mssql.sql",
      "bytes": 310845,
      "sha256": "360fd14f2d2e6b4fea06928112f84ea35ab9e256ec874d254404f5508e499838",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/public-health-data/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/public-health-data/v1/sql/sqlite.sql",
      "bytes": 305927,
      "sha256": "fed1b5640259a0ebdec901a707fe422b5fb7dce9830ad151077a2f988ed2dde2",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/public-health-data/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/public-health-data/v1/prisma/seed.ts",
      "bytes": 424008,
      "sha256": "98b36864a7e649d1d1a7cf269b45b4977fc425631c3154919e2a25fe0ea1a745",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/public-health-data/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/public-health-data/v1/django/fixtures.json",
      "bytes": 578052,
      "sha256": "6f57c6f2f804892e2c145141a6a450617b9975f268182dc1fe1bfa09af6b4e6f",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788766640327,
  "updatedAt": 1788766640327
}
