read_msf_data: Function to read, clean and merge data sets from old HIS...

Description Usage Arguments Author(s)

View source: R/read_msf_data.R

Description

Function to read, clean and merge data sets from old HIS excel tools and DHIS2

Usage

1
2
3
4
5
6
7
8
read_msf_data(
  country_folder,
  site,
  data_source = "Both",
  reformat = TRUE,
  chronic_defs = TRUE,
  wards = "Medical"
)

Arguments

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".

Author(s)

Alex Spina


R4EPI/epitsa documentation built on Dec. 18, 2021, 8:45 a.m.