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

parseBranchingLogic concatenates arm and field #25

Open
gvds opened this issue Sep 27, 2021 · 1 comment
Open

parseBranchingLogic concatenates arm and field #25

gvds opened this issue Sep 27, 2021 · 1 comment

Comments

@gvds
Copy link

gvds commented Sep 27, 2021

When a field is specified within a particular arm in branching logic (e.g. [screening_arm_4][co_enrol_report]), parseBranchingLogic concatenates these as 'screening_arm_4co_enrol_report' with the result that attempting to evaluate the rule (e.g. with(allrecords, eval(l)) ) returns an object not found error.

@nutterb nutterb transferred this issue from another repository Mar 21, 2023
@nutterb
Copy link
Owner

nutterb commented Mar 21, 2023

I don't recall branching logic over forms/arms was a feature when I first wrote parseBranchingLogic.

I'm not quite sure how we would get this to work in redcapAPI. I think the example you give translates to

redcap_event_name == "screening_arm_4" && co_enrol_report == [value]. But you'd also have to match the record ID. In essence, the branching logic affecting a field in row a is going to be dependent on values in row b. That isn't how we normally operate with data frames. Could be pretty tricky.

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

2 participants