ruby_astm 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby_astm/lab_interface.rb +10 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c41f5303f7e4e0c2897d7c4407df2fe85594f98313e54bed535375b6113cb62
|
4
|
+
data.tar.gz: 1edc251af06f231faf23d792aa487d0b6a1c6a11054e00e892373bede46b23df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3558047e44fb12208c4509655848cd01b0e1bfe850202d68d2d7d174ef6738d3bfada4c0a8683adffb2d33e611b7a1d3329c2f29c537de4ca3c6a27fed735962
|
7
|
+
data.tar.gz: 10228f02a0b2b8fa87f4e0de2f56159ea73ef3e7e3dcafe556e51163bdd71c9991531c40d7a1b96875b38c0b2387f8f8540133f34a0364530cc265a33f82b2b8
|
@@ -100,13 +100,17 @@ module LabInterface
|
|
100
100
|
else
|
101
101
|
## send the header
|
102
102
|
puts "--------- SENT ACK -----------"
|
103
|
-
if self.headers
|
103
|
+
if self.headers.blank?
|
104
104
|
send_data(ACK)
|
105
|
-
|
106
|
-
if self.headers.
|
107
|
-
|
108
|
-
|
109
|
-
|
105
|
+
else
|
106
|
+
if self.headers[-1].is_astm?
|
107
|
+
send_data(ACK)
|
108
|
+
elsif self.headers[-1].is_hl7?
|
109
|
+
if self.headers.size > 0
|
110
|
+
## commit should return the jsonified thing, if possible.
|
111
|
+
self.headers[-1].commit
|
112
|
+
send_data(self.headers[-1].generate_ack_success_response)
|
113
|
+
end
|
110
114
|
end
|
111
115
|
end
|
112
116
|
end
|