Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Kangjie Zhang <[email protected]>
  • Loading branch information
vbshuliar and kaz462 authored Sep 16, 2024
1 parent c865c68 commit fcc35ed
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions data-raw/eg.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ egdtc <- vs %>%
# Generate patients data ----
eg <- expand.grid(
USUBJID = unique(vs$USUBJID),
EGTESTCD = c("QT", "HR", "RR", "ECGINT") %>% as.character(),
EGTESTCD = c("QT", "HR", "RR", "ECGINT"),
EGTPT = c("AFTER LYING DOWN FOR 5 MINUTES", "AFTER STANDING FOR 1 MINUTE", "AFTER STANDING FOR 3 MINUTES"),
VISIT = c(
"SCREENING 1",
Expand All @@ -38,7 +38,7 @@ eg <- expand.grid(
"WEEK 24",
"WEEK 26",
"RETRIEVAL"
)
), stringsAsFactors = FALSE
) %>%
# The original CDISC dataset kept no information about ECG Interpretation on specified visits
# Remove entries with specific visit names where EGTESTCD == "ECGINT"
Expand Down Expand Up @@ -161,13 +161,13 @@ eg <- expand.grid(
DOMAIN = "Domain Abbreviation",
USUBJID = "Unique Subject Identifier",
EGSEQ = "Sequence Number",
EGTESTCD = "Test Code",
EGTEST = "Test Name",
EGORRES = "Original Result",
EGTESTCD = "ECG Test Short Name",
EGTEST = "ECG Test Name",
EGORRES = "Result or Finding in Original Units",
EGORRESU = "Original Units",
EGELTM = "Elapsed Time",
EGSTRESC = "Standard Character Result",
EGSTRESN = "Standard Numeric Result",
EGSTRESC = "Character Result/Finding in Std Format",
EGSTRESN = "Numeric Result/Finding in Standard Units",
EGSTRESU = "Standard Units",
EGSTAT = "Completion Status",
EGLOC = "Location of Vital Signs Measurement",
Expand Down

0 comments on commit fcc35ed

Please sign in to comment.