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 condition_occurrence counts and records per person
#> ℹ Summarising condition_occurrence: `in_observation`, `standard`, `domain_id`,
#> `source`, and `type`.
#> ℹ Summarising drug_exposure counts and records per person
#> ℹ Summarising drug_exposure: `in_observation`, `standard`, `domain_id`,
#> `source`, and `type`.
summarisedResult |>
suppress(minCellCount = 5) |>
tableClinicalRecords()
#> `min_cell_count` casted to character.
condition_occurrence
drug_exposure
PatientProfiles::mockDisconnect(cdm)
# }