us_core_test_kit 0.6.0 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (347) hide show
  1. checksums.yaml +4 -4
  2. data/lib/us_core_test_kit/custom_groups/capability_statement/profile_support_test.rb +18 -16
  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/v3.1.1/profile_support_test.rb +51 -0
  5. data/lib/us_core_test_kit/custom_groups/v4.0.0/capability_statement_group.rb +1 -1
  6. data/lib/us_core_test_kit/custom_groups/v5.0.1/capability_statement_group.rb +1 -1
  7. data/lib/us_core_test_kit/custom_groups/v6.1.0/capability_statement_group.rb +1 -1
  8. data/lib/us_core_test_kit/fhir_resource_navigation.rb +76 -8
  9. data/lib/us_core_test_kit/generated/v3.1.1/allergy_intolerance/allergy_intolerance_reference_resolution_test.rb +0 -2
  10. data/lib/us_core_test_kit/generated/v3.1.1/bodyheight/bodyheight_must_support_test.rb +7 -7
  11. data/lib/us_core_test_kit/generated/v3.1.1/bodyheight/bodyheight_reference_resolution_test.rb +0 -2
  12. data/lib/us_core_test_kit/generated/v3.1.1/bodyheight/metadata.yml +11 -9
  13. data/lib/us_core_test_kit/generated/v3.1.1/bodytemp/bodytemp_must_support_test.rb +7 -7
  14. data/lib/us_core_test_kit/generated/v3.1.1/bodytemp/bodytemp_reference_resolution_test.rb +0 -2
  15. data/lib/us_core_test_kit/generated/v3.1.1/bodytemp/metadata.yml +11 -9
  16. data/lib/us_core_test_kit/generated/v3.1.1/bodyweight/bodyweight_must_support_test.rb +7 -7
  17. data/lib/us_core_test_kit/generated/v3.1.1/bodyweight/bodyweight_reference_resolution_test.rb +0 -2
  18. data/lib/us_core_test_kit/generated/v3.1.1/bodyweight/metadata.yml +11 -9
  19. data/lib/us_core_test_kit/generated/v3.1.1/bp/bp_must_support_test.rb +15 -7
  20. data/lib/us_core_test_kit/generated/v3.1.1/bp/bp_reference_resolution_test.rb +0 -2
  21. data/lib/us_core_test_kit/generated/v3.1.1/bp/metadata.yml +25 -12
  22. data/lib/us_core_test_kit/generated/v3.1.1/care_plan/care_plan_reference_resolution_test.rb +0 -2
  23. data/lib/us_core_test_kit/generated/v3.1.1/care_plan/metadata.yml +2 -1
  24. data/lib/us_core_test_kit/generated/v3.1.1/care_team/care_team_reference_resolution_test.rb +0 -2
  25. data/lib/us_core_test_kit/generated/v3.1.1/condition/condition_reference_resolution_test.rb +0 -2
  26. data/lib/us_core_test_kit/generated/v3.1.1/device/device_reference_resolution_test.rb +0 -2
  27. data/lib/us_core_test_kit/generated/v3.1.1/diagnostic_report_lab/diagnostic_report_lab_reference_resolution_test.rb +0 -2
  28. data/lib/us_core_test_kit/generated/v3.1.1/diagnostic_report_lab/metadata.yml +2 -1
  29. data/lib/us_core_test_kit/generated/v3.1.1/diagnostic_report_note/diagnostic_report_note_reference_resolution_test.rb +0 -2
  30. data/lib/us_core_test_kit/generated/v3.1.1/document_reference/document_reference_reference_resolution_test.rb +0 -2
  31. data/lib/us_core_test_kit/generated/v3.1.1/encounter/encounter_reference_resolution_test.rb +0 -2
  32. data/lib/us_core_test_kit/generated/v3.1.1/goal/goal_reference_resolution_test.rb +0 -2
  33. data/lib/us_core_test_kit/generated/v3.1.1/goal/metadata.yml +2 -1
  34. data/lib/us_core_test_kit/generated/v3.1.1/head_circumference/head_circumference_must_support_test.rb +7 -7
  35. data/lib/us_core_test_kit/generated/v3.1.1/head_circumference/head_circumference_reference_resolution_test.rb +0 -2
  36. data/lib/us_core_test_kit/generated/v3.1.1/head_circumference/metadata.yml +11 -9
  37. data/lib/us_core_test_kit/generated/v3.1.1/heartrate/heartrate_must_support_test.rb +7 -7
  38. data/lib/us_core_test_kit/generated/v3.1.1/heartrate/heartrate_reference_resolution_test.rb +0 -2
  39. data/lib/us_core_test_kit/generated/v3.1.1/heartrate/metadata.yml +11 -9
  40. data/lib/us_core_test_kit/generated/v3.1.1/immunization/immunization_reference_resolution_test.rb +0 -2
  41. data/lib/us_core_test_kit/generated/v3.1.1/medication_request/medication_request_reference_resolution_test.rb +0 -2
  42. data/lib/us_core_test_kit/generated/v3.1.1/metadata.yml +166 -121
  43. data/lib/us_core_test_kit/generated/v3.1.1/observation_lab/metadata.yml +2 -1
  44. data/lib/us_core_test_kit/generated/v3.1.1/observation_lab/observation_lab_reference_resolution_test.rb +0 -2
  45. data/lib/us_core_test_kit/generated/v3.1.1/organization/metadata.yml +2 -1
  46. data/lib/us_core_test_kit/generated/v3.1.1/pediatric_bmi_for_age/metadata.yml +11 -9
  47. data/lib/us_core_test_kit/generated/v3.1.1/pediatric_bmi_for_age/pediatric_bmi_for_age_must_support_test.rb +7 -7
  48. data/lib/us_core_test_kit/generated/v3.1.1/pediatric_bmi_for_age/pediatric_bmi_for_age_reference_resolution_test.rb +0 -2
  49. data/lib/us_core_test_kit/generated/v3.1.1/pediatric_weight_for_height/metadata.yml +11 -9
  50. data/lib/us_core_test_kit/generated/v3.1.1/pediatric_weight_for_height/pediatric_weight_for_height_must_support_test.rb +7 -7
  51. data/lib/us_core_test_kit/generated/v3.1.1/pediatric_weight_for_height/pediatric_weight_for_height_reference_resolution_test.rb +0 -2
  52. data/lib/us_core_test_kit/generated/v3.1.1/practitioner/metadata.yml +2 -1
  53. data/lib/us_core_test_kit/generated/v3.1.1/procedure/procedure_reference_resolution_test.rb +0 -2
  54. data/lib/us_core_test_kit/generated/v3.1.1/provenance/metadata.yml +6 -6
  55. data/lib/us_core_test_kit/generated/v3.1.1/provenance/provenance_must_support_test.rb +2 -1
  56. data/lib/us_core_test_kit/generated/v3.1.1/provenance/provenance_reference_resolution_test.rb +0 -2
  57. data/lib/us_core_test_kit/generated/v3.1.1/pulse_oximetry/metadata.yml +33 -24
  58. data/lib/us_core_test_kit/generated/v3.1.1/pulse_oximetry/pulse_oximetry_must_support_test.rb +21 -14
  59. data/lib/us_core_test_kit/generated/v3.1.1/pulse_oximetry/pulse_oximetry_reference_resolution_test.rb +0 -2
  60. data/lib/us_core_test_kit/generated/v3.1.1/resprate/metadata.yml +11 -9
  61. data/lib/us_core_test_kit/generated/v3.1.1/resprate/resprate_must_support_test.rb +7 -7
  62. data/lib/us_core_test_kit/generated/v3.1.1/resprate/resprate_reference_resolution_test.rb +0 -2
  63. data/lib/us_core_test_kit/generated/v3.1.1/smokingstatus/metadata.yml +2 -1
  64. data/lib/us_core_test_kit/generated/v3.1.1/smokingstatus/smokingstatus_reference_resolution_test.rb +0 -2
  65. data/lib/us_core_test_kit/generated/v4.0.0/allergy_intolerance/allergy_intolerance_reference_resolution_test.rb +0 -2
  66. data/lib/us_core_test_kit/generated/v4.0.0/allergy_intolerance/metadata.yml +2 -0
  67. data/lib/us_core_test_kit/generated/v4.0.0/blood_pressure/blood_pressure_must_support_test.rb +15 -8
  68. data/lib/us_core_test_kit/generated/v4.0.0/blood_pressure/blood_pressure_reference_resolution_test.rb +0 -2
  69. data/lib/us_core_test_kit/generated/v4.0.0/blood_pressure/metadata.yml +37 -20
  70. data/lib/us_core_test_kit/generated/v4.0.0/bmi/bmi_must_support_test.rb +7 -7
  71. data/lib/us_core_test_kit/generated/v4.0.0/bmi/bmi_reference_resolution_test.rb +0 -2
  72. data/lib/us_core_test_kit/generated/v4.0.0/bmi/metadata.yml +13 -9
  73. data/lib/us_core_test_kit/generated/v4.0.0/body_height/body_height_must_support_test.rb +7 -7
  74. data/lib/us_core_test_kit/generated/v4.0.0/body_height/body_height_reference_resolution_test.rb +0 -2
  75. data/lib/us_core_test_kit/generated/v4.0.0/body_height/metadata.yml +13 -9
  76. data/lib/us_core_test_kit/generated/v4.0.0/body_temperature/body_temperature_must_support_test.rb +7 -7
  77. data/lib/us_core_test_kit/generated/v4.0.0/body_temperature/body_temperature_reference_resolution_test.rb +0 -2
  78. data/lib/us_core_test_kit/generated/v4.0.0/body_temperature/metadata.yml +13 -9
  79. data/lib/us_core_test_kit/generated/v4.0.0/body_weight/body_weight_must_support_test.rb +7 -7
  80. data/lib/us_core_test_kit/generated/v4.0.0/body_weight/body_weight_reference_resolution_test.rb +0 -2
  81. data/lib/us_core_test_kit/generated/v4.0.0/body_weight/metadata.yml +13 -9
  82. data/lib/us_core_test_kit/generated/v4.0.0/care_plan/care_plan_reference_resolution_test.rb +0 -2
  83. data/lib/us_core_test_kit/generated/v4.0.0/care_plan/metadata.yml +4 -1
  84. data/lib/us_core_test_kit/generated/v4.0.0/care_team/care_team_reference_resolution_test.rb +0 -2
  85. data/lib/us_core_test_kit/generated/v4.0.0/care_team/metadata.yml +2 -0
  86. data/lib/us_core_test_kit/generated/v4.0.0/condition/condition_reference_resolution_test.rb +0 -2
  87. data/lib/us_core_test_kit/generated/v4.0.0/condition/metadata.yml +2 -0
  88. data/lib/us_core_test_kit/generated/v4.0.0/device/device_reference_resolution_test.rb +0 -2
  89. data/lib/us_core_test_kit/generated/v4.0.0/device/metadata.yml +2 -0
  90. data/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_lab/diagnostic_report_lab_reference_resolution_test.rb +0 -2
  91. data/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_lab/metadata.yml +6 -1
  92. data/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_note/diagnostic_report_note_reference_resolution_test.rb +0 -2
  93. data/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_note/metadata.yml +4 -0
  94. data/lib/us_core_test_kit/generated/v4.0.0/document_reference/document_reference_reference_resolution_test.rb +0 -2
  95. data/lib/us_core_test_kit/generated/v4.0.0/document_reference/metadata.yml +4 -0
  96. data/lib/us_core_test_kit/generated/v4.0.0/encounter/encounter_reference_resolution_test.rb +0 -2
  97. data/lib/us_core_test_kit/generated/v4.0.0/encounter/metadata.yml +4 -0
  98. data/lib/us_core_test_kit/generated/v4.0.0/goal/goal_reference_resolution_test.rb +0 -2
  99. data/lib/us_core_test_kit/generated/v4.0.0/goal/metadata.yml +2 -0
  100. data/lib/us_core_test_kit/generated/v4.0.0/head_circumference/head_circumference_must_support_test.rb +7 -7
  101. data/lib/us_core_test_kit/generated/v4.0.0/head_circumference/head_circumference_reference_resolution_test.rb +0 -2
  102. data/lib/us_core_test_kit/generated/v4.0.0/head_circumference/metadata.yml +13 -9
  103. data/lib/us_core_test_kit/generated/v4.0.0/head_circumference_percentile/head_circumference_percentile_must_support_test.rb +7 -7
  104. data/lib/us_core_test_kit/generated/v4.0.0/head_circumference_percentile/head_circumference_percentile_reference_resolution_test.rb +0 -2
  105. data/lib/us_core_test_kit/generated/v4.0.0/head_circumference_percentile/metadata.yml +13 -9
  106. data/lib/us_core_test_kit/generated/v4.0.0/heart_rate/heart_rate_must_support_test.rb +7 -7
  107. data/lib/us_core_test_kit/generated/v4.0.0/heart_rate/heart_rate_reference_resolution_test.rb +0 -2
  108. data/lib/us_core_test_kit/generated/v4.0.0/heart_rate/metadata.yml +13 -9
  109. data/lib/us_core_test_kit/generated/v4.0.0/immunization/immunization_reference_resolution_test.rb +0 -2
  110. data/lib/us_core_test_kit/generated/v4.0.0/immunization/metadata.yml +2 -0
  111. data/lib/us_core_test_kit/generated/v4.0.0/medication_request/medication_request_reference_resolution_test.rb +0 -2
  112. data/lib/us_core_test_kit/generated/v4.0.0/medication_request/metadata.yml +4 -0
  113. data/lib/us_core_test_kit/generated/v4.0.0/metadata.yml +275 -146
  114. data/lib/us_core_test_kit/generated/v4.0.0/observation_lab/metadata.yml +4 -1
  115. data/lib/us_core_test_kit/generated/v4.0.0/observation_lab/observation_lab_reference_resolution_test.rb +0 -2
  116. data/lib/us_core_test_kit/generated/v4.0.0/organization/metadata.yml +2 -1
  117. data/lib/us_core_test_kit/generated/v4.0.0/pediatric_bmi_for_age/metadata.yml +13 -9
  118. data/lib/us_core_test_kit/generated/v4.0.0/pediatric_bmi_for_age/pediatric_bmi_for_age_must_support_test.rb +7 -7
  119. data/lib/us_core_test_kit/generated/v4.0.0/pediatric_bmi_for_age/pediatric_bmi_for_age_reference_resolution_test.rb +0 -2
  120. data/lib/us_core_test_kit/generated/v4.0.0/pediatric_weight_for_height/metadata.yml +13 -9
  121. data/lib/us_core_test_kit/generated/v4.0.0/pediatric_weight_for_height/pediatric_weight_for_height_must_support_test.rb +7 -7
  122. data/lib/us_core_test_kit/generated/v4.0.0/pediatric_weight_for_height/pediatric_weight_for_height_reference_resolution_test.rb +0 -2
  123. data/lib/us_core_test_kit/generated/v4.0.0/practitioner/metadata.yml +2 -1
  124. data/lib/us_core_test_kit/generated/v4.0.0/procedure/metadata.yml +2 -0
  125. data/lib/us_core_test_kit/generated/v4.0.0/procedure/procedure_reference_resolution_test.rb +0 -2
  126. data/lib/us_core_test_kit/generated/v4.0.0/provenance/metadata.yml +8 -6
  127. data/lib/us_core_test_kit/generated/v4.0.0/provenance/provenance_must_support_test.rb +2 -1
  128. data/lib/us_core_test_kit/generated/v4.0.0/provenance/provenance_reference_resolution_test.rb +0 -2
  129. data/lib/us_core_test_kit/generated/v4.0.0/pulse_oximetry/metadata.yml +38 -22
  130. data/lib/us_core_test_kit/generated/v4.0.0/pulse_oximetry/pulse_oximetry_must_support_test.rb +15 -8
  131. data/lib/us_core_test_kit/generated/v4.0.0/pulse_oximetry/pulse_oximetry_reference_resolution_test.rb +0 -2
  132. data/lib/us_core_test_kit/generated/v4.0.0/respiratory_rate/metadata.yml +13 -9
  133. data/lib/us_core_test_kit/generated/v4.0.0/respiratory_rate/respiratory_rate_must_support_test.rb +7 -7
  134. data/lib/us_core_test_kit/generated/v4.0.0/respiratory_rate/respiratory_rate_reference_resolution_test.rb +0 -2
  135. data/lib/us_core_test_kit/generated/v4.0.0/smokingstatus/metadata.yml +8 -3
  136. data/lib/us_core_test_kit/generated/v4.0.0/smokingstatus/smokingstatus_reference_resolution_test.rb +0 -2
  137. data/lib/us_core_test_kit/generated/v5.0.1/allergy_intolerance/allergy_intolerance_reference_resolution_test.rb +0 -2
  138. data/lib/us_core_test_kit/generated/v5.0.1/allergy_intolerance/metadata.yml +2 -0
  139. data/lib/us_core_test_kit/generated/v5.0.1/blood_pressure/blood_pressure_must_support_test.rb +18 -8
  140. data/lib/us_core_test_kit/generated/v5.0.1/blood_pressure/blood_pressure_reference_resolution_test.rb +0 -2
  141. data/lib/us_core_test_kit/generated/v5.0.1/blood_pressure/metadata.yml +40 -20
  142. data/lib/us_core_test_kit/generated/v5.0.1/bmi/bmi_must_support_test.rb +7 -7
  143. data/lib/us_core_test_kit/generated/v5.0.1/bmi/bmi_reference_resolution_test.rb +0 -2
  144. data/lib/us_core_test_kit/generated/v5.0.1/bmi/metadata.yml +13 -9
  145. data/lib/us_core_test_kit/generated/v5.0.1/body_height/body_height_must_support_test.rb +7 -7
  146. data/lib/us_core_test_kit/generated/v5.0.1/body_height/body_height_reference_resolution_test.rb +0 -2
  147. data/lib/us_core_test_kit/generated/v5.0.1/body_height/metadata.yml +13 -9
  148. data/lib/us_core_test_kit/generated/v5.0.1/body_temperature/body_temperature_must_support_test.rb +7 -7
  149. data/lib/us_core_test_kit/generated/v5.0.1/body_temperature/body_temperature_reference_resolution_test.rb +0 -2
  150. data/lib/us_core_test_kit/generated/v5.0.1/body_temperature/metadata.yml +13 -9
  151. data/lib/us_core_test_kit/generated/v5.0.1/body_weight/body_weight_must_support_test.rb +7 -7
  152. data/lib/us_core_test_kit/generated/v5.0.1/body_weight/body_weight_reference_resolution_test.rb +0 -2
  153. data/lib/us_core_test_kit/generated/v5.0.1/body_weight/metadata.yml +13 -9
  154. data/lib/us_core_test_kit/generated/v5.0.1/care_plan/care_plan_reference_resolution_test.rb +0 -2
  155. data/lib/us_core_test_kit/generated/v5.0.1/care_plan/metadata.yml +4 -1
  156. data/lib/us_core_test_kit/generated/v5.0.1/care_team/care_team_reference_resolution_test.rb +0 -2
  157. data/lib/us_core_test_kit/generated/v5.0.1/care_team/metadata.yml +2 -0
  158. data/lib/us_core_test_kit/generated/v5.0.1/condition_encounter_diagnosis/condition_encounter_diagnosis_reference_resolution_test.rb +0 -2
  159. data/lib/us_core_test_kit/generated/v5.0.1/condition_encounter_diagnosis/metadata.yml +6 -1
  160. data/lib/us_core_test_kit/generated/v5.0.1/condition_problems_health_concerns/condition_problems_health_concerns_reference_resolution_test.rb +0 -2
  161. data/lib/us_core_test_kit/generated/v5.0.1/condition_problems_health_concerns/metadata.yml +6 -2
  162. data/lib/us_core_test_kit/generated/v5.0.1/device/device_reference_resolution_test.rb +0 -2
  163. data/lib/us_core_test_kit/generated/v5.0.1/device/metadata.yml +2 -0
  164. data/lib/us_core_test_kit/generated/v5.0.1/diagnostic_report_lab/diagnostic_report_lab_reference_resolution_test.rb +0 -2
  165. data/lib/us_core_test_kit/generated/v5.0.1/diagnostic_report_lab/metadata.yml +6 -1
  166. data/lib/us_core_test_kit/generated/v5.0.1/diagnostic_report_note/diagnostic_report_note_reference_resolution_test.rb +0 -2
  167. data/lib/us_core_test_kit/generated/v5.0.1/diagnostic_report_note/metadata.yml +6 -1
  168. data/lib/us_core_test_kit/generated/v5.0.1/document_reference/document_reference_reference_resolution_test.rb +0 -2
  169. data/lib/us_core_test_kit/generated/v5.0.1/document_reference/metadata.yml +6 -1
  170. data/lib/us_core_test_kit/generated/v5.0.1/encounter/encounter_reference_resolution_test.rb +0 -2
  171. data/lib/us_core_test_kit/generated/v5.0.1/encounter/metadata.yml +4 -0
  172. data/lib/us_core_test_kit/generated/v5.0.1/goal/goal_reference_resolution_test.rb +0 -2
  173. data/lib/us_core_test_kit/generated/v5.0.1/goal/metadata.yml +2 -0
  174. data/lib/us_core_test_kit/generated/v5.0.1/head_circumference/head_circumference_must_support_test.rb +7 -7
  175. data/lib/us_core_test_kit/generated/v5.0.1/head_circumference/head_circumference_reference_resolution_test.rb +0 -2
  176. data/lib/us_core_test_kit/generated/v5.0.1/head_circumference/metadata.yml +13 -9
  177. data/lib/us_core_test_kit/generated/v5.0.1/head_circumference_percentile/head_circumference_percentile_must_support_test.rb +7 -7
  178. data/lib/us_core_test_kit/generated/v5.0.1/head_circumference_percentile/head_circumference_percentile_reference_resolution_test.rb +0 -2
  179. data/lib/us_core_test_kit/generated/v5.0.1/head_circumference_percentile/metadata.yml +13 -9
  180. data/lib/us_core_test_kit/generated/v5.0.1/heart_rate/heart_rate_must_support_test.rb +7 -7
  181. data/lib/us_core_test_kit/generated/v5.0.1/heart_rate/heart_rate_reference_resolution_test.rb +0 -2
  182. data/lib/us_core_test_kit/generated/v5.0.1/heart_rate/metadata.yml +13 -9
  183. data/lib/us_core_test_kit/generated/v5.0.1/immunization/immunization_reference_resolution_test.rb +0 -2
  184. data/lib/us_core_test_kit/generated/v5.0.1/immunization/metadata.yml +2 -0
  185. data/lib/us_core_test_kit/generated/v5.0.1/medication_request/medication_request_reference_resolution_test.rb +0 -2
  186. data/lib/us_core_test_kit/generated/v5.0.1/medication_request/metadata.yml +6 -1
  187. data/lib/us_core_test_kit/generated/v5.0.1/metadata.yml +328 -161
  188. data/lib/us_core_test_kit/generated/v5.0.1/observation_clinical_test/metadata.yml +4 -1
  189. data/lib/us_core_test_kit/generated/v5.0.1/observation_clinical_test/observation_clinical_test_reference_resolution_test.rb +0 -2
  190. data/lib/us_core_test_kit/generated/v5.0.1/observation_imaging/metadata.yml +4 -1
  191. data/lib/us_core_test_kit/generated/v5.0.1/observation_imaging/observation_imaging_reference_resolution_test.rb +0 -2
  192. data/lib/us_core_test_kit/generated/v5.0.1/observation_lab/metadata.yml +4 -1
  193. data/lib/us_core_test_kit/generated/v5.0.1/observation_lab/observation_lab_reference_resolution_test.rb +0 -2
  194. data/lib/us_core_test_kit/generated/v5.0.1/observation_sdoh_assessment/metadata.yml +6 -2
  195. data/lib/us_core_test_kit/generated/v5.0.1/observation_sdoh_assessment/observation_sdoh_assessment_reference_resolution_test.rb +0 -2
  196. data/lib/us_core_test_kit/generated/v5.0.1/observation_sexual_orientation/metadata.yml +4 -1
  197. data/lib/us_core_test_kit/generated/v5.0.1/observation_sexual_orientation/observation_sexual_orientation_reference_resolution_test.rb +0 -2
  198. data/lib/us_core_test_kit/generated/v5.0.1/observation_social_history/metadata.yml +6 -2
  199. data/lib/us_core_test_kit/generated/v5.0.1/observation_social_history/observation_social_history_reference_resolution_test.rb +0 -2
  200. data/lib/us_core_test_kit/generated/v5.0.1/organization/metadata.yml +2 -1
  201. data/lib/us_core_test_kit/generated/v5.0.1/pediatric_bmi_for_age/metadata.yml +13 -9
  202. data/lib/us_core_test_kit/generated/v5.0.1/pediatric_bmi_for_age/pediatric_bmi_for_age_must_support_test.rb +7 -7
  203. data/lib/us_core_test_kit/generated/v5.0.1/pediatric_bmi_for_age/pediatric_bmi_for_age_reference_resolution_test.rb +0 -2
  204. data/lib/us_core_test_kit/generated/v5.0.1/pediatric_weight_for_height/metadata.yml +13 -9
  205. data/lib/us_core_test_kit/generated/v5.0.1/pediatric_weight_for_height/pediatric_weight_for_height_must_support_test.rb +7 -7
  206. data/lib/us_core_test_kit/generated/v5.0.1/pediatric_weight_for_height/pediatric_weight_for_height_reference_resolution_test.rb +0 -2
  207. data/lib/us_core_test_kit/generated/v5.0.1/practitioner/metadata.yml +2 -1
  208. data/lib/us_core_test_kit/generated/v5.0.1/procedure/metadata.yml +2 -0
  209. data/lib/us_core_test_kit/generated/v5.0.1/procedure/procedure_reference_resolution_test.rb +0 -2
  210. data/lib/us_core_test_kit/generated/v5.0.1/provenance/metadata.yml +8 -6
  211. data/lib/us_core_test_kit/generated/v5.0.1/provenance/provenance_must_support_test.rb +2 -1
  212. data/lib/us_core_test_kit/generated/v5.0.1/provenance/provenance_reference_resolution_test.rb +0 -2
  213. data/lib/us_core_test_kit/generated/v5.0.1/pulse_oximetry/metadata.yml +38 -22
  214. data/lib/us_core_test_kit/generated/v5.0.1/pulse_oximetry/pulse_oximetry_must_support_test.rb +15 -8
  215. data/lib/us_core_test_kit/generated/v5.0.1/pulse_oximetry/pulse_oximetry_reference_resolution_test.rb +0 -2
  216. data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/metadata.yml +4 -1
  217. data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_reference_resolution_test.rb +0 -2
  218. data/lib/us_core_test_kit/generated/v5.0.1/related_person/metadata.yml +2 -0
  219. data/lib/us_core_test_kit/generated/v5.0.1/related_person/related_person_reference_resolution_test.rb +0 -2
  220. data/lib/us_core_test_kit/generated/v5.0.1/respiratory_rate/metadata.yml +13 -9
  221. data/lib/us_core_test_kit/generated/v5.0.1/respiratory_rate/respiratory_rate_must_support_test.rb +7 -7
  222. data/lib/us_core_test_kit/generated/v5.0.1/respiratory_rate/respiratory_rate_reference_resolution_test.rb +0 -2
  223. data/lib/us_core_test_kit/generated/v5.0.1/service_request/metadata.yml +4 -1
  224. data/lib/us_core_test_kit/generated/v5.0.1/service_request/service_request_reference_resolution_test.rb +0 -2
  225. data/lib/us_core_test_kit/generated/v5.0.1/smokingstatus/metadata.yml +8 -3
  226. data/lib/us_core_test_kit/generated/v5.0.1/smokingstatus/smokingstatus_reference_resolution_test.rb +0 -2
  227. data/lib/us_core_test_kit/generated/v6.1.0/allergy_intolerance/allergy_intolerance_reference_resolution_test.rb +0 -2
  228. data/lib/us_core_test_kit/generated/v6.1.0/allergy_intolerance/metadata.yml +2 -0
  229. data/lib/us_core_test_kit/generated/v6.1.0/blood_pressure/blood_pressure_must_support_test.rb +18 -8
  230. data/lib/us_core_test_kit/generated/v6.1.0/blood_pressure/blood_pressure_reference_resolution_test.rb +0 -2
  231. data/lib/us_core_test_kit/generated/v6.1.0/blood_pressure/metadata.yml +40 -20
  232. data/lib/us_core_test_kit/generated/v6.1.0/bmi/bmi_must_support_test.rb +7 -7
  233. data/lib/us_core_test_kit/generated/v6.1.0/bmi/bmi_reference_resolution_test.rb +0 -2
  234. data/lib/us_core_test_kit/generated/v6.1.0/bmi/metadata.yml +17 -13
  235. data/lib/us_core_test_kit/generated/v6.1.0/body_height/body_height_must_support_test.rb +7 -7
  236. data/lib/us_core_test_kit/generated/v6.1.0/body_height/body_height_reference_resolution_test.rb +0 -2
  237. data/lib/us_core_test_kit/generated/v6.1.0/body_height/metadata.yml +17 -13
  238. data/lib/us_core_test_kit/generated/v6.1.0/body_temperature/body_temperature_must_support_test.rb +7 -7
  239. data/lib/us_core_test_kit/generated/v6.1.0/body_temperature/body_temperature_reference_resolution_test.rb +0 -2
  240. data/lib/us_core_test_kit/generated/v6.1.0/body_temperature/metadata.yml +17 -13
  241. data/lib/us_core_test_kit/generated/v6.1.0/body_weight/body_weight_must_support_test.rb +7 -7
  242. data/lib/us_core_test_kit/generated/v6.1.0/body_weight/body_weight_reference_resolution_test.rb +0 -2
  243. data/lib/us_core_test_kit/generated/v6.1.0/body_weight/metadata.yml +17 -13
  244. data/lib/us_core_test_kit/generated/v6.1.0/care_plan/care_plan_reference_resolution_test.rb +0 -2
  245. data/lib/us_core_test_kit/generated/v6.1.0/care_plan/metadata.yml +4 -1
  246. data/lib/us_core_test_kit/generated/v6.1.0/care_team/care_team_reference_resolution_test.rb +0 -2
  247. data/lib/us_core_test_kit/generated/v6.1.0/care_team/metadata.yml +2 -0
  248. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_encounter_diagnosis_reference_resolution_test.rb +0 -2
  249. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/metadata.yml +6 -1
  250. data/lib/us_core_test_kit/generated/v6.1.0/condition_problems_health_concerns/condition_problems_health_concerns_reference_resolution_test.rb +0 -2
  251. data/lib/us_core_test_kit/generated/v6.1.0/condition_problems_health_concerns/metadata.yml +6 -2
  252. data/lib/us_core_test_kit/generated/v6.1.0/coverage/coverage_must_support_test.rb +5 -3
  253. data/lib/us_core_test_kit/generated/v6.1.0/coverage/coverage_reference_resolution_test.rb +0 -2
  254. data/lib/us_core_test_kit/generated/v6.1.0/coverage/metadata.yml +13 -7
  255. data/lib/us_core_test_kit/generated/v6.1.0/device/device_reference_resolution_test.rb +0 -2
  256. data/lib/us_core_test_kit/generated/v6.1.0/device/metadata.yml +2 -0
  257. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_lab/diagnostic_report_lab_reference_resolution_test.rb +0 -2
  258. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_lab/metadata.yml +6 -1
  259. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_note_reference_resolution_test.rb +0 -2
  260. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/metadata.yml +6 -1
  261. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_reference_resolution_test.rb +0 -2
  262. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/metadata.yml +6 -1
  263. data/lib/us_core_test_kit/generated/v6.1.0/encounter/encounter_reference_resolution_test.rb +0 -2
  264. data/lib/us_core_test_kit/generated/v6.1.0/encounter/metadata.yml +4 -0
  265. data/lib/us_core_test_kit/generated/v6.1.0/goal/goal_reference_resolution_test.rb +0 -2
  266. data/lib/us_core_test_kit/generated/v6.1.0/goal/metadata.yml +2 -0
  267. data/lib/us_core_test_kit/generated/v6.1.0/head_circumference/head_circumference_must_support_test.rb +7 -7
  268. data/lib/us_core_test_kit/generated/v6.1.0/head_circumference/head_circumference_reference_resolution_test.rb +0 -2
  269. data/lib/us_core_test_kit/generated/v6.1.0/head_circumference/metadata.yml +17 -13
  270. data/lib/us_core_test_kit/generated/v6.1.0/head_circumference_percentile/head_circumference_percentile_must_support_test.rb +7 -7
  271. data/lib/us_core_test_kit/generated/v6.1.0/head_circumference_percentile/head_circumference_percentile_reference_resolution_test.rb +0 -2
  272. data/lib/us_core_test_kit/generated/v6.1.0/head_circumference_percentile/metadata.yml +17 -13
  273. data/lib/us_core_test_kit/generated/v6.1.0/heart_rate/heart_rate_must_support_test.rb +7 -7
  274. data/lib/us_core_test_kit/generated/v6.1.0/heart_rate/heart_rate_reference_resolution_test.rb +0 -2
  275. data/lib/us_core_test_kit/generated/v6.1.0/heart_rate/metadata.yml +17 -13
  276. data/lib/us_core_test_kit/generated/v6.1.0/immunization/immunization_reference_resolution_test.rb +0 -2
  277. data/lib/us_core_test_kit/generated/v6.1.0/immunization/metadata.yml +2 -0
  278. data/lib/us_core_test_kit/generated/v6.1.0/medication_dispense/medication_dispense_patient_search_test.rb +2 -2
  279. data/lib/us_core_test_kit/generated/v6.1.0/medication_dispense/medication_dispense_patient_status_search_test.rb +2 -2
  280. data/lib/us_core_test_kit/generated/v6.1.0/medication_dispense/medication_dispense_patient_status_type_search_test.rb +2 -2
  281. data/lib/us_core_test_kit/generated/v6.1.0/medication_dispense/medication_dispense_reference_resolution_test.rb +0 -2
  282. data/lib/us_core_test_kit/generated/v6.1.0/medication_dispense/metadata.yml +4 -0
  283. data/lib/us_core_test_kit/generated/v6.1.0/medication_request/medication_request_reference_resolution_test.rb +0 -2
  284. data/lib/us_core_test_kit/generated/v6.1.0/medication_request/metadata.yml +6 -1
  285. data/lib/us_core_test_kit/generated/v6.1.0/metadata.yml +417 -226
  286. data/lib/us_core_test_kit/generated/v6.1.0/observation_clinical_result/metadata.yml +4 -1
  287. data/lib/us_core_test_kit/generated/v6.1.0/observation_clinical_result/observation_clinical_result_reference_resolution_test.rb +0 -2
  288. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/metadata.yml +6 -1
  289. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_lab_reference_resolution_test.rb +0 -2
  290. data/lib/us_core_test_kit/generated/v6.1.0/observation_occupation/metadata.yml +12 -7
  291. data/lib/us_core_test_kit/generated/v6.1.0/observation_occupation/observation_occupation_must_support_test.rb +2 -2
  292. data/lib/us_core_test_kit/generated/v6.1.0/observation_occupation/observation_occupation_reference_resolution_test.rb +0 -2
  293. data/lib/us_core_test_kit/generated/v6.1.0/observation_pregnancyintent/metadata.yml +8 -3
  294. data/lib/us_core_test_kit/generated/v6.1.0/observation_pregnancyintent/observation_pregnancyintent_reference_resolution_test.rb +0 -2
  295. data/lib/us_core_test_kit/generated/v6.1.0/observation_pregnancystatus/metadata.yml +8 -3
  296. data/lib/us_core_test_kit/generated/v6.1.0/observation_pregnancystatus/observation_pregnancystatus_reference_resolution_test.rb +0 -2
  297. data/lib/us_core_test_kit/generated/v6.1.0/observation_screening_assessment/metadata.yml +6 -2
  298. data/lib/us_core_test_kit/generated/v6.1.0/observation_screening_assessment/observation_screening_assessment_reference_resolution_test.rb +0 -2
  299. data/lib/us_core_test_kit/generated/v6.1.0/observation_sexual_orientation/metadata.yml +4 -1
  300. data/lib/us_core_test_kit/generated/v6.1.0/observation_sexual_orientation/observation_sexual_orientation_reference_resolution_test.rb +0 -2
  301. data/lib/us_core_test_kit/generated/v6.1.0/organization/metadata.yml +2 -1
  302. data/lib/us_core_test_kit/generated/v6.1.0/pediatric_bmi_for_age/metadata.yml +17 -13
  303. data/lib/us_core_test_kit/generated/v6.1.0/pediatric_bmi_for_age/pediatric_bmi_for_age_must_support_test.rb +7 -7
  304. data/lib/us_core_test_kit/generated/v6.1.0/pediatric_bmi_for_age/pediatric_bmi_for_age_reference_resolution_test.rb +0 -2
  305. data/lib/us_core_test_kit/generated/v6.1.0/pediatric_weight_for_height/metadata.yml +17 -13
  306. data/lib/us_core_test_kit/generated/v6.1.0/pediatric_weight_for_height/pediatric_weight_for_height_must_support_test.rb +7 -7
  307. data/lib/us_core_test_kit/generated/v6.1.0/pediatric_weight_for_height/pediatric_weight_for_height_reference_resolution_test.rb +0 -2
  308. data/lib/us_core_test_kit/generated/v6.1.0/practitioner/metadata.yml +2 -1
  309. data/lib/us_core_test_kit/generated/v6.1.0/procedure/metadata.yml +2 -0
  310. data/lib/us_core_test_kit/generated/v6.1.0/procedure/procedure_reference_resolution_test.rb +0 -2
  311. data/lib/us_core_test_kit/generated/v6.1.0/provenance/metadata.yml +8 -6
  312. data/lib/us_core_test_kit/generated/v6.1.0/provenance/provenance_must_support_test.rb +2 -1
  313. data/lib/us_core_test_kit/generated/v6.1.0/provenance/provenance_reference_resolution_test.rb +0 -2
  314. data/lib/us_core_test_kit/generated/v6.1.0/pulse_oximetry/metadata.yml +48 -31
  315. data/lib/us_core_test_kit/generated/v6.1.0/pulse_oximetry/pulse_oximetry_must_support_test.rb +19 -12
  316. data/lib/us_core_test_kit/generated/v6.1.0/pulse_oximetry/pulse_oximetry_reference_resolution_test.rb +0 -2
  317. data/lib/us_core_test_kit/generated/v6.1.0/questionnaire_response/metadata.yml +2 -0
  318. data/lib/us_core_test_kit/generated/v6.1.0/questionnaire_response/questionnaire_response_reference_resolution_test.rb +0 -2
  319. data/lib/us_core_test_kit/generated/v6.1.0/related_person/metadata.yml +2 -0
  320. data/lib/us_core_test_kit/generated/v6.1.0/related_person/related_person_reference_resolution_test.rb +0 -2
  321. data/lib/us_core_test_kit/generated/v6.1.0/respiratory_rate/metadata.yml +17 -13
  322. data/lib/us_core_test_kit/generated/v6.1.0/respiratory_rate/respiratory_rate_must_support_test.rb +7 -7
  323. data/lib/us_core_test_kit/generated/v6.1.0/respiratory_rate/respiratory_rate_reference_resolution_test.rb +0 -2
  324. data/lib/us_core_test_kit/generated/v6.1.0/service_request/metadata.yml +4 -1
  325. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_reference_resolution_test.rb +0 -2
  326. data/lib/us_core_test_kit/generated/v6.1.0/simple_observation/metadata.yml +4 -1
  327. data/lib/us_core_test_kit/generated/v6.1.0/simple_observation/simple_observation_reference_resolution_test.rb +0 -2
  328. data/lib/us_core_test_kit/generated/v6.1.0/smokingstatus/metadata.yml +6 -2
  329. data/lib/us_core_test_kit/generated/v6.1.0/smokingstatus/smokingstatus_reference_resolution_test.rb +0 -2
  330. data/lib/us_core_test_kit/generated/v6.1.0/specimen/metadata.yml +2 -0
  331. data/lib/us_core_test_kit/generated/v6.1.0/specimen/specimen_reference_resolution_test.rb +0 -2
  332. data/lib/us_core_test_kit/generator/group_metadata_extractor.rb +0 -1
  333. data/lib/us_core_test_kit/generator/ig_loader.rb +2 -0
  334. data/lib/us_core_test_kit/generator/must_support_metadata_extractor.rb +56 -26
  335. data/lib/us_core_test_kit/generator/must_support_test_generator.rb +1 -1
  336. data/lib/us_core_test_kit/generator/search_test_generator.rb +2 -2
  337. data/lib/us_core_test_kit/generator.rb +0 -6
  338. data/lib/us_core_test_kit/must_support_test.rb +2 -5
  339. data/lib/us_core_test_kit/reference_resolution_test.rb +2 -2
  340. data/lib/us_core_test_kit/search_test.rb +29 -7
  341. data/lib/us_core_test_kit/version.rb +1 -1
  342. metadata +3 -7
  343. data/lib/us_core_test_kit/generated/v3.1.1/resource_list.rb +0 -28
  344. data/lib/us_core_test_kit/generated/v4.0.0/resource_list.rb +0 -28
  345. data/lib/us_core_test_kit/generated/v5.0.1/resource_list.rb +0 -31
  346. data/lib/us_core_test_kit/generated/v6.1.0/resource_list.rb +0 -34
  347. data/lib/us_core_test_kit/generator/resource_list_generator.rb +0 -42
