his_emr_api_lab 2.1.5 → 2.1.6
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/app/models/lab/lab_order.rb +6 -0
- data/app/serializers/lab/lab_order_serializer.rb +1 -2
- data/app/services/lab/orders_service.rb +1 -2
- data/lib/lab/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 48598b7d2b93b3982c4a54761943f715383ee5a99a9416364890eddafe8e49d4
|
|
4
|
+
data.tar.gz: da0908670af042eabb120bd72cbfa0eda0cfdbd1c824e2e4fd262ef0aa82b8bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 04af0a0acc805f447d316cd2d38bca66a6c1f1a88e12b8fae474b62e60e46b1fe9e655f19ba1ecd026a057f78332ce408f38ca048612a395c7e5300c67d80822
|
|
7
|
+
data.tar.gz: 54f8bb2b761df7a2da6bac7b85fb4b241c8284edcd9219acd969ac182cb5cc7e48fe23326c28a64421731bdaceadb19243b8fef085fa8b271e2343c60a901393
|
data/app/models/lab/lab_order.rb
CHANGED
|
@@ -35,6 +35,11 @@ module Lab
|
|
|
35
35
|
class_name: 'Observation',
|
|
36
36
|
foreign_key: :order_id
|
|
37
37
|
|
|
38
|
+
has_one :comment_to_fulfiller,
|
|
39
|
+
make_obs_concept_filter(Lab::Metadata::COMMENT_TO_FULFILLER_CONCEPT_NAME),
|
|
40
|
+
class_name: 'Observation',
|
|
41
|
+
foreign_key: :order_id
|
|
42
|
+
|
|
38
43
|
has_one :mapping,
|
|
39
44
|
class_name: '::Lab::LimsOrderMapping',
|
|
40
45
|
foreign_key: :order_id
|
|
@@ -55,6 +60,7 @@ module Lab
|
|
|
55
60
|
includes(:reason_for_test,
|
|
56
61
|
:requesting_clinician,
|
|
57
62
|
:target_lab,
|
|
63
|
+
:comment_to_fulfiller,
|
|
58
64
|
tests: [:result])
|
|
59
65
|
end
|
|
60
66
|
end
|
|
@@ -18,11 +18,10 @@ module Lab
|
|
|
18
18
|
order_type_id: order.order_type_id,
|
|
19
19
|
order_id: order.order_id, # Deprecated: Link to :id
|
|
20
20
|
encounter_id: order.encounter_id,
|
|
21
|
-
order_date: order.
|
|
21
|
+
order_date: order.start_date,
|
|
22
22
|
location_id: encounter.location_id,
|
|
23
23
|
program_id: encounter.program_id,
|
|
24
24
|
program_name: program&.name,
|
|
25
|
-
# order_date: order.start_date,
|
|
26
25
|
patient_id: order.patient_id,
|
|
27
26
|
accession_number: order.accession_number,
|
|
28
27
|
specimen: {
|
|
@@ -307,13 +307,12 @@ module Lab
|
|
|
307
307
|
# Examples of reasons include: Routine, Targeted, Confirmatory, Repeat, or Stat.
|
|
308
308
|
def add_reason_for_test(order, params)
|
|
309
309
|
reason = params[:reason_for_test_id] || params[:reason_for_test]
|
|
310
|
-
|
|
311
310
|
reason = Concept.find(reason)
|
|
312
311
|
create_order_observation(
|
|
313
312
|
order,
|
|
314
313
|
Lab::Metadata::REASON_FOR_TEST_CONCEPT_NAME,
|
|
315
314
|
params[:date],
|
|
316
|
-
value_coded: reason
|
|
315
|
+
value_coded: reason.concept_id
|
|
317
316
|
)
|
|
318
317
|
end
|
|
319
318
|
|
data/lib/lab/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: his_emr_api_lab
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Elizabeth Glaser Pediatric Foundation Malawi
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date: 2026-02-
|
|
10
|
+
date: 2026-02-10 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: couchrest
|
|
@@ -329,7 +328,6 @@ licenses:
|
|
|
329
328
|
metadata:
|
|
330
329
|
source_code_uri: https://github.com/EGPAFMalawiHIS/his_emr_api_lab
|
|
331
330
|
rubygems_mfa_required: 'true'
|
|
332
|
-
post_install_message:
|
|
333
331
|
rdoc_options: []
|
|
334
332
|
require_paths:
|
|
335
333
|
- lib
|
|
@@ -344,8 +342,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
344
342
|
- !ruby/object:Gem::Version
|
|
345
343
|
version: '0'
|
|
346
344
|
requirements: []
|
|
347
|
-
rubygems_version: 3.
|
|
348
|
-
signing_key:
|
|
345
|
+
rubygems_version: 3.6.3
|
|
349
346
|
specification_version: 4
|
|
350
347
|
summary: Lab extension for the HIS-EMR-API
|
|
351
348
|
test_files: []
|