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 +4 -4
- data/lib/onc_certification_g10_test_kit/configuration_checker.rb +6 -2
- data/lib/onc_certification_g10_test_kit/onc_program_procedure.yml +908 -134
- data/lib/onc_certification_g10_test_kit/short_id_map.yml +1 -0
- data/lib/onc_certification_g10_test_kit/smart_standalone_patient_app_group.rb +26 -0
- data/lib/onc_certification_g10_test_kit/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d496e18e8a054cdbb5c5ee42292a9a1aa1b5d5965ef459a4e16f0cfe0fdd52f7
|
4
|
+
data.tar.gz: 23c33436bfbacd546a74f4471fa5cff17d2c236233e378b65a3cb9bb0713be6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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[
|
40
|
+
version = version_json[validator_version_key]
|
37
41
|
else
|
38
42
|
version = response.body
|
39
43
|
end
|