@@ -140,7 +140,8 @@
140
140
  :must_supports:
141
141
  :extensions: []
142
142
  :slices:
143
- - :name: Observation.category:Laboratory
143
+ - :slice_id: Observation.category:Laboratory
144
+ :slice_name: Laboratory
144
145
  :path: category
145
146
  :discriminator:
146
147
  :type: patternCodeableConcept
@@ -154,6 +155,8 @@
154
155
  - :path: subject
155
156
  :types:
156
157
  - Reference
158
+ :target_profiles:
159
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
157
160
  - :path: effectiveDateTime
158
161
  :original_path: effective[x]
159
162
  - :path: valueQuantity
@@ -1,11 +1,9 @@
1
1
  require_relative '../../../reference_resolution_test'
2
- require_relative '../resource_list'
3
2
 
4
3
  module USCoreTestKit
5
4
  module USCoreV400
6
5
  class ObservationLabReferenceResolutionTest < Inferno::Test
7
6
  include USCoreTestKit::ReferenceResolutionTest
8
- include ResourceList
9
7
 
10
8
  title 'MustSupport references within Observation resources are valid'
11
9
  description %(
@@ -70,7 +70,8 @@
70
70
  :must_supports:
71
71
  :extensions: []
72
72
  :slices:
73
- - :name: Organization.identifier:NPI
73
+ - :slice_id: Organization.identifier:NPI
74
+ :slice_name: NPI
74
75
  :path: identifier
75
76
  :discriminator:
76
77
  :type: patternIdentifier
@@ -141,12 +141,14 @@
141
141
  :must_supports:
142
142
  :extensions: []
143
143
  :slices:
144
- - :name: Observation.value[x]:valueQuantity
144
+ - :slice_id: Observation.value[x]:valueQuantity
145
+ :slice_name: valueQuantity
145
146
  :path: value[x]
146
147
  :discriminator:
147
148
  :type: type
148
149
  :code: Quantity
149
- - :name: Observation.category:VSCat
150
+ - :slice_id: Observation.category:VSCat
151
+ :slice_name: VSCat
150
152
  :path: category
151
153
  :discriminator:
152
154
  :type: value
@@ -158,24 +160,26 @@
158
160
  :elements:
159
161
  - :path: status
160
162
  - :path: category
161
- - :path: category.coding
162
- - :path: category.coding.system
163
+ - :path: category:VSCat.coding
164
+ - :path: category:VSCat.coding.system
163
165
  :fixed_value: http://terminology.hl7.org/CodeSystem/observation-category
164
- - :path: category.coding.code
166
+ - :path: category:VSCat.coding.code
165
167
  :fixed_value: vital-signs
166
168
  - :path: code.coding.code
167
169
  :fixed_value: 59576-9
168
170
  - :path: subject
169
171
  :types:
170
172
  - Reference
173
+ :target_profiles:
174
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
171
175
  - :path: effectiveDateTime
172
176
  :original_path: effective[x]
173
177
  - :path: value[x]
174
- - :path: value[x].value
175
- - :path: value[x].unit
176
- - :path: value[x].system
178
+ - :path: value[x]:valueQuantity.value
179
+ - :path: value[x]:valueQuantity.unit
180
+ - :path: value[x]:valueQuantity.system
177
181
  :fixed_value: http://unitsofmeasure.org
178
- - :path: value[x].code
182
+ - :path: value[x]:valueQuantity.code
179
183
  :fixed_value: "%"
180
184
  :mandatory_elements:
181
185
  - Observation.status
@@ -13,20 +13,20 @@ module USCoreTestKit
13
13
  found previously for the following must support elements:
14
14
 
15
15
  * Observation.category
16
- * Observation.category.coding
17
- * Observation.category.coding.code
18
- * Observation.category.coding.system
19
16
  * Observation.category:VSCat
17
+ * Observation.category:VSCat.coding
18
+ * Observation.category:VSCat.coding.code
19
+ * Observation.category:VSCat.coding.system
20
20
  * Observation.code.coding.code
21
21
  * Observation.effectiveDateTime
22
22
  * Observation.status
23
23
  * Observation.subject
24
24
  * Observation.value[x]
25
- * Observation.value[x].code
26
- * Observation.value[x].system
27
- * Observation.value[x].unit
28
- * Observation.value[x].value
29
25
  * Observation.value[x]:valueQuantity
26
+ * Observation.value[x]:valueQuantity.code
27
+ * Observation.value[x]:valueQuantity.system
28
+ * Observation.value[x]:valueQuantity.unit
29
+ * Observation.value[x]:valueQuantity.value
30
30
  )
31
31
 
32
32
  id :us_core_v400_pediatric_bmi_for_age_must_support_test
@@ -1,11 +1,9 @@
1
1
  require_relative '../../../reference_resolution_test'
2
- require_relative '../resource_list'
3
2
 
4
3
  module USCoreTestKit
5
4
  module USCoreV400
6
5
  class PediatricBmiForAgeReferenceResolutionTest < Inferno::Test
7
6
  include USCoreTestKit::ReferenceResolutionTest
8
- include ResourceList
9
7
 
10
8
  title 'MustSupport references within Observation resources are valid'
11
9
  description %(
@@ -141,12 +141,14 @@
141
141
  :must_supports:
142
142
  :extensions: []
143
143
  :slices:
144
- - :name: Observation.value[x]:valueQuantity
144
+ - :slice_id: Observation.value[x]:valueQuantity
145
+ :slice_name: valueQuantity
145
146
  :path: value[x]
146
147
  :discriminator:
147
148
  :type: type
148
149
  :code: Quantity
149
- - :name: Observation.category:VSCat
150
+ - :slice_id: Observation.category:VSCat
151
+ :slice_name: VSCat
150
152
  :path: category
151
153
  :discriminator:
152
154
  :type: value
@@ -158,24 +160,26 @@
158
160
  :elements:
159
161
  - :path: status
160
162
  - :path: category
161
- - :path: category.coding
162
- - :path: category.coding.system
163
+ - :path: category:VSCat.coding
164
+ - :path: category:VSCat.coding.system
163
165
  :fixed_value: http://terminology.hl7.org/CodeSystem/observation-category
164
- - :path: category.coding.code
166
+ - :path: category:VSCat.coding.code
165
167
  :fixed_value: vital-signs
166
168
  - :path: code.coding.code
167
169
  :fixed_value: 77606-2
168
170
  - :path: subject
169
171
  :types:
170
172
  - Reference
173
+ :target_profiles:
174
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
171
175
  - :path: effectiveDateTime
172
176
  :original_path: effective[x]
173
177
  - :path: value[x]
174
- - :path: value[x].value
175
- - :path: value[x].unit
176
- - :path: value[x].system
178
+ - :path: value[x]:valueQuantity.value
179
+ - :path: value[x]:valueQuantity.unit
180
+ - :path: value[x]:valueQuantity.system
177
181
  :fixed_value: http://unitsofmeasure.org
178
- - :path: value[x].code
182
+ - :path: value[x]:valueQuantity.code
179
183
  :fixed_value: "%"
180
184
  :mandatory_elements:
181
185
  - Observation.status
@@ -13,20 +13,20 @@ module USCoreTestKit
13
13
  found previously for the following must support elements:
14
14
 
15
15
  * Observation.category
16
- * Observation.category.coding
17
- * Observation.category.coding.code
18
- * Observation.category.coding.system
19
16
  * Observation.category:VSCat
17
+ * Observation.category:VSCat.coding
18
+ * Observation.category:VSCat.coding.code
19
+ * Observation.category:VSCat.coding.system
20
20
  * Observation.code.coding.code
21
21
  * Observation.effectiveDateTime
22
22
  * Observation.status
23
23
  * Observation.subject
24
24
  * Observation.value[x]
25
- * Observation.value[x].code
26
- * Observation.value[x].system
27
- * Observation.value[x].unit
28
- * Observation.value[x].value
29
25
  * Observation.value[x]:valueQuantity
26
+ * Observation.value[x]:valueQuantity.code
27
+ * Observation.value[x]:valueQuantity.system
28
+ * Observation.value[x]:valueQuantity.unit
29
+ * Observation.value[x]:valueQuantity.value
30
30
  )
