|
| 1 | +#' @title Mock REDCap project |
| 2 | +#' |
| 3 | +#' @description |
| 4 | +#' A fully synthetic REDCap-shaped project list used in package examples, |
| 5 | +#' vignettes, and tests. The project is longitudinal and includes |
| 6 | +#' demographics, follow-up, checkbox, validation, completion status, and |
| 7 | +#' repeating instrument fields. |
| 8 | +#' |
| 9 | +#' @format A list with REDCap API-like data frames: |
| 10 | +#' \describe{ |
| 11 | +#' \item{data}{Synthetic REDCap records.} |
| 12 | +#' \item{metadata}{Synthetic REDCap data dictionary metadata.} |
| 13 | +#' \item{events}{Synthetic longitudinal event metadata.} |
| 14 | +#' \item{event_instruments}{Synthetic event-instrument mapping.} |
| 15 | +#' \item{instruments}{Synthetic instrument labels.} |
| 16 | +#' \item{repeating_instruments}{Synthetic repeating instrument settings.} |
| 17 | +#' \item{project_info}{Synthetic project-level metadata.} |
| 18 | +#' } |
| 19 | +#' @source Generated by `data-raw/mock-data.R`. |
| 20 | +"mock_redcap_project" |
| 21 | + |
| 22 | +#' @title Mock Record Status Dashboard data |
| 23 | +#' |
| 24 | +#' @description |
| 25 | +#' A synthetic dashboard tile table generated from `mock_redcap_project` with |
| 26 | +#' REDCapExploreR's internal record-status logic. This dataset is suitable for |
| 27 | +#' examples of [plot_record_status()]. |
| 28 | +#' |
| 29 | +#' @format A tibble with one row per record, event, and form tile. |
| 30 | +#' @source Generated by `data-raw/mock-data.R`. |
| 31 | +"mock_record_status_data" |
| 32 | + |
| 33 | +#' @title Mock REDCap codebook |
| 34 | +#' |
| 35 | +#' @description |
| 36 | +#' A synthetic `redcap_codebook` object generated from `mock_redcap_project` |
| 37 | +#' with REDCapExploreR's internal codebook logic. |
| 38 | +#' |
| 39 | +#' @format A `redcap_codebook` list with `fields`, `choices`, `forms`, `events`, |
| 40 | +#' `event_instruments`, `repeating`, and `project` elements. |
| 41 | +#' @source Generated by `data-raw/mock-data.R`. |
| 42 | +"mock_codebook" |
| 43 | + |
| 44 | +#' @title Mock REDCap quality report |
| 45 | +#' |
| 46 | +#' @description |
| 47 | +#' A synthetic `redcap_quality_report` object generated from |
| 48 | +#' `mock_redcap_project` with REDCapExploreR's internal quality-report logic. |
| 49 | +#' |
| 50 | +#' @format A `redcap_quality_report` list with `findings`, `summaries`, and |
| 51 | +#' `metadata` elements. |
| 52 | +#' @source Generated by `data-raw/mock-data.R`. |
| 53 | +"mock_quality_report" |
0 commit comments