inferno_core 0.4.13 → 0.4.15
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/assertions.rb +5 -3
- data/lib/inferno/public/bundle.js +2 -2
- 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: 13deb950bfbdc2c45ab08aeac66ef3c028add9884e1d491f571557fbc0423705
|
4
|
+
data.tar.gz: 7db2887846038851353aa44008ef9bfc8af56dca114817b7338ced697480609c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67f87cb218cf454ecd4b71f0b705e7d6656fe6033469979c259f4263c9d929679ecc67cb5c65c5e6f31ca2800c78e26e43f49f3f1577cdfb6f6a0ac42a722711
|
7
|
+
data.tar.gz: 5c1d94c57be857888fe58eb22229659e057cdd62b68ea98129e06007e2f78f970264f9d236ba632399ee3947b42778e78d97021e945671926027bbf392f75c3f
|
@@ -57,8 +57,10 @@ module Inferno
|
|
57
57
|
end
|
58
58
|
|
59
59
|
# @private
|
60
|
-
def invalid_resource_message(profile_url)
|
61
|
-
"Resource does not conform to the profile: #{profile_url}"
|
60
|
+
def invalid_resource_message(resource, profile_url)
|
61
|
+
return "Resource does not conform to the profile: #{profile_url}" if profile_url.present?
|
62
|
+
|
63
|
+
"Resource does not conform to the base #{resource&.resourceType} profile."
|
62
64
|
end
|
63
65
|
|
64
66
|
# Validate a FHIR resource
|
@@ -70,7 +72,7 @@ module Inferno
|
|
70
72
|
# @return [void]
|
71
73
|
def assert_valid_resource(resource: self.resource, profile_url: nil, validator: :default)
|
72
74
|
assert resource_is_valid?(resource:, profile_url:, validator:),
|
73
|
-
invalid_resource_message(profile_url)
|
75
|
+
invalid_resource_message(resource, profile_url)
|
74
76
|
end
|
75
77
|
|
76
78
|
# Validate each entry of a Bundle
|