us_core_test_kit 0.4.3 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/lib/us_core_test_kit/custom_groups/capability_statement/profile_support_test.rb +14 -17
  3. data/lib/us_core_test_kit/custom_groups/v3.1.1/capability_statement_group.rb +1 -1
  4. data/lib/us_core_test_kit/custom_groups/v4.0.0/capability_statement_group.rb +1 -1
  5. data/lib/us_core_test_kit/custom_groups/v5.0.1/capability_statement_group.rb +1 -1
  6. data/lib/us_core_test_kit/generated/v3.1.1/allergy_intolerance/allergy_intolerance_reference_resolution_test.rb +7 -3
  7. data/lib/us_core_test_kit/generated/v3.1.1/bodyheight/bodyheight_reference_resolution_test.rb +7 -3
  8. data/lib/us_core_test_kit/generated/v3.1.1/bodytemp/bodytemp_reference_resolution_test.rb +7 -3
  9. data/lib/us_core_test_kit/generated/v3.1.1/bodyweight/bodyweight_reference_resolution_test.rb +7 -3
  10. data/lib/us_core_test_kit/generated/v3.1.1/bp/bp_reference_resolution_test.rb +7 -3
  11. data/lib/us_core_test_kit/generated/v3.1.1/care_plan/care_plan_reference_resolution_test.rb +7 -3
  12. data/lib/us_core_test_kit/generated/v3.1.1/care_team/care_team_reference_resolution_test.rb +7 -3
  13. data/lib/us_core_test_kit/generated/v3.1.1/condition/condition_reference_resolution_test.rb +7 -3
  14. data/lib/us_core_test_kit/generated/v3.1.1/device/device_reference_resolution_test.rb +7 -3
  15. data/lib/us_core_test_kit/generated/v3.1.1/diagnostic_report_lab/diagnostic_report_lab_reference_resolution_test.rb +7 -3
  16. data/lib/us_core_test_kit/generated/v3.1.1/diagnostic_report_note/diagnostic_report_note_reference_resolution_test.rb +7 -3
  17. data/lib/us_core_test_kit/generated/v3.1.1/document_reference/document_reference_reference_resolution_test.rb +7 -3
  18. data/lib/us_core_test_kit/generated/v3.1.1/encounter/encounter_reference_resolution_test.rb +7 -3
  19. data/lib/us_core_test_kit/generated/v3.1.1/goal/goal_reference_resolution_test.rb +7 -3
  20. data/lib/us_core_test_kit/generated/v3.1.1/head_circumference/head_circumference_reference_resolution_test.rb +7 -3
  21. data/lib/us_core_test_kit/generated/v3.1.1/heartrate/heartrate_reference_resolution_test.rb +7 -3
  22. data/lib/us_core_test_kit/generated/v3.1.1/immunization/immunization_reference_resolution_test.rb +7 -3
  23. data/lib/us_core_test_kit/generated/v3.1.1/medication_request/medication_request_reference_resolution_test.rb +7 -3
  24. data/lib/us_core_test_kit/generated/v3.1.1/observation_lab/observation_lab_reference_resolution_test.rb +7 -3
  25. data/lib/us_core_test_kit/generated/v3.1.1/pediatric_bmi_for_age/pediatric_bmi_for_age_reference_resolution_test.rb +7 -3
  26. data/lib/us_core_test_kit/generated/v3.1.1/pediatric_weight_for_height/pediatric_weight_for_height_reference_resolution_test.rb +7 -3
  27. data/lib/us_core_test_kit/generated/v3.1.1/procedure/procedure_reference_resolution_test.rb +7 -3
  28. data/lib/us_core_test_kit/generated/v3.1.1/provenance/provenance_reference_resolution_test.rb +7 -3
  29. data/lib/us_core_test_kit/generated/v3.1.1/pulse_oximetry/pulse_oximetry_reference_resolution_test.rb +7 -3
  30. data/lib/us_core_test_kit/generated/v3.1.1/resprate/resprate_reference_resolution_test.rb +7 -3
  31. data/lib/us_core_test_kit/generated/v3.1.1/smokingstatus/smokingstatus_reference_resolution_test.rb +7 -3
  32. data/lib/us_core_test_kit/generated/v3.1.1/us_core_test_suite.rb +2 -2
  33. data/lib/us_core_test_kit/generated/v4.0.0/allergy_intolerance/allergy_intolerance_reference_resolution_test.rb +7 -3
  34. data/lib/us_core_test_kit/generated/v4.0.0/blood_pressure/blood_pressure_reference_resolution_test.rb +7 -3
  35. data/lib/us_core_test_kit/generated/v4.0.0/bmi/bmi_reference_resolution_test.rb +7 -3
  36. data/lib/us_core_test_kit/generated/v4.0.0/body_height/body_height_reference_resolution_test.rb +7 -3
  37. data/lib/us_core_test_kit/generated/v4.0.0/body_temperature/body_temperature_reference_resolution_test.rb +7 -3
  38. data/lib/us_core_test_kit/generated/v4.0.0/body_weight/body_weight_reference_resolution_test.rb +7 -3
  39. data/lib/us_core_test_kit/generated/v4.0.0/care_plan/care_plan_reference_resolution_test.rb +7 -3
  40. data/lib/us_core_test_kit/generated/v4.0.0/care_team/care_team_reference_resolution_test.rb +7 -3
  41. data/lib/us_core_test_kit/generated/v4.0.0/condition/condition_reference_resolution_test.rb +7 -3
  42. data/lib/us_core_test_kit/generated/v4.0.0/device/device_reference_resolution_test.rb +7 -3
  43. data/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_lab/diagnostic_report_lab_reference_resolution_test.rb +7 -3
  44. data/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_note/diagnostic_report_note_reference_resolution_test.rb +7 -3
  45. data/lib/us_core_test_kit/generated/v4.0.0/document_reference/document_reference_reference_resolution_test.rb +7 -3
  46. data/lib/us_core_test_kit/generated/v4.0.0/encounter/encounter_reference_resolution_test.rb +7 -3
  47. data/lib/us_core_test_kit/generated/v4.0.0/goal/goal_reference_resolution_test.rb +7 -3
  48. data/lib/us_core_test_kit/generated/v4.0.0/head_circumference/head_circumference_reference_resolution_test.rb +7 -3
  49. data/lib/us_core_test_kit/generated/v4.0.0/head_circumference_percentile/head_circumference_percentile_reference_resolution_test.rb +7 -3
  50. data/lib/us_core_test_kit/generated/v4.0.0/heart_rate/heart_rate_reference_resolution_test.rb +7 -3
  51. data/lib/us_core_test_kit/generated/v4.0.0/immunization/immunization_reference_resolution_test.rb +7 -3
  52. data/lib/us_core_test_kit/generated/v4.0.0/medication_request/medication_request_reference_resolution_test.rb +7 -3
  53. data/lib/us_core_test_kit/generated/v4.0.0/observation_lab/observation_lab_reference_resolution_test.rb +7 -3
  54. data/lib/us_core_test_kit/generated/v4.0.0/pediatric_bmi_for_age/pediatric_bmi_for_age_reference_resolution_test.rb +7 -3
  55. data/lib/us_core_test_kit/generated/v4.0.0/pediatric_weight_for_height/pediatric_weight_for_height_reference_resolution_test.rb +7 -3
  56. data/lib/us_core_test_kit/generated/v4.0.0/procedure/procedure_reference_resolution_test.rb +7 -3
  57. data/lib/us_core_test_kit/generated/v4.0.0/provenance/provenance_reference_resolution_test.rb +7 -3
  58. data/lib/us_core_test_kit/generated/v4.0.0/pulse_oximetry/pulse_oximetry_reference_resolution_test.rb +7 -3
  59. data/lib/us_core_test_kit/generated/v4.0.0/respiratory_rate/respiratory_rate_reference_resolution_test.rb +7 -3
  60. data/lib/us_core_test_kit/generated/v4.0.0/smokingstatus/smokingstatus_reference_resolution_test.rb +7 -3
  61. data/lib/us_core_test_kit/generated/v4.0.0/us_core_test_suite.rb +2 -2
  62. data/lib/us_core_test_kit/generated/v5.0.1/allergy_intolerance/allergy_intolerance_reference_resolution_test.rb +7 -3
  63. data/lib/us_core_test_kit/generated/v5.0.1/blood_pressure/blood_pressure_reference_resolution_test.rb +7 -3
  64. data/lib/us_core_test_kit/generated/v5.0.1/bmi/bmi_reference_resolution_test.rb +7 -3
  65. data/lib/us_core_test_kit/generated/v5.0.1/body_height/body_height_reference_resolution_test.rb +7 -3
  66. data/lib/us_core_test_kit/generated/v5.0.1/body_temperature/body_temperature_reference_resolution_test.rb +7 -3
  67. data/lib/us_core_test_kit/generated/v5.0.1/body_weight/body_weight_reference_resolution_test.rb +7 -3
  68. data/lib/us_core_test_kit/generated/v5.0.1/care_plan/care_plan_reference_resolution_test.rb +7 -3
  69. data/lib/us_core_test_kit/generated/v5.0.1/care_team/care_team_reference_resolution_test.rb +7 -3
  70. data/lib/us_core_test_kit/generated/v5.0.1/condition_encounter_diagnosis/condition_encounter_diagnosis_reference_resolution_test.rb +7 -3
  71. data/lib/us_core_test_kit/generated/v5.0.1/condition_problems_health_concerns/condition_problems_health_concerns_reference_resolution_test.rb +7 -3
  72. data/lib/us_core_test_kit/generated/v5.0.1/device/device_reference_resolution_test.rb +7 -3
  73. data/lib/us_core_test_kit/generated/v5.0.1/diagnostic_report_lab/diagnostic_report_lab_reference_resolution_test.rb +7 -3
  74. data/lib/us_core_test_kit/generated/v5.0.1/diagnostic_report_note/diagnostic_report_note_reference_resolution_test.rb +7 -3
  75. data/lib/us_core_test_kit/generated/v5.0.1/document_reference/document_reference_reference_resolution_test.rb +7 -3
  76. data/lib/us_core_test_kit/generated/v5.0.1/encounter/encounter_reference_resolution_test.rb +7 -3
  77. data/lib/us_core_test_kit/generated/v5.0.1/goal/goal_reference_resolution_test.rb +7 -3
  78. data/lib/us_core_test_kit/generated/v5.0.1/head_circumference/head_circumference_reference_resolution_test.rb +7 -3
  79. data/lib/us_core_test_kit/generated/v5.0.1/head_circumference_percentile/head_circumference_percentile_reference_resolution_test.rb +7 -3
  80. data/lib/us_core_test_kit/generated/v5.0.1/heart_rate/heart_rate_reference_resolution_test.rb +7 -3
  81. data/lib/us_core_test_kit/generated/v5.0.1/immunization/immunization_reference_resolution_test.rb +7 -3
  82. data/lib/us_core_test_kit/generated/v5.0.1/medication_request/medication_request_reference_resolution_test.rb +7 -3
  83. data/lib/us_core_test_kit/generated/v5.0.1/observation_clinical_test/observation_clinical_test_reference_resolution_test.rb +7 -3
  84. data/lib/us_core_test_kit/generated/v5.0.1/observation_imaging/observation_imaging_reference_resolution_test.rb +7 -3
  85. data/lib/us_core_test_kit/generated/v5.0.1/observation_lab/observation_lab_reference_resolution_test.rb +7 -3
  86. data/lib/us_core_test_kit/generated/v5.0.1/observation_sdoh_assessment/observation_sdoh_assessment_reference_resolution_test.rb +7 -3
  87. data/lib/us_core_test_kit/generated/v5.0.1/observation_sexual_orientation/observation_sexual_orientation_reference_resolution_test.rb +7 -3
  88. data/lib/us_core_test_kit/generated/v5.0.1/observation_social_history/observation_social_history_reference_resolution_test.rb +7 -3
  89. data/lib/us_core_test_kit/generated/v5.0.1/pediatric_bmi_for_age/pediatric_bmi_for_age_reference_resolution_test.rb +7 -3
  90. data/lib/us_core_test_kit/generated/v5.0.1/pediatric_weight_for_height/pediatric_weight_for_height_reference_resolution_test.rb +7 -3
  91. data/lib/us_core_test_kit/generated/v5.0.1/procedure/procedure_reference_resolution_test.rb +7 -3
  92. data/lib/us_core_test_kit/generated/v5.0.1/provenance/provenance_reference_resolution_test.rb +7 -3
  93. data/lib/us_core_test_kit/generated/v5.0.1/pulse_oximetry/pulse_oximetry_reference_resolution_test.rb +7 -3
  94. data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_reference_resolution_test.rb +7 -3
  95. data/lib/us_core_test_kit/generated/v5.0.1/related_person/related_person_reference_resolution_test.rb +7 -3
  96. data/lib/us_core_test_kit/generated/v5.0.1/respiratory_rate/respiratory_rate_reference_resolution_test.rb +7 -3
  97. data/lib/us_core_test_kit/generated/v5.0.1/service_request/service_request_reference_resolution_test.rb +7 -3
  98. data/lib/us_core_test_kit/generated/v5.0.1/smokingstatus/smokingstatus_reference_resolution_test.rb +7 -3
  99. data/lib/us_core_test_kit/generated/v5.0.1/us_core_test_suite.rb +2 -2
  100. data/lib/us_core_test_kit/reference_resolution_test.rb +27 -4
  101. data/lib/us_core_test_kit/version.rb +1 -1
  102. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ddd68914d527894f1174e85e4107942a91ffaff91050cc2b998c4dfa32498772
