{
  "format": "dataset-manifest/1",
  "slug": "telehealth-transactions",
  "version": 1,
  "seed": "telehealth-transactions:1",
  "spec": {
    "format": "dataset/1",
    "slug": "telehealth-transactions",
    "name": "Telehealth Transactions",
    "tagline": "Telehealth transactions detailing patient interactions and prescription activities in remote healthcare consultations.",
    "description": "Healthcare providers offer remote consultations and prescription services through telemedicine, allowing patients to receive medical advice without needing to visit a clinic. This dataset models the transactions involved in such telehealth services, capturing essential details about patient interactions, prescription transactions, and medical support requests. By analyzing this data, users can gain insights into common conditions treated via telehealth and the frequency of various prescription types. The dataset includes routine consultations, standard prescriptions, and unique cases, providing a comprehensive view of modern healthcare delivery. Practicing on this synthetic dataset will enhance understanding of healthcare data management, improve SQL skills, and facilitate ORM seeding for application development.",
    "domain": "pharmacy",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "telehealth",
      "transactions",
      "prescriptions",
      "healthcare",
      "consultations",
      "medical advice"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "telehealth_transactions": {
        "description": "Each row represents a telehealth transaction involving a patient, detailing the interaction type, prescription, and associated medical information.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each transaction."
          },
          "patient_id": {
            "kind": "uuid",
            "description": "Unique identifier for the patient involved in the transaction."
          },
          "provider_id": {
            "kind": "uuid",
            "description": "Unique identifier for the healthcare provider."
          },
          "transaction_date": {
            "kind": "datetime",
            "description": "Date and time when the telehealth transaction occurred.",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "dayProfile": "waking"
          },
          "interaction_type": {
            "kind": "enum",
            "values": [
              "consultation",
              "prescription",
              "support_request"
            ],
            "description": "Type of interaction that took place in the transaction."
          },
          "condition": {
            "kind": "words",
            "min": 3,
            "max": 15,
            "description": "The medical condition addressed during the transaction.",
            "nullable": true,
            "when": {
              "column": "status",
              "in": [
                "cancelled"
              ]
            }
          },
          "prescription": {
            "kind": "words",
            "min": 3,
            "max": 10,
            "description": "Details of any prescription provided during the transaction.",
            "nullable": true,
            "when": {
              "column": "interaction_type",
              "in": [
                "prescription"
              ]
            }
          },
          "notes": {
            "kind": "paragraph",
            "min": 5,
            "max": 100,
            "description": "Additional notes or comments related to the transaction.",
            "nullable": true
          },
          "status": {
            "kind": "enum",
            "values": [
              "completed",
              "pending",
              "cancelled"
            ],
            "description": "Status of the transaction."
          }
        }
      }
    },
    "structure": "single-table",
    "traits": [
      "categorical",
      "nullable",
      "timestamped"
    ],
    "analysisQuestions": [
      "What are the most common conditions treated through telehealth?",
      "How many prescriptions are issued per consultation?",
      "What percentage of transactions are cancelled, and why might that be?"
    ],
    "suggestedQueries": [
      {
        "title": "Get all completed transactions",
        "sql": "SELECT * FROM telehealth_transactions WHERE status = 'completed';",
        "dialect": "postgres"
      },
      {
        "title": "Count prescriptions per interaction type",
        "sql": "SELECT interaction_type, COUNT(*) AS prescription_count FROM telehealth_transactions WHERE interaction_type = 'prescription' GROUP BY interaction_type;",
        "dialect": "postgres"
      },
      {
        "title": "Find average transactions per day",
        "sql": "SELECT DATE(transaction_date) AS transaction_day, COUNT(*) AS transaction_count FROM telehealth_transactions GROUP BY transaction_day ORDER BY transaction_day;",
        "dialect": "postgres"
      },
      {
        "title": "List unique conditions treated",
        "sql": "SELECT DISTINCT condition FROM telehealth_transactions;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Healthcare Data Analysts",
        "body": "Healthcare data analysts can leverage this dataset to identify trends in telehealth consultations, such as the most frequently treated conditions and the effectiveness of remote prescriptions. This can inform strategic decisions and improve service offerings."
      },
      {
        "title": "Developers Building Telehealth Applications",
        "body": "Developers can use this dataset to seed their databases when building telehealth applications. It provides realistic data for testing functionalities related to patient management, consultation tracking, and prescription handling."
      },
      {
        "title": "Medical Researchers",
        "body": "Medical researchers examining the efficacy of telehealth can analyze this dataset to study the types of conditions commonly addressed remotely and assess patient outcomes based on transaction data."
      }
    ]
  },
  "counts": {
    "telehealth_transactions": 500
  },
  "stats": {
    "telehealth_transactions": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "patient_id": {
          "nulls": 0,
          "distinct": 500
        },
        "provider_id": {
          "nulls": 0,
          "distinct": 500
        },
        "transaction_date": {
          "nulls": 0,
          "distinct": 500,
          "min": "2022-01-01 17:54:06",
          "max": "2023-12-31 00:53:06"
        },
        "interaction_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "consultation",
          "max": "support_request"
        },
        "condition": {
          "nulls": 338,
          "distinct": 162
        },
        "prescription": {
          "nulls": 321,
          "distinct": 179
        },
        "notes": {
          "nulls": 51,
          "distinct": 449
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "cancelled",
          "max": "pending"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/telehealth_transactions.csv",
      "format": "csv",
      "table": "telehealth_transactions",
      "key": "datasets/telehealth-transactions/v1/csv/telehealth_transactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/telehealth-transactions/v1/csv/telehealth_transactions.csv",
      "bytes": 157294,
      "sha256": "04e30d3676b14ac7b7dc0c5d5257973307e214eaf9b6aeb0bf927bd876d36350",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "telehealth-transactions.json",
      "format": "json",
      "table": null,
      "key": "datasets/telehealth-transactions/v1/telehealth-transactions.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/telehealth-transactions/v1/telehealth-transactions.json",
      "bytes": 264725,
      "sha256": "67e318d246af9efc36183394332373494c26af26b7123e4f87efbbe781e4984e",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/telehealth-transactions/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/telehealth-transactions/v1/sql/postgres.sql",
      "bytes": 174487,
      "sha256": "83d70b3296158805ed437cb301e0b6c9891d2695867e5b9f16010e06078d473e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/telehealth-transactions/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/telehealth-transactions/v1/sql/mysql.sql",
      "bytes": 174365,
      "sha256": "f8106b18ab689597f565b5c1492808655a08ebede7f8bc3cbe813b2254c00e47",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/telehealth-transactions/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/telehealth-transactions/v1/sql/mssql.sql",
      "bytes": 177776,
      "sha256": "3d4048a64bfb580f7f4df2cff1356fa68999c42482ec6af604edb075bbf0a801",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/telehealth-transactions/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/telehealth-transactions/v1/sql/sqlite.sql",
      "bytes": 174307,
      "sha256": "0a01c2e3dedbb390cad68dff963e56f30a87fd518d5fcde2cc1897f9115d5dbb",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/telehealth-transactions/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/telehealth-transactions/v1/prisma/seed.ts",
      "bytes": 236955,
      "sha256": "266bc7f892f3c65274caeb0d8d0aeddf1c938d77d5ed5e2379167dc4d3265e61",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/telehealth-transactions/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/telehealth-transactions/v1/django/fixtures.json",
      "bytes": 294190,
      "sha256": "ca0f3f33476c5dd9ee6d4534dcba41e32526a492fa9fbc1176892181b4321054",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768705818,
  "updatedAt": 1788768705818
}
