us_core_test_kit 0.9.1 → 0.9.3
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/smart_app_launch_group.rb +3 -3
- data/lib/us_core_test_kit/generated/v6.1.0/condition_granular_scope1_group.rb +1 -1
- data/lib/us_core_test_kit/generated/v6.1.0/condition_granular_scope2_group.rb +1 -1
- data/lib/us_core_test_kit/generated/v6.1.0/observation_granular_scope1_group.rb +1 -1
- data/lib/us_core_test_kit/generated/v6.1.0/observation_granular_scope2_group.rb +1 -1
- data/lib/us_core_test_kit/generated/v6.1.0/us_core_test_suite.rb +1 -1
- data/lib/us_core_test_kit/generated/v7.0.0/condition_granular_scope1_group.rb +1 -1
- data/lib/us_core_test_kit/generated/v7.0.0/condition_granular_scope2_group.rb +1 -1
- data/lib/us_core_test_kit/generated/v7.0.0/observation_granular_scope1_group.rb +1 -1
- data/lib/us_core_test_kit/generated/v7.0.0/observation_granular_scope2_group.rb +1 -1
- data/lib/us_core_test_kit/generator/granular_scope_resource_type_group_generator.rb +1 -1
- data/lib/us_core_test_kit/generator/suite_generator.rb +1 -1
- data/lib/us_core_test_kit/search_test.rb +2 -1
- data/lib/us_core_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: 640b258b3230fd4c3061922d8e70fb0c795b6723c2327baa4f4f31acb961912c
|
4
|
+
data.tar.gz: e3746b1b30f6a3fe869b955565875d33ccb82b964cb321da84bf8d23eca15fd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52d2b138dbc0827306e741de88eda414596d1f2dd388184b911b672251f5d52a0cf0ee826321096c410512db490a0c59bd5c1972e3bbe1b429f84998141898db
|
7
|
+
data.tar.gz: 9f762ca3869219ea45f76703a7f65cfa02436e9c222c8bbaf5aad16df541030ded6296c8abe04306e40392e36f0ad16a27e0065b4d645c98adc8186ef4a54026
|
@@ -12,11 +12,11 @@ module USCoreTestKit
|
|
12
12
|
id :us_core_smart_app_launch
|
13
13
|
title 'SMART App Launch'
|
14
14
|
|
15
|
-
SMART_V1_RESOURCE_LEVEL_SCOPES = 'launch/patient openid fhirUser offline_access patient/
|
15
|
+
SMART_V1_RESOURCE_LEVEL_SCOPES = 'launch/patient openid fhirUser offline_access patient/Patient.read patient/AllergyIntolerance.read patient/CarePlan.read patient/CareTeam.read patient/Condition.read patient/Coverage.read patient/Device.read patient/DiagnosticReport.read patient/DocumentReference.read patient/Encounter.read patient/Goal.read patient/Immunization.read patient/Location.read patient/Media.read patient/Medication.read patient/MedicationDispense.read patient/MedicationRequest.read patient/Observation.read patient/Organization.read patient/Practitioner.read patient/PractitionerRole.read patient/Procedure.read patient/Provenance.read patient/QuestionnaireResponse.read patient/RelatedPerson.read patient/ServiceRequest.read patient/Specimen.read'.freeze
|
16
16
|
|
17
|
-
SMART_V2_RESOURCE_LEVEL_SCOPES = 'launch/patient openid fhirUser offline_access patient/
|
17
|
+
SMART_V2_RESOURCE_LEVEL_SCOPES = 'launch/patient openid fhirUser offline_access patient/Patient.rs patient/AllergyIntolerance.rs patient/CarePlan.rs patient/CareTeam.rs patient/Condition.rs patient/Coverage.rs patient/Device.rs patient/DiagnosticReport.rs patient/DocumentReference.rs patient/Encounter.rs patient/Endpoint.rs patient/Goal.rs patient/Immunization.rs patient/Location.rs patient/Media.rs patient/Medication.rs patient/MedicationDispense.rs patient/MedicationRequest.rs patient/Observation.rs patient/Organization.rs patient/Practitioner.rs patient/PractitionerRole.rs patient/Procedure.rs patient/Provenance.rs patient/QuestionnaireResponse.rs patient/RelatedPerson.rs patient/ServiceRequest.rs patient/Specimen.rs'.freeze
|
18
18
|
|
19
|
-
SMART_V2_2_RESOURCE_LEVEL_SCOPES = 'launch/patient openid fhirUser offline_access patient/
|
19
|
+
SMART_V2_2_RESOURCE_LEVEL_SCOPES = 'launch/patient openid fhirUser offline_access patient/Patient.rs patient/AllergyIntolerance.rs patient/CarePlan.rs patient/CareTeam.rs patient/Condition.rs patient/Coverage.rs patient/Device.rs patient/DiagnosticReport.rs patient/DocumentReference.rs patient/Encounter.rs patient/Endpoint.rs patient/Goal.rs patient/Immunization.rs patient/Location.rs patient/Media.rs patient/Medication.rs patient/MedicationDispense.rs patient/MedicationRequest.rs patient/Observation.rs patient/Organization.rs patient/Practitioner.rs patient/PractitionerRole.rs patient/Procedure.rs patient/Provenance.rs patient/QuestionnaireResponse.rs patient/RelatedPerson.rs patient/ServiceRequest.rs patient/Specimen.rs'.freeze
|
20
20
|
|
21
21
|
group from: :us_core_smart_standalone_launch_stu1,
|
22
22
|
required_suite_options: USCoreOptions::SMART_1_REQUIREMENT,
|
@@ -13,7 +13,7 @@ require_relative './granular_scope_tests/condition/condition_granular_scope_read
|
|
13
13
|
module USCoreTestKit
|
14
14
|
module USCoreV610
|
15
15
|
class ConditionGranularScope1Group < Inferno::TestGroup
|
16
|
-
title 'Condition Granular Scope Tests
|
16
|
+
title 'Condition Granular Scope Tests'
|
17
17
|
short_description 'Verify support for the server capabilities required by the US Core Condition Encounter Diagnosis Profile.'
|
18
18
|
description %(
|
19
19
|
The tests in this group repeat all of the searches from the US Core
|
@@ -13,7 +13,7 @@ require_relative './granular_scope_tests/condition/condition_granular_scope_read
|
|
13
13
|
module USCoreTestKit
|
14
14
|
module USCoreV610
|
15
15
|
class ConditionGranularScope2Group < Inferno::TestGroup
|
16
|
-
title 'Condition Granular Scope Tests
|
16
|
+
title 'Condition Granular Scope Tests'
|
17
17
|
short_description 'Verify support for the server capabilities required by the US Core Condition Encounter Diagnosis Profile.'
|
18
18
|
description %(
|
19
19
|
The tests in this group repeat all of the searches from the US Core
|
@@ -8,7 +8,7 @@ require_relative './granular_scope_tests/observation/observation_granular_scope_
|
|
8
8
|
module USCoreTestKit
|
9
9
|
module USCoreV610
|
10
10
|
class ObservationGranularScope1Group < Inferno::TestGroup
|
11
|
-
title 'Observation Granular Scope Tests
|
11
|
+
title 'Observation Granular Scope Tests'
|
12
12
|
short_description 'Verify support for the server capabilities required by the US Core Laboratory Result Observation Profile.'
|
13
13
|
description %(
|
14
14
|
The tests in this group repeat all of the searches from the US Core
|
@@ -8,7 +8,7 @@ require_relative './granular_scope_tests/observation/observation_granular_scope_
|
|
8
8
|
module USCoreTestKit
|
9
9
|
module USCoreV610
|
10
10
|
class ObservationGranularScope2Group < Inferno::TestGroup
|
11
|
-
title 'Observation Granular Scope Tests
|
11
|
+
title 'Observation Granular Scope Tests'
|
12
12
|
short_description 'Verify support for the server capabilities required by the US Core Laboratory Result Observation Profile.'
|
13
13
|
description %(
|
14
14
|
The tests in this group repeat all of the searches from the US Core
|
@@ -91,7 +91,7 @@ module USCoreTestKit
|
|
91
91
|
VERSION_SPECIFIC_MESSAGE_FILTERS = [
|
92
92
|
%r{Observation\.effective\.ofType\(Period\):.*http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus|6.1.0},
|
93
93
|
%r{Observation: Slice 'Observation\.effective\[x\]:effectiveDateTime':.*http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus|6.1.0},
|
94
|
-
%r{Observation\.effective\.ofType\(Period\)\.end: This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/dateTime}
|
94
|
+
%r{Observation\.effective\.ofType\(Period\)\.(start|end): This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/dateTime}
|
95
95
|
].freeze
|
96
96
|
|
97
97
|
VALIDATION_MESSAGE_FILTERS = GENERAL_MESSAGE_FILTERS + VERSION_SPECIFIC_MESSAGE_FILTERS
|
@@ -14,7 +14,7 @@ require_relative './granular_scope_tests/condition/condition_granular_scope_read
|
|
14
14
|
module USCoreTestKit
|
15
15
|
module USCoreV700
|
16
16
|
class ConditionGranularScope1Group < Inferno::TestGroup
|
17
|
-
title 'Condition Granular Scope Tests
|
17
|
+
title 'Condition Granular Scope Tests'
|
18
18
|
short_description 'Verify support for the server capabilities required by the US Core Condition Encounter Diagnosis Profile.'
|
19
19
|
description %(
|
20
20
|
The tests in this group repeat all of the searches from the US Core
|
@@ -14,7 +14,7 @@ require_relative './granular_scope_tests/condition/condition_granular_scope_read
|
|
14
14
|
module USCoreTestKit
|
15
15
|
module USCoreV700
|
16
16
|
class ConditionGranularScope2Group < Inferno::TestGroup
|
17
|
-
title 'Condition Granular Scope Tests
|
17
|
+
title 'Condition Granular Scope Tests'
|
18
18
|
short_description 'Verify support for the server capabilities required by the US Core Condition Encounter Diagnosis Profile.'
|
19
19
|
description %(
|
20
20
|
The tests in this group repeat all of the searches from the US Core
|
@@ -9,7 +9,7 @@ require_relative './granular_scope_tests/observation/observation_granular_scope_
|
|
9
9
|
module USCoreTestKit
|
10
10
|
module USCoreV700
|
11
11
|
class ObservationGranularScope1Group < Inferno::TestGroup
|
12
|
-
title 'Observation Granular Scope Tests
|
12
|
+
title 'Observation Granular Scope Tests'
|
13
13
|
short_description 'Verify support for the server capabilities required by the US Core Laboratory Result Observation Profile.'
|
14
14
|
description %(
|
15
15
|
The tests in this group repeat all of the searches from the US Core
|
@@ -9,7 +9,7 @@ require_relative './granular_scope_tests/observation/observation_granular_scope_
|
|
9
9
|
module USCoreTestKit
|
10
10
|
module USCoreV700
|
11
11
|
class ObservationGranularScope2Group < Inferno::TestGroup
|
12
|
-
title 'Observation Granular Scope Tests
|
12
|
+
title 'Observation Granular Scope Tests'
|
13
13
|
short_description 'Verify support for the server capabilities required by the US Core Laboratory Result Observation Profile.'
|
14
14
|
description %(
|
15
15
|
The tests in this group repeat all of the searches from the US Core
|
@@ -23,7 +23,7 @@ module USCoreTestKit
|
|
23
23
|
[
|
24
24
|
%r{Observation\.effective\.ofType\(Period\):.*http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus|6.1.0},
|
25
25
|
%r{Observation: Slice 'Observation\.effective\[x\]:effectiveDateTime':.*http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus|6.1.0},
|
26
|
-
%r{Observation\.effective\.ofType\(Period\)\.end: This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/dateTime}
|
26
|
+
%r{Observation\.effective\.ofType\(Period\)\.(start|end): This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/dateTime}
|
27
27
|
]
|
28
28
|
else
|
29
29
|
[]
|
@@ -697,7 +697,8 @@ module USCoreTestKit
|
|
697
697
|
resources.each do |resource|
|
698
698
|
references_to_save(containing_resource_type).each do |reference_to_save|
|
699
699
|
resolve_path(resource, reference_to_save[:path])
|
700
|
-
.select { |reference| reference.is_a?(FHIR::Reference) &&
|
700
|
+
.select { |reference| reference.is_a?(FHIR::Reference) &&
|
701
|
+
!reference.contained? && reference.reference.present? }
|
701
702
|
.each do |reference|
|
702
703
|
resource_type = reference.resource_class.name.demodulize
|
703
704
|
need_to_save = reference_to_save[:resources].include?(resource_type)
|
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.9.
|
4
|
+
version: 0.9.3
|
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-12-05 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.5.0
|
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.5.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: smart_app_launch_test_kit
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|