# ---------------------------------------------------------------------------
# cq01_list.R  (workflow: submission-program-readiness-review)
# Reproduces: Helper: the preferred-term list printed in CSR Table 12-2 (p. 33), used by checks.R and cq01_vs_csr.R.
# Usage: (helper; sourced by other scripts in this folder)
#   data_dir = folder containing the input files below (default: current folder).
# Input files: none (no data read)
#   Download the unmodified files from the public CDISC pilot repository:
#   https://github.com/cdisc-org/sdtm-adam-pilot-project  (folder updated-pilot-submission-package/900172/m5/)
#   (datasets as .xpt files).
# Expected output: none (helper).
# Packages: base R only. Tested with R 4.6.1 on Windows.
#   Install what is missing with install.packages(c(...)); no private library path is needed.
# Note: library-only helper
# Licence: code MIT (see README.md in the scripts folder). Data: CDISC SDTM/ADaM Pilot Project (CDISCPILOT01),
# credited to CDISC, used unmodified under the CDISC terms of use. The data are not included here.
# Logic is unchanged from the version that produced the saved output; only path handling and this header were changed.
# ---------------------------------------------------------------------------
# PT list printed in CSR Table 12-2 (p. 33); typos in the CSR (Vescicles, Cintact) corrected to the MedDRA PT spelling used in the data
t122 <- toupper(c("Application Site Pruritus","Application Site Erythema","Application Site Irritation","Application Site Dermatitis",
 "Application Site Vesicles","Application Site Pain","Application Site Perspiration","Application Site Swelling","Application Site Discharge",
 "Application Site Reaction","Application Site Urticaria","Application Site Bleeding","Application Site Desquamation",
 "Application Site Discolouration","Application Site Induration","Application Site Warmth","Pruritus","Erythema","Rash","Skin Irritation",
 "Rash Pruritic","Actinic Keratosis","Blister","Pruritus Generalised","Rash Maculo-papular","Skin Odour Abnormal","Urticaria",
 "Dermatitis Contact","Drug Eruption","Rash Erythematous","Skin Exfoliation","Skin Ulcer"))
