{
  "format": "dataset-manifest/1",
  "slug": "chronic-pain-management-app",
  "version": 1,
  "seed": "chronic-pain-management-app:1",
  "spec": {
    "format": "dataset/1",
    "slug": "chronic-pain-management-app",
    "name": "Chronic Pain Insights",
    "tagline": "Chronic pain data including medication usage, symptom severity, and sensor readings from patient interactions.",
    "description": "Clinicians monitor chronic pain levels, tracking patients' symptoms and treatment plans to improve their quality of life. Each patient regularly updates their symptom severity, logs medication usage, and records sensor readings that contribute to a comprehensive understanding of their condition. This ongoing interaction allows for adjustments in treatment strategies, making the management of chronic pain a dynamic process. The operation hinges on the collection and analysis of various data points, including medication usage patterns, severity scores, and appointment notes, which often capture evolving trends in patient experiences.\n\nThe core of the operation resides in the chronic_pain_data table, where each row represents an individual patient's interaction with their treatment plan. This includes details such as the specific medications taken, the frequency and severity of reported symptoms, and any notable changes in pain location as recorded during clinician appointments. Each entry serves as a snapshot of the patient’s journey and reveals valuable insights through historical comparisons and statistical analysis.\n\nPractitioners and developers can explore critical questions with this data, such as identifying which medications correlate with the most significant symptom relief, monitoring the effectiveness of treatment adjustments, and discovering patterns in symptom severity over time. This dataset serves as an excellent resource for practicing data analysis skills, allowing users to simulate real-world scenarios and draw meaningful conclusions from healthcare data. Note that all data in this dataset is synthetic, designed to reflect realistic interactions without compromising patient confidentiality.",
    "domain": "saas",
    "shape": "time-series",
    "useCases": [
      "analytics-demo",
      "bi-dashboards"
    ],
    "keywords": [
      "chronic pain",
      "healthcare",
      "patient management",
      "symptom tracking",
      "medication",
      "analytics",
      "SaaS"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "chronic_pain_data": {
        "description": "This table contains records of individual patient interactions, linking symptom severity, medication use, and clinician notes. Each row captures a snapshot of a patient's pain management journey, providing insights into treatment patterns and outcomes.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each record."
          },
          "patient_id": {
            "kind": "uuid",
            "description": "Unique identifier for the patient."
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "The date and time of the recorded patient interaction.",
            "dayProfile": "waking"
          },
          "symptom_severity": {
            "kind": "int",
            "min": 0,
            "max": 10,
            "description": "Patient-reported pain severity on a scale from 0 (no pain) to 10 (worst pain).",
            "nullable": true,
            "when": {
              "column": "medication_adjustment",
              "in": [
                "increased",
                "decreased"
              ]
            }
          },
          "medication_adjustment": {
            "kind": "enum",
            "values": [
              "none",
              "increased",
              "decreased"
            ],
            "description": "Indicates if there was a change in medication: none, increased, or decreased."
          },
          "sensor_reading": {
            "kind": "decimal",
            "min": 0,
            "max": 100,
            "scale": 2,
            "description": "Sensor readings related to pain levels, measured on a scale from 0 to 100.",
            "nullable": true
          },
          "clinician_notes": {
            "kind": "words",
            "max": 50,
            "description": "Summary of clinician notes from the appointment, providing context to the patient interaction.",
            "nullable": true
          }
        }
      }
    },
    "structure": "single-table",
    "traits": [
      "timestamped",
      "monetary",
      "free-text"
    ],
    "analysisQuestions": [
      "How do symptom severity scores change over time?",
      "What trends are observed in medication adjustments?",
      "Are there specific times of day when pain levels peak?",
      "How do clinician notes correlate with changes in symptom severity?",
      "What is the average pain level reported by patients after medication adjustments?"
    ],
    "suggestedQueries": [
      {
        "title": "Retrieve all records for a specific patient",
        "sql": "SELECT * FROM chronic_pain_data WHERE patient_id = 'your_patient_id';",
        "dialect": "postgres"
      },
      {
        "title": "Average symptom severity by month",
        "sql": "SELECT DATE_TRUNC('month', timestamp) AS month, AVG(symptom_severity) AS avg_severity FROM chronic_pain_data GROUP BY month ORDER BY month;",
        "dialect": "postgres"
      },
      {
        "title": "Count of medication adjustments over time",
        "sql": "SELECT timestamp::date AS date, COUNT(medication_adjustment) AS adjustments FROM chronic_pain_data WHERE medication_adjustment != 'none' GROUP BY date ORDER BY date;",
        "dialect": "postgres"
      },
      {
        "title": "Find peak pain levels by hour of the day",
        "sql": "SELECT EXTRACT(HOUR FROM timestamp) AS hour, AVG(symptom_severity) AS avg_severity FROM chronic_pain_data GROUP BY hour ORDER BY hour;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Healthcare Provider Analysis",
        "body": "Healthcare providers can leverage this dataset to analyze trends in chronic pain management among their patients. By examining symptom severity and medication adjustments over time, they can identify treatment patterns that work well and adjust their approaches accordingly. This analysis can enhance patient care and lead to more effective pain management strategies."
      },
      {
        "title": "Clinical Research",
        "body": "Researchers interested in chronic pain management can use this dataset to study the effectiveness of different treatment protocols. By analyzing clinician notes and patient-reported outcomes, they can uncover insights into which medications yield the best results for various symptom profiles, contributing to the body of knowledge in pain management."
      },
      {
        "title": "Data-Driven Decision Making",
        "body": "Data analysts working within healthcare organizations can utilize this dataset to create visualizations and dashboards that highlight key performance indicators related to chronic pain management. By presenting this data to stakeholders, they can drive informed decision-making and resource allocation that focuses on improving patient outcomes."
      }
    ]
  },
  "counts": {
    "chronic_pain_data": 500
  },
  "stats": {
    "chronic_pain_data": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "patient_id": {
          "nulls": 0,
          "distinct": 500
        },
        "timestamp": {
          "nulls": 0,
          "distinct": 500,
          "min": "2022-01-01 19:41:07",
          "max": "2023-12-24 12:48:39"
        },
        "symptom_severity": {
          "nulls": 171,
          "distinct": 11,
          "min": 0,
          "max": 10
        },
        "medication_adjustment": {
          "nulls": 0,
          "distinct": 3,
          "min": "decreased",
          "max": "none"
        },
        "sensor_reading": {
          "nulls": 49,
          "distinct": 438,
          "min": 0.46,
          "max": 100
        },
        "clinician_notes": {
          "nulls": 50,
          "distinct": 450
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/chronic_pain_data.csv",
      "format": "csv",
      "table": "chronic_pain_data",
      "key": "datasets/chronic-pain-management-app/v1/csv/chronic_pain_data.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/chronic-pain-management-app/v1/csv/chronic_pain_data.csv",
      "bytes": 118945,
      "sha256": "0d84af3d59d34d9c88a8e55cc556b6e94f666ac2dcc12937056ebf4a05c3dafd",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "chronic-pain-management-app.json",
      "format": "json",
      "table": null,
      "key": "datasets/chronic-pain-management-app/v1/chronic-pain-management-app.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/chronic-pain-management-app/v1/chronic-pain-management-app.json",
      "bytes": 211314,
      "sha256": "8332c984bcbe9060a2f5a9329c76544446b54c551bbea9cc89c55e43eae8db74",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/chronic-pain-management-app/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/chronic-pain-management-app/v1/sql/postgres.sql",
      "bytes": 131029,
      "sha256": "561c8a4dc22748f0980ececdca201ebc1e1d89013ebf84e0587d6557dc68ecbe",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/chronic-pain-management-app/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/chronic-pain-management-app/v1/sql/mysql.sql",
      "bytes": 130911,
      "sha256": "0c3cc121037e24c03a8c8727f0082ae9581cffebc03b18122a784c5210c5bf75",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/chronic-pain-management-app/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/chronic-pain-management-app/v1/sql/mssql.sql",
      "bytes": 132951,
      "sha256": "1c524188c886cd280d584d88ca11d0cc8aeb30ce8fdfc29d72f027aa39db2aa6",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/chronic-pain-management-app/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/chronic-pain-management-app/v1/sql/sqlite.sql",
      "bytes": 130876,
      "sha256": "814d09b210bccaa6f81291f96e3c9922a104cb8a8c81ebafff31b7215fd36eee",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/chronic-pain-management-app/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/chronic-pain-management-app/v1/prisma/seed.ts",
      "bytes": 192490,
      "sha256": "c56fc835673e47fe0d2ec5fac633d1ee1f9066245703365e29e7986855823270",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/chronic-pain-management-app/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/chronic-pain-management-app/v1/django/fixtures.json",
      "bytes": 238735,
      "sha256": "905557050d846d39afb4964aa11ac4db684db082c27b1251dfd399a0202e5965",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788733917791,
  "updatedAt": 1788733917791
}
