nhs_performs: NHS Performs

View source: R/nhs_performs.R

nhs_performsR Documentation

NHS Performs

Description

nhs_performs reformats the output from smr_data and trend_data in order to fit the template agreed with the team in charge of NHS Performs. It adds variables topic and indicator and reformats period, dropping all other variables except location_name and smr/crd_rat.

Usage

nhs_performs(input_data, end_date, indicator = c("hsmr", "crude"))

Arguments

indicator

controls whether the function reformats data for the trends information tab or the smr information tab. Valid options are 'hsmr' and 'crude'.

data

The input tibble which is the output from smr_data or create_trends.

Details

NHS Performs is a companion website to the ISD website. It contains a collection of indicators which provide information on how a selection of hospitals and NHS boards are performing. HSMR and crude mortality are two indicators featured on the website.

Examples

nhs_performs(data = smr_data, end_date = lubridate::dmy(31032019),
             indicator = "hsmr")
nhs_performs(data = trend_data, end_date = lubridate::dmy(31032019),
             indicator = "crude")


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