Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FI-2423: Bump validator dependency to v2.3.2 #483

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker-compose.background.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
validator_service:
image: infernocommunity/fhir-validator-service:v2.3.1
image: infernocommunity/fhir-validator-service:v2.3.2
environment:
- DISABLE_TX= true
- DISPLAY_ISSUES_ARE_WARNINGS=true
Expand Down
18 changes: 10 additions & 8 deletions lib/onc_certification_g10_test_kit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ class G10CertificationSuite < Inferno::TestSuite
/Unknown ValueSet/
].freeze

ERROR_FILTERS = [
/\A\S+: \S+: Unknown Code/,
/\A\S+: \S+: None of the codings provided are in the value set/,
/\A\S+: \S+: The code provided \(\S*\) is not in the value set/,
/\A\S+: \S+: The Coding provided \(\S*\) is not in the value set/,
/\A\S+: \S+: The Coding provided \(\S*\) was not found in the value set/,
/\A\S+: \S+: A definition for CodeSystem '.*' could not be found, so the code cannot be validated/
].freeze

[
G10Options::US_CORE_3_REQUIREMENT,
G10Options::US_CORE_4_REQUIREMENT,
Expand Down Expand Up @@ -90,14 +99,7 @@ class G10CertificationSuite < Inferno::TestSuite
filter.match? message.message
end) ||
us_core_message_filters.any? { |filter| filter.match? message.message } ||
(
message.type == 'error' && (
message.message.match?(/\A\S+: \S+: Unknown Code/) ||
message.message.match?(/\A\S+: \S+: None of the codings provided are in the value set/) ||
message.message.match?(/\A\S+: \S+: The code provided \(\S*\) is not in the value set/) ||
message.message.match?(/\A\S+: \S+: The Coding provided \(\S*\) is not in the value set/)
)
)
(message.type == 'error' && ERROR_FILTERS.any? { |filter| message.message.match? filter })
true
else
false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module ONCCertificationG10TestKit
class ConfigurationChecker
EXPECTED_VALIDATOR_VERSION = '2.3.1'.freeze
EXPECTED_VALIDATOR_VERSION = '2.3.2'.freeze

def configuration_messages
validator_version_message + terminology_messages + version_message
Expand Down
Loading