library(tidyverse)
load("./_bookdown_files/data/hic_event_summary.RData")
load("./_bookdown_files/data/working_data.RData")

qref <- inspectEHR:::qref

code_names <- qref %>%
  select(code_name) %>%
  pull()

names(code_names) <- qref %>%
  select(short_name) %>%
  pull()

one_d <- qref %>%
  filter(type == "1d") %>%
  select(code_name) %>%
  pull()

two_d <- qref %>%
  filter(type == "2d") %>%
  select(code_name) %>%
  pull()

all_sites <- c("UCL", "RGT", "RYJ", "OUH", "GSTT")

Introduction

This report provides a comprehensive overview of the state of the CC-HIC database as of r Sys.Date(). The purpose of this report is to provide:

  1. The starting point for any research conducted within CC-HIC. Researchers can view a comprehensive overview of the variables they are interested in.
  2. A description as to the distribution and temporal patterns of data provided to CC-HIC.
  3. A reference table within the CC-HIC database of pre-validated episodes and events that can be used in a research capacity - thus standardising the process of quality control for research conducted within the HIC.
  4. A complement to the CC-HIC GitHub issue tracker, where researchers can report data quality issues, and sites can issue fixes.

Nomencleature

A brief description of specific terms used in the report are outlined:

Overview

Version 1.0 for CC-HIC contains 255 data fields. These fields have been sub-classified according to their importance: mandatory and optional. Optional fields have been regrouped into "bundles". The reason for this, is that data quality usually effects particular fields en masse, and so it is useful to consider them together. For example, if there is an issue with PaO~2~ results, it is commonplace to see errors in all point-of-care testing.

Mandatory Fields

Mandatory fields that are essential for characterising the ICU episode and include:

  1. A unique patient identifier - 'NIHR_HIC_ICU_0073'; "NHS Number"
  2. An episode start date-time - 'NIHR_HIC_ICU_0411'; "Date & Time of admission to your unit"
  3. An episode end date-time, which could be any from (in order of preference):
  4. 'NIHR_HIC_ICU_0412': "Date & Time of discharge from your unit"
  5. 'NIHR_HIC_ICU_0042' AND 'NIHR_HIC_ICU_0043': Date and Time of death on ICU
  6. 'NIHR_HIC_ICU_0044' AND 'NIHR_HIC_ICU_0045': Date and Time of brain stem death on ICU
  7. 'NIHR_HIC_ICU_0038' AND 'NIHR_HIC_ICU_0039': Date and Time body removed from ICU

Note: some date-time instances are stored separately as date and time objects. Coincident date-time pairs are useless and should be avoided. A future specification should combine these elements

An overview of the time cascade, based upon the ICNARC methodology can be seen below:

knitr::include_graphics("./_bookdown_files/time_sequence.png")


CC-HIC/inspectEHR documentation built on Jan. 16, 2020, 11:24 p.m.