CDCgov / Rnssp-rmd-templates

Rnssp R Markdown templates are custom-built, parameterized R Markdown templates with seamless integration to the Rnssp R package to enhance user experiences and streamline workflows.
https://cdcgov.github.io/Rnssp-rmd-templates
Apache License 2.0
13 stars 10 forks source link

Updated API pull and added new parameter #3

Closed Michael-Sheppard closed 2 years ago

Michael-Sheppard commented 2 years ago
  1. Updated the API for site-level full data details to use the Syndrome Subsyndrome CCDD Combined Category field to simplify the code.
  2. Added a new parameter, has_been_E, so that data can be limited to ED data if specified. This only applies to ESSENCE API pulls as CCQV backup table does not have a has_been_E field.
  3. Removed duplicate cat() statements when no alerts are found.
  4. Default date range is now the most recent 90 days. Default start and end dates are calculated using base R.