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
)
#> ℹ Adding variables of interest to condition_occurrence.
#> ℹ Summarising records per person in condition_occurrence.
#> ℹ Summarising condition_occurrence: `in_observation`, `standard_concept`,
#> `source_vocabulary`, `domain_id`, and `type_concept`.
#> ℹ Adding variables of interest to drug_exposure.
#> ℹ Summarising records per person in drug_exposure.
#> ℹ Summarising drug_exposure: `in_observation`, `standard_concept`,
#> `source_vocabulary`, `domain_id`, and `type_concept`.
summarisedResult |>
suppress(minCellCount = 5) |>
tableClinicalRecords()
condition_occurrence
drug_exposure
PatientProfiles::mockDisconnect(cdm)
# }