Generated simulated lab data
dummy_lab.RdDesigned to mimic the most important elements of the GEMINI lab table as defined in the GEMINI Data Repository Dictionary.
Arguments
- id
(
numeric)
A single identifier that is repeated to match the length ofvalue.- omop
(
character)
Codes corresponding to OMOP concept identifiers.- value
(
numeric)
Simulated result values for each lab test measurement.- unit
(
character)
Units corresponding to the particular lab test as defined byomop. It is repeated to match the length ofvalue.- mintime
(
character)
In the format yyyy-mm-dd hh:mm. Earliest recorded test performed time.
Value
(data.table)
With the columns, id, omop, value, unit, and collection_date_time as described above.
Examples
lab <- dummy_lab(1, 3024641, c(7, 8, 15, 30), "mmol/L", "2023-01-02 08:00")