Learn R Programming

rEHR (version 1.0)

simulate_ehr_consultations: 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

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

Run the code above in your browser using DataLab