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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43e87cc45230cdc86d4e2aca04b86e27d5bf6a18
4
- data.tar.gz: a210a2b8b1a9935b8ccd9196a2dc0ab97dcf004a
3
+ metadata.gz: 78a519d96f971f10c752b78e5045705cd55a24ed
4
+ data.tar.gz: c750783a753736e31ca697992efeea99b611110a
5
5
  SHA512:
6
- metadata.gz: 4aeca62d9cfd1e4696f8f4c56c1ff0c0f5e0815643368e965f4369e5eff19f9b565a3d5f26261b5d95821805805f7a10f6517dd7ea1d8bac2928835bb096f4b2
7
- data.tar.gz: b63be41350b4e7ca3a6e333c9a2fbed3058c09a3887c0bf302f99663f1d475515fc69c4919dab3063cd94fa3df0c987d50a881343f7ac5ee21d4448bf6a93b23
6
+ metadata.gz: 31d54a169065908c624074e4c0a6670e7b92a36f3a6d5965de187b760ae4d81db308531ecbe3b8489f22230bb8d71eb80226cb611a8dc25317af178de6a7feef
7
+ data.tar.gz: 45d104049eb25549b7447de2556fe57bdd627172b4f4776cb995554427bf53a2ea42f4916a0cb51ac3a413e2c08f650c25c6fd2d0801d68277b9f7e57c5a383c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cql_qdm_patientapi (1.0.3)
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.1.1)
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.3)
98
- loofah (~> 2.0)
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.negationReasonv
114
+ @_negationRationale = @entry.negationReason
115
115
  @_reason = @entry.reason
116
116
  if @entry.values? && @entry.values.length > 0
117
117
  @_result = @entry.values?[0]
@@ -36,7 +36,7 @@ class CQL_QDM.DeviceApplied extends CQL_QDM.QDMDatatype
36
36
  if @_anatomicalApproachSite?
37
37
  new cql.Code(@_anatomicalApproachSite.code, @_anatomicalApproachSite.code_system)
38
38
  else
39
- end
39
+ null
40
40
 
41
41
  ###
42
42
  @returns {Code}
@@ -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
- @_code = new cql.Code(component.code.code, component.code.code_system)
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
- @_code = new cql.Code(facility.code.code, facility.code.code_system, undefined, facility.display)
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
@@ -1,3 +1,3 @@
1
1
  module CqlQdmPatientapi
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
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.3
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-02-23 00:00:00.000000000 Z
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.14
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