Description Usage Arguments Author(s)
View source: R/read_msf_data.R
Function to read, clean and merge data sets from old HIS excel tools and DHIS2
1 2 3 4 5 6 7 8 | read_msf_data(
country_folder,
site,
data_source = "Both",
reformat = TRUE,
chronic_defs = TRUE,
wards = "Medical"
)
|
country_folder |
Path to folder of interest (usually containing all files for a specific country/project) |
site |
Which datasets to read options include "IPD", "OPD" or "IPD Beds" |
data_source |
Which data source to use options include "HIS", "DHIS", or "Both"(default) |
reformat |
Logical (TRUE/FALSE) to specify if want to reformat data to fit to DHIS2 exports. FALSE returns original dataset. Must be TRUE if source == "Both" |
chronic_defs |
Logical (TRUE/FALSE) to define if want to stick to the HIS team definition for chronic conditions (default is TRUE). This will put all old HIS chronic conditions in to new DHIS2 "Other chronic conditions". Otherwise (if set to FALSE) leave as "Chronic diseases" to make available for individually manipulating to combine with DHIS2 data. |
wards |
Specify which wards want to keep Default is "Medical" (strict definition without ITFC or maternal) "Medical extension" includes all medical and ITFC + maternal "All" also includes surgical. Only used if site == "IPD Beds". |
Alex Spina
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.