create_npds_notification: Create NPDS notification email sent to state and poison...

View source: R/npds_notifications.R

create_npds_notificationR Documentation

Create NPDS notification email sent to state and poison center

Description

create_npds_notification() is used to create the notification email that CDC send to the state health department epidemiologist and poison control center contact persons when an incident of pubic health significance is confirmed in the NPDS.

Usage

create_npds_notification(db, id, final, save = NULL)

Arguments

db

list; object generated by read_npds_notification_db.

id

numeric; integer identifying the row number for which you want to create the notification email.

final

logical; TRUE if the email to be created should be final and FALSE if the email to be created should be draft (not final).

save

character; filename of the output file. Default is NULL. If NULL a file is not created.

Value

If save = NULL then the function will return a character vector with the content to generate an eml (email) file. If save = "file.eml" then it will create a file named file.eml with the notification email.

Examples

#
create_npds_notification("tests/manual_tests/NPDS_notification_database.xlsx",
1, final = FALSE)


renejuan/DERTtools documentation built on March 19, 2022, 7:20 a.m.