cql_qdm_patientapi 1.1.4 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/app/assets/javascripts/datatypes/adverseevent.js.coffee +2 -2
- data/app/assets/javascripts/datatypes/allergyintolerance.js.coffee +2 -2
- data/app/assets/javascripts/datatypes/assessment.js.coffee +9 -7
- data/app/assets/javascripts/datatypes/careexperience.js.coffee +1 -0
- data/app/assets/javascripts/datatypes/caregoal.js.coffee +1 -1
- data/app/assets/javascripts/datatypes/communication.js.coffee +6 -3
- data/app/assets/javascripts/datatypes/datatype.js.coffee +8 -2
- data/app/assets/javascripts/datatypes/device.js.coffee +10 -8
- data/app/assets/javascripts/datatypes/diagnosis.js.coffee +2 -2
- data/app/assets/javascripts/datatypes/diagnosticstudy.js.coffee +11 -9
- data/app/assets/javascripts/datatypes/encounter.js.coffee +10 -8
- data/app/assets/javascripts/datatypes/familyhistory.js.coffee +2 -1
- data/app/assets/javascripts/datatypes/immunization.js.coffee +16 -8
- data/app/assets/javascripts/datatypes/intervention.js.coffee +9 -7
- data/app/assets/javascripts/datatypes/laboratorytest.js.coffee +11 -9
- data/app/assets/javascripts/datatypes/medication.js.coffee +38 -22
- data/app/assets/javascripts/datatypes/physicalexam.js.coffee +14 -12
- data/app/assets/javascripts/datatypes/procedure.js.coffee +21 -19
- data/app/assets/javascripts/datatypes/substance.js.coffee +27 -16
- data/app/assets/javascripts/datatypes/symptom.js.coffee +1 -1
- data/app/assets/javascripts/types/component.js.coffee +2 -1
- data/app/assets/javascripts/types/id.js.coffee +1 -1
- data/app/assets/javascripts/utils/helpers.js.coffee +9 -5
- data/lib/cql_qdm_patientapi/version.rb +1 -1
- data/vendor/assets/javascripts/cql4browsers.js +32 -0
- 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: 82e220cc46b50e492e5aa42d30e0f39bcdcd97a5
|
4
|
+
data.tar.gz: 9edcb09f9dae7e87f6c6b7318604d1de3eb06647
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e011b102242c10d1f2d1c0248269b35ff1b9a76d1c1b26f61664f52e86594c6061f2d1fe9729674e2b2cf5767b1c5437baadceb5103577790d1a4469b8b78325
|
7
|
+
data.tar.gz: e06636b05fe937be02a88a1d4f07e0818d0fcacc14e80cc16099d6cb2ecbacb7a1564d21a689b6c5a361d8b04e7262e74b40b0dfb8ae39cf16d913425899d737
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cql_qdm_patientapi (1.
|
4
|
+
cql_qdm_patientapi (1.2.0)
|
5
5
|
coffee-rails (~> 4.1)
|
6
6
|
rails (~> 4.2)
|
7
7
|
sprockets-rails (~> 2.3)
|
@@ -71,7 +71,7 @@ GEM
|
|
71
71
|
mini_mime (1.0.0)
|
72
72
|
mini_portile2 (2.3.0)
|
73
73
|
minitest (5.10.3)
|
74
|
-
nokogiri (1.8.
|
74
|
+
nokogiri (1.8.4)
|
75
75
|
mini_portile2 (~> 2.3.0)
|
76
76
|
phantomjs (2.1.1.0)
|
77
77
|
rack (1.6.8)
|
@@ -56,7 +56,7 @@ class CQL_QDM.AdverseEvent extends CQL_QDM.QDMDatatype
|
|
56
56
|
###
|
57
57
|
severity: ->
|
58
58
|
if @_severity?
|
59
|
-
new cql.Code(@_severity.code, @_severity.code_system)
|
59
|
+
new cql.Code(@_severity.code, @_severity.code_system, null, @_severity.title || null)
|
60
60
|
else
|
61
61
|
null
|
62
62
|
|
@@ -65,6 +65,6 @@ class CQL_QDM.AdverseEvent extends CQL_QDM.QDMDatatype
|
|
65
65
|
###
|
66
66
|
type: ->
|
67
67
|
if @_type?
|
68
|
-
new cql.Code(@_type.code, @_type.code_system)
|
68
|
+
new cql.Code(@_type.code, @_type.code_system, null, @_type.title || null)
|
69
69
|
else
|
70
70
|
null
|
@@ -49,7 +49,7 @@ class CQL_QDM.AllergyIntolerance extends CQL_QDM.QDMDatatype
|
|
49
49
|
###
|
50
50
|
severity: ->
|
51
51
|
if @_severity?
|
52
|
-
new cql.Code(@_severity.code, @_severity.code_system)
|
52
|
+
new cql.Code(@_severity.code, @_severity.code_system, null, @_severity.title || null)
|
53
53
|
else
|
54
54
|
null
|
55
55
|
|
@@ -58,6 +58,6 @@ class CQL_QDM.AllergyIntolerance extends CQL_QDM.QDMDatatype
|
|
58
58
|
###
|
59
59
|
type: ->
|
60
60
|
if @_type?
|
61
|
-
new cql.Code(@_type.code, @_type.code_system)
|
61
|
+
new cql.Code(@_type.code, @_type.code_system, null, @_type.title || null)
|
62
62
|
else
|
63
63
|
null
|
@@ -25,6 +25,7 @@ class CQL_QDM.AssessmentPerformed extends CQL_QDM.QDMDatatype
|
|
25
25
|
@_result = @entry.values?[0]
|
26
26
|
@_relatedTo = @entry.references
|
27
27
|
@_components = @entry.components
|
28
|
+
delete @entry.end_time
|
28
29
|
|
29
30
|
###
|
30
31
|
@returns {Date}
|
@@ -37,7 +38,7 @@ class CQL_QDM.AssessmentPerformed extends CQL_QDM.QDMDatatype
|
|
37
38
|
###
|
38
39
|
method: ->
|
39
40
|
if @_method?
|
40
|
-
new cql.Code(@_method.code, @_method.code_system)
|
41
|
+
new cql.Code(@_method.code, @_method.code_system, null, @_method.title || null)
|
41
42
|
else
|
42
43
|
null
|
43
44
|
|
@@ -46,7 +47,7 @@ class CQL_QDM.AssessmentPerformed extends CQL_QDM.QDMDatatype
|
|
46
47
|
###
|
47
48
|
negationRationale: ->
|
48
49
|
if @_negationRationale?
|
49
|
-
new cql.Code(@_negationRationale.code, @_negationRationale.code_system)
|
50
|
+
new cql.Code(@_negationRationale.code, @_negationRationale.code_system, null, @_negationRationale.title || null)
|
50
51
|
else
|
51
52
|
null
|
52
53
|
|
@@ -55,7 +56,7 @@ class CQL_QDM.AssessmentPerformed extends CQL_QDM.QDMDatatype
|
|
55
56
|
###
|
56
57
|
reason: ->
|
57
58
|
if @_reason?
|
58
|
-
new cql.Code(@_reason.code, @_reason.code_system)
|
59
|
+
new cql.Code(@_reason.code, @_reason.code_system, null, @_reason.title || null)
|
59
60
|
else
|
60
61
|
null
|
61
62
|
|
@@ -115,6 +116,7 @@ class CQL_QDM.AssessmentRecommended extends CQL_QDM.QDMDatatype
|
|
115
116
|
@_reason = @entry.reason
|
116
117
|
if @entry.values? && @entry.values.length > 0
|
117
118
|
@_result = @entry.values?[0]
|
119
|
+
delete @entry.end_time
|
118
120
|
|
119
121
|
###
|
120
122
|
@returns {Date}
|
@@ -127,7 +129,7 @@ class CQL_QDM.AssessmentRecommended extends CQL_QDM.QDMDatatype
|
|
127
129
|
###
|
128
130
|
method: ->
|
129
131
|
if @_method?
|
130
|
-
new cql.Code(@_method.code, @_method.code_system)
|
132
|
+
new cql.Code(@_method.code, @_method.code_system, null, @_method.title || null)
|
131
133
|
else
|
132
134
|
null
|
133
135
|
|
@@ -136,7 +138,7 @@ class CQL_QDM.AssessmentRecommended extends CQL_QDM.QDMDatatype
|
|
136
138
|
###
|
137
139
|
negationRationale: ->
|
138
140
|
if @_negationRationale?
|
139
|
-
new cql.Code(@_negationRationale.code, @_negationRationale.code_system)
|
141
|
+
new cql.Code(@_negationRationale.code, @_negationRationale.code_system, null, @_negationRationale.title || null)
|
140
142
|
else
|
141
143
|
null
|
142
144
|
|
@@ -145,7 +147,7 @@ class CQL_QDM.AssessmentRecommended extends CQL_QDM.QDMDatatype
|
|
145
147
|
###
|
146
148
|
reason: ->
|
147
149
|
if @_reason?
|
148
|
-
new cql.Code(@_reason.code, @_reason.code_system)
|
150
|
+
new cql.Code(@_reason.code, @_reason.code_system, null, @_reason.title || null)
|
149
151
|
else
|
150
152
|
null
|
151
153
|
|
@@ -154,6 +156,6 @@ class CQL_QDM.AssessmentRecommended extends CQL_QDM.QDMDatatype
|
|
154
156
|
###
|
155
157
|
method: ->
|
156
158
|
if @_method?
|
157
|
-
new cql.Code(@_method.code, @_method.code_system)
|
159
|
+
new cql.Code(@_method.code, @_method.code_system, null, @_method.title || null)
|
158
160
|
else
|
159
161
|
null
|
@@ -55,6 +55,6 @@ class CQL_QDM.CareGoal extends CQL_QDM.QDMDatatype
|
|
55
55
|
if @_targetOutcome?['units']?
|
56
56
|
new cql.Quantity({unit: @_targetOutcome['units'], value: @_targetOutcome['scalar']})
|
57
57
|
else
|
58
|
-
new cql.Code(@_targetOutcome.code, @_targetOutcome.code_system)
|
58
|
+
new cql.Code(@_targetOutcome.code, @_targetOutcome.code_system, null, @_targetOutcome.title || null)
|
59
59
|
else
|
60
60
|
null
|
@@ -19,6 +19,7 @@ class CQL_QDM.CommunicationFromPatientToProvider extends CQL_QDM.QDMDatatype
|
|
19
19
|
@_authorDatetime = CQL_QDM.Helpers.convertDateTime(@entry.start_time)
|
20
20
|
@_negationRationale = @entry.negationReason
|
21
21
|
@_relatedTo = @entry.references
|
22
|
+
delete @entry.end_time
|
22
23
|
|
23
24
|
###
|
24
25
|
@returns {Date}
|
@@ -31,7 +32,7 @@ class CQL_QDM.CommunicationFromPatientToProvider extends CQL_QDM.QDMDatatype
|
|
31
32
|
###
|
32
33
|
negationRationale: ->
|
33
34
|
if @_negationRationale?
|
34
|
-
new cql.Code(@_negationRationale.code, @_negationRationale.code_system)
|
35
|
+
new cql.Code(@_negationRationale.code, @_negationRationale.code_system, null, @_negationRationale.title || null)
|
35
36
|
else
|
36
37
|
null
|
37
38
|
|
@@ -56,13 +57,14 @@ class CQL_QDM.CommunicationFromProviderToPatient extends CQL_QDM.QDMDatatype
|
|
56
57
|
@_negationRationale = @entry.negationReason
|
57
58
|
@_authorDatetime = CQL_QDM.Helpers.convertDateTime(@entry.start_time)
|
58
59
|
@_relatedTo = @entry.references
|
60
|
+
delete @entry.end_time
|
59
61
|
|
60
62
|
###
|
61
63
|
@returns {Code}
|
62
64
|
###
|
63
65
|
negationRationale: ->
|
64
66
|
if @_negationRationale?
|
65
|
-
new cql.Code(@_negationRationale.code, @_negationRationale.code_system)
|
67
|
+
new cql.Code(@_negationRationale.code, @_negationRationale.code_system, null, @_negationRationale.title || null)
|
66
68
|
else
|
67
69
|
null
|
68
70
|
|
@@ -93,13 +95,14 @@ class CQL_QDM.CommunicationFromProviderToProvider extends CQL_QDM.QDMDatatype
|
|
93
95
|
@_negationRationale = @entry.negationReason
|
94
96
|
@_authorDatetime = CQL_QDM.Helpers.convertDateTime(@entry.start_time)
|
95
97
|
@_relatedTo = @entry.references
|
98
|
+
delete @entry.end_time
|
96
99
|
|
97
100
|
###
|
98
101
|
@returns {Code}
|
99
102
|
###
|
100
103
|
negationRationale: ->
|
101
104
|
if @_negationRationale?
|
102
|
-
new cql.Code(@_negationRationale.code, @_negationRationale.code_system)
|
105
|
+
new cql.Code(@_negationRationale.code, @_negationRationale.code_system, null, @_negationRationale.title || null)
|
103
106
|
else
|
104
107
|
null
|
105
108
|
|
@@ -25,6 +25,7 @@ class CQL_QDM.QDMDatatype
|
|
25
25
|
###
|
26
26
|
@returns {Array}
|
27
27
|
###
|
28
|
+
# TODO: This should be changed to getCodes, but it will involve changing the cql-execution engine.
|
28
29
|
getCode: ->
|
29
30
|
allCodes = []
|
30
31
|
for system, codes of @_codes
|
@@ -72,8 +73,13 @@ class CQL_QDM.QDMDatatype
|
|
72
73
|
# Grab start and end time, format for proper display
|
73
74
|
startTime = if @entry?.start_time then "START: #{moment.utc(@entry.start_time, 'X').format('MM/DD/YYYY h:mm A')}\n" else ""
|
74
75
|
endTime = if @entry?.end_time then "STOP: #{moment.utc(@entry.end_time, 'X').format('MM/DD/YYYY h:mm A')}\n" else ""
|
75
|
-
#
|
76
|
-
|
76
|
+
# TODO: Refactor getCode()/code() so that this special logic is not necessary.
|
77
|
+
# If it is a patient characteristic (other than payer), use getCode() instead of code()
|
78
|
+
if /PatientCharacteristic/.test(this.constructor.name) and this.constructor.name != 'PatientCharacteristicPayer'
|
79
|
+
code = @getCode()
|
80
|
+
else if @_codes
|
81
|
+
# Get code if this datatype has any
|
82
|
+
code = @code()
|
77
83
|
codeDisplay = if code then "CODE: #{code['system']} #{code['code']}" else ""
|
78
84
|
# Return human readable representation of this datatype
|
79
85
|
"#{description}#{startTime}#{endTime}#{codeDisplay}".replace /\n$/, ''
|
@@ -34,7 +34,7 @@ class CQL_QDM.DeviceApplied extends CQL_QDM.QDMDatatype
|
|
34
34
|
###
|
35
35
|
anatomicalApproachSite: ->
|
36
36
|
if @_anatomicalApproachSite?
|
37
|
-
new cql.Code(@_anatomicalApproachSite.code, @_anatomicalApproachSite.code_system)
|
37
|
+
new cql.Code(@_anatomicalApproachSite.code, @_anatomicalApproachSite.code_system, null, @_anatomicalApproachSite.title || null)
|
38
38
|
else
|
39
39
|
null
|
40
40
|
|
@@ -43,7 +43,7 @@ class CQL_QDM.DeviceApplied extends CQL_QDM.QDMDatatype
|
|
43
43
|
###
|
44
44
|
anatomicalLocationSite: ->
|
45
45
|
if @_anatomicalLocationSite?
|
46
|
-
new cql.Code(@_anatomicalLocationSite.code, @_anatomicalLocationSite.code_system)
|
46
|
+
new cql.Code(@_anatomicalLocationSite.code, @_anatomicalLocationSite.code_system, null, @_anatomicalLocationSite.title || null)
|
47
47
|
else
|
48
48
|
null
|
49
49
|
|
@@ -59,7 +59,7 @@ class CQL_QDM.DeviceApplied extends CQL_QDM.QDMDatatype
|
|
59
59
|
###
|
60
60
|
negationRationale: ->
|
61
61
|
if @_negationRationale?
|
62
|
-
new cql.Code(@_negationRationale.code, @_negationRationale.code_system)
|
62
|
+
new cql.Code(@_negationRationale.code, @_negationRationale.code_system, null, @_negationRationale.title || null)
|
63
63
|
else
|
64
64
|
null
|
65
65
|
|
@@ -68,7 +68,7 @@ class CQL_QDM.DeviceApplied extends CQL_QDM.QDMDatatype
|
|
68
68
|
###
|
69
69
|
reason: ->
|
70
70
|
if @_reason?
|
71
|
-
new cql.Code(@_reason.code, @_reason.code_system)
|
71
|
+
new cql.Code(@_reason.code, @_reason.code_system, null, @_reason.title || null)
|
72
72
|
else
|
73
73
|
null
|
74
74
|
|
@@ -97,13 +97,14 @@ class CQL_QDM.DeviceOrder extends CQL_QDM.QDMDatatype
|
|
97
97
|
@_negationRationale = @entry.negationReason
|
98
98
|
@_reason = @entry.reason
|
99
99
|
@_authorDatetime = CQL_QDM.Helpers.convertDateTime(@entry.start_time)
|
100
|
+
delete @entry.end_time
|
100
101
|
|
101
102
|
###
|
102
103
|
@returns {Code}
|
103
104
|
###
|
104
105
|
negationRationale: ->
|
105
106
|
if @_negationRationale?
|
106
|
-
new cql.Code(@_negationRationale.code, @_negationRationale.code_system)
|
107
|
+
new cql.Code(@_negationRationale.code, @_negationRationale.code_system, null, @_negationRationale.title || null)
|
107
108
|
else
|
108
109
|
null
|
109
110
|
|
@@ -112,7 +113,7 @@ class CQL_QDM.DeviceOrder extends CQL_QDM.QDMDatatype
|
|
112
113
|
###
|
113
114
|
reason: ->
|
114
115
|
if @_reason?
|
115
|
-
new cql.Code(@_reason.code, @_reason.code_system)
|
116
|
+
new cql.Code(@_reason.code, @_reason.code_system, null, @_reason.title || null)
|
116
117
|
else
|
117
118
|
null
|
118
119
|
|
@@ -137,6 +138,7 @@ class CQL_QDM.DeviceRecommended extends CQL_QDM.QDMDatatype
|
|
137
138
|
@_authorDatetime = CQL_QDM.Helpers.convertDateTime(@entry.start_time)
|
138
139
|
@_negationRationale = @entry.negationReason
|
139
140
|
@_reason = @entry.reason
|
141
|
+
delete @entry.end_time
|
140
142
|
|
141
143
|
###
|
142
144
|
@returns {Date}
|
@@ -149,7 +151,7 @@ class CQL_QDM.DeviceRecommended extends CQL_QDM.QDMDatatype
|
|
149
151
|
###
|
150
152
|
negationRationale: ->
|
151
153
|
if @_negationRationale?
|
152
|
-
new cql.Code(@_negationRationale.code, @_negationRationale.code_system)
|
154
|
+
new cql.Code(@_negationRationale.code, @_negationRationale.code_system, null, @_negationRationale.title || null)
|
153
155
|
else
|
154
156
|
null
|
155
157
|
|
@@ -158,6 +160,6 @@ class CQL_QDM.DeviceRecommended extends CQL_QDM.QDMDatatype
|
|
158
160
|
###
|
159
161
|
reason: ->
|
160
162
|
if @_reason?
|
161
|
-
new cql.Code(@_reason.code, @_reason.code_system)
|
163
|
+
new cql.Code(@_reason.code, @_reason.code_system, null, @_reason.title || null)
|
162
164
|
else
|
163
165
|
null
|
@@ -36,7 +36,7 @@ class CQL_QDM.Diagnosis extends CQL_QDM.QDMDatatype
|
|
36
36
|
###
|
37
37
|
anatomicalLocationSite: ->
|
38
38
|
if @_anatomicalLocationSite?
|
39
|
-
new cql.Code(@_anatomicalLocationSite.code, @_anatomicalLocationSite.code_system)
|
39
|
+
new cql.Code(@_anatomicalLocationSite.code, @_anatomicalLocationSite.code_system, null, @_anatomicalLocationSite.title || null)
|
40
40
|
else
|
41
41
|
null
|
42
42
|
|
@@ -56,7 +56,7 @@ class CQL_QDM.Diagnosis extends CQL_QDM.QDMDatatype
|
|
56
56
|
###
|
57
57
|
severity: ->
|
58
58
|
if @_severity?
|
59
|
-
new cql.Code(@_severity.code, @_severity.code_system)
|
59
|
+
new cql.Code(@_severity.code, @_severity.code_system, null, @_severity.title || null)
|
60
60
|
else
|
61
61
|
null
|
62
62
|
|
@@ -25,6 +25,7 @@ class CQL_QDM.DiagnosticStudyOrder extends CQL_QDM.QDMDatatype
|
|
25
25
|
@_method = @entry.method
|
26
26
|
@_negationRationale = @entry.negationReason
|
27
27
|
@_reason = @entry.reason
|
28
|
+
delete @entry.end_time
|
28
29
|
|
29
30
|
###
|
30
31
|
@returns {Date}
|
@@ -37,7 +38,7 @@ class CQL_QDM.DiagnosticStudyOrder extends CQL_QDM.QDMDatatype
|
|
37
38
|
###
|
38
39
|
method: ->
|
39
40
|
if @_method?
|
40
|
-
new cql.Code(@_method.code, @_method.code_system)
|
41
|
+
new cql.Code(@_method.code, @_method.code_system, null, @_method.title || null)
|
41
42
|
else
|
42
43
|
null
|
43
44
|
|
@@ -46,7 +47,7 @@ class CQL_QDM.DiagnosticStudyOrder extends CQL_QDM.QDMDatatype
|
|
46
47
|
###
|
47
48
|
negationRationale: ->
|
48
49
|
if @_negationRationale?
|
49
|
-
new cql.Code(@_negationRationale.code, @_negationRationale.code_system)
|
50
|
+
new cql.Code(@_negationRationale.code, @_negationRationale.code_system, null, @_negationRationale.title || null)
|
50
51
|
else
|
51
52
|
null
|
52
53
|
|
@@ -55,7 +56,7 @@ class CQL_QDM.DiagnosticStudyOrder extends CQL_QDM.QDMDatatype
|
|
55
56
|
###
|
56
57
|
reason: ->
|
57
58
|
if @_reason?
|
58
|
-
new cql.Code(@_reason.code, @_reason.code_system)
|
59
|
+
new cql.Code(@_reason.code, @_reason.code_system, null, @_reason.title || null)
|
59
60
|
else
|
60
61
|
null
|
61
62
|
|
@@ -110,7 +111,7 @@ class CQL_QDM.DiagnosticStudyPerformed extends CQL_QDM.QDMDatatype
|
|
110
111
|
###
|
111
112
|
method: ->
|
112
113
|
if @_method?
|
113
|
-
new cql.Code(@_method.code, @_method.code_system)
|
114
|
+
new cql.Code(@_method.code, @_method.code_system, null, @_method.title || null)
|
114
115
|
else
|
115
116
|
null
|
116
117
|
|
@@ -119,7 +120,7 @@ class CQL_QDM.DiagnosticStudyPerformed extends CQL_QDM.QDMDatatype
|
|
119
120
|
###
|
120
121
|
negationRationale: ->
|
121
122
|
if @_negationRationale?
|
122
|
-
new cql.Code(@_negationRationale.code, @_negationRationale.code_system)
|
123
|
+
new cql.Code(@_negationRationale.code, @_negationRationale.code_system, null, @_negationRationale.title || null)
|
123
124
|
else
|
124
125
|
null
|
125
126
|
|
@@ -128,7 +129,7 @@ class CQL_QDM.DiagnosticStudyPerformed extends CQL_QDM.QDMDatatype
|
|
128
129
|
###
|
129
130
|
reason: ->
|
130
131
|
if @_reason?
|
131
|
-
new cql.Code(@_reason.code, @_reason.code_system)
|
132
|
+
new cql.Code(@_reason.code, @_reason.code_system, null, @_reason.title || null)
|
132
133
|
else
|
133
134
|
null
|
134
135
|
|
@@ -163,7 +164,7 @@ class CQL_QDM.DiagnosticStudyPerformed extends CQL_QDM.QDMDatatype
|
|
163
164
|
###
|
164
165
|
status: ->
|
165
166
|
if @_status?
|
166
|
-
new cql.Code(@_status.code, @_status.code_system)
|
167
|
+
new cql.Code(@_status.code, @_status.code_system, null, @_status.title || null)
|
167
168
|
else
|
168
169
|
null
|
169
170
|
|
@@ -189,6 +190,7 @@ class CQL_QDM.DiagnosticStudyRecommended extends CQL_QDM.QDMDatatype
|
|
189
190
|
@_authorDatetime = CQL_QDM.Helpers.convertDateTime(@entry.start_time)
|
190
191
|
@_method = @entry.method
|
191
192
|
@_negationRationale = @entry.negationReason
|
193
|
+
delete @entry.end_time
|
192
194
|
|
193
195
|
###
|
194
196
|
@returns {Date}
|
@@ -201,7 +203,7 @@ class CQL_QDM.DiagnosticStudyRecommended extends CQL_QDM.QDMDatatype
|
|
201
203
|
###
|
202
204
|
method: ->
|
203
205
|
if @_method?
|
204
|
-
new cql.Code(@_method.code, @_method.code_system)
|
206
|
+
new cql.Code(@_method.code, @_method.code_system, null, @_method.title || null)
|
205
207
|
else
|
206
208
|
null
|
207
209
|
|
@@ -210,6 +212,6 @@ class CQL_QDM.DiagnosticStudyRecommended extends CQL_QDM.QDMDatatype
|
|
210
212
|
###
|
211
213
|
negationRationale: ->
|
212
214
|
if @_negationRationale?
|
213
|
-
new cql.Code(@_negationRationale.code, @_negationRationale.code_system)
|
215
|
+
new cql.Code(@_negationRationale.code, @_negationRationale.code_system, null, @_negationRationale.title || null)
|
214
216
|
else
|
215
217
|
null
|
@@ -19,6 +19,7 @@ class CQL_QDM.EncounterOrder extends CQL_QDM.QDMDatatype
|
|
19
19
|
@_facilityLocation = @entry.facility
|
20
20
|
@_negationRationale = @entry.negationReason
|
21
21
|
@_reason = @entry.reason
|
22
|
+
delete @entry.end_time
|
22
23
|
|
23
24
|
###
|
24
25
|
@returns {Date}
|
@@ -40,7 +41,7 @@ class CQL_QDM.EncounterOrder extends CQL_QDM.QDMDatatype
|
|
40
41
|
###
|
41
42
|
negationRationale: ->
|
42
43
|
if @_negationRationale?
|
43
|
-
new cql.Code(@_negationRationale.code, @_negationRationale.code_system)
|
44
|
+
new cql.Code(@_negationRationale.code, @_negationRationale.code_system, null, @_negationRationale.title || null)
|
44
45
|
else
|
45
46
|
null
|
46
47
|
|
@@ -49,7 +50,7 @@ class CQL_QDM.EncounterOrder extends CQL_QDM.QDMDatatype
|
|
49
50
|
###
|
50
51
|
reason: ->
|
51
52
|
if @_reason?
|
52
|
-
new cql.Code(@_reason.code, @_reason.code_system)
|
53
|
+
new cql.Code(@_reason.code, @_reason.code_system, null, @_reason.title || null)
|
53
54
|
else
|
54
55
|
null
|
55
56
|
|
@@ -84,7 +85,7 @@ class CQL_QDM.EncounterPerformed extends CQL_QDM.QDMDatatype
|
|
84
85
|
###
|
85
86
|
admissionSource: ->
|
86
87
|
if @_admissionSource?
|
87
|
-
new cql.Code(@_admissionSource.code, @_admissionSource.code_system)
|
88
|
+
new cql.Code(@_admissionSource.code, @_admissionSource.code_system, null, @_admissionSource.title || null)
|
88
89
|
else
|
89
90
|
null
|
90
91
|
|
@@ -106,7 +107,7 @@ class CQL_QDM.EncounterPerformed extends CQL_QDM.QDMDatatype
|
|
106
107
|
###
|
107
108
|
dischargeDisposition: ->
|
108
109
|
if @_dischargeDisposition?
|
109
|
-
new cql.Code(@_dischargeDisposition.code, @_dischargeDisposition.code_system)
|
110
|
+
new cql.Code(@_dischargeDisposition.code, @_dischargeDisposition.code_system, null, @_dischargeDisposition.title || null)
|
110
111
|
else
|
111
112
|
null
|
112
113
|
|
@@ -138,7 +139,7 @@ class CQL_QDM.EncounterPerformed extends CQL_QDM.QDMDatatype
|
|
138
139
|
###
|
139
140
|
negationRationale: ->
|
140
141
|
if @_negationRationale?
|
141
|
-
new cql.Code(@_negationRationale.code, @_negationRationale.code_system)
|
142
|
+
new cql.Code(@_negationRationale.code, @_negationRationale.code_system, null, @_negationRationale.title || null)
|
142
143
|
else
|
143
144
|
null
|
144
145
|
|
@@ -158,7 +159,7 @@ class CQL_QDM.EncounterPerformed extends CQL_QDM.QDMDatatype
|
|
158
159
|
###
|
159
160
|
principalDiagnosis: ->
|
160
161
|
if @_principalDiagnosis?
|
161
|
-
new cql.Code(@_principalDiagnosis.code, @_principalDiagnosis.code_system)
|
162
|
+
new cql.Code(@_principalDiagnosis.code, @_principalDiagnosis.code_system, null, @_principalDiagnosis.title || null)
|
162
163
|
else
|
163
164
|
null
|
164
165
|
|
@@ -178,6 +179,7 @@ class CQL_QDM.EncounterRecommended extends CQL_QDM.QDMDatatype
|
|
178
179
|
@_facilityLocation = @entry.facility
|
179
180
|
@_negationRationale = @entry.negationReason
|
180
181
|
@_reason = @entry.reason
|
182
|
+
delete @entry.end_time
|
181
183
|
|
182
184
|
###
|
183
185
|
@returns {Date}
|
@@ -199,7 +201,7 @@ class CQL_QDM.EncounterRecommended extends CQL_QDM.QDMDatatype
|
|
199
201
|
###
|
200
202
|
negationRationale: ->
|
201
203
|
if @_negationRationale?
|
202
|
-
new cql.Code(@_negationRationale.code, @_negationRationale.code_system)
|
204
|
+
new cql.Code(@_negationRationale.code, @_negationRationale.code_system, null, @_negationRationale.title || null)
|
203
205
|
else
|
204
206
|
null
|
205
207
|
|
@@ -208,6 +210,6 @@ class CQL_QDM.EncounterRecommended extends CQL_QDM.QDMDatatype
|
|
208
210
|
###
|
209
211
|
reason: ->
|
210
212
|
if @_reason?
|
211
|
-
new cql.Code(@_reason.code, @_reason.code_system)
|
213
|
+
new cql.Code(@_reason.code, @_reason.code_system, null, @_reason.title || null)
|
212
214
|
else
|
213
215
|
null
|