us_core_test_kit 0.2.2 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/lib/us_core_test_kit/fhir_resource_navigation.rb +11 -3
  3. data/lib/us_core_test_kit/generated/v3.1.1/allergy_intolerance/allergy_intolerance_validation_test.rb +1 -0
  4. data/lib/us_core_test_kit/generated/v3.1.1/allergy_intolerance/metadata.yml +1 -0
  5. data/lib/us_core_test_kit/generated/v3.1.1/bodyheight/bodyheight_validation_test.rb +1 -0
  6. data/lib/us_core_test_kit/generated/v3.1.1/bodyheight/metadata.yml +1 -0
  7. data/lib/us_core_test_kit/generated/v3.1.1/bodytemp/bodytemp_validation_test.rb +1 -0
  8. data/lib/us_core_test_kit/generated/v3.1.1/bodytemp/metadata.yml +1 -0
  9. data/lib/us_core_test_kit/generated/v3.1.1/bodyweight/bodyweight_validation_test.rb +1 -0
  10. data/lib/us_core_test_kit/generated/v3.1.1/bodyweight/metadata.yml +1 -0
  11. data/lib/us_core_test_kit/generated/v3.1.1/bp/bp_validation_test.rb +1 -0
  12. data/lib/us_core_test_kit/generated/v3.1.1/bp/metadata.yml +1 -0
  13. data/lib/us_core_test_kit/generated/v3.1.1/care_plan/care_plan_validation_test.rb +1 -0
  14. data/lib/us_core_test_kit/generated/v3.1.1/care_plan/metadata.yml +1 -0
  15. data/lib/us_core_test_kit/generated/v3.1.1/care_team/care_team_validation_test.rb +1 -0
  16. data/lib/us_core_test_kit/generated/v3.1.1/care_team/metadata.yml +1 -0
  17. data/lib/us_core_test_kit/generated/v3.1.1/condition/condition_validation_test.rb +1 -0
  18. data/lib/us_core_test_kit/generated/v3.1.1/condition/metadata.yml +1 -0
  19. data/lib/us_core_test_kit/generated/v3.1.1/device/device_must_support_test.rb +1 -2
  20. data/lib/us_core_test_kit/generated/v3.1.1/device/device_validation_test.rb +1 -0
  21. data/lib/us_core_test_kit/generated/v3.1.1/device/metadata.yml +1 -0
  22. data/lib/us_core_test_kit/generated/v3.1.1/diagnostic_report_lab/diagnostic_report_lab_validation_test.rb +1 -0
  23. data/lib/us_core_test_kit/generated/v3.1.1/diagnostic_report_lab/metadata.yml +1 -0
  24. data/lib/us_core_test_kit/generated/v3.1.1/diagnostic_report_note/diagnostic_report_note_validation_test.rb +1 -0
  25. data/lib/us_core_test_kit/generated/v3.1.1/diagnostic_report_note/metadata.yml +1 -0
  26. data/lib/us_core_test_kit/generated/v3.1.1/document_reference/document_reference_must_support_test.rb +1 -2
  27. data/lib/us_core_test_kit/generated/v3.1.1/document_reference/document_reference_validation_test.rb +1 -0
  28. data/lib/us_core_test_kit/generated/v3.1.1/document_reference/metadata.yml +1 -0
  29. data/lib/us_core_test_kit/generated/v3.1.1/encounter/encounter_validation_test.rb +1 -0
  30. data/lib/us_core_test_kit/generated/v3.1.1/encounter/metadata.yml +1 -0
  31. data/lib/us_core_test_kit/generated/v3.1.1/goal/goal_validation_test.rb +1 -0
  32. data/lib/us_core_test_kit/generated/v3.1.1/goal/metadata.yml +1 -0
  33. data/lib/us_core_test_kit/generated/v3.1.1/head_circumference/head_circumference_validation_test.rb +1 -0
  34. data/lib/us_core_test_kit/generated/v3.1.1/head_circumference/metadata.yml +1 -0
  35. data/lib/us_core_test_kit/generated/v3.1.1/heartrate/heartrate_validation_test.rb +1 -0
  36. data/lib/us_core_test_kit/generated/v3.1.1/heartrate/metadata.yml +1 -0
  37. data/lib/us_core_test_kit/generated/v3.1.1/immunization/immunization_validation_test.rb +1 -0
  38. data/lib/us_core_test_kit/generated/v3.1.1/immunization/metadata.yml +1 -0
  39. data/lib/us_core_test_kit/generated/v3.1.1/medication_request/medication_request_validation_test.rb +1 -0
  40. data/lib/us_core_test_kit/generated/v3.1.1/medication_request/medication_validation_test.rb +1 -0
  41. data/lib/us_core_test_kit/generated/v3.1.1/medication_request/metadata.yml +1 -0
  42. data/lib/us_core_test_kit/generated/v3.1.1/metadata.yml +32 -0
  43. data/lib/us_core_test_kit/generated/v3.1.1/observation_lab/metadata.yml +1 -0
  44. data/lib/us_core_test_kit/generated/v3.1.1/observation_lab/observation_lab_validation_test.rb +1 -0
  45. data/lib/us_core_test_kit/generated/v3.1.1/organization/metadata.yml +1 -0
  46. data/lib/us_core_test_kit/generated/v3.1.1/organization/organization_validation_test.rb +1 -0
  47. data/lib/us_core_test_kit/generated/v3.1.1/patient/metadata.yml +1 -0
  48. data/lib/us_core_test_kit/generated/v3.1.1/patient/patient_validation_test.rb +1 -0
  49. data/lib/us_core_test_kit/generated/v3.1.1/pediatric_bmi_for_age/metadata.yml +1 -0
  50. data/lib/us_core_test_kit/generated/v3.1.1/pediatric_bmi_for_age/pediatric_bmi_for_age_validation_test.rb +1 -0
  51. data/lib/us_core_test_kit/generated/v3.1.1/pediatric_weight_for_height/metadata.yml +1 -0
  52. data/lib/us_core_test_kit/generated/v3.1.1/pediatric_weight_for_height/pediatric_weight_for_height_validation_test.rb +1 -0
  53. data/lib/us_core_test_kit/generated/v3.1.1/practitioner/metadata.yml +1 -0
  54. data/lib/us_core_test_kit/generated/v3.1.1/practitioner/practitioner_validation_test.rb +1 -0
  55. data/lib/us_core_test_kit/generated/v3.1.1/procedure/metadata.yml +1 -0
  56. data/lib/us_core_test_kit/generated/v3.1.1/procedure/procedure_validation_test.rb +1 -0
  57. data/lib/us_core_test_kit/generated/v3.1.1/provenance/metadata.yml +1 -0
  58. data/lib/us_core_test_kit/generated/v3.1.1/provenance/provenance_validation_test.rb +1 -0
  59. data/lib/us_core_test_kit/generated/v3.1.1/pulse_oximetry/metadata.yml +1 -0
  60. data/lib/us_core_test_kit/generated/v3.1.1/pulse_oximetry/pulse_oximetry_validation_test.rb +1 -0
  61. data/lib/us_core_test_kit/generated/v3.1.1/resprate/metadata.yml +1 -0
  62. data/lib/us_core_test_kit/generated/v3.1.1/resprate/resprate_validation_test.rb +1 -0
  63. data/lib/us_core_test_kit/generated/v3.1.1/smokingstatus/metadata.yml +1 -0
  64. data/lib/us_core_test_kit/generated/v3.1.1/smokingstatus/smokingstatus_validation_test.rb +1 -0
  65. data/lib/us_core_test_kit/generated/v3.1.1/us_core_test_suite.rb +2 -2
  66. data/lib/us_core_test_kit/generated/v4.0.0/allergy_intolerance/allergy_intolerance_validation_test.rb +1 -0
  67. data/lib/us_core_test_kit/generated/v4.0.0/allergy_intolerance/metadata.yml +1 -0
  68. data/lib/us_core_test_kit/generated/v4.0.0/blood_pressure/blood_pressure_validation_test.rb +1 -0
  69. data/lib/us_core_test_kit/generated/v4.0.0/blood_pressure/metadata.yml +1 -0
  70. data/lib/us_core_test_kit/generated/v4.0.0/bmi/bmi_validation_test.rb +1 -0
  71. data/lib/us_core_test_kit/generated/v4.0.0/bmi/metadata.yml +1 -0
  72. data/lib/us_core_test_kit/generated/v4.0.0/body_height/body_height_validation_test.rb +1 -0
  73. data/lib/us_core_test_kit/generated/v4.0.0/body_height/metadata.yml +1 -0
  74. data/lib/us_core_test_kit/generated/v4.0.0/body_temperature/body_temperature_validation_test.rb +1 -0
  75. data/lib/us_core_test_kit/generated/v4.0.0/body_temperature/metadata.yml +1 -0
  76. data/lib/us_core_test_kit/generated/v4.0.0/body_weight/body_weight_validation_test.rb +1 -0
  77. data/lib/us_core_test_kit/generated/v4.0.0/body_weight/metadata.yml +1 -0
  78. data/lib/us_core_test_kit/generated/v4.0.0/care_plan/care_plan_validation_test.rb +1 -0
  79. data/lib/us_core_test_kit/generated/v4.0.0/care_plan/metadata.yml +1 -0
  80. data/lib/us_core_test_kit/generated/v4.0.0/care_team/care_team_validation_test.rb +1 -0
  81. data/lib/us_core_test_kit/generated/v4.0.0/care_team/metadata.yml +1 -0
  82. data/lib/us_core_test_kit/generated/v4.0.0/condition/condition_validation_test.rb +1 -0
  83. data/lib/us_core_test_kit/generated/v4.0.0/condition/metadata.yml +1 -0
  84. data/lib/us_core_test_kit/generated/v4.0.0/device/device_validation_test.rb +1 -0
  85. data/lib/us_core_test_kit/generated/v4.0.0/device/metadata.yml +1 -0
  86. data/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_lab/diagnostic_report_lab_validation_test.rb +1 -0
  87. data/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_lab/metadata.yml +1 -0
  88. data/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_note/diagnostic_report_note_validation_test.rb +1 -0
  89. data/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_note/metadata.yml +1 -0
  90. data/lib/us_core_test_kit/generated/v4.0.0/document_reference/document_reference_must_support_test.rb +1 -2
  91. data/lib/us_core_test_kit/generated/v4.0.0/document_reference/document_reference_validation_test.rb +1 -0
  92. data/lib/us_core_test_kit/generated/v4.0.0/document_reference/metadata.yml +1 -0
  93. data/lib/us_core_test_kit/generated/v4.0.0/encounter/encounter_must_support_test.rb +2 -4
  94. data/lib/us_core_test_kit/generated/v4.0.0/encounter/encounter_validation_test.rb +1 -0
  95. data/lib/us_core_test_kit/generated/v4.0.0/encounter/metadata.yml +1 -0
  96. data/lib/us_core_test_kit/generated/v4.0.0/goal/goal_validation_test.rb +1 -0
  97. data/lib/us_core_test_kit/generated/v4.0.0/goal/metadata.yml +1 -0
  98. data/lib/us_core_test_kit/generated/v4.0.0/head_circumference/head_circumference_validation_test.rb +1 -0
  99. data/lib/us_core_test_kit/generated/v4.0.0/head_circumference/metadata.yml +1 -0
  100. data/lib/us_core_test_kit/generated/v4.0.0/head_circumference_percentile/head_circumference_percentile_validation_test.rb +1 -0
  101. data/lib/us_core_test_kit/generated/v4.0.0/head_circumference_percentile/metadata.yml +1 -0
  102. data/lib/us_core_test_kit/generated/v4.0.0/heart_rate/heart_rate_validation_test.rb +1 -0
  103. data/lib/us_core_test_kit/generated/v4.0.0/heart_rate/metadata.yml +1 -0
  104. data/lib/us_core_test_kit/generated/v4.0.0/immunization/immunization_validation_test.rb +1 -0
  105. data/lib/us_core_test_kit/generated/v4.0.0/immunization/metadata.yml +1 -0
  106. data/lib/us_core_test_kit/generated/v4.0.0/medication_request/medication_request_must_support_test.rb +1 -2
  107. data/lib/us_core_test_kit/generated/v4.0.0/medication_request/medication_request_validation_test.rb +1 -0
  108. data/lib/us_core_test_kit/generated/v4.0.0/medication_request/medication_validation_test.rb +1 -0
  109. data/lib/us_core_test_kit/generated/v4.0.0/medication_request/metadata.yml +1 -0
  110. data/lib/us_core_test_kit/generated/v4.0.0/metadata.yml +47 -2
  111. data/lib/us_core_test_kit/generated/v4.0.0/observation_lab/metadata.yml +1 -0
  112. data/lib/us_core_test_kit/generated/v4.0.0/observation_lab/observation_lab_validation_test.rb +1 -0
  113. data/lib/us_core_test_kit/generated/v4.0.0/organization/metadata.yml +1 -0
  114. data/lib/us_core_test_kit/generated/v4.0.0/organization/organization_validation_test.rb +1 -0
  115. data/lib/us_core_test_kit/generated/v4.0.0/patient/metadata.yml +13 -1
  116. data/lib/us_core_test_kit/generated/v4.0.0/patient/patient_must_support_test.rb +8 -6
  117. data/lib/us_core_test_kit/generated/v4.0.0/patient/patient_validation_test.rb +1 -0
  118. data/lib/us_core_test_kit/generated/v4.0.0/pediatric_bmi_for_age/metadata.yml +1 -0
  119. data/lib/us_core_test_kit/generated/v4.0.0/pediatric_bmi_for_age/pediatric_bmi_for_age_validation_test.rb +1 -0
  120. data/lib/us_core_test_kit/generated/v4.0.0/pediatric_weight_for_height/metadata.yml +1 -0
  121. data/lib/us_core_test_kit/generated/v4.0.0/pediatric_weight_for_height/pediatric_weight_for_height_validation_test.rb +1 -0
  122. data/lib/us_core_test_kit/generated/v4.0.0/practitioner/metadata.yml +1 -0
  123. data/lib/us_core_test_kit/generated/v4.0.0/practitioner/practitioner_validation_test.rb +1 -0
  124. data/lib/us_core_test_kit/generated/v4.0.0/procedure/metadata.yml +1 -0
  125. data/lib/us_core_test_kit/generated/v4.0.0/procedure/procedure_validation_test.rb +1 -0
  126. data/lib/us_core_test_kit/generated/v4.0.0/provenance/metadata.yml +1 -1
  127. data/lib/us_core_test_kit/generated/v4.0.0/provenance/provenance_validation_test.rb +1 -0
  128. data/lib/us_core_test_kit/generated/v4.0.0/pulse_oximetry/metadata.yml +1 -0
  129. data/lib/us_core_test_kit/generated/v4.0.0/pulse_oximetry/pulse_oximetry_validation_test.rb +1 -0
  130. data/lib/us_core_test_kit/generated/v4.0.0/respiratory_rate/metadata.yml +1 -0
  131. data/lib/us_core_test_kit/generated/v4.0.0/respiratory_rate/respiratory_rate_validation_test.rb +1 -0
  132. data/lib/us_core_test_kit/generated/v4.0.0/smokingstatus/metadata.yml +1 -0
  133. data/lib/us_core_test_kit/generated/v4.0.0/smokingstatus/smokingstatus_validation_test.rb +1 -0
  134. data/lib/us_core_test_kit/generated/v4.0.0/us_core_test_suite.rb +2 -2
  135. data/lib/us_core_test_kit/generator/group_metadata.rb +1 -0
  136. data/lib/us_core_test_kit/generator/group_metadata_extractor.rb +5 -0
  137. data/lib/us_core_test_kit/generator/ig_loader.rb +12 -5
  138. data/lib/us_core_test_kit/generator/must_support_metadata_extractor.rb +23 -22
  139. data/lib/us_core_test_kit/generator/must_support_test_generator.rb +26 -3
  140. data/lib/us_core_test_kit/generator/validation_test_generator.rb +4 -0
  141. data/lib/us_core_test_kit/generator.rb +9 -14
  142. data/lib/us_core_test_kit/igs/{v311 → us_core_311}/StructureDefinition-bodyheight.json +0 -0
  143. data/lib/us_core_test_kit/igs/{v311 → us_core_311}/StructureDefinition-bodytemp.json +0 -0
  144. data/lib/us_core_test_kit/igs/{v311 → us_core_311}/StructureDefinition-bodyweight.json +0 -0
  145. data/lib/us_core_test_kit/igs/{v311 → us_core_311}/StructureDefinition-bp.json +0 -0
  146. data/lib/us_core_test_kit/igs/{v311 → us_core_311}/StructureDefinition-heartrate.json +0 -0
  147. data/lib/us_core_test_kit/igs/{v311 → us_core_311}/StructureDefinition-resprate.json +0 -0
  148. data/lib/us_core_test_kit/igs/{v311/package.tgz → us_core_311.tgz} +0 -0
  149. data/lib/us_core_test_kit/igs/{v400/package.tgz → us_core_400.tgz} +0 -0
  150. data/lib/us_core_test_kit/must_support_test.rb +25 -3
  151. data/lib/us_core_test_kit/search_test.rb +107 -48
  152. data/lib/us_core_test_kit/validation_test.rb +4 -2
  153. data/lib/us_core_test_kit/version.rb +3 -1
  154. metadata +13 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed2e43ac18efc613d5e8e4deaa2e27c90b3d14956676be3009cfcaf023316bfc
4
- data.tar.gz: 602336f9a94c5ba3c89d0a6295543e9fccace4fd1ed96f8e296aca2c83bb4a2c
3
+ metadata.gz: 153661141de8fedd5f0bd460226575041d132ea1ea8563ea5dd91043088367ca
4
+ data.tar.gz: 64e416316f73ba2f244ef366a124f9e53fc46abfc3a499f536f5f4f458945309
5
5
  SHA512:
6
- metadata.gz: 6664094195116bde7e6483e0e6baf23f93e3515607502b74c94b18608e675925002a506ba29e31c8252b6ea583a499fb922f9b7352b604ce4569522cd8fbbfa8
7
- data.tar.gz: 9f52ccb0ac909060103b5e568f480f71ae40ba4d07affbcdd7bf175532e1b359be3152b87edd538d3bc8be7bdb2f8ae580629474e6c3f4293e1cccf09bc37a60
6
+ metadata.gz: 0043a4b23b90ea9395d65f19ff4f6798fabaf55873159a0e52fb04b4381b1ec36717663b3e3734a60c312620d70b1280f7f73f1a1abe45fa26599764facd1e6d
7
+ data.tar.gz: 7808a0a2777e0c260007acfaedf42481cfca1773ca78b6c0de775e3a4b6599532b4f9bbbc6d4840ac5636ba5f72d952304f0323cfbcb9dda1fc7bd88f199243a
@@ -1,5 +1,7 @@
1
1
  module USCoreTestKit
2
2
  module FHIRResourceNavigation
3
+ DAR_EXTENSION_URL = 'http://hl7.org/fhir/StructureDefinition/data-absent-reason'.freeze
4
+
3
5
  def resolve_path(elements, path)
4
6
  elements = Array.wrap(elements)
5
7
  return elements if path.blank?
@@ -14,12 +16,18 @@ module USCoreTestKit
14
16
  end.compact
15
17
  end
16
18
 
17
- def find_a_value_at(element, path)
19
+ def find_a_value_at(element, path, include_dar: false)
18
20
  return nil if element.nil?
19
21
 
20
22
  elements = Array.wrap(element)
21
23
 
22
24
  if path.empty?
25
+ unless include_dar
26
+ elements = elements.reject do |el|
27
+ el.respond_to?(:extension) && el.extension.any? { |ext| ext.url == DAR_EXTENSION_URL}
28
+ end
29
+ end
30
+
23
31
  return elements.find { |el| yield(el) } if block_given?
24
32
 
25
33
  return elements.first
@@ -43,9 +51,9 @@ module USCoreTestKit
43
51
  child = get_next_value(element, segment)
44
52
  element_found =
45
53
  if block_given?
46
- find_a_value_at(child, remaining_path) { |value_found| yield(value_found) }
54
+ find_a_value_at(child, remaining_path, include_dar: include_dar) { |value_found| yield(value_found) }
47
55
  else
48
- find_a_value_at(child, remaining_path)
56
+ find_a_value_at(child, remaining_path, include_dar: include_dar)
49
57
  end
50
58
 
51
59
  return element_found if element_found.present? || element_found == false
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance',
35
+ '3.1.1',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: AllergyIntolerance
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance
8
8
  :profile_name: US Core AllergyIntolerance Profile
9
+ :profile_version: 3.1.1
9
10
  :title: AllergyIntolerance
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core AllergyIntolerance Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/StructureDefinition/bodyheight',
35
+ '4.0.1',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Observation
7
7
  :profile_url: http://hl7.org/fhir/StructureDefinition/bodyheight
8
8
  :profile_name: Observation Body Height Profile
9
+ :profile_version: 4.0.1
9
10
  :title: Observation Body Height
10
11
  :short_description: Verify support for the server capabilities required by the Observation
11
12
  Body Height Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/StructureDefinition/bodytemp',
35
+ '4.0.1',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Observation
7
7
  :profile_url: http://hl7.org/fhir/StructureDefinition/bodytemp
8
8
  :profile_name: Observation Body Temperature Profile
9
+ :profile_version: 4.0.1
9
10
  :title: Observation Body Temperature
10
11
  :short_description: Verify support for the server capabilities required by the Observation
11
12
  Body Temperature Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/StructureDefinition/bodyweight',
