{
  "format": "dataset-manifest/1",
  "slug": "ai-powered-health-assistant",
  "version": 1,
  "seed": "ai-powered-health-assistant:1",
  "spec": {
    "format": "dataset/1",
    "slug": "ai-powered-health-assistant",
    "name": "Health Insights Dataset",
    "tagline": "AI-powered health management through user interactions and medical tracking.",
    "description": "Users interact with an AI-powered health assistant designed to improve health management and communication with healthcare professionals. Within this healthcare business, individuals create profiles that capture their personal information, medical conditions, and prescriptions, while also tracking their vital metrics through connected devices. Regular exchanges of messages between users and doctors facilitate timely consultations and provide support for users navigating their health journeys. The dataset reflects the array of interactions and data points that characterize these engagements, offering insights into user behavior and health management practices.\n\nThe core tables within the dataset include users, medical_conditions, prescriptions, vital_metrics, and messages. Each user entry corresponds to a unique individual, detailing their demographic information and health profiles. The medical_conditions table lists the various health issues reported by users, often linked to their user profiles through a foreign key. Prescriptions are associated with both users and specific medical conditions, outlining the medications prescribed to manage those conditions. Vital_metrics provide valuable information about users' health over time, and messages capture communication history between users and healthcare professionals, revealing the dynamics of patient care and support.\n\nThis dataset is ideal for analyzing patterns in patient engagement, medication adherence, and the effectiveness of communication between users and healthcare providers. Practicing with this data allows developers to explore how healthcare technology can improve health outcomes, identify trends in user health metrics, and develop algorithms for enhancing patient interaction. The data is synthetic, crafted to simulate real-world scenarios in healthcare, making it a versatile resource for developers and data scientists alike.",
    "domain": "healthcare",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "healthcare",
      "AI",
      "user profiles",
      "medical conditions",
      "prescriptions",
      "vital metrics",
      "communication logs"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "users": {
        "description": "This table contains user profiles, linking to their health journey and preferences. Each user is uniquely identified and may have multiple health conditions and prescriptions.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each user."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the user.",
            "nullable": true
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "User's email address.",
            "nullable": true
          },
          "date_of_birth": {
            "kind": "date",
            "from": "1950-01-01",
            "to": "2005-12-31",
            "description": "Date of birth of the user.",
            "nullable": true
          },
          "created_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-01-01",
            "description": "The date the user profile was created.",
            "dayProfile": "business"
          }
        }
      },
      "medical_conditions": {
        "description": "This table lists the medical conditions associated with users. Each user can have multiple medical conditions, linking back to the user table.",
        "rows": {
          "per": "users",
          "via": "user_id",
          "min": 1,
          "max": 5,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each medical condition entry."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Reference to the associated user."
          },
          "condition": {
            "kind": "words",
            "min": 3,
            "max": 10,
            "description": "Name of the medical condition.",
            "nullable": true
          },
          "diagnosed_at": {
            "kind": "date",
            "from": "2010-01-01",
            "to": "2023-01-01",
            "description": "Date when the condition was diagnosed.",
            "trend": "growing"
          }
        }
      },
      "prescriptions": {
        "description": "This table contains prescriptions assigned to users, linking back to their profiles. Each user can have multiple prescriptions for their medical conditions.",
        "rows": {
          "per": "users",
          "via": "user_id",
          "min": 0,
          "max": 3,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each prescription."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Reference to the associated user."
          },
          "medication_name": {
            "kind": "words",
            "min": 2,
            "max": 5,
            "description": "Name of the medication prescribed.",
            "nullable": true
          },
          "dosage": {
            "kind": "words",
            "min": 2,
            "max": 5,
            "description": "Dosage of the medication.",
            "nullable": true
          },
          "prescribed_at": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-01-01",
            "description": "Date when the prescription was issued.",
            "trend": "growing"
          }
        }
      },
      "vital_metrics": {
        "description": "This table tracks vital metrics for users, linking back to their profiles. Each user can have multiple records of vital metrics over time.",
        "rows": {
          "per": "users",
          "via": "user_id",
          "min": 1,
          "max": 6,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each vital metrics entry."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Reference to the associated user."
          },
          "metric_type": {
            "kind": "enum",
            "values": [
              "weight",
              "blood_pressure",
              "heart_rate"
            ],
            "description": "Type of vital metric recorded."
          },
          "value": {
            "kind": "decimal",
            "min": 50,
            "max": 250,
            "scale": 2,
            "description": "Value of the vital metric.",
            "nullable": true,
            "when": {
              "column": "metric_type",
              "in": [
                "weight",
                "blood_pressure",
                "heart_rate"
              ]
            }
          },
          "recorded_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-01-01",
            "description": "Date and time when the metrics were recorded."
          }
        }
      },
      "messages": {
        "description": "This table logs messages exchanged between users and healthcare professionals, providing insight into user engagement and communication frequency.",
        "rows": {
          "per": "users",
          "via": "user_id",
          "min": 0,
          "max": 10,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each message."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Reference to the associated user."
          },
          "message_content": {
            "kind": "sentence",
            "min": 10,
            "max": 200,
            "description": "Content of the message sent.",
            "nullable": true
          },
          "sent_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-01-01",
            "description": "Date and time when the message was sent.",
            "dayProfile": "waking"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "timestamped",
      "nullable"
    ],
    "analysisQuestions": [
      "What are the most common medical conditions among users?",
      "How do medication adherence rates vary by condition?",
      "What trends can be observed in users' vital metrics over time?",
      "How frequently do users communicate with healthcare professionals?",
      "What is the average age of users diagnosed with specific medical conditions?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Users with Medical Conditions",
        "sql": "SELECT u.full_name, mc.condition FROM users u JOIN medical_conditions mc ON u.id = mc.user_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Prescriptions by User",
        "sql": "SELECT u.full_name, COUNT(p.id) AS prescription_count FROM users u LEFT JOIN prescriptions p ON u.id = p.user_id GROUP BY u.id;",
        "dialect": "postgres"
      },
      {
        "title": "Average Vital Metrics by Type",
        "sql": "SELECT vm.metric_type, AVG(vm.value) AS average_value FROM vital_metrics vm GROUP BY vm.metric_type;",
        "dialect": "postgres"
      },
      {
        "title": "Messages Sent Over Time",
        "sql": "SELECT DATE(sent_at) AS message_date, COUNT(*) AS message_count FROM messages GROUP BY message_date ORDER BY message_date;",
        "dialect": "postgres"
      },
      {
        "title": "Users with Multiple Medical Conditions",
        "sql": "SELECT u.full_name, COUNT(mc.id) AS condition_count FROM users u JOIN medical_conditions mc ON u.id = mc.user_id GROUP BY u.id HAVING COUNT(mc.id) > 1;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Healthcare Analytics",
        "body": "Data analysts in a healthcare organization can use this dataset to identify trends in patient conditions and medication adherence. By querying the dataset, they can generate reports that help improve patient care and refine healthcare services."
      },
      {
        "title": "AI Model Training",
        "body": "Machine learning engineers can utilize the dataset to train AI models that predict health outcomes based on user interactions and vital metrics. This can enhance the capabilities of AI-powered health assistants and improve their recommendations."
      },
      {
        "title": "ORM Development",
        "body": "Developers working on an ORM for healthcare applications can use this dataset to seed their databases with realistic data. This will enable them to test their applications against varied and complex health data, ensuring robustness and reliability."
      },
      {
        "title": "User Engagement Analysis",
        "body": "Healthcare marketers can explore the communications data to assess user engagement levels with healthcare professionals. Understanding messaging patterns can help in designing better communication strategies and improving patient retention."
      }
    ]
  },
  "counts": {
    "users": 200,
    "medical_conditions": 460,
    "messages": 680,
    "prescriptions": 206,
    "vital_metrics": 503
  },
  "stats": {
    "users": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "full_name": {
          "nulls": 21,
          "distinct": 175,
          "min": "Alice Almeida",
          "max": "Zoe Lee"
        },
        "email": {
          "nulls": 36,
          "distinct": 162
        },
        "date_of_birth": {
          "nulls": 15,
          "distinct": 182,
          "min": "1950-03-01",
          "max": "2005-10-10"
        },
        "created_at": {
          "nulls": 0,
          "distinct": 200,
          "min": "2020-01-08 10:55:42",
          "max": "2022-12-28 15:03:22"
        }
      }
    },
    "medical_conditions": {
      "rows": 460,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 460,
          "min": 1,
          "max": 460
        },
        "user_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "condition": {
          "nulls": 44,
          "distinct": 416
        },
        "diagnosed_at": {
          "nulls": 0,
          "distinct": 434,
          "min": "2010-01-14",
          "max": "2022-12-29"
        }
      }
    },
    "prescriptions": {
      "rows": 206,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 206,
          "min": 1,
          "max": 206
        },
        "user_id": {
          "nulls": 0,
          "distinct": 107,
          "min": 1,
          "max": 197
        },
        "medication_name": {
          "nulls": 14,
          "distinct": 192
        },
        "dosage": {
          "nulls": 23,
          "distinct": 183
        },
        "prescribed_at": {
          "nulls": 0,
          "distinct": 189,
          "min": "2020-01-01",
          "max": "2022-12-20"
        }
      }
    },
    "vital_metrics": {
      "rows": 503,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 503,
          "min": 1,
          "max": 503
        },
        "user_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "metric_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "blood_pressure",
          "max": "weight"
        },
        "value": {
          "nulls": 0,
          "distinct": 497,
          "min": 51.09,
          "max": 249.86
        },
        "recorded_at": {
          "nulls": 0,
          "distinct": 503,
          "min": "2020-01-02 06:34:51",
          "max": "2022-12-30 13:42:32"
        }
      }
    },
    "messages": {
      "rows": 680,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 680,
          "min": 1,
          "max": 680
        },
        "user_id": {
          "nulls": 0,
          "distinct": 141,
          "min": 1,
          "max": 200
        },
        "message_content": {
          "nulls": 68,
          "distinct": 606
        },
        "sent_at": {
          "nulls": 0,
          "distinct": 680,
          "min": "2020-01-02 08:01:06",
          "max": "2022-12-29 11:15:56"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/ai-powered-health-assistant/v1/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-health-assistant/v1/csv/users.csv",
      "bytes": 13191,
      "sha256": "63b2bcb696b199767425af9d0a9f9d717c7477b4ab1e2c89563e2ccdc3cfc69b",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/medical_conditions.csv",
      "format": "csv",
      "table": "medical_conditions",
      "key": "datasets/ai-powered-health-assistant/v1/csv/medical_conditions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-health-assistant/v1/csv/medical_conditions.csv",
      "bytes": 27211,
      "sha256": "103940462af94c1f55f0852eef271fdca3adb3aa4c1891ff65376edf700e95de",
      "rows": 460,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/messages.csv",
      "format": "csv",
      "table": "messages",
      "key": "datasets/ai-powered-health-assistant/v1/csv/messages.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-health-assistant/v1/csv/messages.csv",
      "bytes": 53810,
      "sha256": "9e06a8134e7e3b956f62c604727d475eded2a08de8f70d71e1bc35807fc325d6",
      "rows": 680,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/prescriptions.csv",
      "format": "csv",
      "table": "prescriptions",
      "key": "datasets/ai-powered-health-assistant/v1/csv/prescriptions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-health-assistant/v1/csv/prescriptions.csv",
      "bytes": 12858,
      "sha256": "2e07aab14912a01c9c21726043df6989aa3a62c5d80b3f280b19d575885ca103",
      "rows": 206,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/vital_metrics.csv",
      "format": "csv",
      "table": "vital_metrics",
      "key": "datasets/ai-powered-health-assistant/v1/csv/vital_metrics.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-health-assistant/v1/csv/vital_metrics.csv",
      "bytes": 23059,
      "sha256": "90747dd1c07690ccf63cca32d0860001b47c5952c0f353dffc6b8a95031cd9bc",
      "rows": 503,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "ai-powered-health-assistant.json",
      "format": "json",
      "table": null,
      "key": "datasets/ai-powered-health-assistant/v1/ai-powered-health-assistant.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-health-assistant/v1/ai-powered-health-assistant.json",
      "bytes": 331952,
      "sha256": "0721dc666bb45851fcc1c95e24b1ad43be36b741cb2067b720c4d240f3178f2a",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/ai-powered-health-assistant/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-health-assistant/v1/sql/postgres.sql",
      "bytes": 162374,
      "sha256": "9014a1b306d7a5426f8f4c53a06a435a71ade79d21405982c9ec94cb2c1ae5ce",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/ai-powered-health-assistant/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-health-assistant/v1/sql/mysql.sql",
      "bytes": 161790,
      "sha256": "957e6e38c3bef72fad1b775e07a1b513cf510a68629b99d0fa612998e2357b79",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/ai-powered-health-assistant/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-health-assistant/v1/sql/mssql.sql",
      "bytes": 166630,
      "sha256": "8885fa98143bc1e75c89d3c9b13533a334f60b3013b3273fb17e4d6a5ebdc9e8",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/ai-powered-health-assistant/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-health-assistant/v1/sql/sqlite.sql",
      "bytes": 161563,
      "sha256": "c1fd76028d1c23530a8638963789d95d1c2178da34432c5c4640a63e40c81be6",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/ai-powered-health-assistant/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-health-assistant/v1/prisma/seed.ts",
      "bytes": 284660,
      "sha256": "ba5f18f940fbd4c81a608fd257e4e27df1676ecec7e7535bbef459709e54b7af",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/ai-powered-health-assistant/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-health-assistant/v1/django/fixtures.json",
      "bytes": 425463,
      "sha256": "220aff2f9d3ca73a01b2bae6863fb9b2fb666422107f5fdbbb83d8598f410ebc",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788766589911,
  "updatedAt": 1788766589911
}
