Description Usage Arguments Value
View source: R/get_diagnosis.R
This function provides a dataframe with flags indicating if a patient has a diagnosis or not based on icd9, icd10 and snomed codes. The flags are 1 whichindicate patient had the medication or 0 which indicates patient did not. A missing flag means that the patient did not get any diagnosis at all in the time frame specified. All arguments are strings
1 2 | get_diagnosis(supermart, sandbox, cohort, dx_codes_df, dx_codes_col,
grouping_col, index_col, date_condition, extra_grouping_vars = "")
|
supermart |
Name of the supermart where the data is stored. Eg. supermart_392 |
sandbox |
Name of the writable location usually sandbox where cohort is saved |
cohort |
Name of the cohort with explorys_patient_id's. |
dx_codes_col |
Name of the column in the dx_codes_df specified. This column has the icd9/10/snomed codes |
grouping_col |
Name of the column that has the groups of medications of interest |
index_col |
Name of the column with the index dates |
date_condition |
The sql format date condition. For example "DATE(diagnosis_date) BETWEEN '2019-01-01' AND '2020-01-01'" |
extra_grouping_vars |
Character string of additional variables separated by comma to grouping variables |
A dataframe with indicators of diagnoses
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.