generate_barcodes: Generate Barcodes

Description Usage Arguments

View source: R/generate_barcodes.R

Description

This is the main worker function of the whole package. generate_barcodes wraps up the barcode creation and arrangement and saves them in the specified directory.

Usage

1
2
3
4
5
6
7
8
9
generate_barcodes(
  filePath,
  ID,
  DOB,
  GENDER,
  ADDRESS,
  TYPE = c("FORM", "LOG", "FBC"),
  pathRename = FALSE
)

Arguments

filePath

A valid directory path where barcodes are saved

ID

A character string of participant ID

DOB

A character string of Date-of Birth in the following format; DD/MM/YYYY

GENDER

A character of either M or F (for Male and Female respectively)

ADDRESS

A character string with no white space which is used as the sample address

TYPE

A character vector of any of the following options

  • FORM : Transfer Form

  • LOG : Log Book

  • FBC : Full Blood Count

  • CHEM21 : Chemistry-21 Panel (LFT, U&E)

  • VITD : Vitamin-D

  • GLUCOSE : Glucose

  • HBA1C : Glycated Haemoglobin (HbA1c)

  • INSULIN : Insulin

pathRename

logical; if TRUE then the directory where barcodes are saved to will be named ID + Sys.Date(). IF FALSE (default) then the original UID code will be used for directory naming.


aberWARU/bronglaisBarcodes documentation built on Dec. 13, 2021, 12:46 a.m.