his_emr_api_lab 0.0.2 → 0.0.7

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.
@@ -175,6 +175,12 @@ paths:
175
175
  description: 'Filter by sample status: ordered, drawn'
176
176
  schema:
177
177
  type: string
178
+ - name: end_date
179
+ in: query
180
+ required: false
181
+ description: Select all results before this date
182
+ schema:
183
+ type: date
178
184
  responses:
179
185
  '200':
180
186
  description: Success
@@ -396,6 +402,32 @@ paths:
396
402
  responses:
397
403
  '204':
398
404
  description: No Content
405
+ "/api/v1/lab/reasons_for_test":
406
+ get:
407
+ summary: Reasons for test
408
+ description: Retrieve default reasons for test concept set
409
+ tags:
410
+ - Concepts
411
+ security:
412
+ - api_key: []
413
+ responses:
414
+ '200':
415
+ description: Success
416
+ content:
417
+ application/json:
418
+ schema:
419
+ type: array
420
+ items:
421
+ type: object
422
+ properties:
423
+ concept_id:
424
+ type: integer
425
+ name:
426
+ type: string
427
+ example: Routine
428
+ required:
429
+ - concept_id
430
+ - name
399
431
  "/api/v1/lab/tests/{test_id}/results":
400
432
  post:
401
433
  summary: Add results to order
data/lib/lab/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lab
4
- VERSION = '0.0.2'
4
+ VERSION = '0.0.7'
5
5
  end
@@ -35,6 +35,7 @@ Blood,"Liver Function Tests","2019-11-19 14:05:31"
35
35
  Blood,"Renal Function Test","2019-11-19 14:05:31"
36
36
  Blood,Lipogram,"2019-11-19 14:05:31"
37
37
  Blood,FBC,"2019-11-19 14:05:31"
38
+ Blood,"FBS","2021-04-11 00:00:00"
38
39
  Blood,Electrolytes,"2019-11-19 14:05:31"
39
40
  Blood,Enzymes,"2019-11-19 14:05:31"
40
41
  Blood,Glucose,"2019-11-19 14:05:31"
@@ -42,6 +43,22 @@ Blood,"Prothrombin Time","2019-11-19 14:05:31"
42
43
  Blood,APTT,"2019-11-19 14:05:31"
43
44
  Blood,INR,"2019-11-19 14:05:31"
44
45
  Blood,ESR,"2019-11-19 14:05:31"
46
+ Blood,"D/Coombs","2021-04-11 00:00:00"
47
+ Blood,"creat","2021-04-11 00:00:00"
48
+ Blood,"Widal","2021-04-11 00:00:00"
49
+ Blood,"AAFB (3rd)","2021-04-11 00:00:00"
50
+ Blood,"Urine micro","2021-04-11 00:00:00"
51
+ Blood,"AAFB (1st)","2021-04-11 00:00:00"
52
+ Blood,ASOT,"2021-04-11 00:00:00"
53
+ Blood,"Blood C/S","2021-04-11 00:00:00"
54
+ Blood,"Cryptococcal Ag","2021-04-11 00:00:00"
55
+ Blood,"I/Ink","2021-04-11 00:00:00"
56
+ Blood,"Prot& Sugar","2021-04-11 00:00:00"
57
+ Blood,C_S,"2021-04-11 00:00:00"
58
+ Blood,hep,"2021-04-11 00:00:00"
59
+ Blood,"Cryptococcal Antigen","2021-04-11 00:00:00"
60
+ Blood,Resistance,"2021-04-11 00:00:00"
61
+ Blood,Sickle,"2021-04-11 00:00:00"
45
62
  Blood,"Sickling Test","2019-11-19 14:05:31"
46
63
  Blood,"Manual Differential & Cell Morphology","2019-11-19 14:05:31"
47
64
  Blood,"Pancreatic Function Test","2019-11-19 14:05:31"
@@ -69,8 +86,12 @@ Blood,HbA1c,"2019-11-19 14:05:31"
69
86
  Blood,Microalbumin,"2019-11-19 14:05:31"
70
87
  Blood,Microprotein,"2019-11-19 14:05:31"
71
88
  Blood,"Von Willebrand Factor","2019-11-19 14:05:31"
89
+ Blood,"HIV_viral_load","2021-04-13 00:00:00"
90
+ Blood,"Viral laod","2021-04-11 00:00:00"
72
91
  Blood,"Viral Load","2019-11-19 14:05:31"
73
92
  Blood,"Urine Lam","2019-11-19 14:05:31"
93
+ Blood,"Protein and Sugar","2021-04-16"
94
+ Blood,"White cell count","2021-04-16"
74
95
  Blood,Urea,"2019-11-19 14:05:31"
75
96
  Blood,Creatinine,"2019-11-19 14:05:31"
76
97
  Blood,ALT,"2019-11-19 14:05:31"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: his_emr_api_lab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elizabeth Glaser Pediatric Foundation Malawi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-07 00:00:00.000000000 Z
11
+ date: 2021-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: couchrest
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: parallel
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.20.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.20.1
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rails
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -211,6 +225,7 @@ files:
211
225
  - README.md
212
226
  - Rakefile
213
227
  - app/controllers/lab/application_controller.rb
228
+ - app/controllers/lab/labels_controller.rb
214
229
  - app/controllers/lab/orders_controller.rb
215
230
  - app/controllers/lab/reasons_for_test_controller.rb
216
231
  - app/controllers/lab/results_controller.rb
@@ -233,8 +248,11 @@ files:
233
248
  - app/serializers/lab/test_serializer.rb
234
249
  - app/services/lab/accession_number_service.rb
235
250
  - app/services/lab/concepts_service.rb
251
+ - app/services/lab/labelling_service/order_label.rb
236
252
  - app/services/lab/lims/api.rb
237
253
  - app/services/lab/lims/config.rb
254
+ - app/services/lab/lims/exceptions.rb
255
+ - app/services/lab/lims/migrator.rb
238
256
  - app/services/lab/lims/order_dto.rb
239
257
  - app/services/lab/lims/order_serializer.rb
240
258
  - app/services/lab/lims/utils.rb
@@ -250,6 +268,7 @@ files:
250
268
  - db/migrate/20210323080140_change_lims_id_to_string_in_lims_order_mapping.rb
251
269
  - db/migrate/20210326195504_add_order_revision_to_lims_order_mapping.rb
252
270
  - db/migrate/20210407071728_create_lab_lims_failed_imports.rb
271
+ - lib/auto12epl.rb
253
272
  - lib/couch_bum/couch_bum.rb
254
273
  - lib/generators/lab/install/USAGE
255
274
  - lib/generators/lab/install/install_generator.rb