create_drug_qc_flowchart: Create a flowchart summarizing the cleaning of drug re-entry...

View source: R/create_cleaning_flowcharts.R

create_drug_qc_flowchartR Documentation

Create a flowchart summarizing the cleaning of drug re-entry data (TIMCI-specific)

Description

This function generates a flowchart summarizing the cleaning of drug re-entry data specific to the TIMCI project. The flowchart displays the initial number of drug records, the number of records excluded due to duplicate IDs, and the number of records that passed other cleaning checks for specific drugs. The function returns a graph object that can be plotted using the DiagrammeR package.

Usage

create_drug_qc_flowchart(
  n_raw_drug_records,
  n_dropped_duplicate_records,
  n_manual_edits,
  n_amox_records,
  n_aclav_records,
  n_metro_records,
  n_ctx_records,
  n_cipro_records,
  n_genta_records,
  n_penig_records,
  n_ceftriaxone_records,
  n_cefixime_records,
  n_ampi_records,
  n_azithromycin_records,
  n_benzathinepeniG_records,
  n_antibiotics_records,
  n_antimalarials_records,
  n_cleaned_drug_records
)

Arguments

n_raw_drug_records

The initial number of drug records.

n_dropped_duplicate_records

The number of drug records dropped due to duplicate IDs.

n_amox_records

The number of records that passed the cleaning check for amoxicillin.

n_aclav_records

The number of records that passed the cleaning check for amoxicillin + clavulanic acid.

n_metro_records

The number of records that passed the cleaning check for metronidazole.

n_ctx_records

The number of records that passed the cleaning check for cotrimoxazole.

n_cipro_records

The number of records that passed the cleaning check for ciprofloxacin.

n_genta_records

The number of records that passed the cleaning check for gentamicin.

n_penig_records

The number of records that passed the cleaning check for benzylpenicillin.

n_ceftriaxone_records

The number of records that passed the cleaning check for ceftriaxone.

n_cefixime_records

The number of records that passed the cleaning check for cefixime.

n_ampi_records

The number of records that passed the cleaning check for ampicillin.

n_azithromycin_records

The number of records that passed the cleaning check for azithromycin.

n_benzathinepeniG_records

The number of records that passed the cleaning check for benzathine benzylpenicillin.

n_antibiotics_records

The number of records that passed the cleaning check for other antibiotics.

n_antimalarials_records

The number of records that passed the cleaning check for antimalarials.

n_cleaned_drug_records

The total number of cleaned drug records.

Value

This function returns a graph object that can be plotted using the DiagrammeR package.


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