{
  "format": "dataset-manifest/1",
  "slug": "ai-powered-medical-assistant",
  "version": 3,
  "seed": "ai-powered-medical-assistant:1",
  "spec": {
    "format": "dataset/1",
    "slug": "ai-powered-medical-assistant",
    "name": "Medical AI Assistant Insights",
    "tagline": "Patient interactions with an AI assistant, including symptom reports, chat messages, and wearable health data.",
    "description": "Patients use an AI-powered medical assistant to navigate their health journeys, from symptom reporting to interacting with healthcare providers. This dataset models the interactions between users and the assistant, focusing on common symptoms, lab tests, and user feedback. It allows healthcare analysts to explore trends in symptom reporting, track disease management, and analyze user engagement over time. The tables within this dataset capture the multifaceted nature of health interactions, linking chat messages, symptom reports, wearable device data, and more. The collected data is synthetic, designed for practice and analysis without any real patient information. By leveraging this dataset, users can answer questions about the most frequently reported symptoms, the effectiveness of the AI assistant, and the relationship between user engagement and health outcomes.",
    "domain": "healthcare",
    "shape": "time-series",
    "useCases": [
      "analytics-demo",
      "bi-dashboards"
    ],
    "keywords": [
      "healthcare",
      "AI assistant",
      "symptoms",
      "diagnoses",
      "wearable data",
      "user interactions"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "patients": {
        "description": "This table contains information about patients using the AI assistant, linking to their symptom reports and interactions. Each patient has unique identifiers and demographic data.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each patient."
          },
          "age": {
            "kind": "int",
            "min": 0,
            "max": 120,
            "description": "Age of the patient.",
            "distribution": "normal"
          },
          "gender": {
            "kind": "enum",
            "values": [
              "male",
              "female",
              "other"
            ],
            "description": "Gender of the patient.",
            "weights": [
              6,
              4,
              1
            ]
          },
          "location": {
            "kind": "city",
            "description": "City where the patient resides.",
            "nullable": true,
            "when": {
              "column": "gender",
              "in": [
                "male",
                "female",
                "other"
              ]
            }
          }
        }
      },
      "symptom_reports": {
        "description": "This table captures the symptoms reported by patients, linking back to the patients' table. Each report includes the symptom type and a timestamp.",
        "rows": {
          "per": "patients",
          "via": "patient_id",
          "min": 1,
          "max": 5,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each symptom report."
          },
          "patient_id": {
            "kind": "fk",
            "ref": "patients.id",
            "description": "Foreign key linking to the patient."
          },
          "symptom": {
            "kind": "enum",
            "values": [
              "headache",
              "fatigue",
              "nausea",
              "cough",
              "dizziness"
            ],
            "description": "Reported symptom.",
            "weights": [
              5,
              3,
              2,
              2,
              1
            ]
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date and time of the symptom report.",
            "nullable": true,
            "when": {
              "column": "symptom",
              "in": [
                "headache",
                "fatigue",
                "nausea",
                "cough",
                "dizziness"
              ]
            },
            "dayProfile": "waking"
          }
        }
      },
      "chat_messages": {
        "description": "This table logs the interactions between patients and the AI assistant, including timestamps and message content.",
        "rows": {
          "per": "patients",
          "via": "patient_id",
          "min": 1,
          "max": 10,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each chat message."
          },
          "patient_id": {
            "kind": "fk",
            "ref": "patients.id",
            "description": "Foreign key linking to the patient."
          },
          "message": {
            "kind": "sentence",
            "min": 5,
            "max": 200,
            "description": "Content of the chat message.",
            "nullable": true
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date and time of the chat message.",
            "dayProfile": "waking",
            "trend": "growing"
          }
        }
      },
      "wearable_data": {
        "description": "This table contains data from wearable devices used by patients, including activity levels and health metrics.",
        "rows": {
          "per": "patients",
          "via": "patient_id",
          "min": 1,
          "max": 5,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each wearable data entry."
          },
          "patient_id": {
            "kind": "fk",
            "ref": "patients.id",
            "description": "Foreign key linking to the patient."
          },
          "heart_rate": {
            "kind": "int",
            "min": 40,
            "max": 180,
            "description": "Heart rate in beats per minute.",
            "nullable": true,
            "distribution": "normal"
          },
          "steps": {
            "kind": "int",
            "min": 0,
            "max": 50000,
            "description": "Number of steps taken.",
            "nullable": true,
            "distribution": "long-tail"
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date and time of the recorded data."
          }
        }
      },
      "diseases": {
        "description": "This table catalogs diseases that patients may report, linking symptoms to potential diagnoses.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each disease."
          },
          "name": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Name of the disease.",
            "pool": [
              "diabetes",
              "hypertension",
              "asthma",
              "cancer",
              "arthritis",
              "tuberculosis",
              "migraine",
              "eczema",
              "psoriasis",
              "hepatitis",
              "influenza",
              "pneumonia",
              "anemia",
              "schizophrenia",
              "bipolar",
              "depression",
              "autism",
              "cystic",
              "fibrosis",
              "Parkinson"
            ]
          },
          "common_symptoms": {
            "kind": "sentence",
            "description": "Common symptoms associated with the disease."
          },
          "is_rare": {
            "kind": "bool",
            "trueRate": 0.2,
            "description": "Indicates if the disease is considered rare."
          }
        }
      },
      "lab_tests": {
        "description": "This table records lab tests that patients undergo, linking back to their profiles and symptoms.",
        "rows": {
          "per": "patients",
          "via": "patient_id",
          "min": 1,
          "max": 3,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each lab test."
          },
          "patient_id": {
            "kind": "fk",
            "ref": "patients.id",
            "description": "Foreign key linking to the patient."
          },
          "test_name": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Name of the lab test.",
            "nullable": true,
            "pool": [
              "blood",
              "urine",
              "biopsy",
              "xray",
              "ctscan",
              "mri",
              "echocardiogram",
              "culture",
              "panel",
              "screening",
              "genetic",
              "serology",
              "imaging",
              "electrocardiogram",
              "hemoglobin",
              "cholesterol",
              "glucose",
              "thyroid",
              "liver",
              "kidney"
            ]
          },
          "result": {
            "kind": "sentence",
            "description": "Result of the lab test.",
            "nullable": true
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date and time of the lab test.",
            "nullable": true,
            "dayProfile": "business"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "categorical",
      "nullable",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What are the most frequently reported symptoms by patients?",
      "How does patient engagement with the AI assistant vary over time?",
      "What is the relationship between wearable data and reported symptoms?",
      "How do lab test results correlate with common symptoms reported?",
      "Which diseases are most often linked to specific symptoms?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Patients and Symptom Reports",
        "sql": "SELECT p.full_name, sr.symptom FROM patients p JOIN symptom_reports sr ON p.id = sr.patient_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count of Symptoms by Gender",
        "sql": "SELECT p.gender, COUNT(sr.id) AS symptom_count FROM patients p JOIN symptom_reports sr ON p.id = sr.patient_id GROUP BY p.gender;",
        "dialect": "postgres"
      },
      {
        "title": "Average Heart Rate by Age",
        "sql": "SELECT p.age, AVG(wd.heart_rate) AS average_heart_rate FROM patients p JOIN wearable_data wd ON p.id = wd.patient_id GROUP BY p.age;",
        "dialect": "postgres"
      },
      {
        "title": "Recent Lab Tests for Patients",
        "sql": "SELECT p.full_name, lt.test_name, lt.result FROM patients p JOIN lab_tests lt ON p.id = lt.patient_id WHERE lt.timestamp > NOW() - INTERVAL '30 days';",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Healthcare Analytics Team",
        "body": "A healthcare analytics team can use this dataset to visualize trends in patient interactions with the AI assistant, helping to identify common symptoms and potential areas for improvement in the assistant's responses."
      },
      {
        "title": "Research on Patient Engagement",
        "body": "Researchers studying patient engagement can analyze the chat messages and symptom reports to understand how well patients interact with the AI assistant and how it impacts their health outcomes."
      },
      {
        "title": "Developing Predictive Models",
        "body": "Data scientists can leverage the wearable device data and symptom reports to develop predictive models that anticipate health issues based on patient activity levels and reported symptoms."
      }
    ]
  },
  "counts": {
    "diseases": 100,
    "patients": 200,
    "chat_messages": 749,
    "lab_tests": 325,
    "symptom_reports": 413,
    "wearable_data": 461
  },
  "stats": {
    "patients": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "age": {
          "nulls": 0,
          "distinct": 70,
          "min": 16,
          "max": 100
        },
        "gender": {
          "nulls": 0,
          "distinct": 3,
          "min": "female",
          "max": "other"
        },
        "location": {
          "nulls": 0,
          "distinct": 60,
          "min": "Amsterdam",
          "max": "Zurich"
        }
      }
    },
    "symptom_reports": {
      "rows": 413,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 413,
          "min": 1,
          "max": 413
        },
        "patient_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "symptom": {
          "nulls": 0,
          "distinct": 5,
          "min": "cough",
          "max": "nausea"
        },
        "timestamp": {
          "nulls": 0,
          "distinct": 413,
          "min": "2022-01-02 19:08:07",
          "max": "2023-12-26 17:31:36"
        }
      }
    },
    "chat_messages": {
      "rows": 749,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 749,
          "min": 1,
          "max": 749
        },
        "patient_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "message": {
          "nulls": 83,
          "distinct": 662
        },
        "timestamp": {
          "nulls": 0,
          "distinct": 749,
          "min": "2022-01-01 17:57:50",
          "max": "2023-12-31 13:22:32"
        }
      }
    },
    "wearable_data": {
      "rows": 461,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 461,
          "min": 1,
          "max": 461
        },
        "patient_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "heart_rate": {
          "nulls": 41,
          "distinct": 88,
          "min": 57,
          "max": 165
        },
        "steps": {
          "nulls": 50,
          "distinct": 402,
          "min": 0,
          "max": 49731
        },
        "timestamp": {
          "nulls": 0,
          "distinct": 461,
          "min": "2022-01-01 22:19:25",
          "max": "2023-12-31 08:33:14"
        }
      }
    },
    "diseases": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "name": {
          "nulls": 0,
          "distinct": 80
        },
        "common_symptoms": {
          "nulls": 0,
          "distinct": 100
        },
        "is_rare": {
          "nulls": 0,
          "distinct": 2,
          "min": "false",
          "max": "true"
        }
      }
    },
    "lab_tests": {
      "rows": 325,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 325,
          "min": 1,
          "max": 325
        },
        "patient_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "test_name": {
          "nulls": 30,
          "distinct": 214
        },
        "result": {
          "nulls": 36,
          "distinct": 289
        },
        "timestamp": {
          "nulls": 28,
          "distinct": 297,
          "min": "2022-01-09 13:02:30",
          "max": "2023-12-31 13:19:50"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/diseases.csv",
      "format": "csv",
      "table": "diseases",
      "key": "datasets/ai-powered-medical-assistant/v3/csv/diseases.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-medical-assistant/v3/csv/diseases.csv",
      "bytes": 8400,
      "sha256": "3362554d04ef2830895d6861780d1b496f380fe7bc4478f51de614f3f28f9faa",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/patients.csv",
      "format": "csv",
      "table": "patients",
      "key": "datasets/ai-powered-medical-assistant/v3/csv/patients.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-medical-assistant/v3/csv/patients.csv",
      "bytes": 4179,
      "sha256": "ebf2fd934ab2fb2613b301d88fe3998c9c30db4a6ba188a5fa538e2266bbbc7e",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/chat_messages.csv",
      "format": "csv",
      "table": "chat_messages",
      "key": "datasets/ai-powered-medical-assistant/v3/csv/chat_messages.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-medical-assistant/v3/csv/chat_messages.csv",
      "bytes": 58692,
      "sha256": "8eb44b885fc1e813610faf46a9c5fab1dea59d70283b848f4902a3eef267b41d",
      "rows": 749,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/lab_tests.csv",
      "format": "csv",
      "table": "lab_tests",
      "key": "datasets/ai-powered-medical-assistant/v3/csv/lab_tests.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-medical-assistant/v3/csv/lab_tests.csv",
      "bytes": 30114,
      "sha256": "5f5773357fbb08a9cf258dc65f08499d2ab769511ff312d923bc3fd8cdea42fb",
      "rows": 325,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/symptom_reports.csv",
      "format": "csv",
      "table": "symptom_reports",
      "key": "datasets/ai-powered-medical-assistant/v3/csv/symptom_reports.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-medical-assistant/v3/csv/symptom_reports.csv",
      "bytes": 15021,
      "sha256": "178e0387e3384b320e0f9889bfc7861561788022f4c4bbb3cae20b427ab0cf0f",
      "rows": 413,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/wearable_data.csv",
      "format": "csv",
      "table": "wearable_data",
      "key": "datasets/ai-powered-medical-assistant/v3/csv/wearable_data.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-medical-assistant/v3/csv/wearable_data.csv",
      "bytes": 16901,
      "sha256": "c6534eb9192af7d98b9b3132f66c656f26a7db6756d944cb30b25d870919f6d1",
      "rows": 461,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "ai-powered-medical-assistant.json",
      "format": "json",
      "table": null,
      "key": "datasets/ai-powered-medical-assistant/v3/ai-powered-medical-assistant.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-medical-assistant/v3/ai-powered-medical-assistant.json",
      "bytes": 341949,
      "sha256": "61403f28c17f3681cd020d339e368177c624a21476868cc60322b2b7c2f7b42e",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/ai-powered-medical-assistant/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-medical-assistant/v3/sql/postgres.sql",
      "bytes": 166882,
      "sha256": "bd98d795af6eb4a783046f4475aa59e3c85adb22b60cc13cb786870c88a319c0",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/ai-powered-medical-assistant/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-medical-assistant/v3/sql/mysql.sql",
      "bytes": 165788,
      "sha256": "3bc28f936fc9e79bea20d83a38c5a3013a8b554bb65eff800ad03b46770702cc",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/ai-powered-medical-assistant/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-medical-assistant/v3/sql/mssql.sql",
      "bytes": 170402,
      "sha256": "9bddb7bdbd8cb6b652f44bf76a34cfa07047a3f7fa6d433d73f8ed3ad17e951d",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/ai-powered-medical-assistant/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-medical-assistant/v3/sql/sqlite.sql",
      "bytes": 165564,
      "sha256": "b285f4aff8e72116099f423f86d093b647d072191f61c7597c1a98b8b2d52b28",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/ai-powered-medical-assistant/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-medical-assistant/v3/prisma/seed.ts",
      "bytes": 294912,
      "sha256": "b2460409a595f40dafba182051cc8d2baa6e6bdbf6673ac910e694c2c1933ba3",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/ai-powered-medical-assistant/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-medical-assistant/v3/django/fixtures.json",
      "bytes": 444478,
      "sha256": "298e3f47c3d18341776f30ad087ada2c48ea3c1af9d7a70b2d05c529169f3a85",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768840703,
  "updatedAt": 1788782272337
}
