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

lib/qme/manual_exclusion.rb fails #9

Description

@imbroglioj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions