popHealth - An open source clinical quality measure reporting and visualization tool. For announcements and information on current state of popHealth, please visit -
Please review the pull request below. I had to add this specifically for the measure 165. That measure have multiple population sets so the statement qc = CQM::QualityReport.where('measure_id' => measure.id, 'effective_date' => options[:effective_date],'start_date' => options[:start_date], "sub_id" => params[:sub_id], "filters.providers" => {'$in': params[:providers]}).first does not find any value.
I added the statement below in order to prevent an exception when the qc.status is called.
if qc.nil?
qc = CQM::QualityReport.where('measure_id' => measure.id, 'effective_date' => options[:effective_date],'start_date' => options[:start_date], "filters.providers" => {'$in': params[:providers]}).first
end
Please review the pull request below. I had to add this specifically for the measure 165. That measure have multiple population sets so the statement qc = CQM::QualityReport.where('measure_id' => measure.id, 'effective_date' => options[:effective_date],'start_date' => options[:start_date], "sub_id" => params[:sub_id], "filters.providers" => {'$in': params[:providers]}).first does not find any value.
I added the statement below in order to prevent an exception when the qc.status is called.
if qc.nil? qc = CQM::QualityReport.where('measure_id' => measure.id, 'effective_date' => options[:effective_date],'start_date' => options[:start_date], "filters.providers" => {'$in': params[:providers]}).first end