{
  "format": "dataset-manifest/1",
  "slug": "online-therapy-sessions",
  "version": 1,
  "seed": "online-therapy-sessions:1",
  "spec": {
    "format": "dataset/1",
    "slug": "online-therapy-sessions",
    "name": "Therapy Session Ledger",
    "tagline": "Patients, therapists, session details, homework tasks, assessments, and insurance data from a virtual therapy platform.",
    "description": "Patients access licensed therapists for virtual sessions, enabling convenient mental health care from home. Each session is scheduled based on the availability of therapists and the specific needs of patients. Patients can be assigned homework assignments to reinforce learnings from therapy, while assessments gauge their progress and mental health status. The online platform captures essential information from several related tables, allowing for comprehensive management and analysis of therapy practices.\n\nThe 'patients' table details individual client information, including demographics and insurance coverage. The 'therapists' table contains data on the professionals, highlighting their specializations and available treatment methods. Every session is recorded in the 'sessions' table, which connects patients with their respective therapists and includes timestamps and session notes. 'homework_assignments' document tasks assigned to patients post-session, allowing therapists to track compliance and progress. The 'assessments' table holds results from evaluations that measure mental health improvements over time, while 'insurance_details' provides necessary billing information related to the patients' coverage.\n\nUsers can explore various questions using this data, such as how patient demographics correlate with therapist specialties, or trends in session frequency based on time slots. Practitioners may analyze the effectiveness of homework assignments related to patient progress, as well as the impact of insurance coverage on session attendance. This synthetic dataset offers a practical resource for developers looking to visualize, analyze, and derive insights from healthcare data, particularly in the realm of online mental health therapy.",
    "domain": "healthcare",
    "shape": "ledger",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "therapy",
      "sessions",
      "patients",
      "therapists",
      "homework",
      "assessments",
      "insurance",
      "healthcare"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "patients": {
        "description": "This table contains details about patients, including their insurance information and unique identifiers.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each patient."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the patient."
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "Patient's email address."
          },
          "insurance_provider": {
            "kind": "enum",
            "values": [
              "Provider A",
              "Provider B",
              "Provider C"
            ],
            "description": "The insurance provider for the patient."
          },
          "created_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "The date when the patient was added to the system.",
            "dayProfile": "waking"
          }
        }
      },
      "therapists": {
        "description": "This table includes licensed therapists, their specialties, and their availability for sessions.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each therapist."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the therapist."
          },
          "specialty": {
            "kind": "enum",
            "values": [
              "Cognitive Behavioral Therapy",
              "Dialectical Behavior Therapy",
              "Psychodynamic Therapy"
            ],
            "description": "The specialty area of the therapist."
          },
          "available_slots": {
            "kind": "int",
            "min": 5,
            "max": 20,
            "description": "Number of available slots per week."
          },
          "created_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "The date when the therapist was added to the system.",
            "dayProfile": "waking"
          }
        }
      },
      "sessions": {
        "description": "This table records the therapy sessions, linking patients and therapists along with session details.",
        "rows": 600,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each session."
          },
          "patient_id": {
            "kind": "fk",
            "ref": "patients.id",
            "description": "The ID of the patient attending the session."
          },
          "therapist_id": {
            "kind": "fk",
            "ref": "therapists.id",
            "description": "The ID of the therapist conducting the session."
          },
          "session_date": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "The date and time of the session.",
            "dayProfile": "business",
            "trend": "growing"
          },
          "duration_minutes": {
            "kind": "int",
            "min": 30,
            "max": 90,
            "description": "Duration of the session in minutes."
          }
        }
      },
      "homework_assignments": {
        "description": "This table lists the homework assignments given by therapists to patients during sessions.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each homework assignment."
          },
          "session_id": {
            "kind": "fk",
            "ref": "sessions.id",
            "description": "The ID of the session during which the homework was assigned."
          },
          "assignment": {
            "kind": "sentence",
            "min": 10,
            "max": 200,
            "description": "Description of the homework assignment."
          },
          "due_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "The due date for the homework assignment.",
            "trend": "seasonal"
          }
        }
      },
      "assessments": {
        "description": "This table contains assessments administered to patients, tracking their progress over time.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each assessment."
          },
          "patient_id": {
            "kind": "fk",
            "ref": "patients.id",
            "description": "The ID of the patient who completed the assessment."
          },
          "assessment_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the assessment was conducted.",
            "trend": "seasonal"
          },
          "score": {
            "kind": "int",
            "min": 0,
            "max": 100,
            "description": "Score obtained in the assessment."
          },
          "feedback": {
            "kind": "paragraph",
            "min": 10,
            "max": 500,
            "description": "Therapist's feedback on the assessment results."
          }
        }
      },
      "insurance_details": {
        "description": "This table holds specific details about the insurance coverage for each patient.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each insurance record."
          },
          "patient_id": {
            "kind": "fk",
            "ref": "patients.id",
            "description": "The ID of the patient linked to this insurance detail."
          },
          "coverage_amount": {
            "kind": "decimal",
            "min": 100,
            "max": 10000,
            "scale": 2,
            "description": "The coverage amount provided by the insurance."
          },
          "policy_number": {
            "kind": "slug",
            "from": "coverage_amount",
            "description": "The policy number for the patient's insurance."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "categorical",
      "nullable",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What are the most common specialties among therapists?",
      "How does homework assignment complexity vary among different therapists?",
      "Which days of the week have the highest number of scheduled sessions?",
      "What is the average score on assessments over time?",
      "How much coverage do patients typically have from their insurance?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Patients and Sessions",
        "sql": "SELECT patients.full_name, sessions.session_date FROM patients JOIN sessions ON patients.id = sessions.patient_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Sessions by Therapist",
        "sql": "SELECT therapists.full_name, COUNT(sessions.id) AS session_count FROM therapists JOIN sessions ON therapists.id = sessions.therapist_id GROUP BY therapists.full_name;",
        "dialect": "postgres"
      },
      {
        "title": "Average Assessment Scores by Patient",
        "sql": "SELECT patients.full_name, AVG(assessments.score) AS average_score FROM patients JOIN assessments ON patients.id = assessments.patient_id GROUP BY patients.full_name;",
        "dialect": "postgres"
      },
      {
        "title": "Homework Assignments Due in a Month",
        "sql": "SELECT session_id, COUNT(*) AS homework_count FROM homework_assignments WHERE due_date BETWEEN CURRENT_DATE AND CURRENT_DATE + INTERVAL '30 days' GROUP BY session_id;",
        "dialect": "postgres"
      },
      {
        "title": "Insurance Coverage Statistics",
        "sql": "SELECT insurance_details.patient_id, AVG(insurance_details.coverage_amount) AS average_coverage FROM insurance_details GROUP BY insurance_details.patient_id;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Therapist Availability Analysis",
        "body": "Therapists can use this dataset to analyze their availability trends, helping them optimize their schedules and meet patient demand. By examining the distribution of sessions, they can identify peak times and adjust their hours accordingly."
      },
      {
        "title": "Patient Engagement Tracking",
        "body": "Healthcare administrators can track patient engagement by analyzing session attendance and homework completion rates. This information can guide interventions for patients who may be at risk of dropping out of therapy."
      },
      {
        "title": "Insurance Claims Processing",
        "body": "Insurance companies can utilize this dataset to assess the coverage amounts provided to patients and ensure proper claims processing. They can analyze patterns in claims related to session attendance and homework assignments."
      },
      {
        "title": "Research on Therapy Effectiveness",
        "body": "Researchers can explore correlations between homework assignments, assessment scores, and patient improvement over time. This dataset could serve as a foundation for studies aimed at understanding what therapeutic approaches yield the best outcomes."
      }
    ]
  },
  "counts": {
    "patients": 200,
    "assessments": 200,
    "insurance_details": 200,
    "therapists": 50,
    "sessions": 600,
    "homework_assignments": 300
  },
  "stats": {
    "patients": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "full_name": {
          "nulls": 0,
          "distinct": 198,
          "min": "Alice Gupta",
          "max": "Zoe Wagner"
        },
        "email": {
          "nulls": 0,
          "distinct": 199
        },
        "insurance_provider": {
          "nulls": 0,
          "distinct": 3,
          "min": "Provider A",
          "max": "Provider C"
        },
        "created_at": {
          "nulls": 0,
          "distinct": 200,
          "min": "2020-01-25 20:00:53",
          "max": "2023-12-31 12:45:30"
        }
      }
    },
    "therapists": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "full_name": {
          "nulls": 0,
          "distinct": 50,
          "min": "Alice Jansen",
          "max": "Zara Klein"
        },
        "specialty": {
          "nulls": 0,
          "distinct": 3,
          "min": "Cognitive Behavioral Therapy",
          "max": "Psychodynamic Therapy"
        },
        "available_slots": {
          "nulls": 0,
          "distinct": 15,
          "min": 5,
          "max": 19
        },
        "created_at": {
          "nulls": 0,
          "distinct": 50,
          "min": "2020-01-11 09:38:50",
          "max": "2023-12-22 21:38:58"
        }
      }
    },
    "sessions": {
      "rows": 600,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 600,
          "min": 1,
          "max": 600
        },
        "patient_id": {
          "nulls": 0,
          "distinct": 194,
          "min": 1,
          "max": 200
        },
        "therapist_id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "session_date": {
          "nulls": 0,
          "distinct": 600,
          "min": "2020-01-02 11:57:31",
          "max": "2023-12-31 16:08:02"
        },
        "duration_minutes": {
          "nulls": 0,
          "distinct": 61,
          "min": 30,
          "max": 90
        }
      }
    },
    "homework_assignments": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "session_id": {
          "nulls": 0,
          "distinct": 223,
          "min": 1,
          "max": 598
        },
        "assignment": {
          "nulls": 0,
          "distinct": 299
        },
        "due_date": {
          "nulls": 0,
          "distinct": 268,
          "min": "2020-01-03",
          "max": "2023-12-15"
        }
      }
    },
    "assessments": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "patient_id": {
          "nulls": 0,
          "distinct": 130,
          "min": 3,
          "max": 200
        },
        "assessment_date": {
          "nulls": 0,
          "distinct": 187,
          "min": "2020-01-02",
          "max": "2023-12-31"
        },
        "score": {
          "nulls": 0,
          "distinct": 89,
          "min": 1,
          "max": 99
        },
        "feedback": {
          "nulls": 0,
          "distinct": 200
        }
      }
    },
    "insurance_details": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "patient_id": {
          "nulls": 0,
          "distinct": 128,
          "min": 2,
          "max": 200
        },
        "coverage_amount": {
          "nulls": 0,
          "distinct": 200,
          "min": 105.26,
          "max": 9943.72
        },
        "policy_number": {
          "nulls": 0,
          "distinct": 200
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/patients.csv",
      "format": "csv",
      "table": "patients",
      "key": "datasets/online-therapy-sessions/v1/csv/patients.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/online-therapy-sessions/v1/csv/patients.csv",
      "bytes": 14338,
      "sha256": "35e3ecca0b9b02c1ce7d5debaed2381b666a56f21eca81136fc6d32b2c309888",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/assessments.csv",
      "format": "csv",
      "table": "assessments",
      "key": "datasets/online-therapy-sessions/v1/csv/assessments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/online-therapy-sessions/v1/csv/assessments.csv",
      "bytes": 36900,
      "sha256": "3fc75ec6e24972a213c8841a4901dc85e8fde69e1a724d928b369e7b5d913026",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/insurance_details.csv",
      "format": "csv",
      "table": "insurance_details",
      "key": "datasets/online-therapy-sessions/v1/csv/insurance_details.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/online-therapy-sessions/v1/csv/insurance_details.csv",
      "bytes": 4802,
      "sha256": "71c4931e1a7045b288c8a9adfea56ca0e32e3e81da041c1c52ce202817055ad2",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/therapists.csv",
      "format": "csv",
      "table": "therapists",
      "key": "datasets/online-therapy-sessions/v1/csv/therapists.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/online-therapy-sessions/v1/csv/therapists.csv",
      "bytes": 3350,
      "sha256": "a904bd035e823360ea6e5cd1e5caf183be3621d47353bbcd2ee563ab4bc1a7da",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/sessions.csv",
      "format": "csv",
      "table": "sessions",
      "key": "datasets/online-therapy-sessions/v1/csv/sessions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/online-therapy-sessions/v1/csv/sessions.csv",
      "bytes": 20496,
      "sha256": "8e4f9b9a3ed22f0e3c43b27eb364e2d1d3e786157f5b3388f49dea93f41d35ba",
      "rows": 600,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/homework_assignments.csv",
      "format": "csv",
      "table": "homework_assignments",
      "key": "datasets/online-therapy-sessions/v1/csv/homework_assignments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/online-therapy-sessions/v1/csv/homework_assignments.csv",
      "bytes": 22696,
      "sha256": "87dcd9a7c01ac72428ec2111f745808aece2fb757f757253d477deb8a898b232",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "online-therapy-sessions.json",
      "format": "json",
      "table": null,
      "key": "datasets/online-therapy-sessions/v1/online-therapy-sessions.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/online-therapy-sessions/v1/online-therapy-sessions.json",
      "bytes": 271714,
      "sha256": "1f131e8f7d417903335fd346f3eeceb67331389f67ff1087dc8b47350971d055",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/online-therapy-sessions/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/online-therapy-sessions/v1/sql/postgres.sql",
      "bytes": 126378,
      "sha256": "2e4343eaacb8e60726353e95ab61320c2c14a770955a615f372f8a09a8061dd7",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/online-therapy-sessions/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/online-therapy-sessions/v1/sql/mysql.sql",
      "bytes": 125652,
      "sha256": "26c3bb444535a96c42843b81dbbe5245a3430642b9b9baf73ff24c58f28d101b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/online-therapy-sessions/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/online-therapy-sessions/v1/sql/mssql.sql",
      "bytes": 128847,
      "sha256": "d7a7329ace8aaddaaf44e830b8b1118306acd8a8b9874f3d750770b33a971b38",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/online-therapy-sessions/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/online-therapy-sessions/v1/sql/sqlite.sql",
      "bytes": 125383,
      "sha256": "59dd4c433ba57ec48f9e3abbf1f148e369ccb3615b8c39cfbfe27146bc030eb3",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/online-therapy-sessions/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/online-therapy-sessions/v1/prisma/seed.ts",
      "bytes": 230746,
      "sha256": "dfb8d391fa3205dc59e6affa1c1b69f2d5fb1836f2b4d6ca9e94f80e8536d72e",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/online-therapy-sessions/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/online-therapy-sessions/v1/django/fixtures.json",
      "bytes": 340942,
      "sha256": "727f8fd296b97f381c1f5b5ab72e943222029a308b41a7f13fdade2f298ed3b0",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767328559,
  "updatedAt": 1788767328559
}
