Description Usage Arguments Value Examples
To get primary, secondary & tertiary contact list from data for specific staff/patient id.
1 2 3 |
staff_id |
character - unique staff identifier for each staff in the homecare dataset |
patient_id |
character - unique patient identifier for each patient in the homecare dataset |
reference_date |
character - The date user assume that staff/patient started showing onset symptoms. ('2020-03-01') |
look_forward_days |
character - How many days forward you want to look from reference date ('7') |
look_back_days |
character - How many days backward you want to look from reference date ('0') |
plot |
logical - If TRUE then plot object will be added in the output list. (FALSE) |
data |
data.table - Data with following columns: PATIENT_ID, PATIENT_NAME (required), VISIT_DATE (required), STAFF_ID, STAFF_NAME (required), PATIENT_STATUS, STAFF_STATUS |
returns a list with 4 elements:
primary_contact_list - The primary contact data frame.
secondary_contact_list - The primary contact data frame.
tertiary_contact_list - The tertiary contact data frame.
plot - A plot object, if logical parameter in the function is TRUE.
The second example below generates plot.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # Below example is used to get contact tracing lists based on staff id.
getContacts(staff_id= '1',
patient_id = NA,
reference_date = "2020-03-01",
look_forward_days = 20,
look_back_days = 3,
data= hcvisits,
plot=FALSE)
# Below example is used to get contact tracing lists based on patient id.
getContacts(staff_id= NA,
patient_id = '1000',
reference_date = "2020-03-01",
look_forward_days = 50,
look_back_days = 3,
data= hcvisits,
plot=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.