35
+ '4.0.1',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Observation
7
7
  :profile_url: http://hl7.org/fhir/StructureDefinition/bodyweight
8
8
  :profile_name: Observation Body Weight Profile
9
+ :profile_version: 4.0.1
9
10
  :title: Observation Body Weight
10
11
  :short_description: Verify support for the server capabilities required by the Observation
11
12
  Body Weight Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/StructureDefinition/bp',
35
+ '4.0.1',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Observation
7
7
  :profile_url: http://hl7.org/fhir/StructureDefinition/bp
8
8
  :profile_name: Observation Blood Pressure Profile
9
+ :profile_version: 4.0.1
9
10
  :title: Observation Blood Pressure
10
11
  :short_description: Verify support for the server capabilities required by the Observation
11
12
  Blood Pressure Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan',
35
+ '3.1.1',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: CarePlan
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan
8
8
  :profile_name: US Core CarePlan Profile
9
+ :profile_version: 3.1.1
9
10
  :title: CarePlan
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core CarePlan Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-careteam',
35
+ '3.1.1',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: CareTeam
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-careteam
8
8
  :profile_name: US Core CareTeam Profile
9
+ :profile_version: 3.1.1
9
10
  :title: CareTeam
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core CareTeam Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition',
35
+ '3.1.1',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Condition
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition
8
8
  :profile_name: US Core Condition Profile
