hqmf2js 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +2 -2
- data/Gemfile.lock +7 -7
- data/hqmf2js.gemspec +1 -1
- data/lib/generator/converter.rb +1 -1
- data/lib/generator/js.rb +1 -1
- data/test/fixtures/NQF59New.xml +2 -2
- data/test/unit/effective_date_test.rb +1 -1
- data/test/unit/hqmf_from_json_javascript_test.rb +2 -2
- data/test/unit/hqmf_javascript_test.rb +2 -2
- metadata +2 -2
data/Gemfile
CHANGED
@@ -13,9 +13,9 @@ end
|
|
13
13
|
gem 'hquery-patient-api', '~> 0.3.0'
|
14
14
|
#gem 'hqmf-parser', :git => 'https://github.com/pophealth/hqmf-parser.git', :branch => 'develop'
|
15
15
|
#gem 'hqmf-parser', :path => '../hqmf-parser'
|
16
|
-
gem 'hqmf-parser', '~> 1.0.
|
16
|
+
gem 'hqmf-parser', '~> 1.0.4'
|
17
17
|
#gem "health-data-standards", :git => 'http://github.com/projectcypress/health-data-standards.git', :branch => 'develop'
|
18
|
-
gem "health-data-standards", '~> 2.1.
|
18
|
+
gem "health-data-standards", '~> 2.1.3'
|
19
19
|
|
20
20
|
gem 'nokogiri'
|
21
21
|
gem 'sprockets'
|
data/Gemfile.lock
CHANGED
@@ -56,7 +56,7 @@ GEM
|
|
56
56
|
oauth (>= 0.3.6)
|
57
57
|
oauth2 (>= 0.5.0)
|
58
58
|
hashie (1.2.0)
|
59
|
-
health-data-standards (2.1.
|
59
|
+
health-data-standards (2.1.3)
|
60
60
|
builder (~> 3.0.0)
|
61
61
|
erubis (~> 2.7.0)
|
62
62
|
mongoid (~> 3.0.6)
|
@@ -64,7 +64,7 @@ GEM
|
|
64
64
|
rest-client (~> 1.6.7)
|
65
65
|
uuid (~> 2.3.5)
|
66
66
|
hike (1.2.1)
|
67
|
-
hqmf-parser (1.0.
|
67
|
+
hqmf-parser (1.0.4)
|
68
68
|
google-spreadsheet-ruby (= 0.1.8)
|
69
69
|
roo (= 1.10.1)
|
70
70
|
rubyzip
|
@@ -87,12 +87,12 @@ GEM
|
|
87
87
|
method_source (0.7.1)
|
88
88
|
mime-types (1.18)
|
89
89
|
minitest (2.12.1)
|
90
|
-
mongoid (3.0.
|
90
|
+
mongoid (3.0.13)
|
91
91
|
activemodel (~> 3.1)
|
92
92
|
moped (~> 1.1)
|
93
93
|
origin (~> 1.0)
|
94
94
|
tzinfo (~> 0.3.22)
|
95
|
-
moped (1.2.
|
95
|
+
moped (1.2.9)
|
96
96
|
multi_json (1.3.6)
|
97
97
|
multipart-post (1.1.5)
|
98
98
|
nokogiri (1.5.5)
|
@@ -143,7 +143,7 @@ GEM
|
|
143
143
|
rubyzip (>= 0.9.4)
|
144
144
|
spreadsheet (> 0.6.4)
|
145
145
|
todonotes (>= 0.1.0)
|
146
|
-
ruby-ole (1.2.11.
|
146
|
+
ruby-ole (1.2.11.5)
|
147
147
|
rubyzip (0.9.9)
|
148
148
|
sass (3.1.15)
|
149
149
|
sass-rails (3.2.5)
|
@@ -185,8 +185,8 @@ DEPENDENCIES
|
|
185
185
|
coffee-rails
|
186
186
|
coffee-script
|
187
187
|
cover_me (~> 1.2.0)
|
188
|
-
health-data-standards (~> 2.1.
|
189
|
-
hqmf-parser (~> 1.0.
|
188
|
+
health-data-standards (~> 2.1.3)
|
189
|
+
hqmf-parser (~> 1.0.4)
|
190
190
|
hquery-patient-api (~> 0.3.0)
|
191
191
|
minitest
|
192
192
|
nokogiri
|
data/hqmf2js.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.email = "hquery-talk@googlegroups.com"
|
8
8
|
s.homepage = "http://github.com/hquery/hqmf2js"
|
9
9
|
s.authors = ["Marc Hadley"]
|
10
|
-
s.version = '1.0.
|
10
|
+
s.version = '1.0.1'
|
11
11
|
|
12
12
|
s.add_dependency 'nokogiri', '~> 1.5.2'
|
13
13
|
s.add_dependency 'tilt', '~> 1.3.3'
|
data/lib/generator/converter.rb
CHANGED
@@ -35,7 +35,7 @@ module HQMF2JS
|
|
35
35
|
if (Specifics.validate(hqmfjs.NUMER(patient), denom, ipp)) {
|
36
36
|
emit('denom', 1);
|
37
37
|
emit('numer', 1);
|
38
|
-
} else if (Specifics.validate(hqmfjs.
|
38
|
+
} else if (Specifics.validate(hqmfjs.DENEXCEP(patient), denom, ipp)) {
|
39
39
|
emit('excep', 1);
|
40
40
|
} else {
|
41
41
|
emit('denom', 1);
|
data/lib/generator/js.rb
CHANGED
@@ -186,7 +186,7 @@ module HQMF2JS
|
|
186
186
|
// NUMERATOR
|
187
187
|
#{js_for(population[HQMF::PopulationCriteria::NUMER], HQMF::PopulationCriteria::NUMER)}
|
188
188
|
#{js_for(population[HQMF::PopulationCriteria::DENEX], HQMF::PopulationCriteria::DENEX)}
|
189
|
-
#{js_for(population[HQMF::PopulationCriteria::
|
189
|
+
#{js_for(population[HQMF::PopulationCriteria::DENEXCEP], HQMF::PopulationCriteria::DENEXCEP)}
|
190
190
|
"
|
191
191
|
end
|
192
192
|
|
data/test/fixtures/NQF59New.xml
CHANGED
@@ -1009,8 +1009,8 @@
|
|
1009
1009
|
<component typeCode="COMP">
|
1010
1010
|
<denominatorExceptionCriteria moodCode="EVN" classCode="OBS">
|
1011
1011
|
<id root="c75181d0-73eb-11de-8a39-0800200c9a66"
|
1012
|
-
extension="
|
1013
|
-
<code code="
|
1012
|
+
extension="DENEXCEP"/>
|
1013
|
+
<code code="DENEXCEP" codeSystem="2.16.840.1.113883.5.1063"
|
1014
1014
|
codeSystemName="HL7 Observation Value">
|
1015
1015
|
<displayName value="Denominator exception"/>
|
1016
1016
|
</code>
|
@@ -20,7 +20,7 @@ class EffectiveDateTest < Test::Unit::TestCase
|
|
20
20
|
#{@converter.js_for('IPP')}
|
21
21
|
#{@converter.js_for('DENOM')}
|
22
22
|
#{@converter.js_for('NUMER')}
|
23
|
-
#{@converter.js_for('
|
23
|
+
#{@converter.js_for('DENEXCEP')}
|
24
24
|
#{@converter.js_for('DUMMY')}"
|
25
25
|
|
26
26
|
# Now we can wrap and compile all of our code as one little JavaScript context for all of the tests below
|
@@ -24,7 +24,7 @@ class HqmfFromJsonJavascriptTest < Test::Unit::TestCase
|
|
24
24
|
#{@converter.js_for('IPP')}
|
25
25
|
#{@converter.js_for('DENOM')}
|
26
26
|
#{@converter.js_for('NUMER')}
|
27
|
-
#{@converter.js_for('
|
27
|
+
#{@converter.js_for('DENEXCEP')}
|
28
28
|
#{@converter.js_for('DUMMY')}"
|
29
29
|
|
30
30
|
initialize_javascript_context(hqmf_utils, codes_json, converted_hqmf)
|
@@ -93,7 +93,7 @@ class HqmfFromJsonJavascriptTest < Test::Unit::TestCase
|
|
93
93
|
assert @context.eval("hqmfjs.IPP(numeratorPatient).isTrue()")
|
94
94
|
assert @context.eval("hqmfjs.DENOM(numeratorPatient).isTrue()")
|
95
95
|
assert @context.eval("hqmfjs.NUMER(numeratorPatient).isTrue()")
|
96
|
-
assert !@context.eval("hqmfjs.
|
96
|
+
assert !@context.eval("hqmfjs.DENEXCEP(numeratorPatient).isTrue()")
|
97
97
|
|
98
98
|
# COUNTing
|
99
99
|
assert @context.eval("hqmfjs.moreThanTwoHbA1CTests(numeratorPatient).isTrue()")
|
@@ -24,7 +24,7 @@ class HqmfJavascriptTest < Test::Unit::TestCase
|
|
24
24
|
#{@converter.js_for('IPP')}
|
25
25
|
#{@converter.js_for('DENOM')}
|
26
26
|
#{@converter.js_for('NUMER')}
|
27
|
-
#{@converter.js_for('
|
27
|
+
#{@converter.js_for('DENEXCEP')}
|
28
28
|
#{@converter.js_for('DUMMY')}"
|
29
29
|
|
30
30
|
initialize_javascript_context(hqmf_utils, codes_json, converted_hqmf)
|
@@ -120,7 +120,7 @@ class HqmfJavascriptTest < Test::Unit::TestCase
|
|
120
120
|
assert @context.eval("hqmfjs.IPP(numeratorPatient).isTrue()")
|
121
121
|
assert @context.eval("hqmfjs.DENOM(numeratorPatient).isTrue()")
|
122
122
|
assert @context.eval("hqmfjs.NUMER(numeratorPatient).isTrue()")
|
123
|
-
assert !@context.eval("hqmfjs.
|
123
|
+
assert !@context.eval("hqmfjs.DENEXCEP(numeratorPatient).isTrue()")
|
124
124
|
|
125
125
|
# COUNTing
|
126
126
|
assert @context.eval("hqmfjs.moreThanTwoHbA1CTests(numeratorPatient).isTrue()")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hqmf2js
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|