{
  "format": "dataset-manifest/1",
  "slug": "healthcare-operations-dataset",
  "version": 1,
  "seed": "healthcare-operations-dataset:1",
  "spec": {
    "format": "dataset/1",
    "slug": "healthcare-operations-dataset",
    "name": "Healthcare Operations Dataset",
    "tagline": "Patient visits including prescriptions, diagnoses, medications, and insurance details from hospital operations.",
    "description": "In hospitals, dedicated professionals work tirelessly to provide care to patients with diverse health needs. This dataset revolves around essential elements such as prescriptions, diagnoses, medications, and patient insurances, capturing the intricate dynamics of treatment and billing. Each row represents a patient visit, detailing the patient's health issues, the prescribed medications, and the associated insurance information. The data is synthetic, designed to model real-world hospital operations while allowing developers to practice SQL and ORM seeding. With this dataset, users can analyze how patient visits cluster around common health issues and understand how medications and diagnoses are linked. The dataset serves as a useful resource for those looking to practice data analytics, database design, or develop applications that require healthcare-related data.",
    "domain": "healthcare",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "healthcare",
      "hospital",
      "patient",
      "prescription",
      "diagnosis",
      "medication",
      "insurance"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "patient_visits": {
        "description": "Each row represents a visit by a patient, capturing details about their diagnoses, medications, and insurance. It links to various health issues and treatments.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each visit."
          },
          "patient_id": {
            "kind": "uuid",
            "description": "Unique identifier for each patient."
          },
          "visit_date": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date and time of the patient visit.",
            "dayProfile": "waking"
          },
          "diagnosis": {
            "kind": "enum",
            "values": [
              "Flu",
              "Diabetes",
              "Hypertension",
              "Allergy",
              "Infection"
            ],
            "weights": [
              0.4,
              0.2,
              0.2,
              0.1,
              0.1
            ],
            "description": "Diagnosis given during the visit."
          },
          "medication": {
            "kind": "enum",
            "values": [
              "Ibuprofen",
              "Metformin",
              "Lisinopril",
              "Antihistamine",
              "Antibiotic"
            ],
            "weights": [
              0.3,
              0.25,
              0.25,
              0.1,
              0.1
            ],
            "description": "Medication prescribed during the visit.",
            "nullable": true,
            "when": {
              "column": "diagnosis",
              "in": [
                "Flu",
                "Diabetes",
                "Hypertension",
                "Allergy",
                "Infection"
              ]
            }
          },
          "insurance_provider": {
            "kind": "enum",
            "values": [
              "Aetna",
              "Blue Cross",
              "Cigna",
              "United Healthcare",
              "Medicare"
            ],
            "weights": [
              0.3,
              0.25,
              0.2,
              0.15,
              0.1
            ],
            "description": "Insurance provider for the patient.",
            "nullable": true,
            "when": {
              "column": "diagnosis",
              "in": [
                "Flu",
                "Diabetes",
                "Hypertension",
                "Allergy",
                "Infection"
              ]
            }
          },
          "visit_reason": {
            "kind": "words",
            "min": 3,
            "max": 15,
            "description": "Reason for the visit in the patient's own words.",
            "nullable": true
          }
        }
      }
    },
    "structure": "single-table",
    "traits": [
      "categorical",
      "timestamped",
      "nullable"
    ],
    "analysisQuestions": [
      "What are the most common diagnoses among patients?",
      "How do medication prescriptions vary by diagnosis?",
      "What insurance providers are most frequently used by patients?",
      "What trends can be observed over time in patient visits?"
    ],
    "suggestedQueries": [
      {
        "title": "Retrieve all patient visits",
        "sql": "SELECT * FROM patient_visits;",
        "dialect": "postgres"
      },
      {
        "title": "Count visits by diagnosis",
        "sql": "SELECT diagnosis, COUNT(*) FROM patient_visits GROUP BY diagnosis;",
        "dialect": "postgres"
      },
      {
        "title": "Find common medications prescribed for diabetes",
        "sql": "SELECT medication, COUNT(*) FROM patient_visits WHERE diagnosis = 'Diabetes' GROUP BY medication;",
        "dialect": "postgres"
      },
      {
        "title": "Analyze visit trends over time",
        "sql": "SELECT DATE_TRUNC('month', visit_date) AS month, COUNT(*) FROM patient_visits GROUP BY month ORDER BY month;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Healthcare Analytics",
        "body": "Data analysts at a healthcare organization can use this dataset to analyze patient visit patterns, helping to identify prevalent health issues and optimize resource allocation."
      },
      {
        "title": "Application Development",
        "body": "Developers building healthcare applications can seed their databases with this synthetic data, allowing them to test features such as appointment scheduling, prescription management, and insurance billing."
      },
      {
        "title": "Educational Purposes",
        "body": "Students learning about healthcare informatics can use this dataset in projects to understand data relationships in a hospital setting, providing insights into patient care processes."
      }
    ]
  },
  "counts": {
    "patient_visits": 500
  },
  "stats": {
    "patient_visits": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "patient_id": {
          "nulls": 0,
          "distinct": 500
        },
        "visit_date": {
          "nulls": 0,
          "distinct": 500,
          "min": "2022-01-01 20:38:56",
          "max": "2023-12-29 20:42:47"
        },
        "diagnosis": {
          "nulls": 0,
          "distinct": 5,
          "min": "Allergy",
          "max": "Infection"
        },
        "medication": {
          "nulls": 0,
          "distinct": 5,
          "min": "Antibiotic",
          "max": "Metformin"
        },
        "insurance_provider": {
          "nulls": 0,
          "distinct": 5,
          "min": "Aetna",
          "max": "United Healthcare"
        },
        "visit_reason": {
          "nulls": 47,
          "distinct": 453
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/patient_visits.csv",
      "format": "csv",
      "table": "patient_visits",
      "key": "datasets/healthcare-operations-dataset/v1/csv/patient_visits.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/healthcare-operations-dataset/v1/csv/patient_visits.csv",
      "bytes": 72674,
      "sha256": "f985624dc85372f2aee22acdb2b12ab2e2480a0e168929d37844f0357056bb84",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "healthcare-operations-dataset.json",
      "format": "json",
      "table": null,
      "key": "datasets/healthcare-operations-dataset/v1/healthcare-operations-dataset.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/healthcare-operations-dataset/v1/healthcare-operations-dataset.json",
      "bytes": 158218,
      "sha256": "55c955c78d5f65cbb415b034b7b2ceee5c8712f96d035bdec3a0c2e9be96966e",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/healthcare-operations-dataset/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/healthcare-operations-dataset/v1/sql/postgres.sql",
      "bytes": 85821,
      "sha256": "6cc275f760e1be062c9bb1007788a78447add8af4b1eadbb2c404635324197f1",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/healthcare-operations-dataset/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/healthcare-operations-dataset/v1/sql/mysql.sql",
      "bytes": 85713,
      "sha256": "e2c6c52690f174f26b38e17e92501ae0a0ef2ef9bd7838055350f56893924f28",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/healthcare-operations-dataset/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/healthcare-operations-dataset/v1/sql/mssql.sql",
      "bytes": 88752,
      "sha256": "8b32cfff07df84224ff63131d1f15c52f5c4f3ff7a2f3f707cc097f620e89ff0",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/healthcare-operations-dataset/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/healthcare-operations-dataset/v1/sql/sqlite.sql",
      "bytes": 85659,
      "sha256": "6a10f00cfc7f26cbedb1692f7c54bb9bf5d2d35c0bed818aa8b3ba26831be2a5",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/healthcare-operations-dataset/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/healthcare-operations-dataset/v1/prisma/seed.ts",
      "bytes": 138451,
      "sha256": "b401faa2761cd976e551daffc5a50bdafc44d9f97a958197b74acf115c01cab2",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/healthcare-operations-dataset/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/healthcare-operations-dataset/v1/django/fixtures.json",
      "bytes": 183192,
      "sha256": "0637636a8d09970686a13fb03c1a4d58cdc4348e573627942c31b9b16b847eeb",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768068367,
  "updatedAt": 1788768068367
}
