autoReport: Make sheduled automated reports

autoReportR Documentation

Make sheduled automated reports

Description

When called, typically through a chain of events initiated by a chron process, these are functions that actually produces the reports to be shipped off to the recipients. The actual call to this function is made through do.call and has the effect of providing the parameters as class list. Hence, values must be extracted by list operations

Usage

dispatchMonthlyKi(
  baseName,
  hospitalName,
  reshID,
  author,
  userRole,
  type,
  registryName
)

subscriptionLocalMonthlyReps(
  baseName,
  reshId,
  registryName,
  author,
  hospitalName,
  type
)

bulletinStaging()

Arguments

baseName

Single element list with value of Rmd template for the report. Value must be provided without the file extention (i.e. ".Rmd")

hospitalName

Single element list with a (human readable) org name as its value

reshID

Single element list with the organization id of the subscriber as its value

author

Single element list holding the name of the subscriber as its value

userRole

String defining the user role

type

Single element list which value defining report file format, currently one of "pdf" or "html"

registryName

Single element list which value is the regisry name

reshId

Single element list with the organization id of the subscriber as its value

Value

Full path of file produced


Rapporteket/NORIC documentation built on Sept. 7, 2024, 10:32 a.m.