{
  "format": "dataset-manifest/1",
  "slug": "clinical-trial-management",
  "version": 3,
  "seed": "clinical-trial-management:1",
  "spec": {
    "format": "dataset/1",
    "slug": "clinical-trial-management",
    "name": "Clinical Trial Event Log",
    "tagline": "A synthetic dataset for managing clinical trial events and patient interactions.",
    "description": "Patients embark on clinical trials to explore new medication options, providing critical data on safety and efficacy. Throughout their journey, each patient interacts with a structured framework that records their enrollment in trials, the consent forms they approve, the medications they receive, and any adverse events that occur during the process. This rigorous tracking helps ensure that every phase of the trial is documented, facilitating a thorough analysis of the treatment's impact.\n\nThe tables in this dataset interconnect in meaningful ways. Each patient is represented in the patients table, detailing their unique identifiers and demographic information. They participate in trials found in the trials table, where each row corresponds to a different study, describing the trial’s objectives and phases. Consent forms, outlined in their specific table, capture the approval process that patients undergo before participating, highlighting variations in the consent process across different trials. The medications table logs the various drugs administered to patients during their participation, while the adverse_events table records any negative reactions or side effects experienced, which are essential for assessing medication safety.\n\nThis dataset provides valuable insights into clinical trial operations, allowing practitioners to investigate questions such as: How do different consent forms impact patient safety and trial outcomes? What patterns emerge in adverse events related to specific medications? How does patient demographic information correlate with trial enrollment and response to treatment? Practicing with this data can enhance skills in data analysis, visualization, and interpretation within a healthcare context.\n\nIt's important to note that the data here is synthetic, designed to simulate real-world clinical trial environments while protecting individual privacy.",
    "domain": "healthcare",
    "shape": "event-log",
    "useCases": [
      "analytics-demo",
      "etl-pipelines"
    ],
    "keywords": [
      "clinical trials",
      "patient data",
      "medications",
      "adverse events",
      "study protocols",
      "synthetic data"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "patients": {
        "description": "This table contains records of patients enrolled in clinical trials. Each row represents a unique patient with their demographic details.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each patient."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the patient.",
            "nullable": true
          },
          "age": {
            "kind": "int",
            "min": 18,
            "max": 80,
            "description": "Age of the patient.",
            "nullable": true,
            "when": {
              "column": "gender",
              "in": [
                "male",
                "female"
              ]
            },
            "distribution": "normal"
          },
          "gender": {
            "kind": "enum",
            "values": [
              "male",
              "female",
              "other"
            ],
            "description": "Gender of the patient.",
            "weights": [
              6,
              4,
              1
            ]
          },
          "enrollment_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the patient enrolled in the trial.",
            "nullable": true,
            "when": {
              "column": "gender",
              "in": [
                "male",
                "female"
              ]
            }
          }
        }
      },
      "trials": {
        "description": "This table holds information about the clinical trials, including their protocols and timelines.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each trial."
          },
          "title": {
            "kind": "title",
            "description": "Title of the clinical trial.",
            "pool": [
              "Heart",
              "Cancer",
              "Diabetes",
              "Study",
              "Trial",
              "Effect",
              "Analysis",
              "Impact",
              "Research",
              "Evaluation",
              "Phase",
              "Safety",
              "Efficacy",
              "Outcome",
              "Response",
              "Protocol",
              "Investigation",
              "Management",
              "Control",
              "Assessment"
            ],
            "min": 1,
            "max": 3
          },
          "start_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Start date of the trial."
          },
          "end_date": {
            "kind": "date",
            "after": "start_date",
            "withinDays": 365,
            "description": "End date of the trial, must be after the start date."
          },
          "therapeutic_area": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Therapeutic area the trial is focused on.",
            "pool": [
              "oncology",
              "cardiology",
              "neurology",
              "dermatology",
              "gastroenterology",
              "endocrinology",
              "psychiatry",
              "pulmonology",
              "rheumatology",
              "infectious",
              "immunology",
              "hematology",
              "urology",
              "orthopedics",
              "pediatrics",
              "geriatrics",
              "pain",
              "rehabilitation",
              "genetics",
              "metabolism",
              "transplantation",
              "cardiovascular",
              "diabetes",
              "autoimmune",
              "chronic",
              "acute",
              "mental",
              "vascular",
              "musculoskeletal",
              "neurodegenerative",
              "cancer",
              "liver",
              "kidney",
              "skin",
              "respiratory",
              "hormonal",
              "blood",
              "infection",
              "allergy",
              "tissue",
              "cell",
              "surgery",
              "therapy",
              "clinical",
              "trial",
              "research",
              "study",
              "treatment",
              "diagnosis",
              "management",
              "monitoring",
              "prevention",
              "intervention"
            ]
          }
        }
      },
      "consent_forms": {
        "description": "This table tracks the consent forms approved by patients for participation in trials.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each consent form."
          },
          "patient_id": {
            "kind": "fk",
            "ref": "patients.id",
            "description": "The patient who signed the consent form."
          },
          "trial_id": {
            "kind": "fk",
            "ref": "trials.id",
            "description": "The trial associated with this consent form."
          },
          "consent_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the consent was given."
          },
          "consent_details": {
            "kind": "paragraph",
            "min": 10,
            "max": 200,
            "description": "Details about the consent provided.",
            "nullable": true
          }
        }
      },
      "medications": {
        "description": "This table contains records of medications administered to patients during the trial.",
        "rows": 400,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each medication record."
          },
          "patient_id": {
            "kind": "fk",
            "ref": "patients.id",
            "description": "The patient receiving the medication."
          },
          "trial_id": {
            "kind": "fk",
            "ref": "trials.id",
            "description": "The trial in which the medication is given."
          },
          "medication_name": {
            "kind": "title",
            "description": "Name of the medication administered.",
            "pool": [
              "Aspirin",
              "Ibuprofen",
              "Metformin",
              "Lisinopril",
              "Atorvastatin",
              "Simvastatin",
              "Amoxicillin",
              "Ciprofloxacin",
              "Levothyroxine",
              "Omeprazole",
              "Metoprolol",
              "Gabapentin",
              "Sertraline",
              "Hydrochlorothiazide",
              "Losartan",
              "Furosemide",
              "Albuterol",
              "Insulin",
              "Warfarin",
              "Clopidogrel"
            ],
            "min": 1,
            "max": 3
          },
          "administration_time": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date and time when the medication was administered.",
            "nullable": true,
            "dayProfile": "business"
          }
        }
      },
      "adverse_events": {
        "description": "This table records adverse events experienced by patients during the trial.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each adverse event."
          },
          "patient_id": {
            "kind": "fk",
            "ref": "patients.id",
            "description": "The patient who experienced the adverse event."
          },
          "trial_id": {
            "kind": "fk",
            "ref": "trials.id",
            "description": "The trial during which the event occurred."
          },
          "event_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the adverse event occurred."
          },
          "event_description": {
            "kind": "paragraph",
            "min": 10,
            "max": 200,
            "description": "Description of the adverse event.",
            "nullable": true
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "timestamped",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What is the distribution of adverse events across different trials?",
      "How does the age of patients correlate with the types of medications administered?",
      "Which therapeutic areas have the highest enrollment rates?",
      "What is the average duration of trials in different therapeutic areas?",
      "Are there specific demographic factors that influence consent rates?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Patients with Trials",
        "sql": "SELECT p.full_name, t.title FROM patients p JOIN consent_forms c ON p.id = c.patient_id JOIN trials t ON c.trial_id = t.id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Adverse Events per Trial",
        "sql": "SELECT t.title, COUNT(a.id) as adverse_event_count FROM trials t LEFT JOIN adverse_events a ON t.id = a.trial_id GROUP BY t.title;",
        "dialect": "postgres"
      },
      {
        "title": "Medications Administered by Patient Age",
        "sql": "SELECT p.age, COUNT(m.id) as medications_count FROM patients p JOIN medications m ON p.id = m.patient_id GROUP BY p.age ORDER BY p.age;",
        "dialect": "postgres"
      },
      {
        "title": "Average Trial Duration by Therapeutic Area",
        "sql": "SELECT t.therapeutic_area, AVG(DATE_PART('day', t.end_date - t.start_date)) as average_duration FROM trials t GROUP BY t.therapeutic_area;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Healthcare Analysts",
        "body": "Healthcare analysts can utilize this dataset to explore the effectiveness of different medications across various trials. By querying the relationships between patient demographics and treatment outcomes, they can derive insights that influence future clinical practices."
      },
      {
        "title": "Data Engineers",
        "body": "Data engineers can leverage this synthetic dataset to build and test ETL pipelines that process clinical trial data. They can simulate data ingestion, transformation, and loading procedures, ensuring that systems are robust before handling real patient data."
      },
      {
        "title": "Clinical Researchers",
        "body": "Clinical researchers can use this dataset to analyze the occurrence of adverse events and their correlations with specific treatments. This analysis can lead to better understanding and mitigation strategies for potential risks associated with new medications."
      }
    ]
  },
  "counts": {
    "patients": 200,
    "trials": 50,
    "adverse_events": 300,
    "consent_forms": 200,
    "medications": 400
  },
  "stats": {
    "patients": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "full_name": {
          "nulls": 23,
          "distinct": 175,
          "min": "Alice Kaya",
          "max": "Zoe Silva"
        },
        "age": {
          "nulls": 19,
          "distinct": 41,
          "min": 26,
          "max": 70
        },
        "gender": {
          "nulls": 0,
          "distinct": 3,
          "min": "female",
          "max": "other"
        },
        "enrollment_date": {
          "nulls": 19,
          "distinct": 166,
          "min": "2020-01-07",
          "max": "2023-12-04"
        }
      }
    },
    "trials": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "title": {
          "nulls": 0,
          "distinct": 44
        },
        "start_date": {
          "nulls": 0,
          "distinct": 49,
          "min": "2020-01-09",
          "max": "2023-12-16"
        },
        "end_date": {
          "nulls": 0,
          "distinct": 50,
          "min": "2020-02-29",
          "max": "2024-05-20"
        },
        "therapeutic_area": {
          "nulls": 0,
          "distinct": 49
        }
      }
    },
    "consent_forms": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "patient_id": {
          "nulls": 0,
          "distinct": 125,
          "min": 3,
          "max": 200
        },
        "trial_id": {
          "nulls": 0,
          "distinct": 49,
          "min": 1,
          "max": 50
        },
        "consent_date": {
          "nulls": 0,
          "distinct": 190,
          "min": "2020-01-19",
          "max": "2023-12-29"
        },
        "consent_details": {
          "nulls": 11,
          "distinct": 189
        }
      }
    },
    "medications": {
      "rows": 400,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 400,
          "min": 1,
          "max": 400
        },
        "patient_id": {
          "nulls": 0,
          "distinct": 169,
          "min": 1,
          "max": 200
        },
        "trial_id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "medication_name": {
          "nulls": 0,
          "distinct": 260
        },
        "administration_time": {
          "nulls": 51,
          "distinct": 349,
          "min": "2020-01-05 13:40:33",
          "max": "2023-12-06 12:33:17"
        }
      }
    },
    "adverse_events": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "patient_id": {
          "nulls": 0,
          "distinct": 162,
          "min": 2,
          "max": 200
        },
        "trial_id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "event_date": {
          "nulls": 0,
          "distinct": 272,
          "min": "2020-01-09",
          "max": "2023-12-31"
        },
        "event_description": {
          "nulls": 29,
          "distinct": 271
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/patients.csv",
      "format": "csv",
      "table": "patients",
      "key": "datasets/clinical-trial-management/v3/csv/patients.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/clinical-trial-management/v3/csv/patients.csv",
      "bytes": 6833,
      "sha256": "a8f46bb05080c3c26769fd6a4590829330369f46f7f5ae872fdc18cb40ff5f09",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/trials.csv",
      "format": "csv",
      "table": "trials",
      "key": "datasets/clinical-trial-management/v3/csv/trials.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/clinical-trial-management/v3/csv/trials.csv",
      "bytes": 3179,
      "sha256": "a3cef17df77b87c5de3527cee5c52a51ce934d2f153ae4084fb3653ea66cb346",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/adverse_events.csv",
      "format": "csv",
      "table": "adverse_events",
      "key": "datasets/clinical-trial-management/v3/csv/adverse_events.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/clinical-trial-management/v3/csv/adverse_events.csv",
      "bytes": 51329,
      "sha256": "bf928aadee929e1e9325d1c25636ca4b96603a68a5ebf981be9f97870ecca61d",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/consent_forms.csv",
      "format": "csv",
      "table": "consent_forms",
      "key": "datasets/clinical-trial-management/v3/csv/consent_forms.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/clinical-trial-management/v3/csv/consent_forms.csv",
      "bytes": 37070,
      "sha256": "f6241fb58dec53722e5eb3d5979004e22b300d2190820f3b18e5754cebba9e92",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/medications.csv",
      "format": "csv",
      "table": "medications",
      "key": "datasets/clinical-trial-management/v3/csv/medications.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/clinical-trial-management/v3/csv/medications.csv",
      "bytes": 20536,
      "sha256": "9cdba40323cbecd0cd1b057d469bc4131a48263dd91d35135b8a5087fa4a0c90",
      "rows": 400,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "clinical-trial-management.json",
      "format": "json",
      "table": null,
      "key": "datasets/clinical-trial-management/v3/clinical-trial-management.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/clinical-trial-management/v3/clinical-trial-management.json",
      "bytes": 253984,
      "sha256": "d539dbd725ce06a88bfa7e925d8590f8fff407b702560b833f84ae05c8d8c97e",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/clinical-trial-management/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/clinical-trial-management/v3/sql/postgres.sql",
      "bytes": 138717,
      "sha256": "01813a8b8ed6b17c2f8596d98abbf9c005d724a558d38f7d25a212687157a55c",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/clinical-trial-management/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/clinical-trial-management/v3/sql/mysql.sql",
      "bytes": 138133,
      "sha256": "141cfe24147a40d1781030af29bdb4e7fb5ebc65d08d8433f0b18d91f4c58ba3",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/clinical-trial-management/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/clinical-trial-management/v3/sql/mssql.sql",
      "bytes": 140953,
      "sha256": "07dcfa0d91c9e4870ff4715e5e0a56a37ce70c63b055bbc121751df0b84b0472",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/clinical-trial-management/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/clinical-trial-management/v3/sql/sqlite.sql",
      "bytes": 137854,
      "sha256": "0bf700afb9088e4c399bece9dec99228ffb1ba46b010c855be22357d1d0b67b9",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/clinical-trial-management/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/clinical-trial-management/v3/prisma/seed.ts",
      "bytes": 217357,
      "sha256": "1961299b3cd891f6f95fa221bbc51539ef6f0a76dbdcaa2b4ea62a111839a883",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/clinical-trial-management/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/clinical-trial-management/v3/django/fixtures.json",
      "bytes": 302821,
      "sha256": "22811999949c383a5662243762a0585b00ee0eb157645d27947df607634e1fae",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767077719,
  "updatedAt": 1788782801055
}