4
- data.tar.gz: 454fd2b5cfd9bf632f8900291e3845c70c9e7331b879d2848bde4ce943cb16fd
3
+ metadata.gz: 100200153e9adc8ef4a768a34ab02fe1b2460a72bde04350f3681ad699aacb99
4
+ data.tar.gz: 41013e5c4b2161553a28bd73f9928fb00097455e3b547adbfe02fd0115a3f03e
5
5
  SHA512:
6
- metadata.gz: b194b0f763fda10f3c237ce792dab6fbe2b5a85fa11eee37513abd03352ca8061157b4784e20d668cd4b0f639c96b2daba25fc4b13796153b2fc6374b95f0b80
7
- data.tar.gz: c5fc27068d43dc4bcf1cffe2262800e7478e40f6066bed0dddf335e1ffe78e2d912ee7897c9a5adf790a67dcc1c35b2fa7771e2eb9bd655b87273aaa0d782af5
6
+ metadata.gz: 37702b890daf5dc75452d610cd9cc70b2cca359b8d8580f842ed770ea24f3447dc6af0db058bc156a07344ad48f6ecbfba83e34427c5258c5270a418fda1145f
7
+ data.tar.gz: 6b658f5e99a0d62939d18f7316e57dc3bc901a6130eb668b24750a6e76ee33a456a732c87db8bb7e71efcbf848e2e1536aff28226b6b33bab4e811aa09e3bc7a
@@ -9,7 +9,9 @@ module USCoreTestKit
9
9
  The US Core Server SHALL:
10
10
  1. Support the US Core Patient resource profile.
11
11
  2. Support at least one additional resource profile from the list of US
12
- Core Profiles.
12
+ Core Profiles.
13
+
14
+ In order to support USCDI, servers must support all USCDI resources.
13
15
  ```
14
16
  )
15
17
  uses_request :capability_statement
@@ -23,30 +25,25 @@ module USCoreTestKit
23
25
  &.each_with_object([]) do |rest, resources|
24
26
  rest.resource.each { |resource| resources << resource.type }
25
27
  end.uniq
26
- supported_profiles =
27
- capability_statement.rest
28
- &.flat_map(&:resource)
29
- &.flat_map { |resource| resource.supportedProfile + [resource.profile] }
30
- &.compact || []
31
- supported_profiles.map! { |profile_url| profile_url.split('|').first }
32
28
 
33
29
  assert supported_resources.include?('Patient'), 'US Core Patient profile not supported'
34
30
 
35
- target_profiles = config.options[:target_profiles]
31
+ us_core_resources = config.options[:us_core_resources]
36
32
 
37
- other_resources = target_profiles.keys.reject { |resource_type| resource_type == 'Patient' }
33
+ other_resources = us_core_resources.reject { |resource_type| resource_type == 'Patient' }
38
34
  other_resources_supported = other_resources.any? { |resource| supported_resources.include? resource }
39
35
  assert other_resources_supported, 'No US Core resources other than Patient are supported'
40
36
 
41
- target_profiles.each do |resource_type, profiles|
42
- next unless supported_resources.include? resource_type
37
+ if config.options[:required_resources].present?
38
+ missing_resources = config.options[:required_resources] - supported_resources
39
+
40
+ missing_resource_list =
41
+ missing_resources
42
+ .map { |resource| "`#{resource}`" }
43
+ .join(', ')
43
44
 
