create_hospit_qc_flowchart: Create a Flowchart Illustrating Cleaning Process for...

View source: R/create_cleaning_flowcharts.R

create_hospit_qc_flowchartR Documentation

Create a Flowchart Illustrating Cleaning Process for Hospitalisation Data (TIMCI-specific)

Description

This function generates a flowchart diagram illustrating the cleaning process for hospitalisation data specific to TIMCI. The flowchart visually represents the various stages and outcomes of data processing, including exclusion, editing, and checks for data quality related to hospitalisation records.

Usage

create_hospit_qc_flowchart(
  n_raw_hospit_records,
  n_cdsa_pilot_hospitfu_records,
  n_afterlock_pids_hospitfu_records,
  n_nonvalid_pid_records,
  n_edit_nonvalid_pid_hospitfu_records,
  n_drop_nonvalid_pid_hospitfu_records,
  n_inconsistent_names_day7fu_records,
  n_edit_inconsistent_name_hospitfu_records,
  n_drop_inconsistent_name_hospitfu_records,
  n_duplicated_records,
  n_death_prior_day0_hospitfu,
  n_hospit_prior_day0_hospitfu,
  n_discharge_prior_day0_hospitfu,
  n_cleaned_hospit_records
)

Arguments

n_raw_hospit_records

Initial number of hospitalisation records in the dataset.

n_cdsa_pilot_hospitfu_records

Number of records related to the CDSA pilot (India only).

n_afterlock_pids_hospitfu_records

Number of records outside the specified lock date range.

n_nonvalid_pid_records

Number of records with non-valid child IDs (out of a total of detected IDs).

n_edit_nonvalid_pid_hospitfu_records

Number of records edited due to non-valid child IDs.

n_drop_nonvalid_pid_hospitfu_records

Number of records dropped due to non-valid child IDs.

n_inconsistent_names_day7fu_records

Number of records with non-consistent names (out of a total of detected inconsistencies).

n_edit_inconsistent_name_hospitfu_records

Number of records edited due to non-consistent names.

n_drop_inconsistent_name_hospitfu_records

Number of records dropped due to non-consistent names.

n_duplicated_records

Number of records with an entry date posterior to the lock date.

n_death_prior_day0_hospitfu

Number of records with death prior to enrolment.

n_hospit_prior_day0_hospitfu

Number of records with hospitalisation prior to enrolment.

n_discharge_prior_day0_hospitfu

Number of records with discharge prior to enrolment.

n_cleaned_hospit_records

Number of records after cleaning.

Value

A graph object representing the flowchart of the hospitalisation data cleaning process.


Thaliehln/timci documentation built on April 8, 2024, 3:38 p.m.