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

lib/qme/manual_exclusion.rb fails #9

Open
imbroglioj opened this issue Jan 13, 2017 · 0 comments
Open

lib/qme/manual_exclusion.rb fails #9

imbroglioj opened this issue Jan 13, 2017 · 0 comments

Comments

@imbroglioj
Copy link

imbroglioj commented Jan 13, 2017

In line 12 of lib/qme/manual_exclusion.rb, a class method references instance variables (instead of parameters), so the database query is always matching against an uninitialized variable

QME::PatientCache.where({'value.measure_id'=>@measure_id, 'value.sub_id'=>@sub_id, 'value.medical_record_id'=>{'$in'=>mids} }).update_all({'$set'=>{'value.manual_exclusion'=>true}})
SHOULD READ (@ signs removed)
QME::PatientCache.where({'value.measure_id'=>measure_id, 'value.sub_id'=>sub_id, 'value.medical_record_id'=>{'$in'=>mids} }).update_all({'$set'=>{'value.manual_exclusion'=>true}})

As a result, the exclusions from collection manual_exclusions are never ported to patient_cache.

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

No branches or pull requests

1 participant