Skip to content

Commit

Permalink
Merge pull request #189 from pharmaverse/138_Add_OECAT_OESCAT@devel
Browse files Browse the repository at this point in the history
git commit for 138_Add_OECAT_OESCAT@devel
  • Loading branch information
manciniedoardo authored Aug 31, 2023
2 parents 5cda603 + 1df6d63 commit e4e6619
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions inst/templates/ad_adbcva.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ oe <- convert_blanks_to_na(oe_ophtha) %>%

# Assign PARAMCD, PARAM, and PARAMN
param_lookup <- tibble::tribble(
~OETESTCD, ~AFEYE, ~PARAMCD, ~PARAM, ~PARAMN,
"VACSCORE", "Study Eye", "SBCVA", "Study Eye Visual Acuity Score (letters)", 1,
"VACSCORE", "Fellow Eye", "FBCVA", "Fellow Eye Visual Acuity Score (letters)", 2,
~OETESTCD, ~OECAT, ~OESCAT, ~AFEYE, ~PARAMCD, ~PARAM, ~PARAMN,
"VACSCORE", "BEST CORRECTED VISUAL ACUITY", "OVERALL EVALUATION", "Study Eye", "SBCVA", "Study Eye Visual Acuity Score (letters)", 1, # nolint
"VACSCORE", "BEST CORRECTED VISUAL ACUITY", "OVERALL EVALUATION", "Fellow Eye", "FBCVA", "Fellow Eye Visual Acuity Score (letters)", 2, # nolint
)

# Assign AVALCAT1
Expand Down
10 changes: 5 additions & 5 deletions inst/templates/ad_adoe.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ oe <- convert_blanks_to_na(oe_ophtha) %>%

# Assign PARAMCD, PARAM, and PARAMN
param_lookup <- tibble::tribble(
~OETESTCD, ~AFEYE, ~PARAMCD, ~PARAM, ~PARAMN,
"CSUBTH", "Study Eye", "SCSUBTH", "Study Eye Center Subfield Thickness (um)", 1,
"CSUBTH", "Fellow Eye", "FCSUBTH", "Fellow Eye Center Subfield Thickness (um)", 2,
"DRSSR", "Study Eye", "SDRSSR", "Study Eye Diabetic Retinopathy Severity", 3,
"DRSSR", "Fellow Eye", "FDRSSR", "Fellow Eye Diabetic Retinopathy Severity", 4
~OETESTCD, ~OECAT, ~OESCAT, ~AFEYE, ~PARAMCD, ~PARAM, ~PARAMN,
"CSUBTH", "OPHTHALMIC ASSESSMENTS", "SD-OCT CST SINGLE FORM", "Study Eye", "SCSUBTH", "Study Eye Center Subfield Thickness (um)", 1, # nolint
"CSUBTH", "OPHTHALMIC ASSESSMENTS", "SD-OCT CST SINGLE FORM", "Fellow Eye", "FCSUBTH", "Fellow Eye Center Subfield Thickness (um)", 2, # nolint
"DRSSR", "OPHTHALMIC ASSESSMENTS", "SD-OCT CST SINGLE FORM", "Study Eye", "SDRSSR", "Study Eye Diabetic Retinopathy Severity", 3, # nolint
"DRSSR", "OPHTHALMIC ASSESSMENTS", "SD-OCT CST SINGLE FORM", "Fellow Eye", "FDRSSR", "Fellow Eye Diabetic Retinopathy Severity", 4 # nolint
)

# ---- Derivations ----
Expand Down
6 changes: 3 additions & 3 deletions vignettes/adbcva.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ oe <- convert_blanks_to_na(oe_ophtha) %>%
# ---- Lookup table ----
param_lookup <- tibble::tribble(
~OETESTCD, ~AFEYE, ~PARAMCD, ~PARAM, ~PARAMN,
"VACSCORE", "Study Eye", "SBCVA", "Study Eye Visual Acuity Score (letters)", 1,
"VACSCORE", "Fellow Eye", "FBCVA", "Fellow Eye Visual Acuity Score (letters)", 2,
~OETESTCD, ~OECAT, ~OESCAT, ~AFEYE, ~PARAMCD, ~PARAM, ~PARAMN,
"VACSCORE", "BEST CORRECTED VISUAL ACUITY", "OVERALL EVALUATION", "Study Eye", "SBCVA", "Study Eye Visual Acuity Score (letters)", 1, # nolint
"VACSCORE", "BEST CORRECTED VISUAL ACUITY", "OVERALL EVALUATION", "Fellow Eye", "FBCVA", "Fellow Eye Visual Acuity Score (letters)", 2, # nolint
)
```

Expand Down
10 changes: 5 additions & 5 deletions vignettes/adoe.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ oe <- convert_blanks_to_na(oe_ophtha) %>%
# Assign PARAMCD, PARAM, and PARAMN
param_lookup <- tibble::tribble(
~OETESTCD, ~AFEYE, ~PARAMCD, ~PARAM, ~PARAMN,
"CSUBTH", "Study Eye", "SCSUBTH", "Study Eye Center Subfield Thickness (um)", 1,
"CSUBTH", "Fellow Eye", "FCSUBTH", "Fellow Eye Center Subfield Thickness (um)", 2,
"DRSSR", "Study Eye", "SDRSSR", "Study Eye Diabetic Retinopathy Severity", 3,
"DRSSR", "Fellow Eye", "FDRSSR", "Fellow Eye Diabetic Retinopathy Severity", 4,
~OETESTCD, ~OECAT, ~OESCAT, ~AFEYE, ~PARAMCD, ~PARAM, ~PARAMN,
"CSUBTH", "OPHTHALMIC ASSESSMENTS", "SD-OCT CST SINGLE FORM", "Study Eye", "SCSUBTH", "Study Eye Center Subfield Thickness (um)", 1, # nolint
"CSUBTH", "OPHTHALMIC ASSESSMENTS", "SD-OCT CST SINGLE FORM", "Fellow Eye", "FCSUBTH", "Fellow Eye Center Subfield Thickness (um)", 2, # nolint
"DRSSR", "OPHTHALMIC ASSESSMENTS", "SD-OCT CST SINGLE FORM", "Study Eye", "SDRSSR", "Study Eye Diabetic Retinopathy Severity", 3, # nolint
"DRSSR", "OPHTHALMIC ASSESSMENTS", "SD-OCT CST SINGLE FORM", "Fellow Eye", "FDRSSR", "Fellow Eye Diabetic Retinopathy Severity", 4, # nolint
)
```

Expand Down

0 comments on commit e4e6619

Please sign in to comment.