simulate_ehr_consultations: Generates simulated GP consultation tables.

Description Usage Arguments Value Examples

View source: R/ehr_simulation.R

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

1
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

1
2
3
## 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 March 19, 2018, 7:58 a.m.