Create a gt table from a summarised omop_table.
Source:R/tableClinicalRecords.R
tableClinicalRecords.Rd
Create a gt table from a summarised omop_table.
Examples
# \donttest{
library(dplyr)
library(OmopSketch)
# Connect to a mock database
cdm <- mockOmopSketch()
# Run summarise clinical tables
summarisedResult <- summariseClinicalRecords(cdm = cdm,
omopTableName = "condition_occurrence",
recordsPerPerson = c("mean", "sd"),
inObservation = TRUE,
standardConcept = TRUE,
sourceVocabulary = TRUE,
domainId = TRUE,
typeConcept = TRUE)
#> ℹ Summarising table counts
#> ℹ The following estimates will be computed:
#> → Start summary of data, at 2024-09-18 22:29:39.592732
#> ✔ Summary finished, at 2024-09-18 22:29:39.719835
#> ℹ Summarising records per person
#> ℹ The following estimates will be computed:
#> • records_per_person: mean, sd
#> → Start summary of data, at 2024-09-18 22:29:40.459638
#> ✔ Summary finished, at 2024-09-18 22:29:40.646498
#> ℹ Summarising in_observation, standard, domain_id, source, and type information
tableClinicalRecords(summarisedResult)
#> ! Results have not been suppressed.
condition_occurrence
PatientProfiles::mockDisconnect(cdm)
# }