quality-measure-engine 3.0.0.beta.1 → 3.0.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/.travis.yml +3 -1
- data/Gemfile.lock +4 -4
- data/lib/qme/map/map_reduce_executor.rb +5 -5
- data/lib/qme/quality_report.rb +2 -3
- data/lib/qme/version.rb +1 -1
- metadata +25 -25
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
NTkxNTdlMWJiMzJjNDY0MjQxYjc0MjFjMGQyYTc4ZGZlZGU5ODhmNzIyMWI5
|
10
|
-
YWUxZDM0ODc5YzE0ZmI3OWRlMTg3ZWM5MWE5NDkyZGNkOTQ3YzI5ZWViNWUx
|
11
|
-
NzgzNWI0ZGQwZDE3MTk1MTU2N2ZjZjRhMGViMjY4MzIwNTFlZDM=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZDMwZTJkYTlkMWRmZWM1ZTc2YzZlNjM1ZTdlYTU0YzNlYTlmZThiNzhlN2Zh
|
14
|
-
NTA3NmVjNTk0ZjkyNjZkODZlYTZkYTVhZjYxZGQxMDUzNjMyMTZiZDdiNDRi
|
15
|
-
NWFhMjg1NmY1NzEzMzQ3NDAyOTA2MmVkMDhmYjU5ZjllMzQwZTI=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: beaf9a738f7e5f96a38c9a957f67f8f217488d3b
|
4
|
+
data.tar.gz: 521284050bb03474124e0f9b7dce44d80ef624cd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f7e4d5734807a301d90ede1db6bb6b5792b54bbb552bf4db1787ee4abb6cd838337dd111f3c10265fa2b631fc3e278c479ecfcd05b6bcc301bab75e973cfbc1f
|
7
|
+
data.tar.gz: 3d5b2930490049194049608781fc2c865034ebfd62ba9c7ca3568590a05a30d1db1cbf79a62a15ef72decb9e539bfe4de703fa69d460411a22739e8b388fe793
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
quality-measure-engine (3.0.0.beta.
|
4
|
+
quality-measure-engine (3.0.0.beta.2)
|
5
5
|
delayed_job_mongoid (~> 2.0.0)
|
6
6
|
mongoid (~> 3.1.4)
|
7
7
|
moped (~> 1.5.1)
|
@@ -62,14 +62,14 @@ GEM
|
|
62
62
|
treetop (~> 1.4.8)
|
63
63
|
method_source (0.8.2)
|
64
64
|
mime-types (1.24)
|
65
|
-
mini_portile (0.5.
|
65
|
+
mini_portile (0.5.2)
|
66
66
|
minitest (4.7.5)
|
67
|
-
mongoid (3.1.
|
67
|
+
mongoid (3.1.6)
|
68
68
|
activemodel (~> 3.2)
|
69
69
|
moped (~> 1.4)
|
70
70
|
origin (~> 1.0)
|
71
71
|
tzinfo (~> 0.3.29)
|
72
|
-
moped (1.5.
|
72
|
+
moped (1.5.2)
|
73
73
|
multi_json (1.8.2)
|
74
74
|
nokogiri (1.6.0)
|
75
75
|
mini_portile (~> 0.5.0)
|
@@ -187,10 +187,10 @@ module QME
|
|
187
187
|
# that the record belongs to, such as numerator, etc.
|
188
188
|
def map_records_into_measure_groups
|
189
189
|
measure = Builder.new(get_db(), @measure_def, @parameter_values)
|
190
|
-
get_db().command(:
|
190
|
+
get_db().command(:mapreduce => 'records',
|
191
191
|
:map => measure.map_function,
|
192
192
|
:reduce => "function(key, values){return values;}",
|
193
|
-
:out => {:reduce => 'patient_cache'},
|
193
|
+
:out => {:reduce => 'patient_cache', :sharded => true},
|
194
194
|
:finalize => measure.finalize_function,
|
195
195
|
:query => {:test_id => @parameter_values['test_id']})
|
196
196
|
QME::ManualExclusion.apply_manual_exclusions(@measure_id,@sub_id)
|
@@ -201,10 +201,10 @@ module QME
|
|
201
201
|
# will state the measure groups that the record belongs to, such as numerator, etc.
|
202
202
|
def map_record_into_measure_groups(patient_id)
|
203
203
|
measure = Builder.new(get_db(), @measure_def, @parameter_values)
|
204
|
-
get_db().command(:
|
204
|
+
get_db().command(:mapreduce => 'records',
|
205
205
|
:map => measure.map_function,
|
206
206
|
:reduce => "function(key, values){return values;}",
|
207
|
-
:out => {:reduce => 'patient_cache'},
|
207
|
+
:out => {:reduce => 'patient_cache', :sharded => true},
|
208
208
|
:finalize => measure.finalize_function,
|
209
209
|
:query => {:medical_record_number => patient_id, :test_id => @parameter_values["test_id"]})
|
210
210
|
QME::ManualExclusion.apply_manual_exclusions(@measure_id,@sub_id)
|
@@ -216,7 +216,7 @@ module QME
|
|
216
216
|
# result is returned directly.
|
217
217
|
def get_patient_result(patient_id)
|
218
218
|
measure = Builder.new(get_db(), @measure_def, @parameter_values)
|
219
|
-
result = get_db().command(:
|
219
|
+
result = get_db().command(:mapreduce => 'records',
|
220
220
|
:map => measure.map_function,
|
221
221
|
:reduce => "function(key, values){return values;}",
|
222
222
|
:out => {:inline => true},
|
data/lib/qme/quality_report.rb
CHANGED
@@ -171,9 +171,8 @@ module QME
|
|
171
171
|
match['value.gender'] = {'$in' => filters['genders']}
|
172
172
|
end
|
173
173
|
if (filters['providers'] && filters['providers'].size > 0)
|
174
|
-
|
175
|
-
|
176
|
-
match['value.provider_performances.provider_id']= {'$in' => providers}
|
174
|
+
providers = filters['providers'].map { |pv| Moped::BSON::ObjectId(pv) }
|
175
|
+
match['value.provider_performances.provider_id'] = {'$in' => providers}
|
177
176
|
end
|
178
177
|
if (filters['languages'] && filters['languages'].size > 0)
|
179
178
|
match["value.languages"] = {'$in' => filters['languages']}
|
data/lib/qme/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quality-measure-engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.beta.
|
4
|
+
version: 3.0.0.beta.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marc Hadley
|
@@ -12,132 +12,132 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2014-02-28 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: moped
|
19
19
|
requirement: !ruby/object:Gem::Requirement
|
20
20
|
requirements:
|
21
|
-
- - ~>
|
21
|
+
- - "~>"
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 1.5.1
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
|
-
- - ~>
|
28
|
+
- - "~>"
|
29
29
|
- !ruby/object:Gem::Version
|
30
30
|
version: 1.5.1
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
32
|
name: mongoid
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|
34
34
|
requirements:
|
35
|
-
- - ~>
|
35
|
+
- - "~>"
|
36
36
|
- !ruby/object:Gem::Version
|
37
37
|
version: 3.1.4
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
requirements:
|
42
|
-
- - ~>
|
42
|
+
- - "~>"
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
version: 3.1.4
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
46
|
name: rubyzip
|
47
47
|
requirement: !ruby/object:Gem::Requirement
|
48
48
|
requirements:
|
49
|
-
- - ~>
|
49
|
+
- - "~>"
|
50
50
|
- !ruby/object:Gem::Version
|
51
51
|
version: 0.9.9
|
52
52
|
type: :runtime
|
53
53
|
prerelease: false
|
54
54
|
version_requirements: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
|
-
- - ~>
|
56
|
+
- - "~>"
|
57
57
|
- !ruby/object:Gem::Version
|
58
58
|
version: 0.9.9
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: delayed_job_mongoid
|
61
61
|
requirement: !ruby/object:Gem::Requirement
|
62
62
|
requirements:
|
63
|
-
- - ~>
|
63
|
+
- - "~>"
|
64
64
|
- !ruby/object:Gem::Version
|
65
65
|
version: 2.0.0
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
68
|
version_requirements: !ruby/object:Gem::Requirement
|
69
69
|
requirements:
|
70
|
-
- - ~>
|
70
|
+
- - "~>"
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: 2.0.0
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: nokogiri
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
|
-
- - ~>
|
77
|
+
- - "~>"
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: 1.6.0
|
80
80
|
type: :runtime
|
81
81
|
prerelease: false
|
82
82
|
version_requirements: !ruby/object:Gem::Requirement
|
83
83
|
requirements:
|
84
|
-
- - ~>
|
84
|
+
- - "~>"
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: 1.6.0
|
87
87
|
- !ruby/object:Gem::Dependency
|
88
88
|
name: rubyXL
|
89
89
|
requirement: !ruby/object:Gem::Requirement
|
90
90
|
requirements:
|
91
|
-
- - ~>
|
91
|
+
- - "~>"
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: 1.2.10
|
94
94
|
type: :runtime
|
95
95
|
prerelease: false
|
96
96
|
version_requirements: !ruby/object:Gem::Requirement
|
97
97
|
requirements:
|
98
|
-
- - ~>
|
98
|
+
- - "~>"
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: 1.2.10
|
101
101
|
- !ruby/object:Gem::Dependency
|
102
102
|
name: minitest
|
103
103
|
requirement: !ruby/object:Gem::Requirement
|
104
104
|
requirements:
|
105
|
-
- - ~>
|
105
|
+
- - "~>"
|
106
106
|
- !ruby/object:Gem::Version
|
107
107
|
version: 4.1.0
|
108
108
|
type: :development
|
109
109
|
prerelease: false
|
110
110
|
version_requirements: !ruby/object:Gem::Requirement
|
111
111
|
requirements:
|
112
|
-
- - ~>
|
112
|
+
- - "~>"
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: 4.1.0
|
115
115
|
- !ruby/object:Gem::Dependency
|
116
116
|
name: simplecov
|
117
117
|
requirement: !ruby/object:Gem::Requirement
|
118
118
|
requirements:
|
119
|
-
- - ~>
|
119
|
+
- - "~>"
|
120
120
|
- !ruby/object:Gem::Version
|
121
121
|
version: 0.7.1
|
122
122
|
type: :development
|
123
123
|
prerelease: false
|
124
124
|
version_requirements: !ruby/object:Gem::Requirement
|
125
125
|
requirements:
|
126
|
-
- - ~>
|
126
|
+
- - "~>"
|
127
127
|
- !ruby/object:Gem::Version
|
128
128
|
version: 0.7.1
|
129
129
|
- !ruby/object:Gem::Dependency
|
130
130
|
name: rails
|
131
131
|
requirement: !ruby/object:Gem::Requirement
|
132
132
|
requirements:
|
133
|
-
- - ~>
|
133
|
+
- - "~>"
|
134
134
|
- !ruby/object:Gem::Version
|
135
135
|
version: 3.2.8
|
136
136
|
type: :development
|
137
137
|
prerelease: false
|
138
138
|
version_requirements: !ruby/object:Gem::Requirement
|
139
139
|
requirements:
|
140
|
-
- - ~>
|
140
|
+
- - "~>"
|
141
141
|
- !ruby/object:Gem::Version
|
142
142
|
version: 3.2.8
|
143
143
|
description: A library for running clinical quality measures
|
@@ -147,8 +147,8 @@ executables: []
|
|
147
147
|
extensions: []
|
148
148
|
extra_rdoc_files: []
|
149
149
|
files:
|
150
|
-
- .gitignore
|
151
|
-
- .travis.yml
|
150
|
+
- ".gitignore"
|
151
|
+
- ".travis.yml"
|
152
152
|
- Gemfile
|
153
153
|
- Gemfile.lock
|
154
154
|
- LICENSE.txt
|
@@ -202,17 +202,17 @@ require_paths:
|
|
202
202
|
- lib
|
203
203
|
required_ruby_version: !ruby/object:Gem::Requirement
|
204
204
|
requirements:
|
205
|
-
- -
|
205
|
+
- - ">="
|
206
206
|
- !ruby/object:Gem::Version
|
207
207
|
version: '0'
|
208
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
209
|
requirements:
|
210
|
-
- -
|
210
|
+
- - ">"
|
211
211
|
- !ruby/object:Gem::Version
|
212
212
|
version: 1.3.1
|
213
213
|
requirements: []
|
214
214
|
rubyforge_project:
|
215
|
-
rubygems_version: 2.
|
215
|
+
rubygems_version: 2.2.2
|
216
216
|
signing_key:
|
217
217
|
specification_version: 4
|
218
218
|
summary: This library can run JavaScript based clinical quality measures on a repository
|