Create a visual table from a summariseClinicalRecord() output.
Source:R/tableClinicalRecords.R
tableClinicalRecords.Rd
Create a visual table from a summariseClinicalRecord() output.
Examples
# \donttest{
cdm <- mockOmopSketch()
summarisedResult <- summariseClinicalRecords(
cdm = cdm,
omopTableName = c("condition_occurrence", "drug_exposure"),
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-26 11:49:24.588711
#> ✔ Summary finished, at 2024-09-26 11:49:24.716322
#> ℹ Summarising records per person
#> ℹ The following estimates will be computed:
#> • records_per_person: mean, sd
#> → Start summary of data, at 2024-09-26 11:49:25.464836
#> ✔ Summary finished, at 2024-09-26 11:49:25.654862
#> ℹ Summarising in_observation, standard, domain_id, source, and type information
#> ℹ Summarising table counts
#> ℹ The following estimates will be computed:
#> → Start summary of data, at 2024-09-26 11:49:29.178223
#> ✔ Summary finished, at 2024-09-26 11:49:29.312913
#> ℹ Summarising records per person
#> ℹ The following estimates will be computed:
#> • records_per_person: mean, sd
#> → Start summary of data, at 2024-09-26 11:49:30.051484
#> ✔ Summary finished, at 2024-09-26 11:49:30.240484
#> ℹ Summarising in_observation, standard, domain_id, source, and type information
summarisedResult |>
suppress(minCellCount = 5) |>
tableClinicalRecords()
condition_occurrence
drug_exposure
PatientProfiles::mockDisconnect(cdm)
# }