44
- profiles.each do |profile|
45
- warning do
46
- assert supported_profiles&.include?(profile),
47
- "CapabilityStatement does not claim support for US Core #{resource_type} profile: #{profile}"
48
- end
49
- end
45
+ assert missing_resources.empty?,
46
+ "The CapabilityStatement did not list support for the following resources: #{missing_resource_list}"
50
47
  end
51
48
  end
52
49
  end
@@ -102,7 +102,7 @@ module USCoreTestKit
102
102
 
103
103
  test from: :us_core_profile_support do
104
104
  config(
105
- options: { target_profiles: PROFILES }
105
+ options: { us_core_resources: PROFILES.keys }
106
106
  )
107
107
  end
108
108
  end
@@ -106,7 +106,7 @@ module USCoreTestKit
106
106
 
107
107
  test from: :us_core_profile_support do
108
108
  config(
109
- options: { target_profiles: PROFILES }
109
+ options: { us_core_resources: PROFILES.keys }
110
110
  )
111
111
  end
112
112
 
@@ -118,7 +118,7 @@ module USCoreTestKit
118
118
 
119
119
  test from: :us_core_profile_support do
120
120
  config(
121
- options: { target_profiles: PROFILES }
121
+ options: { us_core_resources: PROFILES.keys }
122
122
  )
