us_core_test_kit 0.9.0 → 0.9.2
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/generated/v6.1.0/us_core_test_suite.rb +1 -1
- data/lib/us_core_test_kit/generated/v7.0.0/diagnostic_report_note/diagnostic_report_note_must_support_test.rb +2 -0
- data/lib/us_core_test_kit/generated/v7.0.0/diagnostic_report_note/diagnostic_report_note_reference_resolution_test.rb +1 -0
- data/lib/us_core_test_kit/generated/v7.0.0/diagnostic_report_note/metadata.yml +4 -0
- data/lib/us_core_test_kit/generated/v7.0.0/metadata.yml +4 -0
- data/lib/us_core_test_kit/generated/v7.0.0/us_core_test_suite.rb +2 -2
- data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_6.rb +3 -2
- data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_7.rb +0 -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: b932717dea1b608f8b882d319b8b0bb9ae55602f88ae33f237c11a145f545835
|
4
|
+
data.tar.gz: 64ddbccbc2e8cea67a65013931fc0b1022425ca18fe5b86bece509c154a724d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12f75e241b6c1d939bd707fe072abca55b162333fce4c58d16999ebf1795cf0272aeb6be2e89ce15806c5a033e28961fd13a5331b70119811862a2bc4967d751
|
7
|
+
data.tar.gz: 5e864dac05137ff3ddb47eb517700113292b9988fcafa36eb94cd4088bde194e7733eb74ad339b5b796c3517e7e452cd4e97ad117c875e05aa667afe54180dae
|
@@ -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
|
@@ -18,6 +18,8 @@ module USCoreTestKit
|
|
18
18
|
* DiagnosticReport.effectiveDateTime
|
19
19
|
* DiagnosticReport.encounter
|
20
20
|
* DiagnosticReport.issued
|
21
|
+
* DiagnosticReport.media
|
22
|
+
* DiagnosticReport.media.link
|
21
23
|
* DiagnosticReport.performer
|
22
24
|
* DiagnosticReport.presentedForm
|
23
25
|
* DiagnosticReport.result
|
@@ -219,6 +219,10 @@
|
|
219
219
|
:target_profiles:
|
220
220
|
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab
|
221
221
|
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-clinical-result
|
222
|
+
- :path: media
|
223
|
+
- :path: media.link
|
224
|
+
:types:
|
225
|
+
- Reference
|
222
226
|
- :path: presentedForm
|
223
227
|
:mandatory_elements:
|
224
228
|
- DiagnosticReport.status
|
@@ -1981,6 +1981,10 @@
|
|
1981
1981
|
:target_profiles:
|
1982
1982
|
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab
|
1983
1983
|
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-clinical-result
|
1984
|
+
- :path: media
|
1985
|
+
- :path: media.link
|
1986
|
+
:types:
|
1987
|
+
- Reference
|
1984
1988
|
- :path: presentedForm
|
1985
1989
|
:mandatory_elements:
|
1986
1990
|
- DiagnosticReport.status
|
@@ -170,7 +170,7 @@ module USCoreTestKit
|
|
170
170
|
)
|
171
171
|
|
172
172
|
group from: :us_core_v700_capability_statement
|
173
|
-
|
173
|
+
|
174
174
|
group from: :us_core_v700_patient
|
175
175
|
group from: :us_core_v700_allergy_intolerance
|
176
176
|
group from: :us_core_v700_care_plan
|
@@ -231,7 +231,7 @@ module USCoreTestKit
|
|
231
231
|
group from: :us_core_v700_smart_granular_scopes,
|
232
232
|
id: :us_core_v700_smart_granular_scopes_stu2_2,
|
233
233
|
required_suite_options: USCoreOptions::SMART_2_2_REQUIREMENT
|
234
|
-
|
234
|
+
|
235
235
|
end
|
236
236
|
end
|
237
237
|
end
|
@@ -93,14 +93,15 @@ module USCoreTestKit
|
|
93
93
|
must_supports[:elements] << { path: 'effective[x]' }
|
94
94
|
end
|
95
95
|
|
96
|
-
# US Core v6.1.0 Patch
|
96
|
+
# US Core v6.1.0 Patch FHIR-44693, Add MustSupport choice between Practitioner.address and PractitionerRole
|
97
|
+
# This is fixed formally in US Core v7
|
97
98
|
def remove_practitioner_address
|
98
99
|
return unless profile.type == 'Practitioner'
|
99
100
|
|
100
101
|
must_supports[:elements].delete_if { |element| element[:path].start_with?('address') }
|
101
102
|
end
|
102
103
|
|
103
|
-
# US Core v6.1.0 Patch
|
104
|
+
# US Core v6.1.0 Patch FHIR-46240, Remove the Must Support on media and media.link
|
104
105
|
def remove_diagnosticreport_media
|
105
106
|
return unless profile.id == 'us-core-diagnosticreport-note'
|
106
107
|
must_supports[:elements].delete_if { |element| element[:path].start_with?('media') }
|
@@ -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.2
|
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-
|
11
|
+
date: 2024-11-19 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
|