inferno_core 0.4.5 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77c4a279df5216b705b84640b636cb3084f27a27493668e4a57a99ab699a3ae3
4
- data.tar.gz: 1d35829be39575c26962588ee44482535962be25c2dabbd7016cf727077ed3c7
3
+ metadata.gz: c72bacf34a6126ab54b88fa9c3ee7208482a01c12642cbb1e41c56ee8dc84efa
4
+ data.tar.gz: 8deef2f45523bb5d478bf356a41606d94927490a4f2787a05519d04cd77b37f0
5
5
  SHA512:
6
- metadata.gz: a2546687c4f061eb080944bcff64dfe3aa9dc03534e808795157ad3c2b56dd6e7eee38c34821f7c5f16b551933d88acaa750d557f6c5125fe75730845d758541
7
- data.tar.gz: 13681873050e6864506231c87f623007e8e09ea1ea9ae8486e703f9a4f9b417572f3c1d433ee31fe23462c3ab79c799e03d9001ed0c18f4c7ef4eb3eef8e2708
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
@@ -1,4 +1,4 @@
1
1
  module Inferno
2
2
  # Standard patterns for gem versions: https://guides.rubygems.org/patterns/
3
- VERSION = '0.4.5'.freeze
3
+ VERSION = '0.4.6'.freeze
4
4
  end
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.5
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-01 00:00:00.000000000 Z
13
+ date: 2022-12-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport