Format Text for Outbreak Reports and the Dashboard
Source:R/app_widgets.R
episodic_ui_italicise_taxon.RdSmall HTML formatting helpers used when building dossier text, both in
the dashboard and in the Quarto outbreak report template. Both are exported so that a custom
report template of your own (set via EPISODIC_QUARTO_REPORT) can use
the same formatting as the shipped one. Input text is always HTML-escaped
first, so the result is safe to pass on to shiny::HTML().
Value
A character vector (or, for episodic_ui_code_join(), a single
string), safe to pass to shiny::HTML().
Details
episodic_ui_italicise_taxon() italicises pathogen names that AMR
recognises as a taxonomic binomial (e.g. Escherichia coli), following
standard microbiological convention. Names it does not recognise (e.g.
"Influenza A", a virus type rather than a species) are left as-is.
episodic_ui_code_join() renders a vector of detector names (e.g.
"farrington", "same_place") as inline <code>, joined into one
string - useful when listing which detectors flagged a cluster.