-
Notifications
You must be signed in to change notification settings - Fork 0
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
Date filtering bugs - Overview tab - scan count discrepancy #39
Comments
With 15 day scan, we are pulling in some images that don't yet have qc records. |
I see -- so they are being filtered, intentionally or not, if they have no quality rating? I would say that we would want to include all scans, regardless of rating (or lack of rating). That's particularly true here, since we want the complete count, but I think it probably should apply in general. |
We are filtering on subject id based on acquisition week. so imaging records are 1 per subject visit. We then merge that data with the ratings data, where there are 0-6 records (1 per scan) for each subject / visit. One option is to create a record for every subject, and if they don't have an actual record we create a 'no rating' (or 'no data') for that particular scan. |
We also don't break the bar chart apart by scan type, though could if desired. |
Yes, that seems like a good solution -- if no ratings entry exists, then instead of omitting, use a default type value (n/a) and keep the imaging record. This could be a general solution everywhere, since we don't want to hide/miss those scans, and thus might perhaps be done once as part of importing the ratings table, if that makes it simpler? Incidentally, it would be useful to list such cases on Discrepancies, e.g. as "Scans with no quality rating" (I can add this to #45 as a reminder). I like the thought of splitting the bar chart by scan type, too... I can set up a new issue as a reminder of this (#47) |
Solution to this issue: add missing rating records to data ETL |
Have added the missing records and a toggle to the bar chart to determine whether or not to keep the unavailable data. also fixed the bugs that cause it to break if the data is filtered to no records. |
There seems to be a discrepancy between the table and bar portions of the Overview when date filtering with "last 15 days" is used (this might possibly be a sign of a general problem, but it's much easier to verify manually in this case because of the low numbers).
Example (situation from 8/26 report, development version): currently, with "15 days" window selected, the number of scan sessions is 10, from 3 sites:


Setting "split" and "by site" in the bar chart, specific scan counts are
Issues:
The text was updated successfully, but these errors were encountered: