hquery-patient-api 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/core.js.coffee +2 -2
- data/app/assets/javascripts/immunization.js.coffee +1 -1
- data/app/assets/javascripts/medication.js.coffee +2 -2
- data/app/assets/javascripts/procedure.js.coffee +1 -1
- data/hquery_patientapi.gemspec +2 -2
- data/test/fixtures/patient/barry_berry.json +22 -22
- metadata +3 -2
@@ -254,7 +254,7 @@ class hQuery.Organization
|
|
254
254
|
class hQuery.Facility extends hQuery.CodedValue
|
255
255
|
constructor: (@json) ->
|
256
256
|
if @json['code']?
|
257
|
-
super @json['code']['code'], @json['code']['
|
257
|
+
super @json['code']['code'], @json['code']['code_system']
|
258
258
|
if @json['start_time']
|
259
259
|
@_startDate = hQuery.dateFromUtcSeconds @json['start_time']
|
260
260
|
if @json['end_time']
|
@@ -564,4 +564,4 @@ hQuery.createCodedValues = (jsonCodes) ->
|
|
564
564
|
codedValues
|
565
565
|
|
566
566
|
hQuery.createCodedValue = (json) ->
|
567
|
-
new hQuery.CodedValue json['code'], json['
|
567
|
+
new hQuery.CodedValue json['code'], json['code_system'] if json?
|
@@ -111,5 +111,5 @@ class hQuery.Immunization extends hQuery.CodedEntry
|
|
111
111
|
It indicates the reason an immunization was not administered.
|
112
112
|
@returns {hQuery.NoImmunization} Used to indicate reason an immunization was not administered.
|
113
113
|
###
|
114
|
-
refusalReason: -> new hQuery.NoImmunization @json['negationReason']?['code'], @json['negationReason']?['
|
114
|
+
refusalReason: -> new hQuery.NoImmunization @json['negationReason']?['code'], @json['negationReason']?['code_system']
|
115
115
|
|
@@ -245,14 +245,14 @@ class hQuery.Medication extends hQuery.CodedEntry
|
|
245
245
|
###*
|
246
246
|
@returns {hQuery.TypeOfMedication} Indicates whether this is an over the counter or prescription medication
|
247
247
|
###
|
248
|
-
typeOfMedication: -> new hQuery.TypeOfMedication @json['typeOfMedication']?['code'], @json['typeOfMedication']?['
|
248
|
+
typeOfMedication: -> new hQuery.TypeOfMedication @json['typeOfMedication']?['code'], @json['typeOfMedication']?['code_system']
|
249
249
|
|
250
250
|
###*
|
251
251
|
Values conform to value set 2.16.840.1.113883.1.11.20.7 - Medication Status
|
252
252
|
Values may be: On Hold, No Longer Active, Active, Prior History
|
253
253
|
@returns {hQuery.StatusOfMedication} Used to indicate the status of the medication.
|
254
254
|
###
|
255
|
-
statusOfMedication: -> new hQuery.StatusOfMedication @json['statusOfMedication']?['code'], @json['statusOfMedication']?['
|
255
|
+
statusOfMedication: -> new hQuery.StatusOfMedication @json['statusOfMedication']?['code'], @json['statusOfMedication']?['code_system']
|
256
256
|
|
257
257
|
###*
|
258
258
|
@returns {String} free text instructions to the patient
|
@@ -25,7 +25,7 @@ class hQuery.Procedure extends hQuery.CodedEntry
|
|
25
25
|
@returns {hQuery.CodedValue} A SNOMED code indicating the body site on which the
|
26
26
|
procedure was performed
|
27
27
|
###
|
28
|
-
site: -> new hQuery.CodedValue @json['site']?['code'], @json['site']?['
|
28
|
+
site: -> new hQuery.CodedValue @json['site']?['code'], @json['site']?['code_system']
|
29
29
|
|
30
30
|
###*
|
31
31
|
@returns {hQuery.CodedValue} A SNOMED code indicating where the procedure was performed.
|
data/hquery_patientapi.gemspec
CHANGED
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.description = "A javascript library abstraction for dealing with patients in hQuery map reduce functions"
|
7
7
|
s.email = "talk@hquery.org"
|
8
8
|
s.homepage = "http://github.com/hquery/patient_api"
|
9
|
-
s.authors = ["Marc Hadley", "Andy Gregorowicz", "Rob Dingwell"]
|
10
|
-
s.version = '1.0.
|
9
|
+
s.authors = ["Marc Hadley", "Andy Gregorowicz", "Rob Dingwell", "Andre Quina"]
|
10
|
+
s.version = '1.0.1'
|
11
11
|
|
12
12
|
s.files = `git ls-files`.split("\n")
|
13
13
|
end
|
@@ -8,19 +8,19 @@
|
|
8
8
|
"birthdate": -223262033,
|
9
9
|
"maritalStatus": {
|
10
10
|
"code": "M",
|
11
|
-
"
|
11
|
+
"code_system": "HL7"
|
12
12
|
},
|
13
13
|
"religiousAffiliation": {
|
14
14
|
"code": "1013",
|
15
|
-
"
|
15
|
+
"code_system": "HL7"
|
16
16
|
},
|
17
17
|
"race": {
|
18
18
|
"code": "2131-1",
|
19
|
-
"
|
19
|
+
"code_system": "CDC"
|
20
20
|
},
|
21
21
|
"ethnicity": {
|
22
22
|
"code": "2186-5",
|
23
|
-
"
|
23
|
+
"code_system": "CDC"
|
24
24
|
},
|
25
25
|
"birthPlace": {
|
26
26
|
"city": "Washington",
|
@@ -28,7 +28,7 @@
|
|
28
28
|
},
|
29
29
|
"confidentiality": {
|
30
30
|
"code": "N",
|
31
|
-
"
|
31
|
+
"code_system": "HL7"
|
32
32
|
},
|
33
33
|
"provider": {
|
34
34
|
"providerEntity": {
|
@@ -79,7 +79,7 @@
|
|
79
79
|
"name": "General Hospital",
|
80
80
|
"code": {
|
81
81
|
"code": "1155-1",
|
82
|
-
"
|
82
|
+
"code_system": "HL7 Healthcare Service Location"
|
83
83
|
},
|
84
84
|
"addresses": [
|
85
85
|
{
|
@@ -101,7 +101,7 @@
|
|
101
101
|
},
|
102
102
|
"transferTo": {
|
103
103
|
"code": "444933003",
|
104
|
-
"
|
104
|
+
"code_system": "SNOMED-CT"
|
105
105
|
},
|
106
106
|
"time": 1268042997,
|
107
107
|
"description": "Outpatient encounter",
|
@@ -109,7 +109,7 @@
|
|
109
109
|
"dischargeDisposition": "Home",
|
110
110
|
"admitType": {
|
111
111
|
"code": "04",
|
112
|
-
"
|
112
|
+
"code_system": "regular"
|
113
113
|
},
|
114
114
|
"performer": {
|
115
115
|
"organization": {
|
@@ -159,15 +159,15 @@
|
|
159
159
|
"priority": 1,
|
160
160
|
"ordinality": {
|
161
161
|
"code": "8319008",
|
162
|
-
"
|
162
|
+
"code_system": "SNOMED-CT"
|
163
163
|
},
|
164
164
|
"severity": {
|
165
165
|
"code": "371924009",
|
166
|
-
"
|
166
|
+
"code_system": "SNOMED-CT"
|
167
167
|
},
|
168
168
|
"problemStatus": {
|
169
169
|
"code": "55561003",
|
170
|
-
"
|
170
|
+
"code_system": "SNOMED-CT"
|
171
171
|
}
|
172
172
|
}
|
173
173
|
],
|
@@ -211,7 +211,7 @@
|
|
211
211
|
},
|
212
212
|
"site": {
|
213
213
|
"code": "71854001",
|
214
|
-
"
|
214
|
+
"code_system": "SNOMED-CT"
|
215
215
|
},
|
216
216
|
"time": 1073238725,
|
217
217
|
"performer": {
|
@@ -223,7 +223,7 @@
|
|
223
223
|
"description": "Colonscopy",
|
224
224
|
"source": {
|
225
225
|
"code": "158967008",
|
226
|
-
"
|
226
|
+
"code_system": "SNOMED-CT"
|
227
227
|
},
|
228
228
|
"incisionTime": 1073238725
|
229
229
|
}
|
@@ -293,7 +293,7 @@
|
|
293
293
|
},
|
294
294
|
"negationReason": {
|
295
295
|
"code": "IMMUNE",
|
296
|
-
"
|
296
|
+
"code_system": "HL7 No Immunization Reason"
|
297
297
|
},
|
298
298
|
"comment": "patient invincible"
|
299
299
|
},
|
@@ -355,20 +355,20 @@
|
|
355
355
|
"description": "Multivitamin",
|
356
356
|
"reason": {
|
357
357
|
"code": "195911009",
|
358
|
-
"
|
358
|
+
"code_system": "SNOMED-CT"
|
359
359
|
},
|
360
360
|
"brandName": "Centrum Silver",
|
361
361
|
"route": {
|
362
362
|
"code": "C38288",
|
363
|
-
"
|
363
|
+
"code_system": "NCI Thesaurus"
|
364
364
|
},
|
365
365
|
"typeOfMedication": {
|
366
366
|
"code": "329505003",
|
367
|
-
"
|
367
|
+
"code_system": "SNOMED-CT"
|
368
368
|
},
|
369
369
|
"statusOfMedication": {
|
370
370
|
"code": "55561003",
|
371
|
-
"
|
371
|
+
"code_system": "SNOMED-CT"
|
372
372
|
},
|
373
373
|
"fulfillmentHistory": [
|
374
374
|
{
|
@@ -416,11 +416,11 @@
|
|
416
416
|
"comment": "Carries Epipen",
|
417
417
|
"reaction": {
|
418
418
|
"code": "414285001",
|
419
|
-
"
|
419
|
+
"code_system": "SNOMED-CT"
|
420
420
|
},
|
421
421
|
"severity": {
|
422
422
|
"code": "371924009",
|
423
|
-
"
|
423
|
+
"code_system": "SNOMED-CT"
|
424
424
|
}
|
425
425
|
}
|
426
426
|
],
|
@@ -459,7 +459,7 @@
|
|
459
459
|
"type": "result",
|
460
460
|
"source": {
|
461
461
|
"code": "patient reported",
|
462
|
-
"
|
462
|
+
"code_system": "SNOMED-CT"
|
463
463
|
}
|
464
464
|
}
|
465
465
|
],
|
@@ -472,7 +472,7 @@
|
|
472
472
|
},
|
473
473
|
"start_time": 1269762691,
|
474
474
|
"end_time": 1269762693,
|
475
|
-
"anatomicalStructure" : {"code": "13648007", "
|
475
|
+
"anatomicalStructure" : {"code": "13648007", "code_system": "SNOMED-CT"}
|
476
476
|
}
|
477
477
|
]
|
478
478
|
}
|
metadata
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hquery-patient-api
|
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:
|
8
8
|
- Marc Hadley
|
9
9
|
- Andy Gregorowicz
|
10
10
|
- Rob Dingwell
|
11
|
+
- Andre Quina
|
11
12
|
autorequire:
|
12
13
|
bindir: bin
|
13
14
|
cert_chain: []
|
14
|
-
date:
|
15
|
+
date: 2013-02-26 00:00:00.000000000 Z
|
15
16
|
dependencies: []
|
16
17
|
description: A javascript library abstraction for dealing with patients in hQuery
|
17
18
|
map reduce functions
|