diff --git a/data-raw/create_adams_data.R b/data-raw/create_adams_data.R index 967cdbf..3d8e2b4 100644 --- a/data-raw/create_adams_data.R +++ b/data-raw/create_adams_data.R @@ -23,7 +23,7 @@ get_attr <- function(data, col_name) { att <- attr(data[[col_name]], "label") if (is.null(att)) { att <- "undocumented field" - } else if ( att == "null" ) { + } else if (att == "null") { att <- "undocumented field" } return(att) @@ -87,7 +87,7 @@ run_template <- function(tp) { if (is.null(exit_code)) { dataset_dir <- tools::R_user_dir(sprintf("%s_templates_data", pkg), which = "cache") - rda_file <- gsub(".R", ".rda",tp_basename) + rda_file <- gsub(".R", ".rda", tp_basename) rda_file <- gsub("ad_", "", rda_file) data <- load_rda(file.path(dataset_dir, rda_file)) diff --git a/inst/WORDLIST b/inst/WORDLIST index b9c06bf..64877d2 100644 --- a/inst/WORDLIST +++ b/inst/WORDLIST @@ -2,118 +2,43 @@ ABLFL ACTARM ACTARMCD ADT -ADTF ADTM ADURN ADURU ADY ADaM -AEACN -AEBDSYCD -AEBODSYS -AEDECOD -AEDTC -AEENDTC -AEENDY -AEHLGT -AEHLGTCD -AEHLT -AEHLTCD -AELLT -AELLTCD AENDT -AENDTF -AENDTM AENDY -AENTM -AENTMF -AEOUT -AEPTCD -AEREL -AESCAN -AESCONG -AESDISAB -AESDTH -AESEQ -AESER -AESEV -AESHOSP -AESLIFE -AESOC -AESOCCD -AESOD -AESPID -AESTDTC -AESTDY -AETERM -AFEYE -AFRLT AGEGR AGEU -AHIST -ALLOQ -ALTBL ANL ANRHI -ANRIND ANRLO AOCC -AOCCFL -AOCCIFL -AOCCPFL -AOCCSFL -AOCPFL -AOCPPFL -AOCPSFL APEREDT APERIOD APERSDT APERSTDY -APHASE -APHASEN -APRLT AREL ARMCD -ARRLT ASEQ ASEV ASEVN -ASTBL ASTDT -ASTDTF -ASTDTM ASTDY -ASTTM -ASTTMF -ATMF -ATOXDSCH -ATOXDSCL -ATOXGR -ATOXGRH -ATOXGRL ATPT ATPTN ATPTREF AVAL AVALC -AVALCA -AVALCAT AVALU AVISIT AVISITN -BASEC +Analyte BASECAT BASETYPE -BLQFL -BLQFN -BMIBL -BMIBLU -BNRIND +BMI BRTHDTC -BSABL -BTOXGR -BTOXGRH -BTOXGRL CDISC CECAT CEDECOD @@ -140,97 +65,27 @@ CETERM CETPT CETPTNUM CETPTREF -CHGCAT -CHGNAD CICD -CMCLAS -CMDECOD -CMDOSE -CMDOSFRQ -CMDOSU -CMDTC -CMENDTC -CMENDY -CMINDC -CMROUTE -CMSEQ -CMSPID -CMSTDTC -CMSTDY -CMT -CMTRT -CNSDTDSC -CNSR -COHORTC -COUNTRYN -CQ -CRCLBL -CREATBL CRIT +Creatinine DMDTC DMDY -DOSEA -DOSEO -DOSEP -DOSEU DT -DTH -DTHA -DTHADY -DTHB -DTHDT DTHDTC -DTHDTF DTHFL DTYPE DV -DVL -EGBLFL -EGDTC -EGDY -EGELTM -EGFRBL -EGLOC -EGORRES -EGORRESU -EGSEQ -EGSTAT -EGSTRESC -EGSTRESN -EGSTRESU -EGTEST -EGTESTCD -EGTPT -EGTPTNUM -EGTPTREF -EOSDT -EOSSTT -ETHNICN +Datetime EVENTDFL EVENTFL -EVID -EVNTDESC -EXADJ EXDOSE -EXDOSFRM -EXDOSFRQ -EXDOSU -EXDURD EXENDTC -EXENDY -EXPLDOS -EXROUTE -EXSEQ EXSTDTC -EXSTDY EXTRT FAEVAL FAEVINTX FALNKGRP FALNKID -FANLDT -FANLDTM -FANLTM FAOBJ FAORRES FAREASND @@ -238,12 +93,8 @@ FASTAT FATEST FATESTCD FN -FORMN -FRLTU -FRVDT -FUPFL -HTBL -HTBLU +Grp +Hx INVID INVNAM ISBLFL @@ -265,231 +116,53 @@ ISSTRESU ISTEST ISTESTCD ISULOQ -LBBLFL -LBCAT -LBDTC -LBDY -LBNRIND -LBORNRHI -LBORNRLO -LBORRES -LBORRESU -LBSEQ -LBSTNRHI -LBSTNRLO -LBSTRESC -LBSTRESN -LBSTRESU -LBTEST -LBTESTCD -LDDTHELD -LDDTHGR -LDOSEDTM +Imput LOD -LSASS -LSEXP -LSTALVDT -LVOTFL -MDV -MHBODSYS -MHCAT -MHDECOD -MHDTC -MHDY -MHENDTC -MHENRF -MHENRTPT -MHENTPT -MHHLGT -MHHLT -MHLLT -MHOCCUR -MHPRESP -MHSEQ -MHSEV -MHSPID -MHSTAT -MHSTDTC -MHSTRTPT -MHSTTPT -MHTERM -MHTERMN -MRRLT -NFRLT -NPRLT -NRRLT -OECAT -OEDTC -OEDY -OELAT -OELOC -OEMETHOD -OEORRES -OEORRESU -OESCAT -OESEQ -OESTAT -OESTRESC -OESTRESN -OESTRESU -OETEST -OETESTCD -OETPT -OETPTNUM -OETSTDTL -ONTRTFL +Laterality +Nom PARAM PARAMCD PARAMN PARCAT -PCDTC -PCDY -PCHG -PCHGNAD -PCLLOQ -PCNAM -PCORRES -PCORRESU -PCRFTDT -PCRFTDTM -PCRFTTM -PCSPEC -PCSTRESC -PCSTRESN -PCSTRESU -PCTEST -PCTESTCD -PCTPT -PCTPTNUM -PDFL -PDOSEO -PPCAT -PPORRES -PPORRESU -PPRFDTC +PDose PPROTFL -PPSPEC PPSRFL -PPSTRESU -PPTEST -PPTESTCD -PREFL -PROJID -PROJIDN +Pharmacodynamic +Pharmacokinetic Pharmaverse -QSBLFL -QSCAT -QSDRVFL -QSDTC -QSDY -QSORRES -QSORRESU -QSSCAT -QSSEQ -QSSTRESC -QSSTRESN -QSSTRESU -QSTEST -QSTESTCD +Prd +Pre +Quant RACEGR -RACEN -RANDDT -RECSEQ RFENDTC RFICDTC RFPENDTC RFSTDTC RFXENDTC RFXSTDTC -ROUTEN -RRLTU -RSACPTFL -RSDTC -RSEVAL -RSEVALID -RSORRES -RSSEQ -RSSTRESC -RSTEST -RSTESTCD +Retrievel SAFFL -SCN -SCRFDT SDT SDTM SERCAT -SEXN SITEID -SITEIDN SMQ -SRCDOM -SRCSEQ -SRCVAR -STARTDT -STUDYEYE STUDYID -STUDYIDN SUBJID -SUBJIDN -TBILBL -TRACPTFL -TRDTC -TRDY -TREVAL -TREVALID -TRGRPID -TRLNKGRP -TRLNKID -TRMETHOD -TRORRES -TRORRESU -TRREASND -TRSEQ -TRSTAT -TRSTRESC -TRSTRESN -TRSTRESU +Sev +Signif TRT TRTA TRTDURD TRTEDT TRTEDTM -TRTEMFL -TRTEST -TRTESTCD -TRTETMF TRTP TRTSDT TRTSDTM -TRTSTMF -TULOC -TULOCGR -UDTC +Timepoint +Trt USUBJID -USUBJIDN -VISITDY VISITNUM -VSBLFL -VSDTC -VSDY -VSELTM -VSLOC -VSORRES -VSORRESU -VSPOS -VSSEQ -VSSTAT -VSSTRESC -VSSTRESN -VSSTRESU -VSTEST -VSTESTCD -VSTPT -VSTPTNUM -VSTPTREF -WORS -WTBL -WTBLU adae adbcva adce @@ -518,4 +191,3 @@ onco ophtha pharmaverse pharmaversesdtm -adams