inferno_core 0.4.5 → 0.4.7.pre
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/lib/inferno/apps/web/index.html.erb +0 -1
- data/lib/inferno/dsl/assertions.rb +2 -2
- data/lib/inferno/dsl/fhir_client.rb +16 -0
- data/lib/inferno/public/bundle.js +12 -12
- data/lib/inferno/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81d3665f7c48320711d67f219dec844a704ff4147ffb1d8eaccf958f9d8a6d51
|
4
|
+
data.tar.gz: 3ed608d8d2069f83c5319fefd32622b6d2524351a4ee3bf0a746f490223a1b50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7039a46877f255f0190a9e8ccd4a028a29bb631a4a728231729ee1176b13754ad600c8a59051a73789f59c9586679e68936173df7eef8d6e8c440c6eacc5f718
|
7
|
+
data.tar.gz: 4096d5d4e4a9fe8718cead9eec507d1f3f47785a00c893a83f8d7c2996fdcc713e3008a185fad31e8e0612200d375eb3d1c03c568c6cce79590ffe9b5a42dd22
|
@@ -18,7 +18,7 @@ module Inferno
|
|
18
18
|
|
19
19
|
# @private
|
20
20
|
def bad_response_status_message(expected, received)
|
21
|
-
"
|
21
|
+
"Unexpected response status: expected #{Array.wrap(expected).join(', ')}, but received #{received}"
|
22
22
|
end
|
23
23
|
|
24
24
|
# Check an response's status
|
@@ -32,7 +32,7 @@ module Inferno
|
|
32
32
|
|
33
33
|
# @private
|
34
34
|
def bad_resource_type_message(expected, received)
|
35
|
-
"
|
35
|
+
"Unexpected resource type: expected #{expected}, but received #{received}"
|
36
36
|
end
|
37
37
|
|
38
38
|
# Check a FHIR resource's type
|
@@ -171,6 +171,22 @@ module Inferno
|
|
171
171
|
end
|
172
172
|
end
|
173
173
|
|
174
|
+
# Perform a FHIR batch/transaction interaction.
|
175
|
+
#
|
176
|
+
# @param bundle [FHIR::Bundle] the FHIR batch/transaction Bundle
|
177
|
+
# @param client [Symbol]
|
178
|
+
# @param name [Symbol] Name for this request to allow it to be used by
|
179
|
+
# other tests
|
180
|
+
# @return [Inferno::Entities::Request]
|
181
|
+
def fhir_transaction(bundle = nil, client: :default, name: nil)
|
182
|
+
store_request('outgoing', name) do
|
183
|
+
tcp_exception_handler do
|
184
|
+
fhir_client(client).transaction_bundle = bundle if bundle.present?
|
185
|
+
fhir_client(client).end_transaction
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
174
190
|
# @todo Make this a FHIR class method? Something like
|
175
191
|
# FHIR.class_for(resource_type)
|
176
192
|
# @private
|