9
+ :profile_version: 3.1.1
9
10
  :title: Condition
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core Condition Profile.
@@ -20,8 +20,7 @@ module USCoreTestKit
20
20
  * Device.serialNumber
21
21
  * Device.type
22
22
  * Device.udiCarrier
23
- * Device.udiCarrier.carrierAIDC
24
- * Device.udiCarrier.carrierHRF
23
+ * Device.udiCarrier.carrierAIDC or Device.udiCarrier.carrierHRF
25
24
  * Device.udiCarrier.deviceIdentifier
26
25
  )
27
26
 
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device',
35
+ '3.1.1',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Device
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device
8
8
  :profile_name: US Core Implantable Device Profile
9
+ :profile_version: 3.1.1
9
10
  :title: Implantable Device
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core Implantable Device Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab',
35
+ '3.1.1',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: DiagnosticReport
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab
8
8
  :profile_name: US Core DiagnosticReport Profile for Laboratory Results Reporting
9
+ :profile_version: 3.1.1
9
10
  :title: DiagnosticReport for Laboratory Results Reporting
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core DiagnosticReport Profile for Laboratory Results Reporting.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note',
35
+ '3.1.1',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: DiagnosticReport
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note
8
8
  :profile_name: US Core DiagnosticReport Profile for Report and Note exchange
