at_home_in_vitro_test_kit 0.10.0 → 0.12.0
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/at_home_in_vitro_test_kit/igs/README.md +21 -0
- data/lib/at_home_in_vitro_test_kit/igs/package.tgz +0 -0
- data/lib/at_home_in_vitro_test_kit/igs/put_ig_package_dot_tgz_here +0 -0
- data/lib/at_home_in_vitro_test_kit/metadata.rb +65 -0
- data/lib/at_home_in_vitro_test_kit/suite.rb +49 -0
- data/lib/at_home_in_vitro_test_kit/version.rb +3 -2
- data/lib/at_home_in_vitro_test_kit.rb +2 -45
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dd404b2fd391500439a1a5505a1da76c07429d725405aee784d6d1ca160806b
|
4
|
+
data.tar.gz: fb457b83d0e144477da36ca6050e4883adbd8fbd9d037a1b2b5e56827e16d026
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd565b633ef2b98409f8e98b7103aa66176cd6636e1859fe28b0924b57528bbe6abc5042d338b154a8256c0ea6ebd3fbbb8f1830a3bab9a860c11d317e92affc
|
7
|
+
data.tar.gz: ce6c663d2932ca06ed77e2c56b5efa34ad3a702874af83debc3aadc35dc06f308229093785bd3842c36cc8ce479a7d9cf8a68729b36d896b5b6b463556a31c7c
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Note on this IGs folder
|
2
|
+
|
3
|
+
There are three reasons why it would be necessary to put an IG package.tgz in this folder. If none of these apply, you do not need to put any files here, or can consider removing any existing files to make it clear they are unused.
|
4
|
+
|
5
|
+
## 1. Generated Test Suites
|
6
|
+
Some test kits use a "generator" to automatically generate the contents of a test suite for an IG. The IG files are required every time the test suites need to be regenerated. Examples of test kits that use this approach are the US Core Test Kit and CARIN IG for Blue Button® Test Kit.
|
7
|
+
|
8
|
+
|
9
|
+
## 2. Non-published IG
|
10
|
+
If your IG, or the specific version of the IG you want to test against, is not published, then the validator service needs to load the IG from file in order to be able to validate resources with it. The IG must be referenced in the `fhir_resource_validator` block in the test suite definition by filename, ie:
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
fhir_resource_validator do
|
14
|
+
igs 'igs/filename.tgz'
|
15
|
+
|
16
|
+
...
|
17
|
+
end
|
18
|
+
```
|
19
|
+
|
20
|
+
## 3. Inferno Validator UI
|
21
|
+
The Inferno Validator UI is configured to auto-load any IGs present in the igs folder and include them in all validations. The Inferno Validator UI is currently disabled by default, so this is only relevant if you choose to re-enable it. In general, the Inferno team is currently leaving IGs in this folder even if not otherwise necessary to make it easy to re-enable the validator UI.
|
Binary file
|
File without changes
|
@@ -0,0 +1,65 @@
|
|
1
|
+
module AtHomeInVitroTestKit
|
2
|
+
class Metadata < Inferno::TestKit
|
3
|
+
id :at_home_in_vitro_test_kit
|
4
|
+
title 'At-Home In-Vitro Test Kit'
|
5
|
+
suite_ids ['at_home_test_kit']
|
6
|
+
tags []
|
7
|
+
last_updated ::AtHomeInVitroTestKit::LAST_UPDATED
|
8
|
+
version ::AtHomeInVitroTestKit::VERSION
|
9
|
+
maturity 'Medium'
|
10
|
+
authors ['Inferno Team']
|
11
|
+
repo 'https://github.com/inferno-framework/at-home-in-vitro-test-kit'
|
12
|
+
description <<~DESCRIPTION
|
13
|
+
The At-Home In-Vitro Test Kit provides an executable set of tests for the
|
14
|
+
[At-Home In-Vitro Test Implementation Guide v1.0.0](https://hl7.org/fhir/us/home-lab-report/STU1/).
|
15
|
+
This test kit validates At-Home In-Vitro FHIR Bundles and their entry
|
16
|
+
resources.
|
17
|
+
|
18
|
+
<!-- break -->
|
19
|
+
|
20
|
+
This test kit is
|
21
|
+
[open source](https://github.com/inferno-framework/at-home-in-vitro-test-kit#license)
|
22
|
+
and freely available for use or adoption by the health IT community
|
23
|
+
including EHR vendors, health app developers, and testing labs. It is
|
24
|
+
built using the
|
25
|
+
[Inferno Framework](https://inferno-framework.github.io/).
|
26
|
+
The Inferno Framework is designed for reuse and aims to make it easier
|
27
|
+
to build test kits for any FHIR-based data exchange.
|
28
|
+
|
29
|
+
## Status
|
30
|
+
|
31
|
+
The At-Home In-Vitro tests verify that an At-Home In-Vitro FHIR Bundle
|
32
|
+
and its entries, constructed either manually or by a digital testing
|
33
|
+
application, conform to the resource profiles as defined in the
|
34
|
+
implementation guide.
|
35
|
+
|
36
|
+
The test kit currently tests the following requirements:
|
37
|
+
|
38
|
+
- FHIR Bundle POST Request Verification
|
39
|
+
- FHIR Bundle Validation
|
40
|
+
- Entry Validation
|
41
|
+
|
42
|
+
See the test descriptions within the test kit for detail on the specific
|
43
|
+
validations performed as part of testing these requirements.
|
44
|
+
|
45
|
+
## Repository
|
46
|
+
|
47
|
+
The At-Home In-Vitro Test Kit GitHub repository can be
|
48
|
+
[found here](https://github.com/inferno-framework/at-home-in-vitro-test-kit).
|
49
|
+
|
50
|
+
## Providing Feedback and Reporting Issues
|
51
|
+
|
52
|
+
We welcome feedback on the tests, including but not limited to the following areas:
|
53
|
+
|
54
|
+
- Validation logic, such as potential bugs, lax checks, and unexpected failures.
|
55
|
+
- Requirements coverage, such as requirements that have been missed, tests that
|
56
|
+
necessitate features that the IG does not require, or other issues with the
|
57
|
+
interpretation of the IG’s requirements.
|
58
|
+
- User experience, such as confusing or missing information in the test UI.
|
59
|
+
|
60
|
+
Please report any issues with this set of tests in the
|
61
|
+
[issues section](https://github.com/inferno-framework/at-home-in-vitro-test-kit/issues)
|
62
|
+
of the repository.
|
63
|
+
DESCRIPTION
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require_relative 'manual_entry_group/bundle_validator_manual_entry'
|
2
|
+
require_relative 'http_request_group/bundle_validator_request_group'
|
3
|
+
|
4
|
+
module AtHomeInVitroTestKit
|
5
|
+
class Suite < Inferno::TestSuite
|
6
|
+
id :at_home_test_kit
|
7
|
+
title 'At-Home In-Vitro Test Kit'
|
8
|
+
description 'An Inferno Test Kit used for validating At-Home In-Vitro FHIR Bundles and their entry resources.'
|
9
|
+
|
10
|
+
# All FHIR validation requsets will use this FHIR validator
|
11
|
+
fhir_resource_validator do
|
12
|
+
igs 'hl7.fhir.us.home-lab-report#1.0.0'
|
13
|
+
|
14
|
+
exclude_message do |message|
|
15
|
+
message.message.match?(/\A\S+: \S+: URL value '.*' does not resolve/) ||
|
16
|
+
(message.type == 'warning' &&
|
17
|
+
message.message.match?(/Global Profile reference .* could not be resolved, so has not been checked/)) ||
|
18
|
+
(message.type == 'info' && message.message.match?(/.* This element does not match any known slice defined in the profile .*/))
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
resume_test_route :post, '/bundle' do |request|
|
24
|
+
request.query_parameters["id"]
|
25
|
+
end
|
26
|
+
|
27
|
+
links [
|
28
|
+
{
|
29
|
+
label: 'Report Issue',
|
30
|
+
url: 'https://github.com/inferno-framework/at-home-in-vitro-test-kit/issues'
|
31
|
+
},
|
32
|
+
{
|
33
|
+
label: 'Open Source',
|
34
|
+
url: 'https://github.com/inferno-framework/at-home-in-vitro-test-kit/'
|
35
|
+
},
|
36
|
+
{
|
37
|
+
label: 'Download',
|
38
|
+
url: 'https://github.com/inferno-framework/at-home-in-vitro-test-kit/releases'
|
39
|
+
},
|
40
|
+
{
|
41
|
+
label: 'At-Home In-Vitro Test Report IG',
|
42
|
+
url: 'http://hl7.org/fhir/us/home-lab-report/STU1/'
|
43
|
+
}
|
44
|
+
]
|
45
|
+
|
46
|
+
group from: :bundle_validator_request_group
|
47
|
+
group from: :bundle_validator_manual_entry
|
48
|
+
end
|
49
|
+
end
|
@@ -1,45 +1,2 @@
|
|
1
|
-
require_relative 'at_home_in_vitro_test_kit/
|
2
|
-
require_relative 'at_home_in_vitro_test_kit/
|
3
|
-
module AtHomeInVitroTestKit
|
4
|
-
require 'inferno'
|
5
|
-
class Suite < Inferno::TestSuite
|
6
|
-
id :at_home_test_kit
|
7
|
-
title 'At-Home In-Vitro Test Kit'
|
8
|
-
description 'An Inferno Test Kit used for validating At-Home In-Vitro FHIR Bundles and their entry resources.'
|
9
|
-
|
10
|
-
# All FHIR validation requsets will use this FHIR validator
|
11
|
-
fhir_resource_validator do
|
12
|
-
igs 'hl7.fhir.us.home-lab-report#1.0.0'
|
13
|
-
|
14
|
-
exclude_message do |message|
|
15
|
-
message.message.match?(/\A\S+: \S+: URL value '.*' does not resolve/) ||
|
16
|
-
(message.type == 'warning' &&
|
17
|
-
message.message.match?(/Global Profile reference .* could not be resolved, so has not been checked/)) ||
|
18
|
-
(message.type == 'info' && message.message.match?(/.* This element does not match any known slice defined in the profile .*/))
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|
22
|
-
|
23
|
-
resume_test_route :post, '/bundle' do |request|
|
24
|
-
request.query_parameters["id"]
|
25
|
-
end
|
26
|
-
|
27
|
-
links [
|
28
|
-
{
|
29
|
-
label: 'Report Issue',
|
30
|
-
url: 'https://github.com/inferno-framework/at-home-in-vitro-test-kit/issues'
|
31
|
-
},
|
32
|
-
{
|
33
|
-
label: 'Open Source',
|
34
|
-
url: 'https://github.com/inferno-framework/at-home-in-vitro-test-kit/'
|
35
|
-
},
|
36
|
-
{
|
37
|
-
label: 'At-Home In-Vitro Test Report IG',
|
38
|
-
url: 'http://hl7.org/fhir/us/home-lab-report/STU1/'
|
39
|
-
}
|
40
|
-
]
|
41
|
-
|
42
|
-
group from: :bundle_validator_request_group
|
43
|
-
group from: :bundle_validator_manual_entry
|
44
|
-
end
|
45
|
-
end
|
1
|
+
require_relative 'at_home_in_vitro_test_kit/metadata'
|
2
|
+
require_relative 'at_home_in_vitro_test_kit/suite'
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: at_home_in_vitro_test_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Inferno Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inferno_core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.6.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.6.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: database_cleaner-sequel
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,9 +95,14 @@ files:
|
|
95
95
|
- lib/at_home_in_vitro_test_kit/http_request_group/request_fhir_bundle_entry_validation.rb
|
96
96
|
- lib/at_home_in_vitro_test_kit/http_request_group/request_fhir_bundle_validation.rb
|
97
97
|
- lib/at_home_in_vitro_test_kit/http_request_group/request_receive_post.rb
|
98
|
+
- lib/at_home_in_vitro_test_kit/igs/README.md
|
99
|
+
- lib/at_home_in_vitro_test_kit/igs/package.tgz
|
100
|
+
- lib/at_home_in_vitro_test_kit/igs/put_ig_package_dot_tgz_here
|
98
101
|
- lib/at_home_in_vitro_test_kit/manual_entry_group/bundle_validator_manual_entry.rb
|
99
102
|
- lib/at_home_in_vitro_test_kit/manual_entry_group/manual_fhir_bundle_entry_validation.rb
|
100
103
|
- lib/at_home_in_vitro_test_kit/manual_entry_group/manual_fhir_bundle_validation.rb
|
104
|
+
- lib/at_home_in_vitro_test_kit/metadata.rb
|
105
|
+
- lib/at_home_in_vitro_test_kit/suite.rb
|
101
106
|
- lib/at_home_in_vitro_test_kit/test_common/fhir_bundle_validation.rb
|
102
107
|
- lib/at_home_in_vitro_test_kit/version.rb
|
103
108
|
homepage: https://github.com/inferno-framework/inferno-template
|
@@ -106,6 +111,7 @@ licenses:
|
|
106
111
|
metadata:
|
107
112
|
homepage_uri: https://github.com/inferno-framework/inferno-template
|
108
113
|
source_code_uri: https://github.com/inferno-framework/at-home-in-vitro-test-kit
|
114
|
+
inferno_test_kit: 'true'
|
109
115
|
post_install_message:
|
110
116
|
rdoc_options: []
|
111
117
|
require_paths:
|
@@ -114,14 +120,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
114
120
|
requirements:
|
115
121
|
- - ">="
|
116
122
|
- !ruby/object:Gem::Version
|
117
|
-
version: 3.
|
123
|
+
version: 3.3.6
|
118
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
125
|
requirements:
|
120
126
|
- - ">="
|
121
127
|
- !ruby/object:Gem::Version
|
122
128
|
version: '0'
|
123
129
|
requirements: []
|
124
|
-
rubygems_version: 3.
|
130
|
+
rubygems_version: 3.5.22
|
125
131
|
signing_key:
|
126
132
|
specification_version: 4
|
127
133
|
summary: Inferno tests for the At Home In Vitro IG
|