onc_certification_g10_test_kit 7.0.1 → 7.0.3

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: a7c3b147bf3895a43988f8d02e947ac646522fb0637c6bb33ca7d00fe6d8728b
4
- data.tar.gz: b7a1f24fb4775b196f1eb48ba8bb995754580dbbd48c1dd1e066e56cb3e8cc45
3
+ metadata.gz: d496e18e8a054cdbb5c5ee42292a9a1aa1b5d5965ef459a4e16f0cfe0fdd52f7
4
+ data.tar.gz: 23c33436bfbacd546a74f4471fa5cff17d2c236233e378b65a3cb9bb0713be6a
5
5
  SHA512:
6
- metadata.gz: 48b3460861a86ba5358b79351fd75d0335ba7cb75a575f7e92780bee257719c0947d79f1670481187b392376888f606384a6a84c38f441f6411cb14d3f726926
7
- data.tar.gz: 16f84edff5ac43c598d0876f2d7ec4f78d8e7d661d08bcd679d243006b00329a258d78429485d74bf60bcfd5810ec703c36e5b6ee963b082b2787ec80a331511
6
+ metadata.gz: a961e61f63c55d10d75aaad2e054d3a50108691381a2dd66dab214089ad89e3a630302abaddf25f4ac96a178ad19d3e39a5938a70dd55f78bc55fa18307d4970
7
+ data.tar.gz: c643ab512a522bf0faa9e1d3b5676def34b37132ead0a4638e26ffa6a3d7f2732d0d18fe3d0e6cefb60001cb00077e54ba4e535920dbf64d2dae00d67977a472
@@ -3,7 +3,9 @@ require_relative '../inferno/terminology/tasks/check_built_terminology'
3
3
  module ONCCertificationG10TestKit
4
4
  class ConfigurationChecker
5
5
  EXPECTED_VALIDATOR_VERSION = '2.3.2'.freeze
6
- EXPECTED_HL7_VALIDATOR_VERSION = '"6.3.3"'.freeze
6
+ INFERNO_VALIDATOR_VERSION_KEY = 'inferno-framework/fhir-validator-wrapper'.freeze
7
+ EXPECTED_HL7_VALIDATOR_VERSION = '1.0.60'.freeze
8
+ HL7_VALIDATOR_VERSION_KEY = 'validatorWrapperVersion'.freeze
7
9
 
8
10
  def configuration_messages
9
11
  validator_version_message + terminology_messages + version_message
@@ -24,16 +26,18 @@ module ONCCertificationG10TestKit
24
26
  def validator_version_message
25
27
  if Feature.use_hl7_resource_validator?
26
28
  expected_validator_version = EXPECTED_HL7_VALIDATOR_VERSION
29
+ validator_version_key = HL7_VALIDATOR_VERSION_KEY
27
30
  validator_version_url = "#{validator_url}/validator/version"
28
31
  else
29
32
  expected_validator_version = EXPECTED_VALIDATOR_VERSION
33
+ validator_version_key = INFERNO_VALIDATOR_VERSION_KEY
30
34
  validator_version_url = "#{validator_url}/version"
31
35
  end
32
36
 
33
37
  response = Faraday.get validator_version_url
34
38
  if response.body.starts_with? '{'
35
39
  version_json = JSON.parse(response.body)
36
- version = version_json['inferno-framework/fhir-validator-wrapper']
40
+ version = version_json[validator_version_key]
37
41
  else
38
42
  version = response.body
39
43
  end