simulate_ehr_consultations: Generates simulated GP consultation tables.

Description Usage Arguments Value Examples

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
4
## Not run:  patient <- simulate_ehr_patients(ehr_definition) cons <-
  simulate_ehr_consultations(ehr_def, patient_table = patient, cores = 4) 
## End(Not run)
  

rEHR documentation built on Jan. 23, 2017, 1 p.m.