inferno_core 1.0.6 → 1.0.8
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/dsl/fhir_client.rb +7 -0
- data/lib/inferno/dsl/fhir_resource_navigation.rb +6 -4
- data/lib/inferno/dsl/fhir_resource_validation.rb +4 -1
- data/lib/inferno/version.rb +1 -1
- metadata +2 -5
- data/lib/inferno/apps/cli/templates/.DS_Store +0 -0
- data/lib/inferno/apps/cli/templates/lib/%library_name%/.DS_Store +0 -0
- data/lib/inferno/apps/cli/templates/lib/.DS_Store +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1c17ba07e32fab23c4a830a0b6fd22f03ce711fdb89c2a555916355cd1e68e03
|
|
4
|
+
data.tar.gz: 4b20e2c2e7d181893f9282ed8954a053beef0a3ee53ce198668b708c024c9aff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 264803ea3c53af5df0157710f0091b994acebabdb6751e8f442707de01fc57b0f373bb2a5c021f0eb43ba47f1b293c11d534b482787284d352cf6caf09437b47
|
|
7
|
+
data.tar.gz: a899635f3a8d68ea3326ed344ce8ae7e8e09ad3f484dce2cba491b7678d849346ed4cb34ef4f0f7bab26f80d4332cd102d8ce896af5403f1b367606f9e2311dc
|
|
@@ -365,8 +365,15 @@ module Inferno
|
|
|
365
365
|
page_count += 1
|
|
366
366
|
end
|
|
367
367
|
|
|
368
|
+
if resources.any?(&:nil?)
|
|
369
|
+
warning 'Inferno detected one or more bundle entries with no `resource` element, ' \
|
|
370
|
+
'which is not allowed for a FHIR Bundle with `type` = "searchset".'
|
|
371
|
+
end
|
|
372
|
+
|
|
368
373
|
valid_resource_types = [resource_type, 'OperationOutcome'].concat(additional_resource_types)
|
|
369
374
|
|
|
375
|
+
resources.compact!
|
|
376
|
+
|
|
370
377
|
invalid_resource_types =
|
|
371
378
|
resources.reject { |entry| valid_resource_types.include? entry.resourceType }
|
|
372
379
|
.map(&:resourceType)
|
|
@@ -174,23 +174,25 @@ module Inferno
|
|
|
174
174
|
|
|
175
175
|
# @private
|
|
176
176
|
def matching_type_slice?(slice, discriminator)
|
|
177
|
+
slice_value = resolve_path(slice, discriminator[:path]).first
|
|
178
|
+
|
|
177
179
|
case discriminator[:code]
|
|
178
180
|
when 'Date'
|
|
179
181
|
begin
|
|
180
|
-
Date.parse(
|
|
182
|
+
Date.parse(slice_value)
|
|
181
183
|
rescue ArgumentError
|
|
182
184
|
false
|
|
183
185
|
end
|
|
184
186
|
when 'DateTime'
|
|
185
187
|
begin
|
|
186
|
-
DateTime.parse(
|
|
188
|
+
DateTime.parse(slice_value)
|
|
187
189
|
rescue ArgumentError
|
|
188
190
|
false
|
|
189
191
|
end
|
|
190
192
|
when 'String'
|
|
191
|
-
|
|
193
|
+
slice_value.is_a? String
|
|
192
194
|
else
|
|
193
|
-
|
|
195
|
+
slice_value.is_a? FHIR.const_get(discriminator[:code])
|
|
194
196
|
end
|
|
195
197
|
end
|
|
196
198
|
|
|
@@ -210,7 +210,10 @@ module Inferno
|
|
|
210
210
|
|
|
211
211
|
# @private
|
|
212
212
|
def exclude_unresolved_url_message
|
|
213
|
-
proc
|
|
213
|
+
proc do |message|
|
|
214
|
+
message.message.match?(/\A\S+: [^:]+: URL value '.*' does not resolve/) ||
|
|
215
|
+
message.message.match?(/\A\S+: [^:]+: No definition could be found for URL value '.*'/)
|
|
216
|
+
end
|
|
214
217
|
end
|
|
215
218
|
|
|
216
219
|
# @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: 1.0.
|
|
4
|
+
version: 1.0.8
|
|
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:
|
|
13
|
+
date: 2026-02-06 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activesupport
|
|
@@ -494,7 +494,6 @@ files:
|
|
|
494
494
|
- lib/inferno/apps/cli/suite_input_template.rb
|
|
495
495
|
- lib/inferno/apps/cli/suites.rb
|
|
496
496
|
- lib/inferno/apps/cli/templates/%library_name%.gemspec.tt
|
|
497
|
-
- lib/inferno/apps/cli/templates/.DS_Store
|
|
498
497
|
- lib/inferno/apps/cli/templates/.dockerignore
|
|
499
498
|
- lib/inferno/apps/cli/templates/.env
|
|
500
499
|
- lib/inferno/apps/cli/templates/.env.development
|
|
@@ -526,7 +525,6 @@ files:
|
|
|
526
525
|
- lib/inferno/apps/cli/templates/docs/_Footer.md
|
|
527
526
|
- lib/inferno/apps/cli/templates/docs/_Sidebar.md
|
|
528
527
|
- lib/inferno/apps/cli/templates/lib/%library_name%.rb.tt
|
|
529
|
-
- lib/inferno/apps/cli/templates/lib/%library_name%/.DS_Store
|
|
530
528
|
- lib/inferno/apps/cli/templates/lib/%library_name%/example_suite.rb.tt
|
|
531
529
|
- lib/inferno/apps/cli/templates/lib/%library_name%/example_suite/patient_group.rb.tt
|
|
532
530
|
- lib/inferno/apps/cli/templates/lib/%library_name%/igs/.keep
|
|
@@ -537,7 +535,6 @@ files:
|
|
|
537
535
|
Template.xlsx
|
|
538
536
|
- lib/inferno/apps/cli/templates/lib/%library_name%/suite.rb.tt
|
|
539
537
|
- lib/inferno/apps/cli/templates/lib/%library_name%/version.rb.tt
|
|
540
|
-
- lib/inferno/apps/cli/templates/lib/.DS_Store
|
|
541
538
|
- lib/inferno/apps/cli/templates/run.sh
|
|
542
539
|
- lib/inferno/apps/cli/templates/setup.sh
|
|
543
540
|
- lib/inferno/apps/cli/templates/spec/%library_name%/patient_group_spec.rb.tt
|
|
Binary file
|
|
Binary file
|
|
Binary file
|