Closed kirksnyder closed 2 years ago
I use the value 13 as age first regularly drank alcohol.
in the untransformed isDefined(REGALCOHOL_AGE,-1) ==> 13
in the transformed isDefined(D_408696162,-1) ==> -1
@kirksnyder The id D_408696162 is used multiple times.
Age started smoking cigarettes on a regular basis |__|__|id=D_408696162 min=valueOrDefault("D_194557808",0) max=sum(isDefined(D_150344905,age),1)|
Age started vaping on a regular basis |__|__|id=D_408696162 min=isDefined(D_761037053,0) max=sum(isDefined(D_150344905,age),1)|
Age started smoking cigars, cigarillos, or little filtered cigars on a regular basis |__|__|id=D_408696162 min=isDefined(D_241771440,0) max=sum(isDefined(D_150344905,age),1)|
Age started using chewing tobacco, snus, snuff, or dip on a regular basis |__|__|id=D_408696162 min=isDefined(D_213679054,0) max=sum(isDefined(D_150344905,age),1)|
Age started smoking a hookah or water pipe on a regular basis |__|__|id=D_408696162 min=isDefined(D_127871793,0) max=sum(isDefined(D_150344905,age),1)|
Age started smoking a tobacco pipe on a regular basis |__|__|id=D_408696162 min=isDefined(D_450151555,0) max=sum(isDefined(D_150344905,age),1)|
Age started smoking marijuana on a regular basis |__|__|id=D_408696162 min=isDefined(D_210016366,0) max=sum(isDefined(D_150344905,age),1)|
Age started smoking a combination of marijuana with tobacco on a regular basis |__|__|id=D_408696162 min=isDefined(D_140848765,0) max=sum(isDefined(D_150344905,age),1)|
Age started vaping marijuana on a regular basis |__|__|id=D_408696162 min=isDefined(D_116510981,0) max=sum(isDefined(D_150344905,age),1)|
Age started consuming marijuana in food or drinks on a regular basis |__|__|id=D_408696162 min=isDefined(D_908399883,0) max=sum(isDefined(D_150344905,age),1)|
Age started using THC concentrates via dabbing on a regular basis |__|__|id=D_408696162 min=isDefined(D_766791333,0) max=sum(isDefined(D_150344905,age),1)|
Age started drinking alcohol on a regular basis |__|__|id=D_408696162 min=isDefined(D_250456537,0) max=sum(isDefined(D_150344905,age),1)|
This is what is causing the problem.
Not a quest error
If questions in the CIG and SMMAR sections are answered before going to the ALCOHOL sections, then ALCLIFE1, ALCLIFE2 and ALCLIFE4 will display. But if 88 ("I have not used any...") is selected for TOBACCO and MARIJUANA, those three alcohol sections will not display.
This only happens in the transformed file. The untransformed file renders correctly. (Both are attached.)
json used to test the untransformed file:
json used to test the transformed file:
module3.txt module3-converted-2022-04-14-14-53-25.txt