monthly_trauma_automation: Monthly Trauma Automation

Description Usage Arguments Author(s) Examples

View source: R/automations.R

Description

This takes in the data from monthly_trauma_tbl() and puts the results into and excel file with the admits on one sheet and the discharges on another. The file is saved to a location specified by the user and upon successful completion the file is deleted.

The RDCOMClient Library must be called into the namespace first with any of the following

Usage

1
monthly_trauma_automation(.data, .delete_file = FALSE, .email)

Arguments

.data

The output from the tbl function monthly_trauma_tbl()

.delete_file

Default is FALSE, TRUE will delete file

.email

Provide the email address for the recipient. The email must be in double quotes like so: c("person@licommunityhospital.org;person2@licommunityhospital.org") using a semi-colon if there is more than one address.

Author(s)

Steven P. Sanderson II, MPH

Examples

1
2
3
4
5
6
7
## Not run: 
library(RDCOMClient)
library(tidyverse)
monthly_trauma_tbl() %>%
  monthly_trauma_automation(.email = "someone@email.com")

## End(Not run)

spsanderson/LICHospitalR documentation built on Jan. 6, 2022, 12:32 a.m.