quality-measure-engine 1.1.3 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +5 -2
- data/lib/qme/ext/record.rb +1 -1
- data/lib/qme/importer/entry.rb +8 -1
- data/lib/qme/importer/generic_importer.rb +13 -5
- metadata +37 -26
data/Gemfile
CHANGED
@@ -6,8 +6,11 @@ gem 'mongo', '1.5.1'
|
|
6
6
|
gem 'bson_ext', '1.5.1', :platforms => :mri
|
7
7
|
gem 'rake'
|
8
8
|
#gem 'pry', :require => true
|
9
|
-
#gem 'health-data-standards', :git => 'https://github.com/projectcypress/health-data-standards.git', :branch => '
|
10
|
-
gem 'health-data-standards', '0.
|
9
|
+
#gem 'health-data-standards', :git => 'https://github.com/projectcypress/health-data-standards.git', :branch => 'develop'
|
10
|
+
gem 'health-data-standards', '1.0.1'
|
11
|
+
|
12
|
+
# does not work with redis 3.0
|
13
|
+
gem 'redis', '~> 2.2.2'
|
11
14
|
|
12
15
|
group :test do
|
13
16
|
gem 'cover_me', '>= 1.0.0.rc5', :platforms => :ruby_19
|
data/lib/qme/ext/record.rb
CHANGED
@@ -19,7 +19,7 @@ class Record
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def active_diagnosis
|
22
|
-
@active_diagnosis ||= conditions.any_of({:status => 'active'}, {:status => nil}).to_a +
|
22
|
+
@active_diagnosis ||= conditions.any_of({:status => 'active'}, {:status => nil}, {:ordinality => 'principal'}).to_a +
|
23
23
|
social_history.any_of({:status => 'active'}, {:status => nil}).to_a
|
24
24
|
end
|
25
25
|
|
data/lib/qme/importer/entry.rb
CHANGED
@@ -2,7 +2,7 @@ module QME
|
|
2
2
|
module Importer
|
3
3
|
# Object that represents a CDA Entry (or act, observation, etc.)
|
4
4
|
class Entry
|
5
|
-
attr_accessor :start_time, :end_time, :time, :status, :description
|
5
|
+
attr_accessor :start_time, :end_time, :time, :status, :ordinality, :description
|
6
6
|
attr_reader :codes, :value
|
7
7
|
|
8
8
|
def initialize
|
@@ -28,6 +28,9 @@ module QME
|
|
28
28
|
if event['status']
|
29
29
|
entry.status = event['status']
|
30
30
|
end
|
31
|
+
if event['ordinality']
|
32
|
+
entry.ordinality = event['ordinality']
|
33
|
+
end
|
31
34
|
entry
|
32
35
|
end
|
33
36
|
|
@@ -107,6 +110,10 @@ module QME
|
|
107
110
|
if @status
|
108
111
|
entry_hash['status'] = @status
|
109
112
|
end
|
113
|
+
|
114
|
+
if @ordinality
|
115
|
+
entry_hash['ordinality'] = @ordinality
|
116
|
+
end
|
110
117
|
|
111
118
|
if @description
|
112
119
|
entry_hash['description'] = @description
|
@@ -74,6 +74,8 @@ module QME
|
|
74
74
|
case qds_data_type
|
75
75
|
when 'diagnosis_active'
|
76
76
|
patient.active_diagnosis
|
77
|
+
when 'diagnosis_active_priority_principal'
|
78
|
+
patient.active_diagnosis
|
77
79
|
when 'diagnosis_inactive'
|
78
80
|
patient.inactive_diagnosis
|
79
81
|
when 'diagnosis_resolved'
|
@@ -85,15 +87,21 @@ module QME
|
|
85
87
|
patient.all_problems
|
86
88
|
when 'device'
|
87
89
|
case qds_data_type
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
90
|
+
when 'device_applied'
|
91
|
+
patient.all_devices
|
92
|
+
when 'device_allergy'
|
93
|
+
patient.allergies
|
92
94
|
end
|
93
95
|
when 'care_goal'
|
94
96
|
patient.care_goals
|
95
97
|
when 'diagnostic_study'
|
96
|
-
|
98
|
+
case qds_data_type
|
99
|
+
|
100
|
+
when 'diagnostic_study_performed'
|
101
|
+
patient.procedures
|
102
|
+
when 'diagnostic_study_result'
|
103
|
+
patient.procedure_results
|
104
|
+
end
|
97
105
|
when 'substance'
|
98
106
|
patient.allergies
|
99
107
|
else
|
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: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,11 +11,11 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-
|
14
|
+
date: 2012-07-03 00:00:00.000000000Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: mongo
|
18
|
-
requirement: &
|
18
|
+
requirement: &2153471000 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: '1.3'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *2153471000
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubyzip
|
29
|
-
requirement: &
|
29
|
+
requirement: &2153470520 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ~>
|
@@ -34,10 +34,10 @@ dependencies:
|
|
34
34
|
version: 0.9.4
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *2153470520
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: nokogiri
|
40
|
-
requirement: &
|
40
|
+
requirement: &2153469980 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
@@ -45,10 +45,10 @@ dependencies:
|
|
45
45
|
version: 1.4.4
|
46
46
|
type: :runtime
|
47
47
|
prerelease: false
|
48
|
-
version_requirements: *
|
48
|
+
version_requirements: *2153469980
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: resque
|
51
|
-
requirement: &
|
51
|
+
requirement: &2153469500 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
54
|
- - ~>
|
@@ -56,10 +56,21 @@ dependencies:
|
|
56
56
|
version: 1.15.0
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
|
-
version_requirements: *
|
59
|
+
version_requirements: *2153469500
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: redis
|
62
|
+
requirement: &2153468840 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ~>
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 2.2.2
|
68
|
+
type: :runtime
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: *2153468840
|
60
71
|
- !ruby/object:Gem::Dependency
|
61
72
|
name: resque-status
|
62
|
-
requirement: &
|
73
|
+
requirement: &2153463060 !ruby/object:Gem::Requirement
|
63
74
|
none: false
|
64
75
|
requirements:
|
65
76
|
- - ~>
|
@@ -67,10 +78,10 @@ dependencies:
|
|
67
78
|
version: 0.2.3
|
68
79
|
type: :runtime
|
69
80
|
prerelease: false
|
70
|
-
version_requirements: *
|
81
|
+
version_requirements: *2153463060
|
71
82
|
- !ruby/object:Gem::Dependency
|
72
83
|
name: jsonschema
|
73
|
-
requirement: &
|
84
|
+
requirement: &2153461740 !ruby/object:Gem::Requirement
|
74
85
|
none: false
|
75
86
|
requirements:
|
76
87
|
- - ~>
|
@@ -78,10 +89,10 @@ dependencies:
|
|
78
89
|
version: 2.0.0
|
79
90
|
type: :development
|
80
91
|
prerelease: false
|
81
|
-
version_requirements: *
|
92
|
+
version_requirements: *2153461740
|
82
93
|
- !ruby/object:Gem::Dependency
|
83
94
|
name: rspec
|
84
|
-
requirement: &
|
95
|
+
requirement: &2153460480 !ruby/object:Gem::Requirement
|
85
96
|
none: false
|
86
97
|
requirements:
|
87
98
|
- - ~>
|
@@ -89,10 +100,10 @@ dependencies:
|
|
89
100
|
version: 2.5.0
|
90
101
|
type: :development
|
91
102
|
prerelease: false
|
92
|
-
version_requirements: *
|
103
|
+
version_requirements: *2153460480
|
93
104
|
- !ruby/object:Gem::Dependency
|
94
105
|
name: awesome_print
|
95
|
-
requirement: &
|
106
|
+
requirement: &2153459880 !ruby/object:Gem::Requirement
|
96
107
|
none: false
|
97
108
|
requirements:
|
98
109
|
- - ~>
|
@@ -100,10 +111,10 @@ dependencies:
|
|
100
111
|
version: '0.3'
|
101
112
|
type: :development
|
102
113
|
prerelease: false
|
103
|
-
version_requirements: *
|
114
|
+
version_requirements: *2153459880
|
104
115
|
- !ruby/object:Gem::Dependency
|
105
116
|
name: roo
|
106
|
-
requirement: &
|
117
|
+
requirement: &2153458460 !ruby/object:Gem::Requirement
|
107
118
|
none: false
|
108
119
|
requirements:
|
109
120
|
- - ~>
|
@@ -111,10 +122,10 @@ dependencies:
|
|
111
122
|
version: 1.9.3
|
112
123
|
type: :development
|
113
124
|
prerelease: false
|
114
|
-
version_requirements: *
|
125
|
+
version_requirements: *2153458460
|
115
126
|
- !ruby/object:Gem::Dependency
|
116
127
|
name: builder
|
117
|
-
requirement: &
|
128
|
+
requirement: &2153456780 !ruby/object:Gem::Requirement
|
118
129
|
none: false
|
119
130
|
requirements:
|
120
131
|
- - ~>
|
@@ -122,10 +133,10 @@ dependencies:
|
|
122
133
|
version: 3.0.0
|
123
134
|
type: :development
|
124
135
|
prerelease: false
|
125
|
-
version_requirements: *
|
136
|
+
version_requirements: *2153456780
|
126
137
|
- !ruby/object:Gem::Dependency
|
127
138
|
name: spreadsheet
|
128
|
-
requirement: &
|
139
|
+
requirement: &2153455880 !ruby/object:Gem::Requirement
|
129
140
|
none: false
|
130
141
|
requirements:
|
131
142
|
- - ~>
|
@@ -133,10 +144,10 @@ dependencies:
|
|
133
144
|
version: 0.6.5.2
|
134
145
|
type: :development
|
135
146
|
prerelease: false
|
136
|
-
version_requirements: *
|
147
|
+
version_requirements: *2153455880
|
137
148
|
- !ruby/object:Gem::Dependency
|
138
149
|
name: google-spreadsheet-ruby
|
139
|
-
requirement: &
|
150
|
+
requirement: &2153410360 !ruby/object:Gem::Requirement
|
140
151
|
none: false
|
141
152
|
requirements:
|
142
153
|
- - ~>
|
@@ -144,7 +155,7 @@ dependencies:
|
|
144
155
|
version: 0.1.2
|
145
156
|
type: :development
|
146
157
|
prerelease: false
|
147
|
-
version_requirements: *
|
158
|
+
version_requirements: *2153410360
|
148
159
|
description: A library for extracting quality measure information from HITSP C32's
|
149
160
|
and ASTM CCR's
|
150
161
|
email: talk@projectpophealth.org
|