9
+ :profile_version: 3.1.1
9
10
  :title: DiagnosticReport for Report and Note exchange
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core DiagnosticReport Profile for Report and Note exchange.
@@ -17,8 +17,7 @@ module USCoreTestKit
17
17
  * DocumentReference.content
18
18
  * DocumentReference.content.attachment
19
19
  * DocumentReference.content.attachment.contentType
20
- * DocumentReference.content.attachment.data
21
- * DocumentReference.content.attachment.url
20
+ * DocumentReference.content.attachment.data or DocumentReference.content.attachment.url
22
21
  * DocumentReference.content.format
23
22
  * DocumentReference.context
24
23
  * DocumentReference.context.encounter
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference',
35
+ '3.1.1',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: DocumentReference
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference
8
8
  :profile_name: US Core DocumentReference Profile
9
+ :profile_version: 3.1.1
9
10
  :title: DocumentReference
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core DocumentReference Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter',
35
+ '3.1.1',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Encounter
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter
8
8
  :profile_name: US Core Encounter Profile
9
+ :profile_version: 3.1.1
9
10
  :title: Encounter
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core Encounter Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-goal',
35
+ '3.1.1',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Goal
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-goal
8
8
  :profile_name: US Core Goal Profile
9
+ :profile_version: 3.1.1
9
10
  :title: Goal
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core Goal Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/head-occipital-frontal-circumference-percentile',
35
+ '3.1.1',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Observation
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/head-occipital-frontal-circumference-percentile
8
8
  :profile_name: US Core Pediatric Head Occipital-frontal Circumference Percentile Profile
9
+ :profile_version: 3.1.1
9
10
  :title: Pediatric Head Occipital-frontal Circumference Percentile
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core Pediatric Head Occipital-frontal Circumference Percentile Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/StructureDefinition/heartrate',
35
+ '4.0.1',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Observation
7
7
  :profile_url: http://hl7.org/fhir/StructureDefinition/heartrate
8
8
  :profile_name: Observation Heart Rate Profile
9
+ :profile_version: 4.0.1
9
10
  :title: Observation Heart Rate
10
11
  :short_description: Verify support for the server capabilities required by the Observation
11
12
  Heart Rate Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization',
35
+ '3.1.1',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Immunization
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization
8
8
  :profile_name: US Core Immunization Profile
9
+ :profile_version: 3.1.1
9
10
  :title: Immunization
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core Immunization Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest',
35
+ '3.1.1',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -31,6 +31,7 @@ fail if their code/system are not found in the valueset.
31
31
  run do
32
32
  perform_validation_test(scratch_resources[:all] || [],
33
33
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication',
34
+ '3.1.1',
34
35
  skip_if_empty: false)
35
36
  end
36
37
  end
@@ -6,6 +6,7 @@
6
6
  :resource: MedicationRequest
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
8
8
  :profile_name: US Core MedicationRequest Profile
9
+ :profile_version: 3.1.1
9
10
  :title: MedicationRequest
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core MedicationRequest Profile.