123
123
  end
124
124
 
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within AllergyIntolerance resources can be read'
10
+ title 'MustSupport references within AllergyIntolerance resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * AllergyIntolerance.patient
17
21
  )
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within Observation resources can be read'
10
+ title 'MustSupport references within Observation resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * Observation.subject
17
21
  )
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within Observation resources can be read'
10
+ title 'MustSupport references within Observation resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * Observation.subject
17
21
  )
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within Observation resources can be read'
10
+ title 'MustSupport references within Observation resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * Observation.subject
17
21
  )
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within Observation resources can be read'
10
+ title 'MustSupport references within Observation resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * Observation.subject
17
21
  )
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within CarePlan resources can be read'
10
+ title 'MustSupport references within CarePlan resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * CarePlan.subject
17
21
  )
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within CareTeam resources can be read'
10
+ title 'MustSupport references within CareTeam resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * CareTeam.participant.member
17
21
  * CareTeam.subject
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within Condition resources can be read'
10
+ title 'MustSupport references within Condition resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * Condition.subject
17
21
  )
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within Device resources can be read'
10
+ title 'MustSupport references within Device resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * Device.patient
17
21
  )
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within DiagnosticReport resources can be read'
10
+ title 'MustSupport references within DiagnosticReport resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * DiagnosticReport.performer
17
21
  * DiagnosticReport.result
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within DiagnosticReport resources can be read'
10
+ title 'MustSupport references within DiagnosticReport resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * DiagnosticReport.encounter
17
21
  * DiagnosticReport.performer
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within DocumentReference resources can be read'
10
+ title 'MustSupport references within DocumentReference resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * DocumentReference.author
17
21
  * DocumentReference.context.encounter
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within Encounter resources can be read'
10
+ title 'MustSupport references within Encounter resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * Encounter.location.location
17
21
  * Encounter.participant.individual
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within Goal resources can be read'
10
+ title 'MustSupport references within Goal resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * Goal.subject
17
21
  )
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within Observation resources can be read'
10
+ title 'MustSupport references within Observation resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * Observation.subject
17
21
  )
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within Observation resources can be read'
10
+ title 'MustSupport references within Observation resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * Observation.subject
17
21
  )
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within Immunization resources can be read'
10
+ title 'MustSupport references within Immunization resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * Immunization.patient
17
21
  )
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within MedicationRequest resources can be read'
10
+ title 'MustSupport references within MedicationRequest resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * MedicationRequest.encounter
17
21
  * MedicationRequest.medication[x]
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within Observation resources can be read'
10
+ title 'MustSupport references within Observation resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * Observation.subject
17
21
  )
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within Observation resources can be read'
10
+ title 'MustSupport references within Observation resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * Observation.subject
17
21
  )
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within Observation resources can be read'
10
+ title 'MustSupport references within Observation resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * Observation.subject
17
21
  )
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within Procedure resources can be read'
10
+ title 'MustSupport references within Procedure resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * Procedure.subject
17
21
  )
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within Provenance resources can be read'
10
+ title 'MustSupport references within Provenance resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * Provenance.agent.onBehalfOf
17
21
  * Provenance.agent.who
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within Observation resources can be read'
10
+ title 'MustSupport references within Observation resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * Observation.subject
17
21
  )
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within Observation resources can be read'
10
+ title 'MustSupport references within Observation resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * Observation.subject
17
21
  )
