inferno_core 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inferno/dsl/fhir_client.rb +16 -0
- data/lib/inferno/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c72bacf34a6126ab54b88fa9c3ee7208482a01c12642cbb1e41c56ee8dc84efa
|
4
|
+
data.tar.gz: 8deef2f45523bb5d478bf356a41606d94927490a4f2787a05519d04cd77b37f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 839e4bf45a435d27f0cbdd9eb0b8bca2c95516140b2948498919bad4ab1808dc84a6d5a080ca1cb6e9db5a4adf44893bc26c68676c0a7647a2a6886758a2cdfe
|
7
|
+
data.tar.gz: 2afdb71b425f861e5739b4ac57fcef47e611fbe2946a62c710dc3eb41e58287b640de39fb4c3ba275afc8cbc005aaaba3797142c8e4fb15b8d9b0f95d44649d3
|
@@ -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
|
data/lib/inferno/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inferno_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen MacVicar
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-12-
|
13
|
+
date: 2022-12-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|