Description Super classes Methods
Process chess data
Process chess data
ukcovidtools::PassthroughFilesystemCache
-> ukcovidtools::DataProvider
-> ChessProcessingPipeline
new()
New chess processing pipeline
ChessProcessingPipeline$new(providerController, ...)
providerController
the provider controller
...
for compatibility
the processor
chessQuality()
Chess data metrics on a hospital by hospital basis
ChessProcessingPipeline$chessQuality( CHESSdf, updatedWithin = 14, date = max(CHESSdf$dateupdated, na.rm = TRUE), unknownDatesPercent = 0.2 )
CHESSdf
- the raw chess data set
the chess data has some issues as different hospitals have different reporting strategies
a data frame of stats by trust representing reporting quality.
chessItuSubset()
The subset of the CHESS data of patients which are admitted to ITU
the chess data has some issues as different hospitals have different reporting strategies
ChessProcessingPipeline$chessItuSubset( CHESSdf = self$getCHESS(), updatedWithin = 14, date = max(CHESSdf$dateupdated, na.rm = TRUE), unknownDatesPercent = 0.2 )
CHESSdf
- the raw chess data set
date
- the date of the data set
a data frame of stats by trust representing reporting quality.
chessAdmissionSubset()
The subset of the CHESS data of patients from hospitals that appear to be reporting all admissions
the chess data has some issues as different hospitals have different reporting strategies
ChessProcessingPipeline$chessAdmissionSubset( CHESSdf = self$getCHESS(), updatedWithin = 14, date = max(CHESSdf$dateupdated, na.rm = TRUE), unknownDatesPercent = 0.2 )
CHESSdf
- the raw chess data set
date
- the date of the data set
a data frame of stats by trust representing reporting quality.
chessDefaultFilter()
ChessProcessingPipeline$chessDefaultFilter(CHESSdf = self$getCHESS(), ...)
cleanseCHESSData()
Cleanses CHESS data set and adds a few fields
* Detects trusts that have not been updating records * establishes a censoring date on a trust by trust basis * checks all outcomes have an outcomedate * checks outcome dates are after admission date * excludes patients whose tests are >10 days after admission e.g. hospital acquired * excludes paediatric patients, and those with no known gender * adds censoring status (as status) * adds time from admission to outcome (as timeToOutcome)
ChessProcessingPipeline$cleanseCHESSData(CHESSdf, date, removeOutliers = TRUE)
path
- path to the ff100 file
cleansed CHESS data set
clone()
The objects of this class are cloneable with this method.
ChessProcessingPipeline$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.