Skip to contents

gsm.datasim v2.2.0

This minor release makes gsm.datasim the source of the shared gsm test data: it builds the bundles that gsm.core serves, and publishes them automatically.

  • New build_testdata_bundle() produces the shared gsm test data (lSource, analytics*, reporting*) for use in other gsm packages (#151, #187). read_testdata_config(), read_testdata_object() and read_testdata_snapshot() read a bundle’s configuration, objects and snapshot.
  • Bundles are fingerprinted by R object digest using gsm.core’s exported snapshot tools (snapshot format 2), so fingerprints no longer depend on CSV line endings, RDS compression or R version. gsm.core moves from Suggests to Imports (#188).
  • Test data bundles are published automatically as data-<fp12> releases when gsm.datasim, or another gsm package that feeds the bundle, merges to dev or main (#153, #182, #183).
  • New use_gsm_datasim() adds options(gsm.testdata_builder = "gsm.datasim::build_testdata_bundle") to your .Rprofile, so gsm.core builds test data from local gsm code when needed (#190).
  • Simulated Raw_AE data now carries AE outcome (aeout), derived relatedness (aereldrv) and serious-death flag (aesdth), with deterministic fatal-AE cases linked to Raw_Death: participants with one, several or no qualifying fatal AEs, related, not related and missing relatedness, plus a fatal AE on a participant with no death record (#142).

gsm.datasim v2.1.0

This minor release adds simulated data for the IP Compliance (IP non-starters and premature treatment discontinuation) and Repeat Measurements analytics, and keeps longitudinal snapshots consistent from one snapshot to the next.

New Features

  • Raw_VS is a new vital signs simulator (weight, systolic and diastolic blood pressure). It simulates consecutive repeated measurements at site-specific rates, and each site keeps its risk band across snapshots. A new risk_profile argument, accepted by the study-creation functions alongside participants/sites, controls how many sites land in each risk band (#113, #143, #170).

  • Simulated Raw_SUBJ data now covers IP non-starter, kit assignment and premature treatment discontinuation scenarios, with more realistic dosing timelines and study completion records consistent with each subject’s status (#122, #140, #157, #138, #173).

Bug Fixes

  • create_longitudinal_study() / generate_study_snapshots() snapshots no longer generate independent single-snapshot studies. Instead, each snapshot builds off the previous one, preserving subject, site, and enrollment continuity and letting exposure accumulate across snapshots (#165).
  • RunWorkflows() is now called with its full lWorkflows argument name, removing a partial-match warning (#158).

gsm.datasim v2.0.0

This major release introduces a composable study builder API, longitudinal multi-snapshot study support, workflow-driven data generation, a domain registry, and parquet export. Analytics and reporting are now powered by the workr workflow engine.

Breaking Changes

New Features

gsm.datasim v1.1.3

This patch release makes the following updates:

gsm.datasim v1.1.2

This release resolves a bug involving duplicate records in the randomization domain.

gsm.datasim v1.1.1

This release adds new contributor guidelines and standardized issue templates.

gsm.datasim v1.1.0

Notable Changes:

New Mapping Workflows Support: - Additional workflow support for “IE” domain - dates/timestamp support for many domains now available.

gsm.datasim v1.0.0

We are excited to announce the first major release of the gsm.datasim package, a collection of functions to generate synthetic test data for the RBQM of Clinical Trials based on several parameters.

Notable Changes:

User-facing functions - generate_rawdata_for_single_study() can create snapshot(s) for a single study when provided with the proper parameters and appropriate mapping specifications. - raw_data_generator() is a wrapper to run generate_rawdata_for_single_study() to create multiple studies if providing a template/dataset containing a variety of these parameters.

New Mapping Workflows Support: - All workflows that exist in gsm.mapping’s inst/workflow/1_mappings are now supported, with “STUDY”, “SUBJ”, “SITE” and “ENROLL” always being required. - There are many gsm.endpoints specific domains, such as Anticancer and OverallResponse that now have support as well.

Replacing clindata with gsm.datasim: - The object gsm.core::lSource was created using gsm.datasim for examples, tests, and vignettes across the gsm ecosystem. This object is based on “core mappings” which include: “AE”, “COUNTRY”, “DATACHG”, “DATAENT”, “ENROLL”, “LB”, “PD”, “PK”, “QUERY”, “STUDY”, “STUDCOMP”, “SDRGCOMP”, “SITE”, “SUBJ”