us_core_test_kit 0.6.4 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/us_core_test_kit/custom_groups/base_smart_granular_scopes_group.rb +42 -11
- data/lib/us_core_test_kit/custom_groups/granted_granular_scopes_test.rb +61 -0
- data/lib/us_core_test_kit/custom_groups/smart_scopes_constants.rb +5 -8
- data/lib/us_core_test_kit/custom_groups/v6.1.0/smart_granular_scopes_group.rb +94 -41
- data/lib/us_core_test_kit/custom_groups/v7.0.0-ballot/smart_granular_scopes_group.rb +6 -0
- data/lib/us_core_test_kit/fhir_resource_navigation.rb +14 -4
- data/lib/us_core_test_kit/generated/v3.1.1/metadata.yml +3 -0
- data/lib/us_core_test_kit/generated/v3.1.1/patient/metadata.yml +3 -0
- data/lib/us_core_test_kit/generated/v3.1.1/us_core_test_suite.rb +7 -5
- data/lib/us_core_test_kit/generated/v4.0.0/metadata.yml +3 -0
- data/lib/us_core_test_kit/generated/v4.0.0/patient/metadata.yml +3 -0
- data/lib/us_core_test_kit/generated/v4.0.0/us_core_test_suite.rb +7 -5
- data/lib/us_core_test_kit/generated/v5.0.1/condition_encounter_diagnosis/metadata.yml +1 -0
- data/lib/us_core_test_kit/generated/v5.0.1/condition_problems_health_concerns/metadata.yml +1 -0
- data/lib/us_core_test_kit/generated/v5.0.1/metadata.yml +8 -0
- data/lib/us_core_test_kit/generated/v5.0.1/patient/metadata.yml +4 -0
- data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/metadata.yml +2 -0
- data/lib/us_core_test_kit/generated/v5.0.1/us_core_test_suite.rb +7 -5
- data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/metadata.yml +1 -0
- data/lib/us_core_test_kit/generated/v6.1.0/condition_granular_scope1_group.rb +2 -0
- data/lib/us_core_test_kit/generated/v6.1.0/condition_problems_health_concerns/metadata.yml +1 -0
- data/lib/us_core_test_kit/generated/v6.1.0/granular_scope_tests/condition/metadata.yml +3 -2
- data/lib/us_core_test_kit/generated/v6.1.0/granular_scope_tests/observation/metadata.yml +2 -2
- data/lib/us_core_test_kit/generated/v6.1.0/granular_scopes1_group.rb +5 -1
- data/lib/us_core_test_kit/generated/v6.1.0/metadata.yml +9 -6
- data/lib/us_core_test_kit/generated/v6.1.0/observation_granular_scope1_group.rb +3 -1
- data/lib/us_core_test_kit/generated/v6.1.0/patient/metadata.yml +5 -0
- data/lib/us_core_test_kit/generated/v6.1.0/questionnaire_response/metadata.yml +2 -0
- data/lib/us_core_test_kit/generated/v6.1.0/us_core_test_suite.rb +9 -7
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/metadata.yml +1 -0
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_problems_health_concerns/metadata.yml +1 -0
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/granular_scope_tests/condition/metadata.yml +1 -0
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/medication_request/metadata.yml +1 -0
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/metadata.yml +10 -0
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/patient/metadata.yml +5 -0
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/questionnaire_response/metadata.yml +2 -0
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/us_core_test_suite.rb +8 -6
- data/lib/us_core_test_kit/generator/granular_scope_group_generator.rb +7 -0
- data/lib/us_core_test_kit/generator/granular_scope_resource_type_group_generator.rb +1 -1
- data/lib/us_core_test_kit/generator/granular_scope_test_generator.rb +2 -2
- data/lib/us_core_test_kit/generator/group_metadata.rb +1 -1
- data/lib/us_core_test_kit/generator/must_support_metadata_extractor.rb +1 -0
- data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_4.rb +3 -0
- data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_5.rb +1 -0
- data/lib/us_core_test_kit/generator/special_cases.rb +3 -5
- data/lib/us_core_test_kit/generator/suite_generator.rb +5 -2
- data/lib/us_core_test_kit/must_support_test.rb +25 -6
- data/lib/us_core_test_kit/reference_resolution_test.rb +2 -1
- data/lib/us_core_test_kit/search_test.rb +2 -0
- data/lib/us_core_test_kit/version.rb +1 -1
- metadata +7 -9
- data/lib/us_core_test_kit/generated/v6.1.0/condition_granular_scope2_group.rb +0 -43
- data/lib/us_core_test_kit/generated/v6.1.0/granular_scopes2_group.rb +0 -52
- data/lib/us_core_test_kit/generated/v6.1.0/observation_granular_scope2_group.rb +0 -32
@@ -676,6 +676,8 @@ module USCoreTestKit
|
|
676
676
|
(element.family || element.given&.first || element.text).present?
|
677
677
|
when FHIR::Address
|
678
678
|
(element.text || element.city || element.state || element.postalCode || element.country).present?
|
679
|
+
when FHIR::Element
|
680
|
+
false
|
679
681
|
else
|
680
682
|
true
|
681
683
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: us_core_test_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen MacVicar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inferno_core
|
@@ -126,6 +126,7 @@ files:
|
|
126
126
|
- lib/us_core_test_kit/custom_groups/clinical_note_attachment_test.rb
|
127
127
|
- lib/us_core_test_kit/custom_groups/clinical_note_type_test.rb
|
128
128
|
- lib/us_core_test_kit/custom_groups/data_absent_reason_group.rb
|
129
|
+
- lib/us_core_test_kit/custom_groups/granted_granular_scopes_test.rb
|
129
130
|
- lib/us_core_test_kit/custom_groups/smart_app_launch_group.rb
|
130
131
|
- lib/us_core_test_kit/custom_groups/smart_ehr_launch_stu1.rb
|
131
132
|
- lib/us_core_test_kit/custom_groups/smart_ehr_launch_stu2.rb
|
@@ -1407,7 +1408,6 @@ files:
|
|
1407
1408
|
- lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/metadata.yml
|
1408
1409
|
- lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis_group.rb
|
1409
1410
|
- lib/us_core_test_kit/generated/v6.1.0/condition_granular_scope1_group.rb
|
1410
|
-
- lib/us_core_test_kit/generated/v6.1.0/condition_granular_scope2_group.rb
|
1411
1411
|
- lib/us_core_test_kit/generated/v6.1.0/condition_problems_health_concerns/condition_problems_health_concerns_must_support_test.rb
|
1412
1412
|
- lib/us_core_test_kit/generated/v6.1.0/condition_problems_health_concerns/condition_problems_health_concerns_patient_abatement_date_search_test.rb
|
1413
1413
|
- lib/us_core_test_kit/generated/v6.1.0/condition_problems_health_concerns/condition_problems_health_concerns_patient_asserted_date_search_test.rb
|
@@ -1528,7 +1528,6 @@ files:
|
|
1528
1528
|
- lib/us_core_test_kit/generated/v6.1.0/granular_scope_tests/observation/observation_patient_code_date_granular_scope_test.rb
|
1529
1529
|
- lib/us_core_test_kit/generated/v6.1.0/granular_scope_tests/observation/observation_patient_code_granular_scope_test.rb
|
1530
1530
|
- lib/us_core_test_kit/generated/v6.1.0/granular_scopes1_group.rb
|
1531
|
-
- lib/us_core_test_kit/generated/v6.1.0/granular_scopes2_group.rb
|
1532
1531
|
- lib/us_core_test_kit/generated/v6.1.0/head_circumference/head_circumference_must_support_test.rb
|
1533
1532
|
- lib/us_core_test_kit/generated/v6.1.0/head_circumference/head_circumference_patient_category_date_search_test.rb
|
1534
1533
|
- lib/us_core_test_kit/generated/v6.1.0/head_circumference/head_circumference_patient_category_search_test.rb
|
@@ -1611,7 +1610,6 @@ files:
|
|
1611
1610
|
- lib/us_core_test_kit/generated/v6.1.0/observation_clinical_result/observation_clinical_result_validation_test.rb
|
1612
1611
|
- lib/us_core_test_kit/generated/v6.1.0/observation_clinical_result_group.rb
|
1613
1612
|
- lib/us_core_test_kit/generated/v6.1.0/observation_granular_scope1_group.rb
|
1614
|
-
- lib/us_core_test_kit/generated/v6.1.0/observation_granular_scope2_group.rb
|
1615
1613
|
- lib/us_core_test_kit/generated/v6.1.0/observation_lab/metadata.yml
|
1616
1614
|
- lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_lab_must_support_test.rb
|
1617
1615
|
- lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_lab_patient_category_date_search_test.rb
|
@@ -2548,12 +2546,12 @@ files:
|
|
2548
2546
|
- lib/us_core_test_kit/us_core_options.rb
|
2549
2547
|
- lib/us_core_test_kit/validation_test.rb
|
2550
2548
|
- lib/us_core_test_kit/version.rb
|
2551
|
-
homepage: https://github.com/
|
2549
|
+
homepage: https://github.com/inferno-framework/us-core-test-kit
|
2552
2550
|
licenses:
|
2553
2551
|
- Apache-2.0
|
2554
2552
|
metadata:
|
2555
|
-
homepage_uri: https://github.com/
|
2556
|
-
source_code_uri: https://github.com/
|
2553
|
+
homepage_uri: https://github.com/inferno-framework/us-core-test-kit
|
2554
|
+
source_code_uri: https://github.com/inferno-framework/us-core-test-kit
|
2557
2555
|
post_install_message:
|
2558
2556
|
rdoc_options: []
|
2559
2557
|
require_paths:
|
@@ -2569,7 +2567,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2569
2567
|
- !ruby/object:Gem::Version
|
2570
2568
|
version: '0'
|
2571
2569
|
requirements: []
|
2572
|
-
rubygems_version: 3.
|
2570
|
+
rubygems_version: 3.5.9
|
2573
2571
|
signing_key:
|
2574
2572
|
specification_version: 4
|
2575
2573
|
summary: US Core Inferno tests
|
@@ -1,43 +0,0 @@
|
|
1
|
-
require_relative './granular_scope_tests/condition/condition_patient_category_granular_scope_test'
|
2
|
-
require_relative './granular_scope_tests/condition/condition_patient_granular_scope_test'
|
3
|
-
require_relative './granular_scope_tests/condition/condition_patient_recorded_date_granular_scope_test'
|
4
|
-
require_relative './granular_scope_tests/condition/condition_patient_asserted_date_granular_scope_test'
|
5
|
-
require_relative './granular_scope_tests/condition/condition_patient_category_clinical_status_granular_scope_test'
|
6
|
-
require_relative './granular_scope_tests/condition/condition_patient_onset_date_granular_scope_test'
|
7
|
-
require_relative './granular_scope_tests/condition/condition_patient_abatement_date_granular_scope_test'
|
8
|
-
require_relative './granular_scope_tests/condition/condition_patient_clinical_status_granular_scope_test'
|
9
|
-
require_relative './granular_scope_tests/condition/condition_patient_category_encounter_granular_scope_test'
|
10
|
-
require_relative './granular_scope_tests/condition/condition_patient_code_granular_scope_test'
|
11
|
-
|
12
|
-
module USCoreTestKit
|
13
|
-
module USCoreV610
|
14
|
-
class ConditionGranularScope2Group < Inferno::TestGroup
|
15
|
-
title 'Condition Granular Scope Tests Tests'
|
16
|
-
short_description 'Verify support for the server capabilities required by the US Core Condition Encounter Diagnosis Profile.'
|
17
|
-
description %(
|
18
|
-
The tests in this group repeat all of the searches from the US Core
|
19
|
-
FHIR API tests, and verify that the resources returned are filtered
|
20
|
-
based on the following granular scopes:
|
21
|
-
|
22
|
-
* `Condition.rs?category=http://hl7.org/fhir/us/core/CodeSystem/condition-category|health-concern`
|
23
|
-
* `Condition.rs?category=http://terminology.hl7.org/CodeSystem/condition-category|problem-list-item`
|
24
|
-
|
25
|
-
)
|
26
|
-
|
27
|
-
id :us_core_v610_condition_granular_scope_2_group
|
28
|
-
run_as_group
|
29
|
-
|
30
|
-
|
31
|
-
test from: :us_core_v610_Condition_patient_category_granular_scope_test
|
32
|
-
test from: :us_core_v610_Condition_patient_granular_scope_test
|
33
|
-
test from: :us_core_v610_Condition_patient_recorded_date_granular_scope_test
|
34
|
-
test from: :us_core_v610_Condition_patient_asserted_date_granular_scope_test
|
35
|
-
test from: :us_core_v610_Condition_patient_category_clinical_status_granular_scope_test
|
36
|
-
test from: :us_core_v610_Condition_patient_onset_date_granular_scope_test
|
37
|
-
test from: :us_core_v610_Condition_patient_abatement_date_granular_scope_test
|
38
|
-
test from: :us_core_v610_Condition_patient_clinical_status_granular_scope_test
|
39
|
-
test from: :us_core_v610_Condition_patient_category_encounter_granular_scope_test
|
40
|
-
test from: :us_core_v610_Condition_patient_code_granular_scope_test
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
@@ -1,52 +0,0 @@
|
|
1
|
-
require_relative './condition_granular_scope2_group'
|
2
|
-
require_relative './observation_granular_scope2_group'
|
3
|
-
|
4
|
-
module USCoreTestKit
|
5
|
-
module USCoreV610
|
6
|
-
class SmartGranularScopes2Group < Inferno::TestGroup
|
7
|
-
id :us_core_v610_smart_granular_scopes_2
|
8
|
-
title 'US Core FHIR API w/Granular Scopes 2'
|
9
|
-
|
10
|
-
description %(
|
11
|
-
The tests in this group repeat all of the searches from the US Core
|
12
|
-
FHIR API tests, and verify that the resources returned are filtered
|
13
|
-
based on the following granular scopes:
|
14
|
-
|
15
|
-
* `Condition.rs?category=http://hl7.org/fhir/us/core/CodeSystem/condition-category|health-concern`
|
16
|
-
* `Condition.rs?category=http://terminology.hl7.org/CodeSystem/condition-category|problem-list-item`
|
17
|
-
* `Observation.rs?category=http://terminology.hl7.org/CodeSystem/observation-category|vital-signs`
|
18
|
-
* `patient.Observation.rs?category=http://terminology.hl7.org/CodeSystem/observation-category|survey`
|
19
|
-
* `patient.Observation.rs?category=http://hl7.org/fhir/us/core/CodeSystem/us-core-category|sdoh`
|
20
|
-
|
21
|
-
)
|
22
|
-
|
23
|
-
input :granular_scopes_2_credentials,
|
24
|
-
title: 'SMART Credentials for Granular Scopes 2',
|
25
|
-
type: :oauth_credentials,
|
26
|
-
locked: true
|
27
|
-
|
28
|
-
config(
|
29
|
-
inputs: {
|
30
|
-
patient_ids: {
|
31
|
-
locked: true
|
32
|
-
},
|
33
|
-
received_scopes: {
|
34
|
-
title: 'Received Scopes',
|
35
|
-
locked: true
|
36
|
-
},
|
37
|
-
url: {
|
38
|
-
locked: true
|
39
|
-
}
|
40
|
-
}
|
41
|
-
)
|
42
|
-
|
43
|
-
fhir_client do
|
44
|
-
oauth_credentials :granular_scopes_2_credentials
|
45
|
-
url :url
|
46
|
-
end
|
47
|
-
|
48
|
-
group from: :us_core_v610_condition_granular_scope_2_group
|
49
|
-
group from: :us_core_v610_observation_granular_scope_2_group
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
@@ -1,32 +0,0 @@
|
|
1
|
-
require_relative './granular_scope_tests/observation/observation_patient_category_granular_scope_test'
|
2
|
-
require_relative './granular_scope_tests/observation/observation_patient_code_date_granular_scope_test'
|
3
|
-
require_relative './granular_scope_tests/observation/observation_patient_category_status_granular_scope_test'
|
4
|
-
require_relative './granular_scope_tests/observation/observation_patient_category_date_granular_scope_test'
|
5
|
-
require_relative './granular_scope_tests/observation/observation_patient_code_granular_scope_test'
|
6
|
-
|
7
|
-
module USCoreTestKit
|
8
|
-
module USCoreV610
|
9
|
-
class ObservationGranularScope2Group < Inferno::TestGroup
|
10
|
-
title 'Observation Granular Scope Tests Tests'
|
11
|
-
short_description 'Verify support for the server capabilities required by the US Core Laboratory Result Observation Profile.'
|
12
|
-
description %(
|
13
|
-
The tests in this group repeat all of the searches from the US Core
|
14
|
-
FHIR API tests, and verify that the resources returned are filtered
|
15
|
-
based on the following granular scopes:
|
16
|
-
|
17
|
-
* `Observation.rs?category=http://terminology.hl7.org/CodeSystem/observation-category|vital-signs`
|
18
|
-
|
19
|
-
)
|
20
|
-
|
21
|
-
id :us_core_v610_observation_granular_scope_2_group
|
22
|
-
run_as_group
|
23
|
-
|
24
|
-
|
25
|
-
test from: :us_core_v610_Observation_patient_category_granular_scope_test
|
26
|
-
test from: :us_core_v610_Observation_patient_code_date_granular_scope_test
|
27
|
-
test from: :us_core_v610_Observation_patient_category_status_granular_scope_test
|
28
|
-
test from: :us_core_v610_Observation_patient_category_date_granular_scope_test
|
29
|
-
test from: :us_core_v610_Observation_patient_code_granular_scope_test
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|