Generate lookup list

ys_get_lookup(x, verbose = FALSE)

Arguments

x

a yspec object

verbose

logical; print information to the console as the file is processed

Examples


spec <- load_spec_ex("DEM104101F_PK.yml")
ys_get_lookup(spec)
#> $WT
#> $WT$long
#> [1] "patient weight"
#> 
#> $WT$about
#> [1] "Weight" "kg"    
#> 
#> $WT$range
#> [1]  50 120
#> 
#> $WT$type
#> [1] "numeric"
#> 
#> $WT$col
#> [1] "WT"
#> 
#> $WT$lookup_source
#> [1] "_yspec_lookup.yml"
#> 
#> 
#> $BMI
#> $BMI$long
#> [1] "body mass index"
#> 
#> $BMI$unit
#> [1] "m2/kg"
#> 
#> $BMI$type
#> [1] "numeric"
#> 
#> $BMI$col
#> [1] "BMI"
#> 
#> $BMI$lookup_source
#> [1] "_yspec_lookup_2.yml"
#> 
#> 
#> $BMI2
#> $BMI2$long
#> [1] "alternate BMI measure"
#> 
#> $BMI2$unit
#> [1] "grains/mm"
#> 
#> $BMI2$type
#> [1] "factor"
#> 
#> $BMI2$col
#> [1] "BMI2"
#> 
#> $BMI2$lookup_source
#> [1] "_yspec_lookup_2.yml"
#> 
#> 
#> $HT
#> $HT$long
#> [1] "Height"
#> 
#> $HT$about
#> [1] "height" "cm"    
#> 
#> $HT$range
#> [1] 100 200
#> 
#> $HT$type
#> [1] "numeric"
#> 
#> $HT$col
#> [1] "HT"
#> 
#> $HT$lookup_source
#> [1] "_yspec_lookup_2.yml"
#> 
#> 
#> $ALB
#> $ALB$long
#> [1] "serum albumin"
#> 
#> $ALB$unit
#> [1] "g/dL"
#> 
#> $ALB$short
#> [1] "albumin"
#> 
#> $ALB$range
#> [1] 2 8
#> 
#> $ALB$type
#> [1] "numeric"
#> 
#> $ALB$col
#> [1] "ALB"
#> 
#> $ALB$lookup_source
#> [1] "_yspec_lookup_2.yml"
#> 
#> 
#> $C
#> $C$short
#> [1] "commented row indicator"
#> 
#> $C$col
#> [1] "C"
#> 
#> $C$lookup_source
#> [1] "_yspec_lookup.yml"
#> 
#> 
#> $CMT
#> $CMT$short
#> [1] "compartment - from_lookup"
#> 
#> $CMT$long
#> [1] "compartment number per NONMEM"
#> 
#> $CMT$col
#> [1] "CMT"
#> 
#> $CMT$lookup_source
#> [1] "_yspec_lookup.yml"
#> 
#> 
#> $EGFR
#> $EGFR$long
#> [1] "estimated glomerular filtration rate"
#> 
#> $EGFR$about
#> [1] "eGFR"          "ml/min/1.73m2"
#> 
#> $EGFR$range
#> [1]  40 170
#> 
#> $EGFR$type
#> [1] "numeric"
#> 
#> $EGFR$col
#> [1] "EGFR"
#> 
#> $EGFR$lookup_source
#> [1] "_yspec_lookup.yml"
#> 
#> 
#> $EGFR2
#> $EGFR2$range
#> [1] 10 60
#> 
#> $EGFR2$col
#> [1] "EGFR2"
#> 
#> $EGFR2$lookup_source
#> [1] "_yspec_lookup.yml"
#> 
#> 
#> $SEX
#> $SEX$values
#> [1] 0 1
#> 
#> $SEX$decode
#> [1] "male"   "female"
#> 
#> $SEX$type
#> [1] "numeric"
#> 
#> $SEX$col
#> [1] "SEX"
#> 
#> $SEX$lookup_source
#> [1] "_yspec_lookup.yml"
#> 
#> 
#> $RACE
#> $RACE$values
#> $RACE$values$white
#> [1] 1
#> 
#> $RACE$values$black
#> [1] 2
#> 
#> $RACE$values$other
#> [1] 3
#> 
#> 
#> $RACE$col
#> [1] "RACE"
#> 
#> $RACE$lookup_source
#> [1] "_yspec_lookup.yml"
#> 
#> 
#> $EVID
#> $EVID$type
#> [1] "numeric"
#> 
#> $EVID$short
#> [1] "event ID"
#> 
#> $EVID$long
#> [1] "event ID indicator"
#> 
#> $EVID$comment
#> [1] "per NONMEM specifications"
#> 
#> $EVID$col
#> [1] "EVID"
#> 
#> $EVID$lookup_source
#> [1] "_yspec_lookup.yml"
#> 
#> 
#> $MDV
#> $MDV$type
#> [1] "numeric"
#> 
#> $MDV$long
#> [1] "missing DV indicator"
#> 
#> $MDV$comment
#> [1] "per NONMEM specifications"
#> 
#> $MDV$col
#> [1] "MDV"
#> 
#> $MDV$lookup_source
#> [1] "_yspec_lookup.yml"
#> 
#> 
#> $ALB2
#> $ALB2$type
#> [1] "numeric"
#> 
#> $ALB2$short
#> [1] "adjusted albumin"
#> 
#> $ALB2$unit
#> [1] "g/dL"
#> 
#> $ALB2$comment
#> [1] "in the lookup document as ALB2"
#> 
#> $ALB2$range
#> [1] 1 5
#> 
#> $ALB2$col
#> [1] "ALB2"
#> 
#> $ALB2$lookup_source
#> [1] "_yspec_lookup.yml"
#> 
#>