@@ -7,11 +7,15 @@ module USCoreTestKit
7
7
  include USCoreTestKit::ReferenceResolutionTest
8
8
  include ResourceList
9
9
 
10
- title 'MustSupport references within Observation resources can be read'
10
+ title 'MustSupport references within Observation resources are valid'
11
11
  description %(
12
12
  This test will attempt to read external references provided within elements
13
- marked as 'MustSupport', if any are available. Elements which may provide
14
- external references include:
13
+ marked as 'MustSupport', if any are available.
14
+
15
+ It verifies that at least one external reference for each MustSupport Reference element
16
+ can be accessed by the test client, and conforms to corresponding US Core profile.
17
+
18
+ Elements which may provide external references include:
15
19
 
16
20
  * Observation.subject
17
21
  )
@@ -54,8 +54,8 @@ module USCoreTestKit
54
54
  version VERSION
55
55
 
56
56
  VALIDATION_MESSAGE_FILTERS = [
57
- %r{Sub-extension url 'introspect' is not defined by the Extension http://fhir-registry\.smarthealthit\.org/StructureDefinition/oauth-uris$},
58
- %r{Sub-extension url 'revoke' is not defined by the Extension http://fhir-registry\.smarthealthit\.org/StructureDefinition/oauth-uris$},
57
+ %r{Sub-extension url 'introspect' is not defined by the Extension http://fhir-registry\.smarthealthit\.org/StructureDefinition/oauth-uris},
58
+ %r{Sub-extension url 'revoke' is not defined by the Extension http://fhir-registry\.smarthealthit\.org/StructureDefinition/oauth-uris},
59
59
  /Observation\.effective\.ofType\(Period\): .*vs-1:/, # Invalid invariant in FHIR v4.0.1
60
60
  /Observation\.effective\.ofType\(Period\): .*us-core-1:/, # Invalid invariant in US Core v3.1.1
61
61
  /Provenance.agent\[\d*\]: Rule provenance-1/ #Invalid invariant in US Core v5.0.1