Skip to content

Enable public-name conversion in create_report_grouped_stats() - #124

Merged
apulsipher merged 2 commits into
mainfrom
120-public-name-grouped-report
Nov 7, 2025
Merged

apulsipher merged 2 commits into
mainfrom
120-public-name-grouped-report

Conversation

@apulsipher

@apulsipher apulsipher commented Nov 7, 2025 •

Copy link
Copy Markdown
Contributor

This pull request adds support for generating public-facing disease reports by allowing the use of alternate, public-friendly disease names in the grouped statistics report. It introduces a new is.public parameter to the relevant functions, updates documentation, and adds tests to ensure correct behavior when public names are present or missing.

Support for public-facing disease names:

  • Added an is.public parameter to create_report_grouped_stats and updated its usage in epitrax_report_grouped_stats, enabling the function to optionally use public-facing disease names if provided. [1] [2] [3]
  • Modified the merging logic in create_report_grouped_stats to replace disease names with public-facing names when is.public is TRUE, and to warn if the required column is missing. The function also now removes the Public_name column from output.
  • Updated documentation for create_report_grouped_stats to describe the new is.public parameter and its behavior. [1] [2]

Testing enhancements:

  • Added tests to ensure correct behavior when generating reports with and without public-facing disease names, including cases where the Public_name column is missing.

@apulsipher apulsipher linked an issue Nov 7, 2025 that may be closed by this pull request
@apulsipher
apulsipher merged commit 3c5eca7 into main Nov 7, 2025
8 checks passed
@apulsipher
apulsipher deleted the 120-public-name-grouped-report branch November 7, 2025 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable public name conversion in grouped stats report

1 participant