epiverse-trace / readepi

An R package for importing epi data into R.
https://epiverse-trace.github.io/readepi/
Other
6 stars 5 forks source link

Harmonize low-level parsers #53

Open Bisaloo opened 10 months ago

Bisaloo commented 10 months ago

The goal of readepi is to provide a unified interface to various health information system or common epidemiological databases. A key principle and the challenge is the harmonization of these very different data sources.

This harmony should also visible internally in low-level parsers to 1. facilitate the understanding of the package structure, thus making easier to maintain it and detect potential issues, 2. possibly eventually export these low-level parsers, as discussed in #45.

I see the following sources of inconsistency that should be addressed:

https://github.com/epiverse-trace/readepi/blob/11aa71e6618946527fd517ba238c8830fe6a8795/R/read_from_dhis2.R#L39-L41

https://github.com/epiverse-trace/readepi/blob/11aa71e6618946527fd517ba238c8830fe6a8795/R/read_from_dhis2-helpers.R#L13

Karim-Mane commented 10 months ago
Bisaloo commented 10 months ago

Thanks for getting started on this. Please make each of these points a separate PR.

Karim-Mane commented 10 months ago

I have already made the changes for setting argument's default values and argument consistency.

I will make the pull request for these 2 now.