uds_plus_test_kit 1.1.2 → 1.2.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31d4fb84e564c1a6f404086bbfbcf7579d7333db59246fb625fecfbf3156665f
|
4
|
+
data.tar.gz: 84058e1a22a65da6774b349f7948e46828bb5df1e1e2fc42fe45303583a094a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f27c651215b704e3c9c13b8aff07f07040b3e760efe5eb4fd402399e8e29c8fe73f6e207c3bec83e7978f73144fe8bae3bff5bba4aef936eec5eda9e2fda395
|
7
|
+
data.tar.gz: d4f48591d822a12ed7ee64cd14e381c6ddef082c98542aa0720de87d4a5c758cf363d07768b1e01d6aa68b033375178beace14c7d6eb73b5c4874062feb78a57
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require_relative 'version'
|
2
|
+
|
3
|
+
module UDSPlusTestKit
|
4
|
+
class Metadata < Inferno::TestKit
|
5
|
+
id :uds_plus
|
6
|
+
title 'UDS+ Test Kit'
|
7
|
+
description <<~DESCRIPTION
|
8
|
+
The UDS+ Test Kit validates the conformance of a server to the [UDS+ IG v1.1.0](https://fhir.org/guides/hrsa/uds-plus/STU1.1/). The included tests function as a rudimentary data receiver. This receiver will take a provided Import Manifest, either as an HTTP location or as a raw json, and validate its contents. This includes validating the structure of the manifest, as well as the structure of the data the manifest points to.
|
9
|
+
<!-- break -->
|
10
|
+
This test kit is built using the [Inferno Framework](https://inferno-framework.github.io/docs/). The Inferno Framework is designed for reuse and aims to make it easier to build test kits for any FHIR-based data exchange.
|
11
|
+
|
12
|
+
### Status
|
13
|
+
|
14
|
+
The test kit currently tests the following requirements:
|
15
|
+
|
16
|
+
- That a given import manifest structure and the structure of the data the manifest points to are valid
|
17
|
+
- Receiving an import manifest by POST request
|
18
|
+
- Receiving and validating individual resources by URL or raw JSON
|
19
|
+
|
20
|
+
See the test descriptions within the test kit for detail on the specific validations performed as part of testing these requirements.
|
21
|
+
|
22
|
+
### Repository
|
23
|
+
|
24
|
+
The UDS+ Test Kit GitHub repository can be [found here](https://github.com/inferno-framework/uds-plus-test-kit).
|
25
|
+
|
26
|
+
### Providing Feedback and Reporting Issues
|
27
|
+
|
28
|
+
Please report any issues with this set of tests in the [issues section](https://github.com/inferno-framework/uds-plus-test-kit/issues) of the repository.
|
29
|
+
DESCRIPTION
|
30
|
+
suite_ids [:uds_plus]
|
31
|
+
tags ['']
|
32
|
+
last_updated LAST_UPDATED
|
33
|
+
version VERSION
|
34
|
+
maturity 'Low'
|
35
|
+
authors ['Leap Orbit']
|
36
|
+
repo 'https://github.com/inferno-framework/uds-plus-test-kit'
|
37
|
+
end
|
38
|
+
end
|
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'inferno/dsl/oauth_credentials'
|
2
|
-
require_relative './version'
|
3
2
|
require_relative './manifest_tests/uds_plus_test_group'
|
4
3
|
require_relative './input_resource_tests/resource_group'
|
5
4
|
require_relative './post_tests/post_group'
|
@@ -10,14 +9,12 @@ module UDSPlusTestKit
|
|
10
9
|
description %(
|
11
10
|
The UDS+ Test Kit tests systems for their conformance to the [UDS+
|
12
11
|
Implementation Guide v1.1.0](https://fhir.org/guides/hrsa/uds-plus/index.html).
|
13
|
-
The included tests function as a rudimentary data receiver. This receiver will
|
12
|
+
The included tests function as a rudimentary data receiver. This receiver will
|
14
13
|
take a provided Import Manifest, either as an HTTP location or as a raw json,
|
15
14
|
and validate its contents. This includes validating the structure of the manifest,
|
16
15
|
as well as the structure of the data the manifest points to.
|
17
16
|
)
|
18
17
|
|
19
|
-
version VERSION
|
20
|
-
|
21
18
|
fhir_resource_validator do
|
22
19
|
# The home-lab-report contains validation tools for certain codes missing in the UDS+ package
|
23
20
|
igs('fhir.hrsa.uds-plus#1.1.0', 'hl7.fhir.us.home-lab-report#1.0.0')
|
@@ -55,7 +52,7 @@ module UDSPlusTestKit
|
|
55
52
|
manifest_ex = File.read(File.join(__dir__, 'examples/manifest.json'))
|
56
53
|
manifest_ex_route_handler = proc { [200, { 'Content-Type' => 'application/json' }, [manifest_ex]] }
|
57
54
|
route(:get, "/examples/manifest", manifest_ex_route_handler)
|
58
|
-
|
55
|
+
|
59
56
|
bad_condition_ex = File.read(File.join(__dir__, 'examples/invalid_condition.ndjson'))
|
60
57
|
bad_condition_ex_route_handler = proc { [200, { 'Content-Type' => 'application/ndjson' }, [bad_condition_ex]] }
|
61
58
|
route(:get, "/examples/invalid_condition", bad_condition_ex_route_handler)
|
@@ -127,21 +124,29 @@ module UDSPlusTestKit
|
|
127
124
|
|
128
125
|
links [
|
129
126
|
{
|
127
|
+
type: 'report_issue',
|
130
128
|
label: 'Report Issue',
|
131
129
|
url: 'https://github.com/inferno-framework/uds-plus-test-kit/issues'
|
132
130
|
},
|
133
131
|
{
|
132
|
+
type: 'source_code',
|
134
133
|
label: 'Open Source',
|
135
134
|
url: 'https://github.com/inferno-framework/uds-plus-test-kit/'
|
136
135
|
},
|
137
136
|
{
|
137
|
+
type: 'download',
|
138
|
+
label: 'Download',
|
139
|
+
url: 'https://github.com/inferno-framework/uds-plus-test-kit/releases/'
|
140
|
+
},
|
141
|
+
{
|
142
|
+
type: 'ig',
|
138
143
|
label: 'UDS+ Implementation Guide v1.1.0',
|
139
144
|
url: 'https://fhir.org/guides/hrsa/uds-plus/index.html'
|
140
145
|
}
|
141
146
|
]
|
142
147
|
|
143
148
|
group from: :uds_plus_test_group
|
144
|
-
group from: :uds_plus_manifest_post_group
|
149
|
+
group from: :uds_plus_manifest_post_group
|
145
150
|
group from: :uds_plus_resource_test_group
|
146
151
|
end
|
147
152
|
end
|
data/lib/uds_plus_test_kit.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uds_plus_test_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leap Orbit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inferno_core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
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
|
@@ -137,6 +137,7 @@ files:
|
|
137
137
|
- lib/uds_plus_test_kit/manifest_tests/read_manifest_test.rb
|
138
138
|
- lib/uds_plus_test_kit/manifest_tests/uds_plus_test_group.rb
|
139
139
|
- lib/uds_plus_test_kit/manifest_tests/validate_manifest_test.rb
|
140
|
+
- lib/uds_plus_test_kit/metadata.rb
|
140
141
|
- lib/uds_plus_test_kit/post_tests/post_group.rb
|
141
142
|
- lib/uds_plus_test_kit/post_tests/post_manifest_test.rb
|
142
143
|
- lib/uds_plus_test_kit/post_tests/read_post_test.rb
|
@@ -169,6 +170,7 @@ licenses:
|
|
169
170
|
metadata:
|
170
171
|
homepage_uri: https://github.com/inferno-framework/uds-plus-test-kit
|
171
172
|
source_code_uri: https://github.com/inferno-framework/uds-plus-test-kit
|
173
|
+
inferno_test_kit: 'true'
|
172
174
|
post_install_message:
|
173
175
|
rdoc_options: []
|
174
176
|
require_paths:
|
@@ -184,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
186
|
- !ruby/object:Gem::Version
|
185
187
|
version: '0'
|
186
188
|
requirements: []
|
187
|
-
rubygems_version: 3.
|
189
|
+
rubygems_version: 3.5.22
|
188
190
|
signing_key:
|
189
191
|
specification_version: 4
|
190
192
|
summary: UDS Plus Test Kit
|