Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confounders Conditional Visibility #8

Open
ibevers opened this issue Oct 15, 2024 · 4 comments
Open

Confounders Conditional Visibility #8

ibevers opened this issue Oct 15, 2024 · 4 comments

Comments

@ibevers
Copy link
Collaborator

ibevers commented Oct 15, 2024

The isVis conditions in this are not working:

 {
                "isAbout": "items/is_regular_smoker",
                "isVis": true,
                "variableName": "is_regular_smoker"
            },
            {
                "isAbout": "items/smoking_hx",
                "isVis": true,
                "valueRequired": true,
                "variableName": "smoking_hx"
            },
            {
                "isAbout": "items/age_start_smoking",
                "isVis": "['past', 'currently'].includes(smoking_hx)",
                "variableName": "age_start_smoking"
            },
            {
                "isAbout": "items/age_stop_smoking",
                "isVis": "['past'].includes(smoking_hx)",
                "variableName": "age_stop_smoking"
            },
            {
                "isAbout": "items/smoking_types",
                "isVis": "['past', 'currently'].includes(smoking_hx)",
                "variableName": "smoking_types"
            },
            {
                "isAbout": "items/other_smoking_specify",
                "isVis": "smoking_types === 1",
                "variableName": "other_smoking_specify"
            },
            {
                "isAbout": "items/smoking_freq",
                "isVis": "['past', 'currently'].includes(smoking_hx)",
                "variableName": "smoking_freq"
            },
            {
                "isAbout": "items/alcohol_yn",
                "isVis": true,
                "valueRequired": true,
                "variableName": "alcohol_yn"
            },
          ```
@ibevers
Copy link
Collaborator Author

ibevers commented Oct 15, 2024

"items/age_start_smoking" also doesn't work with "smoking_hx === 'past' || smoking_hx === 'currently'"

@ibevers
Copy link
Collaborator Author

ibevers commented Oct 15, 2024

This looks like a separate issue that might the root of the problem:
Screenshot 2024-10-15 at 3 37 07 PM

@ibevers
Copy link
Collaborator Author

ibevers commented Oct 23, 2024

@satra the alcohol_yn and eligible_studies issues have been fixed. However, this issue persists. I changed the smoking_hx isVis condition to console.log(smoking_hx), and it was successfully logged. However, it is not defined in the scope of the console in Inspect or the other items. The 'never' in the screenshot is the console.log output.

Screenshot 2024-10-23 at 10 43 57 AM

@ibevers
Copy link
Collaborator Author

ibevers commented Oct 28, 2024

Screenshot 2024-10-28 at 4 39 12 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant