Description Usage Arguments Value Examples
This function allows you summarize a dataframe consisting of blood pressure data and put it into a data table
1 2 | summarize_bp_dt(df, cutoff_date, num_years, enc_date_var, pat_mrn, sbp_var,
enc_csn_var, pcp_var, vec_of_pcps)
|
df |
Raw EHR dataset which includes blood pressure data |
cutoff_date |
End date of interest in month-day-4digityear format (ie. 11012018 is Nov 1, 2018) |
num_years |
Number of years to search back from cutoff_date |
enc_date_var |
The variable name which includes information pertaining to visit/encounter dates |
pat_mrn |
The variable name which includes the Patient MRN information |
sbp_var |
The variable name which includes information pertaining to systolic blood pressure |
enc_csn_var |
The variable name which includes information pertaining to encounter CSN |
pcp_var |
The variable name which includes the names of the PCP's |
vec_of_pcps |
A vector listing names of PCP's in format found in EHR |
A data table summarizing patient blood pressure information
1 2 3 4 5 | ## Not run:
summarize_bp_dt(df, cutoff_date, num_years = 1, vec_of_pcps, enc_date_var = Encounter.Date,
sbp_var = Systolic.BP, enc_csn_var = Encounter.CSN, pat_mrn = Patient.MRN, pcp_var = Patient.PCP)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.