submission_deadline: SMR01 submission deadline

View source: R/submission_deadline.R

submission_deadlineR Documentation

SMR01 submission deadline

Description

submission_deadline takes the final date for which data from the General/Acute Inpatient and Day Case (SMR01) dataset are included in the current publication. It returns the date on which the completeness of SMR01 submissions to ISD for individual hospitals is reported in the current publication.

Usage

submission_deadline(end_date)

Arguments

end_date

The cut-off date for SMR01 data to be included in the current HSMR publication, supplied with Date class. Must be the final day of either March, June, September or December.

Details

The submission deadline is always the final day of the month in which the previous publication was published, plus 42 days.

Examples

extract_end_date <- lubridate::dmy(30092018)

submission_deadline(end_date = extract_end_date)
format(submission_deadline(end_date = extract_end_date), "%d %B %Y")
format(submission_deadline(end_date = extract_end_date), "%d/%m/%Y")


Public-Health-Scotland/hsmr documentation built on June 24, 2024, 1:48 a.m.