31
31
 
32
32
  id :us_core_v400_pediatric_weight_for_height_must_support_test
@@ -1,11 +1,9 @@
1
1
  require_relative '../../../reference_resolution_test'
2
- require_relative '../resource_list'
3
2
 
4
3
  module USCoreTestKit
5
4
  module USCoreV400
6
5
  class PediatricWeightForHeightReferenceResolutionTest < Inferno::Test
7
6
  include USCoreTestKit::ReferenceResolutionTest
8
- include ResourceList
9
7
 
10
8
  title 'MustSupport references within Observation resources are valid'
11
9
  description %(
@@ -68,7 +68,8 @@
68
68
  :must_supports:
69
69
  :extensions: []
70
70
  :slices:
71
- - :name: Practitioner.identifier:NPI
71
+ - :slice_id: Practitioner.identifier:NPI
72
+ :slice_name: NPI
72
73
  :path: identifier
73
74
  :discriminator:
74
75
  :type: patternIdentifier
@@ -126,6 +126,8 @@
126
126
  - :path: subject
127
127
  :types:
128
128
  - Reference
129
+ :target_profiles:
130
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
129
131
  - :path: performedDateTime
130
132
  :original_path: performed[x]
131
133
  :mandatory_elements:
@@ -1,11 +1,9 @@
1
1
  require_relative '../../../reference_resolution_test'
2
- require_relative '../resource_list'
3
2
 
4
3
  module USCoreTestKit
5
4
  module USCoreV400
6
5
  class ProcedureReferenceResolutionTest < Inferno::Test
7
6
  include USCoreTestKit::ReferenceResolutionTest
8
- include ResourceList
9
7
 
10
8
  title 'MustSupport references within Procedure resources are valid'
11
9
  description %(
@@ -38,14 +38,16 @@
38
38
  :must_supports:
39
39
  :extensions: []
40
40
  :slices:
41
- - :name: Provenance.agent:ProvenanceAuthor
41
+ - :slice_id: Provenance.agent:ProvenanceAuthor
42
+ :slice_name: ProvenanceAuthor
42
43
  :path: agent
43
44
  :discriminator:
44
45
  :type: patternCodeableConcept
45
46
  :path: type
46
47
  :code: author
47
48
  :system: http://terminology.hl7.org/CodeSystem/provenance-participant-type
48
- - :name: Provenance.agent:ProvenanceTransmitter
49
+ - :slice_id: Provenance.agent:ProvenanceTransmitter
50
+ :slice_name: ProvenanceTransmitter
49
51
  :path: agent
50
52
  :discriminator:
51
53
  :type: patternCodeableConcept
@@ -68,10 +70,10 @@
68
70
  - :path: agent.onBehalfOf
69
71
  :types:
70
72
  - Reference
71
- - :path: agent.type.coding.code
72
- :fixed_value: author
73
- - :path: agent.type.coding.code
74
- :fixed_value: transmitter
73
+ :target_profiles:
74
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization
75
+ - :path: agent:ProvenanceAuthor.type
76
+ - :path: agent:ProvenanceTransmitter.type
75
77
  :mandatory_elements:
76
78
  - Provenance.target
77
79
  - Provenance.target.reference
@@ -15,10 +15,11 @@ module USCoreTestKit
15
15
  * Provenance.agent
16
16
  * Provenance.agent.onBehalfOf
17
17
  * Provenance.agent.type
18
- * Provenance.agent.type.coding.code
19
18
  * Provenance.agent.who
20
19
  * Provenance.agent:ProvenanceAuthor
20
+ * Provenance.agent:ProvenanceAuthor.type
21
21
  * Provenance.agent:ProvenanceTransmitter
22
+ * Provenance.agent:ProvenanceTransmitter.type
22
23
  * Provenance.recorded
23
24
  * Provenance.target
24
25
  * Provenance.target.reference
@@ -1,11 +1,9 @@
1
1
  require_relative '../../../reference_resolution_test'
2
- require_relative '../resource_list'
3
2
 
4
3
  module USCoreTestKit
5
4
  module USCoreV400
6
5
  class ProvenanceReferenceResolutionTest < Inferno::Test
7
6
  include USCoreTestKit::ReferenceResolutionTest
8
- include ResourceList
9
7
 
10
8
  title 'MustSupport references within Provenance resources are valid'
11
9
  description %(
@@ -142,35 +142,40 @@
142
142
  :must_supports:
143
143
  :extensions: []
144
144
  :slices:
145
- - :name: Observation.code.coding:PulseOx
145
+ - :slice_id: Observation.code.coding:PulseOx
146
+ :slice_name: PulseOx
146
147
  :path: code.coding
147
148
  :discriminator:
148
149
  :type: patternCoding
149
150
  :path: ''
150
151
  :code: 59408-5
151
152
  :system: http://loinc.org
152
- - :name: Observation.code.coding:O2Sat
153
+ - :slice_id: Observation.code.coding:O2Sat
154
+ :slice_name: O2Sat
153
155
  :path: code.coding
154
156
  :discriminator:
155
157
  :type: patternCoding
156
158
  :path: ''
157
159
  :code: 2708-6
158
160
  :system: http://loinc.org
159
- - :name: Observation.component:FlowRate
161
+ - :slice_id: Observation.component:FlowRate
162
+ :slice_name: FlowRate
160
163
  :path: component
161
164
  :discriminator:
162
165
  :type: patternCodeableConcept
163
166
  :path: code
164
167
  :code: 3151-8
165
168
  :system: http://loinc.org
166
- - :name: Observation.component:Concentration
169
+ - :slice_id: Observation.component:Concentration
170
+ :slice_name: Concentration
167
171
  :path: component
168
172
  :discriminator:
169
173
  :type: patternCodeableConcept
170
174
  :path: code
171
175
  :code: 3150-0
172
176
  :system: http://loinc.org
173
- - :name: Observation.category:VSCat
177
+ - :slice_id: Observation.category:VSCat
178
+ :slice_name: VSCat
174
179
  :path: category
175
180
  :discriminator:
176
181
  :type: value
@@ -182,16 +187,18 @@
182
187
  :elements:
183
188
  - :path: status
184
189
  - :path: category
185
- - :path: category.coding
186
- - :path: category.coding.system
190
+ - :path: category:VSCat.coding
191
+ - :path: category:VSCat.coding.system
187
192
  :fixed_value: http://terminology.hl7.org/CodeSystem/observation-category
188
- - :path: category.coding.code
193
+ - :path: category:VSCat.coding.code
189
194
  :fixed_value: vital-signs
190
195
  - :path: code
191
196
  - :path: code.coding
192
197
  - :path: subject
193
198
  :types:
194
199
  - Reference
200
+ :target_profiles:
201
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
195
202
  - :path: effectiveDateTime
196
203
  :original_path: effective[x]
197
204
  - :path: valueQuantity
@@ -200,22 +207,31 @@
200
207
  - :path: component.code
201
208
  - :path: component.valueQuantity
202
209
  :original_path: component.value[x]
203
- - :path: component.code.coding.code
204
- :fixed_value: 3151-8
205
- - :path: component.valueQuantity.system
206
- :original_path: component.value[x].system
210
+ - :path: component:FlowRate.code
211
+ - :path: component:FlowRate.valueQuantity
212
+ :original_path: component:FlowRate.value[x]
213
+ - :path: component:FlowRate.valueQuantity.value
214
+ :original_path: component:FlowRate.value[x].value
215
+ - :path: component:FlowRate.valueQuantity.unit
216
+ :original_path: component:FlowRate.value[x].unit
217
+ - :path: component:FlowRate.valueQuantity.system
218
+ :original_path: component:FlowRate.value[x].system
207
219
  :fixed_value: http://unitsofmeasure.org
208
- - :path: component.valueQuantity.code
209
- :original_path: component.value[x].code
220
+ - :path: component:FlowRate.valueQuantity.code
221
+ :original_path: component:FlowRate.value[x].code
210
222
  :fixed_value: L/min
211
- - :path: component.code.coding.code
212
- :fixed_value: 3150-0
213
- - :path: component.valueQuantity.value
214
- :original_path: component.value[x].value
215
- - :path: component.valueQuantity.unit
216
- :original_path: component.value[x].unit
217
- - :path: component.valueQuantity.code
218
- :original_path: component.value[x].code
223
+ - :path: component:Concentration.code
224
+ - :path: component:Concentration.valueQuantity
225
+ :original_path: component:Concentration.value[x]
226
+ - :path: component:Concentration.valueQuantity.value
227
+ :original_path: component:Concentration.value[x].value
228
+ - :path: component:Concentration.valueQuantity.unit
229
+ :original_path: component:Concentration.value[x].unit
230
+ - :path: component:Concentration.valueQuantity.system
231
+ :original_path: component:Concentration.value[x].system
232
+ :fixed_value: http://unitsofmeasure.org
233
+ - :path: component:Concentration.valueQuantity.code
234
+ :original_path: component:Concentration.value[x].code
219
235
  :fixed_value: "%"
220
236
  :mandatory_elements:
221
237
  - Observation.status
@@ -13,24 +13,31 @@ module USCoreTestKit
13
13
  found previously for the following must support elements:
14
14
 
15
15
  * Observation.category
16
- * Observation.category.coding
17
- * Observation.category.coding.code
18
- * Observation.category.coding.system
19
16
  * Observation.category:VSCat
17
+ * Observation.category:VSCat.coding
18
+ * Observation.category:VSCat.coding.code
19
+ * Observation.category:VSCat.coding.system
20
20
  * Observation.code
21
21
  * Observation.code.coding
22
22
  * Observation.code.coding:O2Sat
23
23
  * Observation.code.coding:PulseOx
24
24
  * Observation.component
25
25
  * Observation.component.code
26
- * Observation.component.code.coding.code
27
26
  * Observation.component.valueQuantity
28
- * Observation.component.valueQuantity.code
29
- * Observation.component.valueQuantity.system
30
- * Observation.component.valueQuantity.unit
31
- * Observation.component.valueQuantity.value
32
27
  * Observation.component:Concentration
28
+ * Observation.component:Concentration.code
29
+ * Observation.component:Concentration.valueQuantity
30
+ * Observation.component:Concentration.valueQuantity.code
31
+ * Observation.component:Concentration.valueQuantity.system
32
+ * Observation.component:Concentration.valueQuantity.unit
33
+ * Observation.component:Concentration.valueQuantity.value
33
34
  * Observation.component:FlowRate
35
+ * Observation.component:FlowRate.code
36
+ * Observation.component:FlowRate.valueQuantity
37
+ * Observation.component:FlowRate.valueQuantity.code
38
+ * Observation.component:FlowRate.valueQuantity.system
39
+ * Observation.component:FlowRate.valueQuantity.unit
40
+ * Observation.component:FlowRate.valueQuantity.value
34
41
  * Observation.effectiveDateTime
35
42
  * Observation.status
36
43
  * Observation.subject
@@ -1,11 +1,9 @@
1
1
  require_relative '../../../reference_resolution_test'
2
- require_relative '../resource_list'
3
2
 
4
3
  module USCoreTestKit
5
4
  module USCoreV400
6
5
  class PulseOximetryReferenceResolutionTest < Inferno::Test
7
6
  include USCoreTestKit::ReferenceResolutionTest
8
- include ResourceList
9
7
 
10
8
  title 'MustSupport references within Observation resources are valid'
11
9
  description %(
@@ -141,12 +141,14 @@
141
141
  :must_supports:
142
142
  :extensions: []
143
143
  :slices:
144
- - :name: Observation.value[x]:valueQuantity
144
+ - :slice_id: Observation.value[x]:valueQuantity
145
+ :slice_name: valueQuantity
145
146
  :path: value[x]
146
147
  :discriminator:
147
148
  :type: type
148
149
  :code: Quantity
149
- - :name: Observation.category:VSCat
150
+ - :slice_id: Observation.category:VSCat
151
+ :slice_name: VSCat
150
152
  :path: category
151
153
  :discriminator:
152
154
  :type: value
@@ -158,24 +160,26 @@
158
160
  :elements:
159
161
  - :path: status
160
162
  - :path: category
161
- - :path: category.coding
162
- - :path: category.coding.system
163
+ - :path: category:VSCat.coding
164
+ - :path: category:VSCat.coding.system
163
165
  :fixed_value: http://terminology.hl7.org/CodeSystem/observation-category
164
- - :path: category.coding.code
166
+ - :path: category:VSCat.coding.code
165
167
  :fixed_value: vital-signs
166
168
  - :path: code.coding.code
167
169
  :fixed_value: 9279-1
168
170
  - :path: subject
169
171
  :types:
170
172
  - Reference
173
+ :target_profiles:
174
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
171
175
  - :path: effectiveDateTime
172
176
  :original_path: effective[x]
173
177
  - :path: value[x]
174
- - :path: value[x].value
175
- - :path: value[x].unit
176
- - :path: value[x].system
178
+ - :path: value[x]:valueQuantity.value
179
+ - :path: value[x]:valueQuantity.unit
180
+ - :path: value[x]:valueQuantity.system
177
181
  :fixed_value: http://unitsofmeasure.org
178
- - :path: value[x].code
182
+ - :path: value[x]:valueQuantity.code
179
183
  :fixed_value: "/min"
180
184
  :mandatory_elements:
181
185
  - Observation.status
@@ -13,20 +13,20 @@ module USCoreTestKit
13
13
  found previously for the following must support elements:
14
14
 
15
15
  * Observation.category
16
- * Observation.category.coding
17
- * Observation.category.coding.code
18
- * Observation.category.coding.system
19
16
  * Observation.category:VSCat
17
+ * Observation.category:VSCat.coding
18
+ * Observation.category:VSCat.coding.code
19
+ * Observation.category:VSCat.coding.system
20
20
  * Observation.code.coding.code
21
21
  * Observation.effectiveDateTime
22
22
  * Observation.status
23
23
  * Observation.subject
24
24
  * Observation.value[x]
25
- * Observation.value[x].code
26
- * Observation.value[x].system
27
- * Observation.value[x].unit
28
- * Observation.value[x].value
29
25
  * Observation.value[x]:valueQuantity
26
+ * Observation.value[x]:valueQuantity.code
27
+ * Observation.value[x]:valueQuantity.system
28
+ * Observation.value[x]:valueQuantity.unit
29
+ * Observation.value[x]:valueQuantity.value
30
30
  )
31
31
 
32
32
  id :us_core_v400_respiratory_rate_must_support_test
@@ -1,11 +1,9 @@
1
1
  require_relative '../../../reference_resolution_test'
2
- require_relative '../resource_list'
3
2
 
4
3
  module USCoreTestKit
5
4
  module USCoreV400
6
5
  class RespiratoryRateReferenceResolutionTest < Inferno::Test
7
6
  include USCoreTestKit::ReferenceResolutionTest
8
- include ResourceList
9
7
 
10
8
  title 'MustSupport references within Observation resources are valid'
11
9
  description %(
@@ -135,19 +135,22 @@
135
135
  :must_supports:
136
136
  :extensions: []
137
137
  :slices:
138
- - :name: Observation.category:SocialHistory
138
+ - :slice_id: Observation.category:SocialHistory
139
+ :slice_name: SocialHistory
139
140
  :path: category
140
141
  :discriminator:
141
142
  :type: patternCodeableConcept
142
143
  :path: ''
143
144
  :code: social-history
144
145
  :system: http://terminology.hl7.org/CodeSystem/observation-category
145
- - :name: Observation.effective[x]:effectiveDateTime
146
+ - :slice_id: Observation.effective[x]:effectiveDateTime
147
+ :slice_name: effectiveDateTime
146
148
  :path: effective[x]
147
149
  :discriminator:
148
150
  :type: type
149
151
  :code: DateTime
150
- - :name: Observation.value[x]:valueCodeableConcept
152
+ - :slice_id: Observation.value[x]:valueCodeableConcept
153
+ :slice_name: valueCodeableConcept
151
154
  :path: value[x]
152
155
  :discriminator:
153
156
  :type: type
@@ -159,6 +162,8 @@
159
162
  - :path: subject
160
163
  :types:
161
164
  - Reference
165
+ :target_profiles:
166
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
162
167
  :mandatory_elements:
163
168
  - Observation.status
164
169
  - Observation.category
@@ -1,11 +1,9 @@
1
1
  require_relative '../../../reference_resolution_test'
2
- require_relative '../resource_list'
3
2
 
4
3
  module USCoreTestKit
5
4
  module USCoreV400
6
5
  class SmokingstatusReferenceResolutionTest < Inferno::Test
7
6
  include USCoreTestKit::ReferenceResolutionTest
8
- include ResourceList
9
7
 
10
8
  title 'MustSupport references within Observation resources are valid'
11
9
  description %(
@@ -1,11 +1,9 @@
1
1
  require_relative '../../../reference_resolution_test'
2
- require_relative '../resource_list'
3
2
 
4
3
  module USCoreTestKit
5
4
  module USCoreV501
6
5
  class AllergyIntoleranceReferenceResolutionTest < Inferno::Test
7
6
  include USCoreTestKit::ReferenceResolutionTest
8
- include ResourceList
9
7
 
10
8
  title 'MustSupport references within AllergyIntolerance resources are valid'
11
9
  description %(
@@ -82,6 +82,8 @@
82
82
  - :path: patient
83
83
  :types:
84
84
  - Reference
85
+ :target_profiles:
86
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
85
87
  - :path: reaction
86
88
  - :path: reaction.manifestation
87
89
  :mandatory_elements: