lib/health-data-standards/models/cqm/measure.rb in health-data-standards-3.6.1 vs lib/health-data-standards/models/cqm/measure.rb in health-data-standards-3.7.0
- old
+ new
@@ -85,10 +85,11 @@
}}
pipeline << {'$project' => {'category' => '$_id', 'measures' => 1, '_id' => 0}}
pipeline << {'$sort' => {"category" => 1}}
- Mongoid.default_session.command(aggregate: 'measures', pipeline: pipeline)['result']
+
+ Mongoid.default_client.command(aggregate: 'measures', pipeline: pipeline).documents[0]["result"]
end
# Returns the hqmf-parser's ruby implementation of an HQMF document.
# Rebuild from population_criteria, data_criteria, and measure_period JSON