Bug: `derive_var_afeye`: undesired results are created when `xxLAT = "BILATERAL"` or potentially dirty data entry
Closed this issue · 1 comments
What happened?
Comment from tester: Affected Eye is derived independently from xxLOC
values (when xxLOC
is missing or not equal to 'EYE'
). When STUDYEYE = "BILATERAL"
then AFEYE
is always set to "STUDY EYE"
even when xxLOC
and xxLAT
are missing.
Session Information
No response
Reproducible Example
No response
Function now follows derivation (e.g. for AE):
"Set to ""BOTH EYES"" when Study Eye Selection (ADSL.STUDYEYE) is not missing, and Study Eye Laterality (AE.AELAT) is equal to ""BILATERAL""
Else set to ""STUDY EYE"" when Study Eye Selection (ADSL.STUDYEYE) is either ""RIGHT"" or ""LEFT"", and matches Study Eye Laterality (AE.AELAT) for the observation record.
Else set to ""STUDY EYE"" when Study Eye Selection (ADSL.STUDYEYE) is ""BILATERAL"", and Study Eye Laterality (AE.AELAT) is not missing for the observation record
Else set to ""FELLOW EYE"" when Study Eye Selection (ADSL.STUDYEYE) is either ""RIGHT"" or ""LEFT"", and (AE.AELAT) is either ""RIGHT"" or ""LEFT"" but are not equal to each other for the observation record.
Else set to null"