Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Fixes recalculation of quality reports #10

Open
wants to merge 4 commits into
base: bump_mongoid
Choose a base branch
from

Conversation

dillonwelch
Copy link

The recalculation option was being set on the quality report but not being persisted, so when @quality_report.patients_cached? was being called the result was true.

This PR also marks the associated patient results as expired so that they aren't used in the future and instead are recalculated.

frank-west-iii and others added 4 commits January 27, 2017 14:38
In order to recalculate patient caches we want to use the recalculate
option in the calculation job. Using the recalculate flag we can force
an expiration of results.

We also added an expired_at value to the patient caches in order for
them not to be included in future calculations and results. These can be
purged at any time in the future.
This tests that recalculation only happens when we pass in the
recalculation option. It also tests that on a second run the original
results are expired and we only have the new results attached to the
quality report.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants