simulate_ehr_consultations: Generates simulated GP consultation tables.

View source: R/ehr_simulation.R

simulate_ehr_consultationsR Documentation

Generates simulated GP consultation tables.

Description

This function generates simulated GP consultations based on an EHR_definition object and a patient table, as generated by simulate_ehr_patients. Multicore functionality is implemented via mclapply

Usage

simulate_ehr_consultations(ehr_def, patient_table, cores = 1)

Arguments

ehr_def

an object of class link{EHR_definition}

patient_table

a dataframe of simulated patient EHR data

cores

number of processor cores to use to run the analysis

Value

data frame of simulated GP consultations

Examples

## Not run:  patient <- simulate_ehr_patients(ehr_definition) cons <-
  simulate_ehr_consultations(ehr_def, patient_table = patient, cores = 4) 
## End(Not run)

rOpenHealth/rEHR documentation built on Sept. 25, 2024, 5:32 p.m.