cql_qdm_patientapi 1.0.3 → 1.0.4
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/app/assets/javascripts/datatypes/assessment.js.coffee +1 -1
- data/app/assets/javascripts/datatypes/device.js.coffee +1 -1
- data/app/assets/javascripts/datatypes/encounter.js.coffee +1 -1
- data/app/assets/javascripts/datatypes/laboratorytest.js.coffee +1 -1
- data/app/assets/javascripts/types/component.js.coffee +5 -3
- data/app/assets/javascripts/types/facility.js.coffee +4 -1
- data/lib/cql_qdm_patientapi/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78a519d96f971f10c752b78e5045705cd55a24ed
|
4
|
+
data.tar.gz: c750783a753736e31ca697992efeea99b611110a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31d54a169065908c624074e4c0a6670e7b92a36f3a6d5965de187b760ae4d81db308531ecbe3b8489f22230bb8d71eb80226cb611a8dc25317af178de6a7feef
|
7
|
+
data.tar.gz: 45d104049eb25549b7447de2556fe57bdd627172b4f4776cb995554427bf53a2ea42f4916a0cb51ac3a413e2c08f650c25c6fd2d0801d68277b9f7e57c5a383c
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cql_qdm_patientapi (1.0.
|
4
|
+
cql_qdm_patientapi (1.0.4)
|
5
5
|
coffee-rails (~> 4.1)
|
6
6
|
rails (~> 4.2)
|
7
7
|
sprockets-rails (~> 2.3)
|
@@ -63,7 +63,7 @@ GEM
|
|
63
63
|
activesupport (>= 4.2.0)
|
64
64
|
i18n (0.9.1)
|
65
65
|
concurrent-ruby (~> 1.0)
|
66
|
-
loofah (2.
|
66
|
+
loofah (2.2.2)
|
67
67
|
crass (~> 1.0.2)
|
68
68
|
nokogiri (>= 1.5.9)
|
69
69
|
mail (2.7.0)
|
@@ -94,8 +94,8 @@ GEM
|
|
94
94
|
activesupport (>= 4.2.0.beta, < 5.0)
|
95
95
|
nokogiri (~> 1.6)
|
96
96
|
rails-deprecated_sanitizer (>= 1.0.1)
|
97
|
-
rails-html-sanitizer (1.0.
|
98
|
-
loofah (~> 2.
|
97
|
+
rails-html-sanitizer (1.0.4)
|
98
|
+
loofah (~> 2.2, >= 2.2.2)
|
99
99
|
railties (4.2.10)
|
100
100
|
actionpack (= 4.2.10)
|
101
101
|
activesupport (= 4.2.10)
|
@@ -111,7 +111,7 @@ class CQL_QDM.AssessmentRecommended extends CQL_QDM.QDMDatatype
|
|
111
111
|
super @entry
|
112
112
|
@_authorDatetime = CQL_QDM.Helpers.convertDateTime(@entry.start_time)
|
113
113
|
@_method = @entry.method
|
114
|
-
@_negationRationale = @entry.
|
114
|
+
@_negationRationale = @entry.negationReason
|
115
115
|
@_reason = @entry.reason
|
116
116
|
if @entry.values? && @entry.values.length > 0
|
117
117
|
@_result = @entry.values?[0]
|
@@ -116,7 +116,7 @@ class CQL_QDM.EncounterPerformed extends CQL_QDM.QDMDatatype
|
|
116
116
|
facilityLocations: ->
|
117
117
|
# For Encounter Performed, there can be multiple Facility Locations
|
118
118
|
facilityLocations = []
|
119
|
-
if @_facilityLocations?
|
119
|
+
if @_facilityLocations? && @_facilityLocations.values?
|
120
120
|
for facility in @_facilityLocations.values
|
121
121
|
if facility?
|
122
122
|
facilityLocations.push new CQL_QDM.FacilityLocation(facility)
|
@@ -185,7 +185,7 @@ class CQL_QDM.LaboratoryTestPerformed extends CQL_QDM.QDMDatatype
|
|
185
185
|
# Note, this components differs from the one defined in the helpers
|
186
186
|
# in that it has a reference range.
|
187
187
|
components = []
|
188
|
-
if @_components
|
188
|
+
if @_components && @_components.values?
|
189
189
|
for value in @_components.values
|
190
190
|
if value?
|
191
191
|
# Lab test performed uses ResultComponent, which has a range
|
@@ -10,7 +10,9 @@ Represents a CQL 'component' for use in the CQL execution engine.
|
|
10
10
|
class CQL_QDM.Component
|
11
11
|
constructor: (component) ->
|
12
12
|
@_result = CQL_QDM.Helpers.formatResult(component.result)
|
13
|
-
|
13
|
+
code = component?.code?.code
|
14
|
+
code_system = component?.code?.code_system
|
15
|
+
@_code = new cql.Code(code, code_system)
|
14
16
|
|
15
17
|
exec: (ctx) ->
|
16
18
|
@
|
@@ -46,8 +48,8 @@ Represents a CQL 'component' for Laboratory Test Performed, which has a referenc
|
|
46
48
|
class CQL_QDM.ResultComponent extends CQL_QDM.Component
|
47
49
|
constructor: (component) ->
|
48
50
|
super(component)
|
49
|
-
referenceRangeLow = component.referenceRangeLow if component.referenceRangeLow.scalar # {"scalar": scalar, "unit": unit}}
|
50
|
-
referenceRangeHigh = component.referenceRangeHigh if component.referenceRangeHigh.scalar
|
51
|
+
referenceRangeLow = component.referenceRangeLow if component.referenceRangeLow && component.referenceRangeLow.scalar # {"scalar": scalar, "unit": unit}}
|
52
|
+
referenceRangeHigh = component.referenceRangeHigh if component.referenceRangeHigh && component.referenceRangeHigh.scalar
|
51
53
|
referenceRangeLow_value = referenceRangeLow.scalar if referenceRangeLow
|
52
54
|
referenceRangeHigh_value = referenceRangeHigh.scalar if referenceRangeHigh
|
53
55
|
|
@@ -9,7 +9,10 @@ Represents a CQL 'facility' for use in the CQL execution engine.
|
|
9
9
|
###
|
10
10
|
class CQL_QDM.FacilityLocation
|
11
11
|
constructor: (facility) ->
|
12
|
-
|
12
|
+
code = facility?.code?.code
|
13
|
+
code_system = facility?.code?.code_system
|
14
|
+
display = facility?.display
|
15
|
+
@_code = new cql.Code(code, code_system, undefined, display)
|
13
16
|
|
14
17
|
locationPeriodLow = CQL_QDM.Helpers.convertDateTime(facility.locationPeriodLow) if facility.locationPeriodLow
|
15
18
|
locationPeriodHigh = CQL_QDM.Helpers.convertDateTime(facility.locationPeriodHigh) if facility.locationPeriodHigh
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cql_qdm_patientapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The MITRE Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
version: '0'
|
131
131
|
requirements: []
|
132
132
|
rubyforge_project:
|
133
|
-
rubygems_version: 2.6.
|
133
|
+
rubygems_version: 2.6.12
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: QDM CQL execution engine and HDS patient model interface
|