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

Custom rule based data quality resolutions not included in export #1

Open
jmcarson opened this issue Dec 3, 2019 · 0 comments
Open

Comments

@jmcarson
Copy link

jmcarson commented Dec 3, 2019

We are working on incorporating this module to find outstanding data queries.

If you open a query on a custom rule the query is not included in the export. My suspicion is that the following line in export.php is causing them to be excluded:

-- join to metadata to exclude fields that no longer exist (like REDCap does programmatically)
JOIN redcap_metadata m
	ON m.project_id = $project_id
	AND s.field_name = m.field_name

custom rules do not have a field_name associated with them so will be filtered out. Possibly updating to something like this:

-- join to metadata to exclude fields that no longer exist (like REDCap does programmatically)
JOIN redcap_metadata m
	ON m.project_id = $project_id
	AND (s.field_name is null or s.field_name = m.field_name)
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