inferno_core 0.4.5 → 0.4.7.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77c4a279df5216b705b84640b636cb3084f27a27493668e4a57a99ab699a3ae3
4
- data.tar.gz: 1d35829be39575c26962588ee44482535962be25c2dabbd7016cf727077ed3c7
3
+ metadata.gz: 81d3665f7c48320711d67f219dec844a704ff4147ffb1d8eaccf958f9d8a6d51
4
+ data.tar.gz: 3ed608d8d2069f83c5319fefd32622b6d2524351a4ee3bf0a746f490223a1b50
5
5
  SHA512:
6
- metadata.gz: a2546687c4f061eb080944bcff64dfe3aa9dc03534e808795157ad3c2b56dd6e7eee38c34821f7c5f16b551933d88acaa750d557f6c5125fe75730845d758541
7
- data.tar.gz: 13681873050e6864506231c87f623007e8e09ea1ea9ae8486e703f9a4f9b417572f3c1d433ee31fe23462c3ab79c799e03d9001ed0c18f4c7ef4eb3eef8e2708
6
+ metadata.gz: 7039a46877f255f0190a9e8ccd4a028a29bb631a4a728231729ee1176b13754ad600c8a59051a73789f59c9586679e68936173df7eef8d6e8c440c6eacc5f718
7
+ data.tar.gz: 4096d5d4e4a9fe8718cead9eec507d1f3f47785a00c893a83f8d7c2996fdcc713e3008a185fad31e8e0612200d375eb3d1c03c568c6cce79590ffe9b5a42dd22
@@ -42,7 +42,6 @@
42
42
  }
43
43
  .banner {
44
44
  flex-shrink: 1;
45
- overflow: 'auto';
46
45
  white-space: nowrap;
47
46
  }
48
47
  .app {
@@ -18,7 +18,7 @@ module Inferno
18
18
 
19
19
  # @private
20
20
  def bad_response_status_message(expected, received)
21
- "Bad response status: expected #{Array.wrap(expected).join(', ')}, but received #{received}"
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
- "Bad resource type received: expected #{expected}, but received #{received}"
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