us_core_test_kit 0.4.7 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (565) hide show
  1. checksums.yaml +4 -4
  2. data/lib/us_core_test_kit/custom_groups/v6.0.0/capability_statement_group.rb +131 -0
  3. data/lib/us_core_test_kit/fhir_resource_navigation.rb +1 -1
  4. data/lib/us_core_test_kit/generated/v3.1.1/document_reference/metadata.yml +2 -1
  5. data/lib/us_core_test_kit/generated/v3.1.1/metadata.yml +2 -1
  6. data/lib/us_core_test_kit/generated/v3.1.1/us_core_test_suite.rb +11 -5
  7. data/lib/us_core_test_kit/generated/v4.0.0/document_reference/metadata.yml +2 -1
  8. data/lib/us_core_test_kit/generated/v4.0.0/metadata.yml +2 -1
  9. data/lib/us_core_test_kit/generated/v4.0.0/us_core_test_suite.rb +11 -5
  10. data/lib/us_core_test_kit/generated/v5.0.1/document_reference/metadata.yml +2 -1
  11. data/lib/us_core_test_kit/generated/v5.0.1/metadata.yml +9 -2
  12. data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/metadata.yml +2 -1
  13. data/lib/us_core_test_kit/generated/v5.0.1/service_request/metadata.yml +5 -0
  14. data/lib/us_core_test_kit/generated/v5.0.1/us_core_test_suite.rb +11 -5
  15. data/lib/us_core_test_kit/generated/v6.0.0/allergy_intolerance/allergy_intolerance_must_support_test.rb +42 -0
  16. data/lib/us_core_test_kit/generated/v6.0.0/allergy_intolerance/allergy_intolerance_patient_clinical_status_search_test.rb +48 -0
  17. data/lib/us_core_test_kit/generated/v6.0.0/allergy_intolerance/allergy_intolerance_patient_search_test.rb +62 -0
  18. data/lib/us_core_test_kit/generated/v6.0.0/allergy_intolerance/allergy_intolerance_provenance_revinclude_search_test.rb +51 -0
  19. data/lib/us_core_test_kit/generated/v6.0.0/allergy_intolerance/allergy_intolerance_read_test.rb +26 -0
  20. data/lib/us_core_test_kit/generated/v6.0.0/allergy_intolerance/allergy_intolerance_reference_resolution_test.rb +42 -0
  21. data/lib/us_core_test_kit/generated/v6.0.0/allergy_intolerance/allergy_intolerance_validation_test.rb +40 -0
  22. data/lib/us_core_test_kit/generated/v6.0.0/allergy_intolerance/metadata.yml +152 -0
  23. data/lib/us_core_test_kit/generated/v6.0.0/allergy_intolerance_group.rb +88 -0
  24. data/lib/us_core_test_kit/generated/v6.0.0/blood_pressure/blood_pressure_must_support_test.rb +55 -0
  25. data/lib/us_core_test_kit/generated/v6.0.0/blood_pressure/blood_pressure_patient_category_date_search_test.rb +48 -0
  26. data/lib/us_core_test_kit/generated/v6.0.0/blood_pressure/blood_pressure_patient_category_search_test.rb +47 -0
  27. data/lib/us_core_test_kit/generated/v6.0.0/blood_pressure/blood_pressure_patient_category_status_search_test.rb +49 -0
  28. data/lib/us_core_test_kit/generated/v6.0.0/blood_pressure/blood_pressure_patient_code_date_search_test.rb +50 -0
  29. data/lib/us_core_test_kit/generated/v6.0.0/blood_pressure/blood_pressure_patient_code_search_test.rb +64 -0
  30. data/lib/us_core_test_kit/generated/v6.0.0/blood_pressure/blood_pressure_provenance_revinclude_search_test.rb +53 -0
  31. data/lib/us_core_test_kit/generated/v6.0.0/blood_pressure/blood_pressure_read_test.rb +26 -0
  32. data/lib/us_core_test_kit/generated/v6.0.0/blood_pressure/blood_pressure_reference_resolution_test.rb +42 -0
  33. data/lib/us_core_test_kit/generated/v6.0.0/blood_pressure/blood_pressure_validation_test.rb +40 -0
  34. data/lib/us_core_test_kit/generated/v6.0.0/blood_pressure/metadata.yml +305 -0
  35. data/lib/us_core_test_kit/generated/v6.0.0/blood_pressure_group.rb +96 -0
  36. data/lib/us_core_test_kit/generated/v6.0.0/bmi/bmi_must_support_test.rb +51 -0
  37. data/lib/us_core_test_kit/generated/v6.0.0/bmi/bmi_patient_category_date_search_test.rb +48 -0
  38. data/lib/us_core_test_kit/generated/v6.0.0/bmi/bmi_patient_category_search_test.rb +47 -0
  39. data/lib/us_core_test_kit/generated/v6.0.0/bmi/bmi_patient_category_status_search_test.rb +49 -0
  40. data/lib/us_core_test_kit/generated/v6.0.0/bmi/bmi_patient_code_date_search_test.rb +50 -0
  41. data/lib/us_core_test_kit/generated/v6.0.0/bmi/bmi_patient_code_search_test.rb +64 -0
  42. data/lib/us_core_test_kit/generated/v6.0.0/bmi/bmi_provenance_revinclude_search_test.rb +53 -0
  43. data/lib/us_core_test_kit/generated/v6.0.0/bmi/bmi_read_test.rb +26 -0
  44. data/lib/us_core_test_kit/generated/v6.0.0/bmi/bmi_reference_resolution_test.rb +42 -0
  45. data/lib/us_core_test_kit/generated/v6.0.0/bmi/bmi_validation_test.rb +40 -0
  46. data/lib/us_core_test_kit/generated/v6.0.0/bmi/metadata.yml +285 -0
  47. data/lib/us_core_test_kit/generated/v6.0.0/bmi_group.rb +96 -0
  48. data/lib/us_core_test_kit/generated/v6.0.0/body_height/body_height_must_support_test.rb +51 -0
  49. data/lib/us_core_test_kit/generated/v6.0.0/body_height/body_height_patient_category_date_search_test.rb +48 -0
  50. data/lib/us_core_test_kit/generated/v6.0.0/body_height/body_height_patient_category_search_test.rb +47 -0
  51. data/lib/us_core_test_kit/generated/v6.0.0/body_height/body_height_patient_category_status_search_test.rb +49 -0
  52. data/lib/us_core_test_kit/generated/v6.0.0/body_height/body_height_patient_code_date_search_test.rb +50 -0
  53. data/lib/us_core_test_kit/generated/v6.0.0/body_height/body_height_patient_code_search_test.rb +64 -0
  54. data/lib/us_core_test_kit/generated/v6.0.0/body_height/body_height_provenance_revinclude_search_test.rb +53 -0
  55. data/lib/us_core_test_kit/generated/v6.0.0/body_height/body_height_read_test.rb +26 -0
  56. data/lib/us_core_test_kit/generated/v6.0.0/body_height/body_height_reference_resolution_test.rb +42 -0
  57. data/lib/us_core_test_kit/generated/v6.0.0/body_height/body_height_validation_test.rb +40 -0
  58. data/lib/us_core_test_kit/generated/v6.0.0/body_height/metadata.yml +288 -0
  59. data/lib/us_core_test_kit/generated/v6.0.0/body_height_group.rb +96 -0
  60. data/lib/us_core_test_kit/generated/v6.0.0/body_temperature/body_temperature_must_support_test.rb +51 -0
  61. data/lib/us_core_test_kit/generated/v6.0.0/body_temperature/body_temperature_patient_category_date_search_test.rb +48 -0
  62. data/lib/us_core_test_kit/generated/v6.0.0/body_temperature/body_temperature_patient_category_search_test.rb +47 -0
  63. data/lib/us_core_test_kit/generated/v6.0.0/body_temperature/body_temperature_patient_category_status_search_test.rb +49 -0
  64. data/lib/us_core_test_kit/generated/v6.0.0/body_temperature/body_temperature_patient_code_date_search_test.rb +50 -0
  65. data/lib/us_core_test_kit/generated/v6.0.0/body_temperature/body_temperature_patient_code_search_test.rb +64 -0
  66. data/lib/us_core_test_kit/generated/v6.0.0/body_temperature/body_temperature_provenance_revinclude_search_test.rb +53 -0
  67. data/lib/us_core_test_kit/generated/v6.0.0/body_temperature/body_temperature_read_test.rb +26 -0
  68. data/lib/us_core_test_kit/generated/v6.0.0/body_temperature/body_temperature_reference_resolution_test.rb +42 -0
  69. data/lib/us_core_test_kit/generated/v6.0.0/body_temperature/body_temperature_validation_test.rb +40 -0
  70. data/lib/us_core_test_kit/generated/v6.0.0/body_temperature/metadata.yml +288 -0
  71. data/lib/us_core_test_kit/generated/v6.0.0/body_temperature_group.rb +96 -0
  72. data/lib/us_core_test_kit/generated/v6.0.0/body_weight/body_weight_must_support_test.rb +51 -0
  73. data/lib/us_core_test_kit/generated/v6.0.0/body_weight/body_weight_patient_category_date_search_test.rb +48 -0
  74. data/lib/us_core_test_kit/generated/v6.0.0/body_weight/body_weight_patient_category_search_test.rb +47 -0
  75. data/lib/us_core_test_kit/generated/v6.0.0/body_weight/body_weight_patient_category_status_search_test.rb +49 -0
  76. data/lib/us_core_test_kit/generated/v6.0.0/body_weight/body_weight_patient_code_date_search_test.rb +50 -0
  77. data/lib/us_core_test_kit/generated/v6.0.0/body_weight/body_weight_patient_code_search_test.rb +64 -0
  78. data/lib/us_core_test_kit/generated/v6.0.0/body_weight/body_weight_provenance_revinclude_search_test.rb +53 -0
  79. data/lib/us_core_test_kit/generated/v6.0.0/body_weight/body_weight_read_test.rb +26 -0
  80. data/lib/us_core_test_kit/generated/v6.0.0/body_weight/body_weight_reference_resolution_test.rb +42 -0
  81. data/lib/us_core_test_kit/generated/v6.0.0/body_weight/body_weight_validation_test.rb +40 -0
  82. data/lib/us_core_test_kit/generated/v6.0.0/body_weight/metadata.yml +288 -0
  83. data/lib/us_core_test_kit/generated/v6.0.0/body_weight_group.rb +96 -0
  84. data/lib/us_core_test_kit/generated/v6.0.0/care_plan/care_plan_must_support_test.rb +44 -0
  85. data/lib/us_core_test_kit/generated/v6.0.0/care_plan/care_plan_patient_category_date_search_test.rb +50 -0
  86. data/lib/us_core_test_kit/generated/v6.0.0/care_plan/care_plan_patient_category_search_test.rb +64 -0
  87. data/lib/us_core_test_kit/generated/v6.0.0/care_plan/care_plan_patient_category_status_date_search_test.rb +50 -0
  88. data/lib/us_core_test_kit/generated/v6.0.0/care_plan/care_plan_patient_category_status_search_test.rb +49 -0
  89. data/lib/us_core_test_kit/generated/v6.0.0/care_plan/care_plan_provenance_revinclude_search_test.rb +53 -0
  90. data/lib/us_core_test_kit/generated/v6.0.0/care_plan/care_plan_read_test.rb +26 -0
  91. data/lib/us_core_test_kit/generated/v6.0.0/care_plan/care_plan_reference_resolution_test.rb +42 -0
  92. data/lib/us_core_test_kit/generated/v6.0.0/care_plan/care_plan_validation_test.rb +40 -0
  93. data/lib/us_core_test_kit/generated/v6.0.0/care_plan/metadata.yml +278 -0
  94. data/lib/us_core_test_kit/generated/v6.0.0/care_plan_group.rb +92 -0
  95. data/lib/us_core_test_kit/generated/v6.0.0/care_team/care_team_must_support_test.rb +41 -0
  96. data/lib/us_core_test_kit/generated/v6.0.0/care_team/care_team_patient_role_search_test.rb +49 -0
  97. data/lib/us_core_test_kit/generated/v6.0.0/care_team/care_team_patient_status_search_test.rb +63 -0
  98. data/lib/us_core_test_kit/generated/v6.0.0/care_team/care_team_provenance_revinclude_search_test.rb +52 -0
  99. data/lib/us_core_test_kit/generated/v6.0.0/care_team/care_team_read_test.rb +26 -0
  100. data/lib/us_core_test_kit/generated/v6.0.0/care_team/care_team_reference_resolution_test.rb +43 -0
  101. data/lib/us_core_test_kit/generated/v6.0.0/care_team/care_team_role_search_test.rb +45 -0
  102. data/lib/us_core_test_kit/generated/v6.0.0/care_team/care_team_validation_test.rb +40 -0
  103. data/lib/us_core_test_kit/generated/v6.0.0/care_team/metadata.yml +175 -0
  104. data/lib/us_core_test_kit/generated/v6.0.0/care_team_group.rb +90 -0
  105. data/lib/us_core_test_kit/generated/v6.0.0/condition_encounter_diagnosis/condition_encounter_diagnosis_must_support_test.rb +47 -0
  106. data/lib/us_core_test_kit/generated/v6.0.0/condition_encounter_diagnosis/condition_encounter_diagnosis_patient_abatement_date_search_test.rb +49 -0
  107. data/lib/us_core_test_kit/generated/v6.0.0/condition_encounter_diagnosis/condition_encounter_diagnosis_patient_asserted_date_search_test.rb +49 -0
  108. data/lib/us_core_test_kit/generated/v6.0.0/condition_encounter_diagnosis/condition_encounter_diagnosis_patient_category_clinical_status_search_test.rb +48 -0
  109. data/lib/us_core_test_kit/generated/v6.0.0/condition_encounter_diagnosis/condition_encounter_diagnosis_patient_category_encounter_search_test.rb +49 -0
  110. data/lib/us_core_test_kit/generated/v6.0.0/condition_encounter_diagnosis/condition_encounter_diagnosis_patient_category_search_test.rb +64 -0
  111. data/lib/us_core_test_kit/generated/v6.0.0/condition_encounter_diagnosis/condition_encounter_diagnosis_patient_clinical_status_search_test.rb +48 -0
  112. data/lib/us_core_test_kit/generated/v6.0.0/condition_encounter_diagnosis/condition_encounter_diagnosis_patient_code_search_test.rb +49 -0
  113. data/lib/us_core_test_kit/generated/v6.0.0/condition_encounter_diagnosis/condition_encounter_diagnosis_patient_onset_date_search_test.rb +49 -0
  114. data/lib/us_core_test_kit/generated/v6.0.0/condition_encounter_diagnosis/condition_encounter_diagnosis_patient_recorded_date_search_test.rb +49 -0
  115. data/lib/us_core_test_kit/generated/v6.0.0/condition_encounter_diagnosis/condition_encounter_diagnosis_patient_search_test.rb +46 -0
  116. data/lib/us_core_test_kit/generated/v6.0.0/condition_encounter_diagnosis/condition_encounter_diagnosis_provenance_revinclude_search_test.rb +52 -0
  117. data/lib/us_core_test_kit/generated/v6.0.0/condition_encounter_diagnosis/condition_encounter_diagnosis_read_test.rb +26 -0
  118. data/lib/us_core_test_kit/generated/v6.0.0/condition_encounter_diagnosis/condition_encounter_diagnosis_reference_resolution_test.rb +43 -0
  119. data/lib/us_core_test_kit/generated/v6.0.0/condition_encounter_diagnosis/condition_encounter_diagnosis_validation_test.rb +40 -0
  120. data/lib/us_core_test_kit/generated/v6.0.0/condition_encounter_diagnosis/metadata.yml +347 -0
  121. data/lib/us_core_test_kit/generated/v6.0.0/condition_encounter_diagnosis_group.rb +105 -0
  122. data/lib/us_core_test_kit/generated/v6.0.0/condition_problems_health_concerns/condition_problems_health_concerns_must_support_test.rb +47 -0
  123. data/lib/us_core_test_kit/generated/v6.0.0/condition_problems_health_concerns/condition_problems_health_concerns_patient_abatement_date_search_test.rb +49 -0
  124. data/lib/us_core_test_kit/generated/v6.0.0/condition_problems_health_concerns/condition_problems_health_concerns_patient_asserted_date_search_test.rb +49 -0
  125. data/lib/us_core_test_kit/generated/v6.0.0/condition_problems_health_concerns/condition_problems_health_concerns_patient_category_clinical_status_search_test.rb +48 -0
  126. data/lib/us_core_test_kit/generated/v6.0.0/condition_problems_health_concerns/condition_problems_health_concerns_patient_category_encounter_search_test.rb +49 -0
  127. data/lib/us_core_test_kit/generated/v6.0.0/condition_problems_health_concerns/condition_problems_health_concerns_patient_category_search_test.rb +64 -0
  128. data/lib/us_core_test_kit/generated/v6.0.0/condition_problems_health_concerns/condition_problems_health_concerns_patient_clinical_status_search_test.rb +48 -0
  129. data/lib/us_core_test_kit/generated/v6.0.0/condition_problems_health_concerns/condition_problems_health_concerns_patient_code_search_test.rb +49 -0
  130. data/lib/us_core_test_kit/generated/v6.0.0/condition_problems_health_concerns/condition_problems_health_concerns_patient_onset_date_search_test.rb +49 -0
  131. data/lib/us_core_test_kit/generated/v6.0.0/condition_problems_health_concerns/condition_problems_health_concerns_patient_recorded_date_search_test.rb +49 -0
  132. data/lib/us_core_test_kit/generated/v6.0.0/condition_problems_health_concerns/condition_problems_health_concerns_patient_search_test.rb +46 -0
  133. data/lib/us_core_test_kit/generated/v6.0.0/condition_problems_health_concerns/condition_problems_health_concerns_provenance_revinclude_search_test.rb +52 -0
  134. data/lib/us_core_test_kit/generated/v6.0.0/condition_problems_health_concerns/condition_problems_health_concerns_read_test.rb +26 -0
  135. data/lib/us_core_test_kit/generated/v6.0.0/condition_problems_health_concerns/condition_problems_health_concerns_reference_resolution_test.rb +42 -0
  136. data/lib/us_core_test_kit/generated/v6.0.0/condition_problems_health_concerns/condition_problems_health_concerns_validation_test.rb +40 -0
  137. data/lib/us_core_test_kit/generated/v6.0.0/condition_problems_health_concerns/metadata.yml +367 -0
  138. data/lib/us_core_test_kit/generated/v6.0.0/condition_problems_health_concerns_group.rb +105 -0
  139. data/lib/us_core_test_kit/generated/v6.0.0/coverage/coverage_must_support_test.rb +51 -0
  140. data/lib/us_core_test_kit/generated/v6.0.0/coverage/coverage_patient_search_test.rb +62 -0
  141. data/lib/us_core_test_kit/generated/v6.0.0/coverage/coverage_provenance_revinclude_search_test.rb +51 -0
  142. data/lib/us_core_test_kit/generated/v6.0.0/coverage/coverage_read_test.rb +26 -0
  143. data/lib/us_core_test_kit/generated/v6.0.0/coverage/coverage_reference_resolution_test.rb +43 -0
  144. data/lib/us_core_test_kit/generated/v6.0.0/coverage/coverage_validation_test.rb +40 -0
  145. data/lib/us_core_test_kit/generated/v6.0.0/coverage/metadata.yml +160 -0
  146. data/lib/us_core_test_kit/generated/v6.0.0/coverage_group.rb +86 -0
  147. data/lib/us_core_test_kit/generated/v6.0.0/device/device_must_support_test.rb +46 -0
  148. data/lib/us_core_test_kit/generated/v6.0.0/device/device_patient_search_test.rb +68 -0
  149. data/lib/us_core_test_kit/generated/v6.0.0/device/device_patient_status_search_test.rb +54 -0
  150. data/lib/us_core_test_kit/generated/v6.0.0/device/device_patient_type_search_test.rb +55 -0
  151. data/lib/us_core_test_kit/generated/v6.0.0/device/device_provenance_revinclude_search_test.rb +52 -0
  152. data/lib/us_core_test_kit/generated/v6.0.0/device/device_read_test.rb +26 -0
  153. data/lib/us_core_test_kit/generated/v6.0.0/device/device_reference_resolution_test.rb +42 -0
  154. data/lib/us_core_test_kit/generated/v6.0.0/device/device_validation_test.rb +40 -0
  155. data/lib/us_core_test_kit/generated/v6.0.0/device/metadata.yml +164 -0
  156. data/lib/us_core_test_kit/generated/v6.0.0/device_group.rb +90 -0
  157. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_lab/diagnostic_report_lab_must_support_test.rb +45 -0
  158. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_lab/diagnostic_report_lab_patient_category_date_search_test.rb +48 -0
  159. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_lab/diagnostic_report_lab_patient_category_search_test.rb +65 -0
  160. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_lab/diagnostic_report_lab_patient_code_date_search_test.rb +50 -0
  161. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_lab/diagnostic_report_lab_patient_code_search_test.rb +47 -0
  162. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_lab/diagnostic_report_lab_patient_search_test.rb +46 -0
  163. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_lab/diagnostic_report_lab_patient_status_search_test.rb +48 -0
  164. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_lab/diagnostic_report_lab_provenance_revinclude_search_test.rb +53 -0
  165. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_lab/diagnostic_report_lab_read_test.rb +26 -0
  166. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_lab/diagnostic_report_lab_reference_resolution_test.rb +44 -0
  167. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_lab/diagnostic_report_lab_validation_test.rb +40 -0
  168. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_lab/metadata.yml +253 -0
  169. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_lab_group.rb +99 -0
  170. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_note/diagnostic_report_note_must_support_test.rb +49 -0
  171. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_note/diagnostic_report_note_patient_category_date_search_test.rb +48 -0
  172. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_note/diagnostic_report_note_patient_category_search_test.rb +65 -0
  173. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_note/diagnostic_report_note_patient_code_date_search_test.rb +50 -0
  174. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_note/diagnostic_report_note_patient_code_search_test.rb +47 -0
  175. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_note/diagnostic_report_note_patient_search_test.rb +46 -0
  176. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_note/diagnostic_report_note_patient_status_search_test.rb +48 -0
  177. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_note/diagnostic_report_note_provenance_revinclude_search_test.rb +53 -0
  178. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_note/diagnostic_report_note_read_test.rb +26 -0
  179. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_note/diagnostic_report_note_reference_resolution_test.rb +46 -0
  180. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_note/diagnostic_report_note_validation_test.rb +40 -0
  181. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_note/metadata.yml +272 -0
  182. data/lib/us_core_test_kit/generated/v6.0.0/diagnostic_report_note_group.rb +99 -0
  183. data/lib/us_core_test_kit/generated/v6.0.0/document_reference/document_reference_id_search_test.rb +42 -0
  184. data/lib/us_core_test_kit/generated/v6.0.0/document_reference/document_reference_must_support_test.rb +55 -0
  185. data/lib/us_core_test_kit/generated/v6.0.0/document_reference/document_reference_patient_category_date_search_test.rb +48 -0
  186. data/lib/us_core_test_kit/generated/v6.0.0/document_reference/document_reference_patient_category_search_test.rb +47 -0
  187. data/lib/us_core_test_kit/generated/v6.0.0/document_reference/document_reference_patient_search_test.rb +63 -0
  188. data/lib/us_core_test_kit/generated/v6.0.0/document_reference/document_reference_patient_status_search_test.rb +48 -0
  189. data/lib/us_core_test_kit/generated/v6.0.0/document_reference/document_reference_patient_type_period_search_test.rb +50 -0
  190. data/lib/us_core_test_kit/generated/v6.0.0/document_reference/document_reference_patient_type_search_test.rb +47 -0
  191. data/lib/us_core_test_kit/generated/v6.0.0/document_reference/document_reference_provenance_revinclude_search_test.rb +52 -0
  192. data/lib/us_core_test_kit/generated/v6.0.0/document_reference/document_reference_read_test.rb +26 -0
  193. data/lib/us_core_test_kit/generated/v6.0.0/document_reference/document_reference_reference_resolution_test.rb +44 -0
  194. data/lib/us_core_test_kit/generated/v6.0.0/document_reference/document_reference_validation_test.rb +40 -0
  195. data/lib/us_core_test_kit/generated/v6.0.0/document_reference/metadata.yml +315 -0
  196. data/lib/us_core_test_kit/generated/v6.0.0/document_reference_group.rb +104 -0
  197. data/lib/us_core_test_kit/generated/v6.0.0/encounter/encounter_class_patient_search_test.rb +49 -0
  198. data/lib/us_core_test_kit/generated/v6.0.0/encounter/encounter_date_patient_search_test.rb +47 -0
  199. data/lib/us_core_test_kit/generated/v6.0.0/encounter/encounter_id_search_test.rb +42 -0
  200. data/lib/us_core_test_kit/generated/v6.0.0/encounter/encounter_identifier_search_test.rb +45 -0
  201. data/lib/us_core_test_kit/generated/v6.0.0/encounter/encounter_must_support_test.rb +53 -0
  202. data/lib/us_core_test_kit/generated/v6.0.0/encounter/encounter_patient_discharge_disposition_search_test.rb +49 -0
  203. data/lib/us_core_test_kit/generated/v6.0.0/encounter/encounter_patient_location_search_test.rb +48 -0
  204. data/lib/us_core_test_kit/generated/v6.0.0/encounter/encounter_patient_search_test.rb +63 -0
  205. data/lib/us_core_test_kit/generated/v6.0.0/encounter/encounter_patient_status_search_test.rb +47 -0
  206. data/lib/us_core_test_kit/generated/v6.0.0/encounter/encounter_patient_type_search_test.rb +49 -0
  207. data/lib/us_core_test_kit/generated/v6.0.0/encounter/encounter_provenance_revinclude_search_test.rb +52 -0
  208. data/lib/us_core_test_kit/generated/v6.0.0/encounter/encounter_read_test.rb +26 -0
  209. data/lib/us_core_test_kit/generated/v6.0.0/encounter/encounter_reference_resolution_test.rb +46 -0
  210. data/lib/us_core_test_kit/generated/v6.0.0/encounter/encounter_validation_test.rb +40 -0
  211. data/lib/us_core_test_kit/generated/v6.0.0/encounter/metadata.yml +364 -0
  212. data/lib/us_core_test_kit/generated/v6.0.0/encounter_group.rb +104 -0
  213. data/lib/us_core_test_kit/generated/v6.0.0/goal/goal_must_support_test.rb +41 -0
  214. data/lib/us_core_test_kit/generated/v6.0.0/goal/goal_patient_description_search_test.rb +49 -0
  215. data/lib/us_core_test_kit/generated/v6.0.0/goal/goal_patient_lifecycle_status_search_test.rb +47 -0
  216. data/lib/us_core_test_kit/generated/v6.0.0/goal/goal_patient_search_test.rb +62 -0
  217. data/lib/us_core_test_kit/generated/v6.0.0/goal/goal_patient_target_date_search_test.rb +49 -0
  218. data/lib/us_core_test_kit/generated/v6.0.0/goal/goal_provenance_revinclude_search_test.rb +51 -0
  219. data/lib/us_core_test_kit/generated/v6.0.0/goal/goal_read_test.rb +26 -0
  220. data/lib/us_core_test_kit/generated/v6.0.0/goal/goal_reference_resolution_test.rb +42 -0
  221. data/lib/us_core_test_kit/generated/v6.0.0/goal/goal_validation_test.rb +40 -0
  222. data/lib/us_core_test_kit/generated/v6.0.0/goal/metadata.yml +189 -0
  223. data/lib/us_core_test_kit/generated/v6.0.0/goal_group.rb +92 -0
  224. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference/head_circumference_must_support_test.rb +51 -0
  225. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference/head_circumference_patient_category_date_search_test.rb +48 -0
  226. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference/head_circumference_patient_category_search_test.rb +47 -0
  227. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference/head_circumference_patient_category_status_search_test.rb +49 -0
  228. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference/head_circumference_patient_code_date_search_test.rb +50 -0
  229. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference/head_circumference_patient_code_search_test.rb +64 -0
  230. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference/head_circumference_provenance_revinclude_search_test.rb +53 -0
  231. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference/head_circumference_read_test.rb +26 -0
  232. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference/head_circumference_reference_resolution_test.rb +42 -0
  233. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference/head_circumference_validation_test.rb +40 -0
  234. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference/metadata.yml +288 -0
  235. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference_group.rb +96 -0
  236. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference_percentile/head_circumference_percentile_must_support_test.rb +51 -0
  237. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference_percentile/head_circumference_percentile_patient_category_date_search_test.rb +48 -0
  238. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference_percentile/head_circumference_percentile_patient_category_search_test.rb +47 -0
  239. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference_percentile/head_circumference_percentile_patient_category_status_search_test.rb +49 -0
  240. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference_percentile/head_circumference_percentile_patient_code_date_search_test.rb +50 -0
  241. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference_percentile/head_circumference_percentile_patient_code_search_test.rb +64 -0
  242. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference_percentile/head_circumference_percentile_provenance_revinclude_search_test.rb +53 -0
  243. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference_percentile/head_circumference_percentile_read_test.rb +26 -0
  244. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference_percentile/head_circumference_percentile_reference_resolution_test.rb +42 -0
  245. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference_percentile/head_circumference_percentile_validation_test.rb +40 -0
  246. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference_percentile/metadata.yml +285 -0
  247. data/lib/us_core_test_kit/generated/v6.0.0/head_circumference_percentile_group.rb +96 -0
  248. data/lib/us_core_test_kit/generated/v6.0.0/heart_rate/heart_rate_must_support_test.rb +51 -0
  249. data/lib/us_core_test_kit/generated/v6.0.0/heart_rate/heart_rate_patient_category_date_search_test.rb +48 -0
  250. data/lib/us_core_test_kit/generated/v6.0.0/heart_rate/heart_rate_patient_category_search_test.rb +47 -0
  251. data/lib/us_core_test_kit/generated/v6.0.0/heart_rate/heart_rate_patient_category_status_search_test.rb +49 -0
  252. data/lib/us_core_test_kit/generated/v6.0.0/heart_rate/heart_rate_patient_code_date_search_test.rb +50 -0
  253. data/lib/us_core_test_kit/generated/v6.0.0/heart_rate/heart_rate_patient_code_search_test.rb +64 -0
  254. data/lib/us_core_test_kit/generated/v6.0.0/heart_rate/heart_rate_provenance_revinclude_search_test.rb +53 -0
  255. data/lib/us_core_test_kit/generated/v6.0.0/heart_rate/heart_rate_read_test.rb +26 -0
  256. data/lib/us_core_test_kit/generated/v6.0.0/heart_rate/heart_rate_reference_resolution_test.rb +42 -0
  257. data/lib/us_core_test_kit/generated/v6.0.0/heart_rate/heart_rate_validation_test.rb +40 -0
  258. data/lib/us_core_test_kit/generated/v6.0.0/heart_rate/metadata.yml +285 -0
  259. data/lib/us_core_test_kit/generated/v6.0.0/heart_rate_group.rb +96 -0
  260. data/lib/us_core_test_kit/generated/v6.0.0/immunization/immunization_must_support_test.rb +42 -0
  261. data/lib/us_core_test_kit/generated/v6.0.0/immunization/immunization_patient_date_search_test.rb +49 -0
  262. data/lib/us_core_test_kit/generated/v6.0.0/immunization/immunization_patient_search_test.rb +62 -0
  263. data/lib/us_core_test_kit/generated/v6.0.0/immunization/immunization_patient_status_search_test.rb +47 -0
  264. data/lib/us_core_test_kit/generated/v6.0.0/immunization/immunization_provenance_revinclude_search_test.rb +52 -0
  265. data/lib/us_core_test_kit/generated/v6.0.0/immunization/immunization_read_test.rb +26 -0
  266. data/lib/us_core_test_kit/generated/v6.0.0/immunization/immunization_reference_resolution_test.rb +42 -0
  267. data/lib/us_core_test_kit/generated/v6.0.0/immunization/immunization_validation_test.rb +40 -0
  268. data/lib/us_core_test_kit/generated/v6.0.0/immunization/metadata.yml +171 -0
  269. data/lib/us_core_test_kit/generated/v6.0.0/immunization_group.rb +90 -0
  270. data/lib/us_core_test_kit/generated/v6.0.0/medication_dispense/medication_dispense_must_support_test.rb +50 -0
  271. data/lib/us_core_test_kit/generated/v6.0.0/medication_dispense/medication_dispense_patient_search_test.rb +68 -0
  272. data/lib/us_core_test_kit/generated/v6.0.0/medication_dispense/medication_dispense_patient_status_search_test.rb +53 -0
  273. data/lib/us_core_test_kit/generated/v6.0.0/medication_dispense/medication_dispense_patient_status_type_search_test.rb +54 -0
  274. data/lib/us_core_test_kit/generated/v6.0.0/medication_dispense/medication_dispense_provenance_revinclude_search_test.rb +52 -0
  275. data/lib/us_core_test_kit/generated/v6.0.0/medication_dispense/medication_dispense_read_test.rb +26 -0
  276. data/lib/us_core_test_kit/generated/v6.0.0/medication_dispense/medication_dispense_reference_resolution_test.rb +45 -0
  277. data/lib/us_core_test_kit/generated/v6.0.0/medication_dispense/medication_dispense_validation_test.rb +40 -0
  278. data/lib/us_core_test_kit/generated/v6.0.0/medication_dispense/metadata.yml +230 -0
  279. data/lib/us_core_test_kit/generated/v6.0.0/medication_dispense_group.rb +90 -0
  280. data/lib/us_core_test_kit/generated/v6.0.0/medication_request/medication_request_must_support_test.rb +58 -0
  281. data/lib/us_core_test_kit/generated/v6.0.0/medication_request/medication_request_patient_intent_authoredon_search_test.rb +55 -0
  282. data/lib/us_core_test_kit/generated/v6.0.0/medication_request/medication_request_patient_intent_encounter_search_test.rb +54 -0
  283. data/lib/us_core_test_kit/generated/v6.0.0/medication_request/medication_request_patient_intent_search_test.rb +70 -0
  284. data/lib/us_core_test_kit/generated/v6.0.0/medication_request/medication_request_patient_intent_status_search_test.rb +51 -0
  285. data/lib/us_core_test_kit/generated/v6.0.0/medication_request/medication_request_provenance_revinclude_search_test.rb +53 -0
  286. data/lib/us_core_test_kit/generated/v6.0.0/medication_request/medication_request_read_test.rb +26 -0
  287. data/lib/us_core_test_kit/generated/v6.0.0/medication_request/medication_request_reference_resolution_test.rb +47 -0
  288. data/lib/us_core_test_kit/generated/v6.0.0/medication_request/medication_request_validation_test.rb +40 -0
  289. data/lib/us_core_test_kit/generated/v6.0.0/medication_request/medication_validation_test.rb +39 -0
  290. data/lib/us_core_test_kit/generated/v6.0.0/medication_request/metadata.yml +311 -0
  291. data/lib/us_core_test_kit/generated/v6.0.0/medication_request_group.rb +95 -0
  292. data/lib/us_core_test_kit/generated/v6.0.0/metadata.yml +10853 -0
  293. data/lib/us_core_test_kit/generated/v6.0.0/observation_clinical_result/metadata.yml +265 -0
  294. data/lib/us_core_test_kit/generated/v6.0.0/observation_clinical_result/observation_clinical_result_must_support_test.rb +45 -0
  295. data/lib/us_core_test_kit/generated/v6.0.0/observation_clinical_result/observation_clinical_result_patient_category_date_search_test.rb +48 -0
  296. data/lib/us_core_test_kit/generated/v6.0.0/observation_clinical_result/observation_clinical_result_patient_category_search_test.rb +64 -0
  297. data/lib/us_core_test_kit/generated/v6.0.0/observation_clinical_result/observation_clinical_result_patient_category_status_search_test.rb +49 -0
  298. data/lib/us_core_test_kit/generated/v6.0.0/observation_clinical_result/observation_clinical_result_patient_code_date_search_test.rb +50 -0
  299. data/lib/us_core_test_kit/generated/v6.0.0/observation_clinical_result/observation_clinical_result_patient_code_search_test.rb +47 -0
  300. data/lib/us_core_test_kit/generated/v6.0.0/observation_clinical_result/observation_clinical_result_provenance_revinclude_search_test.rb +53 -0
  301. data/lib/us_core_test_kit/generated/v6.0.0/observation_clinical_result/observation_clinical_result_read_test.rb +26 -0
  302. data/lib/us_core_test_kit/generated/v6.0.0/observation_clinical_result/observation_clinical_result_reference_resolution_test.rb +42 -0
  303. data/lib/us_core_test_kit/generated/v6.0.0/observation_clinical_result/observation_clinical_result_validation_test.rb +40 -0
  304. data/lib/us_core_test_kit/generated/v6.0.0/observation_clinical_result_group.rb +96 -0
  305. data/lib/us_core_test_kit/generated/v6.0.0/observation_lab/metadata.yml +264 -0
  306. data/lib/us_core_test_kit/generated/v6.0.0/observation_lab/observation_lab_must_support_test.rb +46 -0
  307. data/lib/us_core_test_kit/generated/v6.0.0/observation_lab/observation_lab_patient_category_date_search_test.rb +48 -0
  308. data/lib/us_core_test_kit/generated/v6.0.0/observation_lab/observation_lab_patient_category_search_test.rb +65 -0
  309. data/lib/us_core_test_kit/generated/v6.0.0/observation_lab/observation_lab_patient_category_status_search_test.rb +49 -0
  310. data/lib/us_core_test_kit/generated/v6.0.0/observation_lab/observation_lab_patient_code_date_search_test.rb +50 -0
  311. data/lib/us_core_test_kit/generated/v6.0.0/observation_lab/observation_lab_patient_code_search_test.rb +47 -0
  312. data/lib/us_core_test_kit/generated/v6.0.0/observation_lab/observation_lab_provenance_revinclude_search_test.rb +53 -0
  313. data/lib/us_core_test_kit/generated/v6.0.0/observation_lab/observation_lab_read_test.rb +26 -0
  314. data/lib/us_core_test_kit/generated/v6.0.0/observation_lab/observation_lab_reference_resolution_test.rb +43 -0
  315. data/lib/us_core_test_kit/generated/v6.0.0/observation_lab/observation_lab_validation_test.rb +40 -0
  316. data/lib/us_core_test_kit/generated/v6.0.0/observation_lab_group.rb +96 -0
  317. data/lib/us_core_test_kit/generated/v6.0.0/observation_occupation/metadata.yml +277 -0
  318. data/lib/us_core_test_kit/generated/v6.0.0/observation_occupation/observation_occupation_must_support_test.rb +47 -0
  319. data/lib/us_core_test_kit/generated/v6.0.0/observation_occupation/observation_occupation_patient_category_date_search_test.rb +48 -0
  320. data/lib/us_core_test_kit/generated/v6.0.0/observation_occupation/observation_occupation_patient_category_search_test.rb +47 -0
  321. data/lib/us_core_test_kit/generated/v6.0.0/observation_occupation/observation_occupation_patient_category_status_search_test.rb +49 -0
  322. data/lib/us_core_test_kit/generated/v6.0.0/observation_occupation/observation_occupation_patient_code_date_search_test.rb +50 -0
  323. data/lib/us_core_test_kit/generated/v6.0.0/observation_occupation/observation_occupation_patient_code_search_test.rb +64 -0
  324. data/lib/us_core_test_kit/generated/v6.0.0/observation_occupation/observation_occupation_provenance_revinclude_search_test.rb +53 -0
  325. data/lib/us_core_test_kit/generated/v6.0.0/observation_occupation/observation_occupation_read_test.rb +26 -0
  326. data/lib/us_core_test_kit/generated/v6.0.0/observation_occupation/observation_occupation_reference_resolution_test.rb +42 -0
  327. data/lib/us_core_test_kit/generated/v6.0.0/observation_occupation/observation_occupation_validation_test.rb +40 -0
  328. data/lib/us_core_test_kit/generated/v6.0.0/observation_occupation_group.rb +96 -0
  329. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancyintent/metadata.yml +266 -0
  330. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancyintent/observation_pregnancyintent_must_support_test.rb +43 -0
  331. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancyintent/observation_pregnancyintent_patient_category_date_search_test.rb +48 -0
  332. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancyintent/observation_pregnancyintent_patient_category_search_test.rb +47 -0
  333. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancyintent/observation_pregnancyintent_patient_category_status_search_test.rb +49 -0
  334. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancyintent/observation_pregnancyintent_patient_code_date_search_test.rb +50 -0
  335. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancyintent/observation_pregnancyintent_patient_code_search_test.rb +64 -0
  336. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancyintent/observation_pregnancyintent_provenance_revinclude_search_test.rb +53 -0
  337. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancyintent/observation_pregnancyintent_read_test.rb +26 -0
  338. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancyintent/observation_pregnancyintent_reference_resolution_test.rb +42 -0
  339. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancyintent/observation_pregnancyintent_validation_test.rb +40 -0
  340. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancyintent_group.rb +96 -0
  341. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancystatus/metadata.yml +266 -0
  342. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancystatus/observation_pregnancystatus_must_support_test.rb +43 -0
  343. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancystatus/observation_pregnancystatus_patient_category_date_search_test.rb +48 -0
  344. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancystatus/observation_pregnancystatus_patient_category_search_test.rb +47 -0
  345. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancystatus/observation_pregnancystatus_patient_category_status_search_test.rb +49 -0
  346. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancystatus/observation_pregnancystatus_patient_code_date_search_test.rb +50 -0
  347. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancystatus/observation_pregnancystatus_patient_code_search_test.rb +64 -0
  348. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancystatus/observation_pregnancystatus_provenance_revinclude_search_test.rb +53 -0
  349. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancystatus/observation_pregnancystatus_read_test.rb +26 -0
  350. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancystatus/observation_pregnancystatus_reference_resolution_test.rb +42 -0
  351. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancystatus/observation_pregnancystatus_validation_test.rb +40 -0
  352. data/lib/us_core_test_kit/generated/v6.0.0/observation_pregnancystatus_group.rb +96 -0
  353. data/lib/us_core_test_kit/generated/v6.0.0/observation_screening_assessment/metadata.yml +286 -0
  354. data/lib/us_core_test_kit/generated/v6.0.0/observation_screening_assessment/observation_screening_assessment_must_support_test.rb +49 -0
  355. data/lib/us_core_test_kit/generated/v6.0.0/observation_screening_assessment/observation_screening_assessment_patient_category_date_search_test.rb +48 -0
  356. data/lib/us_core_test_kit/generated/v6.0.0/observation_screening_assessment/observation_screening_assessment_patient_category_search_test.rb +65 -0
  357. data/lib/us_core_test_kit/generated/v6.0.0/observation_screening_assessment/observation_screening_assessment_patient_category_status_search_test.rb +49 -0
  358. data/lib/us_core_test_kit/generated/v6.0.0/observation_screening_assessment/observation_screening_assessment_patient_code_date_search_test.rb +50 -0
  359. data/lib/us_core_test_kit/generated/v6.0.0/observation_screening_assessment/observation_screening_assessment_patient_code_search_test.rb +47 -0
  360. data/lib/us_core_test_kit/generated/v6.0.0/observation_screening_assessment/observation_screening_assessment_provenance_revinclude_search_test.rb +53 -0
  361. data/lib/us_core_test_kit/generated/v6.0.0/observation_screening_assessment/observation_screening_assessment_read_test.rb +26 -0
  362. data/lib/us_core_test_kit/generated/v6.0.0/observation_screening_assessment/observation_screening_assessment_reference_resolution_test.rb +45 -0
  363. data/lib/us_core_test_kit/generated/v6.0.0/observation_screening_assessment/observation_screening_assessment_validation_test.rb +40 -0
  364. data/lib/us_core_test_kit/generated/v6.0.0/observation_screening_assessment_group.rb +96 -0
  365. data/lib/us_core_test_kit/generated/v6.0.0/observation_sexual_orientation/metadata.yml +256 -0
  366. data/lib/us_core_test_kit/generated/v6.0.0/observation_sexual_orientation/observation_sexual_orientation_must_support_test.rb +41 -0
  367. data/lib/us_core_test_kit/generated/v6.0.0/observation_sexual_orientation/observation_sexual_orientation_patient_category_date_search_test.rb +50 -0
  368. data/lib/us_core_test_kit/generated/v6.0.0/observation_sexual_orientation/observation_sexual_orientation_patient_category_search_test.rb +49 -0
  369. data/lib/us_core_test_kit/generated/v6.0.0/observation_sexual_orientation/observation_sexual_orientation_patient_category_status_search_test.rb +49 -0
  370. data/lib/us_core_test_kit/generated/v6.0.0/observation_sexual_orientation/observation_sexual_orientation_patient_code_date_search_test.rb +50 -0
  371. data/lib/us_core_test_kit/generated/v6.0.0/observation_sexual_orientation/observation_sexual_orientation_patient_code_search_test.rb +64 -0
  372. data/lib/us_core_test_kit/generated/v6.0.0/observation_sexual_orientation/observation_sexual_orientation_provenance_revinclude_search_test.rb +53 -0
  373. data/lib/us_core_test_kit/generated/v6.0.0/observation_sexual_orientation/observation_sexual_orientation_read_test.rb +26 -0
  374. data/lib/us_core_test_kit/generated/v6.0.0/observation_sexual_orientation/observation_sexual_orientation_reference_resolution_test.rb +42 -0
  375. data/lib/us_core_test_kit/generated/v6.0.0/observation_sexual_orientation/observation_sexual_orientation_validation_test.rb +40 -0
  376. data/lib/us_core_test_kit/generated/v6.0.0/observation_sexual_orientation_group.rb +96 -0
  377. data/lib/us_core_test_kit/generated/v6.0.0/organization/metadata.yml +141 -0
  378. data/lib/us_core_test_kit/generated/v6.0.0/organization/organization_address_search_test.rb +41 -0
  379. data/lib/us_core_test_kit/generated/v6.0.0/organization/organization_must_support_test.rb +51 -0
  380. data/lib/us_core_test_kit/generated/v6.0.0/organization/organization_name_search_test.rb +51 -0
  381. data/lib/us_core_test_kit/generated/v6.0.0/organization/organization_read_test.rb +26 -0
  382. data/lib/us_core_test_kit/generated/v6.0.0/organization/organization_validation_test.rb +40 -0
  383. data/lib/us_core_test_kit/generated/v6.0.0/organization_group.rb +85 -0
  384. data/lib/us_core_test_kit/generated/v6.0.0/patient/metadata.yml +381 -0
  385. data/lib/us_core_test_kit/generated/v6.0.0/patient/patient_birthdate_family_search_test.rb +43 -0
  386. data/lib/us_core_test_kit/generated/v6.0.0/patient/patient_birthdate_name_search_test.rb +41 -0
  387. data/lib/us_core_test_kit/generated/v6.0.0/patient/patient_death_date_family_search_test.rb +43 -0
  388. data/lib/us_core_test_kit/generated/v6.0.0/patient/patient_family_gender_search_test.rb +43 -0
  389. data/lib/us_core_test_kit/generated/v6.0.0/patient/patient_gender_name_search_test.rb +41 -0
  390. data/lib/us_core_test_kit/generated/v6.0.0/patient/patient_id_search_test.rb +55 -0
  391. data/lib/us_core_test_kit/generated/v6.0.0/patient/patient_identifier_search_test.rb +42 -0
  392. data/lib/us_core_test_kit/generated/v6.0.0/patient/patient_must_support_test.rb +69 -0
  393. data/lib/us_core_test_kit/generated/v6.0.0/patient/patient_name_search_test.rb +41 -0
  394. data/lib/us_core_test_kit/generated/v6.0.0/patient/patient_provenance_revinclude_search_test.rb +51 -0
  395. data/lib/us_core_test_kit/generated/v6.0.0/patient/patient_read_test.rb +26 -0
  396. data/lib/us_core_test_kit/generated/v6.0.0/patient/patient_validation_test.rb +40 -0
  397. data/lib/us_core_test_kit/generated/v6.0.0/patient_group.rb +102 -0
  398. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_bmi_for_age/metadata.yml +285 -0
  399. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_bmi_for_age/pediatric_bmi_for_age_must_support_test.rb +51 -0
  400. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_bmi_for_age/pediatric_bmi_for_age_patient_category_date_search_test.rb +48 -0
  401. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_bmi_for_age/pediatric_bmi_for_age_patient_category_search_test.rb +47 -0
  402. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_bmi_for_age/pediatric_bmi_for_age_patient_category_status_search_test.rb +49 -0
  403. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_bmi_for_age/pediatric_bmi_for_age_patient_code_date_search_test.rb +50 -0
  404. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_bmi_for_age/pediatric_bmi_for_age_patient_code_search_test.rb +64 -0
  405. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_bmi_for_age/pediatric_bmi_for_age_provenance_revinclude_search_test.rb +53 -0
  406. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_bmi_for_age/pediatric_bmi_for_age_read_test.rb +26 -0
  407. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_bmi_for_age/pediatric_bmi_for_age_reference_resolution_test.rb +42 -0
  408. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_bmi_for_age/pediatric_bmi_for_age_validation_test.rb +40 -0
  409. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_bmi_for_age_group.rb +96 -0
  410. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_weight_for_height/metadata.yml +285 -0
  411. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_weight_for_height/pediatric_weight_for_height_must_support_test.rb +51 -0
  412. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_weight_for_height/pediatric_weight_for_height_patient_category_date_search_test.rb +48 -0
  413. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_weight_for_height/pediatric_weight_for_height_patient_category_search_test.rb +47 -0
  414. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_weight_for_height/pediatric_weight_for_height_patient_category_status_search_test.rb +49 -0
  415. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_weight_for_height/pediatric_weight_for_height_patient_code_date_search_test.rb +50 -0
  416. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_weight_for_height/pediatric_weight_for_height_patient_code_search_test.rb +64 -0
  417. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_weight_for_height/pediatric_weight_for_height_provenance_revinclude_search_test.rb +53 -0
  418. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_weight_for_height/pediatric_weight_for_height_read_test.rb +26 -0
  419. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_weight_for_height/pediatric_weight_for_height_reference_resolution_test.rb +42 -0
  420. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_weight_for_height/pediatric_weight_for_height_validation_test.rb +40 -0
  421. data/lib/us_core_test_kit/generated/v6.0.0/pediatric_weight_for_height_group.rb +96 -0
  422. data/lib/us_core_test_kit/generated/v6.0.0/practitioner/metadata.yml +165 -0
  423. data/lib/us_core_test_kit/generated/v6.0.0/practitioner/practitioner_id_search_test.rb +53 -0
  424. data/lib/us_core_test_kit/generated/v6.0.0/practitioner/practitioner_identifier_search_test.rb +42 -0
  425. data/lib/us_core_test_kit/generated/v6.0.0/practitioner/practitioner_must_support_test.rb +51 -0
  426. data/lib/us_core_test_kit/generated/v6.0.0/practitioner/practitioner_name_search_test.rb +41 -0
  427. data/lib/us_core_test_kit/generated/v6.0.0/practitioner/practitioner_read_test.rb +26 -0
  428. data/lib/us_core_test_kit/generated/v6.0.0/practitioner/practitioner_validation_test.rb +40 -0
  429. data/lib/us_core_test_kit/generated/v6.0.0/practitioner_group.rb +87 -0
  430. data/lib/us_core_test_kit/generated/v6.0.0/procedure/metadata.yml +232 -0
  431. data/lib/us_core_test_kit/generated/v6.0.0/procedure/procedure_must_support_test.rb +44 -0
  432. data/lib/us_core_test_kit/generated/v6.0.0/procedure/procedure_patient_code_date_search_test.rb +50 -0
  433. data/lib/us_core_test_kit/generated/v6.0.0/procedure/procedure_patient_date_search_test.rb +47 -0
  434. data/lib/us_core_test_kit/generated/v6.0.0/procedure/procedure_patient_search_test.rb +62 -0
  435. data/lib/us_core_test_kit/generated/v6.0.0/procedure/procedure_patient_status_search_test.rb +48 -0
  436. data/lib/us_core_test_kit/generated/v6.0.0/procedure/procedure_provenance_revinclude_search_test.rb +52 -0
  437. data/lib/us_core_test_kit/generated/v6.0.0/procedure/procedure_read_test.rb +26 -0
  438. data/lib/us_core_test_kit/generated/v6.0.0/procedure/procedure_reference_resolution_test.rb +43 -0
  439. data/lib/us_core_test_kit/generated/v6.0.0/procedure/procedure_validation_test.rb +40 -0
  440. data/lib/us_core_test_kit/generated/v6.0.0/procedure_group.rb +93 -0
  441. data/lib/us_core_test_kit/generated/v6.0.0/provenance/metadata.yml +161 -0
  442. data/lib/us_core_test_kit/generated/v6.0.0/provenance/provenance_must_support_test.rb +46 -0
  443. data/lib/us_core_test_kit/generated/v6.0.0/provenance/provenance_read_test.rb +26 -0
  444. data/lib/us_core_test_kit/generated/v6.0.0/provenance/provenance_reference_resolution_test.rb +44 -0
  445. data/lib/us_core_test_kit/generated/v6.0.0/provenance/provenance_validation_test.rb +40 -0
  446. data/lib/us_core_test_kit/generated/v6.0.0/provenance_group.rb +59 -0
  447. data/lib/us_core_test_kit/generated/v6.0.0/pulse_oximetry/metadata.yml +348 -0
  448. data/lib/us_core_test_kit/generated/v6.0.0/pulse_oximetry/pulse_oximetry_must_support_test.rb +64 -0
  449. data/lib/us_core_test_kit/generated/v6.0.0/pulse_oximetry/pulse_oximetry_patient_category_date_search_test.rb +48 -0
  450. data/lib/us_core_test_kit/generated/v6.0.0/pulse_oximetry/pulse_oximetry_patient_category_search_test.rb +47 -0
  451. data/lib/us_core_test_kit/generated/v6.0.0/pulse_oximetry/pulse_oximetry_patient_category_status_search_test.rb +49 -0
  452. data/lib/us_core_test_kit/generated/v6.0.0/pulse_oximetry/pulse_oximetry_patient_code_date_search_test.rb +50 -0
  453. data/lib/us_core_test_kit/generated/v6.0.0/pulse_oximetry/pulse_oximetry_patient_code_search_test.rb +64 -0
  454. data/lib/us_core_test_kit/generated/v6.0.0/pulse_oximetry/pulse_oximetry_provenance_revinclude_search_test.rb +53 -0
  455. data/lib/us_core_test_kit/generated/v6.0.0/pulse_oximetry/pulse_oximetry_read_test.rb +26 -0
  456. data/lib/us_core_test_kit/generated/v6.0.0/pulse_oximetry/pulse_oximetry_reference_resolution_test.rb +42 -0
  457. data/lib/us_core_test_kit/generated/v6.0.0/pulse_oximetry/pulse_oximetry_validation_test.rb +40 -0
  458. data/lib/us_core_test_kit/generated/v6.0.0/pulse_oximetry_group.rb +96 -0
  459. data/lib/us_core_test_kit/generated/v6.0.0/questionnaire_response/metadata.yml +231 -0
  460. data/lib/us_core_test_kit/generated/v6.0.0/questionnaire_response/questionnaire_response_id_search_test.rb +42 -0
  461. data/lib/us_core_test_kit/generated/v6.0.0/questionnaire_response/questionnaire_response_must_support_test.rb +53 -0
  462. data/lib/us_core_test_kit/generated/v6.0.0/questionnaire_response/questionnaire_response_patient_authored_search_test.rb +49 -0
  463. data/lib/us_core_test_kit/generated/v6.0.0/questionnaire_response/questionnaire_response_patient_questionnaire_search_test.rb +48 -0
  464. data/lib/us_core_test_kit/generated/v6.0.0/questionnaire_response/questionnaire_response_patient_search_test.rb +63 -0
  465. data/lib/us_core_test_kit/generated/v6.0.0/questionnaire_response/questionnaire_response_patient_status_search_test.rb +48 -0
  466. data/lib/us_core_test_kit/generated/v6.0.0/questionnaire_response/questionnaire_response_provenance_revinclude_search_test.rb +52 -0
  467. data/lib/us_core_test_kit/generated/v6.0.0/questionnaire_response/questionnaire_response_read_test.rb +26 -0
  468. data/lib/us_core_test_kit/generated/v6.0.0/questionnaire_response/questionnaire_response_reference_resolution_test.rb +43 -0
  469. data/lib/us_core_test_kit/generated/v6.0.0/questionnaire_response/questionnaire_response_validation_test.rb +40 -0
  470. data/lib/us_core_test_kit/generated/v6.0.0/questionnaire_response_group.rb +97 -0
  471. data/lib/us_core_test_kit/generated/v6.0.0/related_person/metadata.yml +136 -0
  472. data/lib/us_core_test_kit/generated/v6.0.0/related_person/related_person_id_search_test.rb +41 -0
  473. data/lib/us_core_test_kit/generated/v6.0.0/related_person/related_person_must_support_test.rb +42 -0
  474. data/lib/us_core_test_kit/generated/v6.0.0/related_person/related_person_name_search_test.rb +43 -0
  475. data/lib/us_core_test_kit/generated/v6.0.0/related_person/related_person_patient_name_search_test.rb +47 -0
  476. data/lib/us_core_test_kit/generated/v6.0.0/related_person/related_person_patient_search_test.rb +63 -0
  477. data/lib/us_core_test_kit/generated/v6.0.0/related_person/related_person_provenance_revinclude_search_test.rb +51 -0
  478. data/lib/us_core_test_kit/generated/v6.0.0/related_person/related_person_read_test.rb +26 -0
  479. data/lib/us_core_test_kit/generated/v6.0.0/related_person/related_person_reference_resolution_test.rb +42 -0
  480. data/lib/us_core_test_kit/generated/v6.0.0/related_person/related_person_validation_test.rb +40 -0
  481. data/lib/us_core_test_kit/generated/v6.0.0/related_person_group.rb +92 -0
  482. data/lib/us_core_test_kit/generated/v6.0.0/resource_list.rb +34 -0
  483. data/lib/us_core_test_kit/generated/v6.0.0/respiratory_rate/metadata.yml +285 -0
  484. data/lib/us_core_test_kit/generated/v6.0.0/respiratory_rate/respiratory_rate_must_support_test.rb +51 -0
  485. data/lib/us_core_test_kit/generated/v6.0.0/respiratory_rate/respiratory_rate_patient_category_date_search_test.rb +48 -0
  486. data/lib/us_core_test_kit/generated/v6.0.0/respiratory_rate/respiratory_rate_patient_category_search_test.rb +47 -0
  487. data/lib/us_core_test_kit/generated/v6.0.0/respiratory_rate/respiratory_rate_patient_category_status_search_test.rb +49 -0
  488. data/lib/us_core_test_kit/generated/v6.0.0/respiratory_rate/respiratory_rate_patient_code_date_search_test.rb +50 -0
  489. data/lib/us_core_test_kit/generated/v6.0.0/respiratory_rate/respiratory_rate_patient_code_search_test.rb +64 -0
  490. data/lib/us_core_test_kit/generated/v6.0.0/respiratory_rate/respiratory_rate_provenance_revinclude_search_test.rb +53 -0
  491. data/lib/us_core_test_kit/generated/v6.0.0/respiratory_rate/respiratory_rate_read_test.rb +26 -0
  492. data/lib/us_core_test_kit/generated/v6.0.0/respiratory_rate/respiratory_rate_reference_resolution_test.rb +42 -0
  493. data/lib/us_core_test_kit/generated/v6.0.0/respiratory_rate/respiratory_rate_validation_test.rb +40 -0
  494. data/lib/us_core_test_kit/generated/v6.0.0/respiratory_rate_group.rb +96 -0
  495. data/lib/us_core_test_kit/generated/v6.0.0/service_request/metadata.yml +321 -0
  496. data/lib/us_core_test_kit/generated/v6.0.0/service_request/service_request_id_search_test.rb +42 -0
  497. data/lib/us_core_test_kit/generated/v6.0.0/service_request/service_request_must_support_test.rb +49 -0
  498. data/lib/us_core_test_kit/generated/v6.0.0/service_request/service_request_patient_category_authored_search_test.rb +48 -0
  499. data/lib/us_core_test_kit/generated/v6.0.0/service_request/service_request_patient_category_search_test.rb +47 -0
  500. data/lib/us_core_test_kit/generated/v6.0.0/service_request/service_request_patient_code_authored_search_test.rb +50 -0
  501. data/lib/us_core_test_kit/generated/v6.0.0/service_request/service_request_patient_code_search_test.rb +47 -0
  502. data/lib/us_core_test_kit/generated/v6.0.0/service_request/service_request_patient_search_test.rb +63 -0
  503. data/lib/us_core_test_kit/generated/v6.0.0/service_request/service_request_patient_status_search_test.rb +48 -0
  504. data/lib/us_core_test_kit/generated/v6.0.0/service_request/service_request_provenance_revinclude_search_test.rb +52 -0
  505. data/lib/us_core_test_kit/generated/v6.0.0/service_request/service_request_read_test.rb +26 -0
  506. data/lib/us_core_test_kit/generated/v6.0.0/service_request/service_request_reference_resolution_test.rb +44 -0
  507. data/lib/us_core_test_kit/generated/v6.0.0/service_request/service_request_validation_test.rb +40 -0
  508. data/lib/us_core_test_kit/generated/v6.0.0/service_request_group.rb +102 -0
  509. data/lib/us_core_test_kit/generated/v6.0.0/simple_observation/metadata.yml +291 -0
  510. data/lib/us_core_test_kit/generated/v6.0.0/simple_observation/simple_observation_must_support_test.rb +51 -0
  511. data/lib/us_core_test_kit/generated/v6.0.0/simple_observation/simple_observation_patient_category_date_search_test.rb +48 -0
  512. data/lib/us_core_test_kit/generated/v6.0.0/simple_observation/simple_observation_patient_category_search_test.rb +65 -0
  513. data/lib/us_core_test_kit/generated/v6.0.0/simple_observation/simple_observation_patient_category_status_search_test.rb +49 -0
  514. data/lib/us_core_test_kit/generated/v6.0.0/simple_observation/simple_observation_patient_code_date_search_test.rb +50 -0
  515. data/lib/us_core_test_kit/generated/v6.0.0/simple_observation/simple_observation_patient_code_search_test.rb +47 -0
  516. data/lib/us_core_test_kit/generated/v6.0.0/simple_observation/simple_observation_provenance_revinclude_search_test.rb +53 -0
  517. data/lib/us_core_test_kit/generated/v6.0.0/simple_observation/simple_observation_read_test.rb +26 -0
  518. data/lib/us_core_test_kit/generated/v6.0.0/simple_observation/simple_observation_reference_resolution_test.rb +44 -0
  519. data/lib/us_core_test_kit/generated/v6.0.0/simple_observation/simple_observation_validation_test.rb +40 -0
  520. data/lib/us_core_test_kit/generated/v6.0.0/simple_observation_group.rb +98 -0
  521. data/lib/us_core_test_kit/generated/v6.0.0/smokingstatus/metadata.yml +249 -0
  522. data/lib/us_core_test_kit/generated/v6.0.0/smokingstatus/smokingstatus_must_support_test.rb +43 -0
  523. data/lib/us_core_test_kit/generated/v6.0.0/smokingstatus/smokingstatus_patient_category_date_search_test.rb +48 -0
  524. data/lib/us_core_test_kit/generated/v6.0.0/smokingstatus/smokingstatus_patient_category_search_test.rb +47 -0
  525. data/lib/us_core_test_kit/generated/v6.0.0/smokingstatus/smokingstatus_patient_category_status_search_test.rb +49 -0
  526. data/lib/us_core_test_kit/generated/v6.0.0/smokingstatus/smokingstatus_patient_code_date_search_test.rb +50 -0
  527. data/lib/us_core_test_kit/generated/v6.0.0/smokingstatus/smokingstatus_patient_code_search_test.rb +64 -0
  528. data/lib/us_core_test_kit/generated/v6.0.0/smokingstatus/smokingstatus_provenance_revinclude_search_test.rb +53 -0
  529. data/lib/us_core_test_kit/generated/v6.0.0/smokingstatus/smokingstatus_read_test.rb +26 -0
  530. data/lib/us_core_test_kit/generated/v6.0.0/smokingstatus/smokingstatus_reference_resolution_test.rb +42 -0
  531. data/lib/us_core_test_kit/generated/v6.0.0/smokingstatus/smokingstatus_validation_test.rb +40 -0
  532. data/lib/us_core_test_kit/generated/v6.0.0/smokingstatus_group.rb +96 -0
  533. data/lib/us_core_test_kit/generated/v6.0.0/specimen/metadata.yml +115 -0
  534. data/lib/us_core_test_kit/generated/v6.0.0/specimen/specimen_id_search_test.rb +41 -0
  535. data/lib/us_core_test_kit/generated/v6.0.0/specimen/specimen_must_support_test.rb +38 -0
  536. data/lib/us_core_test_kit/generated/v6.0.0/specimen/specimen_patient_search_test.rb +63 -0
  537. data/lib/us_core_test_kit/generated/v6.0.0/specimen/specimen_read_test.rb +26 -0
  538. data/lib/us_core_test_kit/generated/v6.0.0/specimen/specimen_reference_resolution_test.rb +42 -0
  539. data/lib/us_core_test_kit/generated/v6.0.0/specimen/specimen_validation_test.rb +40 -0
  540. data/lib/us_core_test_kit/generated/v6.0.0/specimen_group.rb +86 -0
  541. data/lib/us_core_test_kit/generated/v6.0.0/us_core_test_suite.rb +168 -0
  542. data/lib/us_core_test_kit/generator/group_generator.rb +2 -1
  543. data/lib/us_core_test_kit/generator/group_metadata.rb +7 -6
  544. data/lib/us_core_test_kit/generator/group_metadata_extractor.rb +14 -3
  545. data/lib/us_core_test_kit/generator/ig_metadata.rb +1 -1
  546. data/lib/us_core_test_kit/generator/ig_metadata_extractor.rb +2 -1
  547. data/lib/us_core_test_kit/generator/ig_resources.rb +4 -0
  548. data/lib/us_core_test_kit/generator/must_support_metadata_extractor.rb +34 -4
  549. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_4.rb +7 -0
  550. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_5.rb +0 -19
  551. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_6.rb +84 -0
  552. data/lib/us_core_test_kit/generator/search_definition_metadata_extractor.rb +3 -1
  553. data/lib/us_core_test_kit/generator/search_test_generator.rb +1 -1
  554. data/lib/us_core_test_kit/generator/suite_generator.rb +4 -0
  555. data/lib/us_core_test_kit/generator/value_extractor.rb +18 -2
  556. data/lib/us_core_test_kit/igs/us_core_501/ValueSet-servicerequest-category.json +69 -0
  557. data/lib/us_core_test_kit/igs/us_core_600/CodeSystem-observation-category.json +83 -0
  558. data/lib/us_core_test_kit/igs/us_core_600/StructureDefinition-condition-assertedDate.json +280 -0
  559. data/lib/us_core_test_kit/igs/us_core_600/ValueSet-observation-category.json +48 -0
  560. data/lib/us_core_test_kit/igs/us_core_600/ValueSet-servicerequest-category.json +69 -0
  561. data/lib/us_core_test_kit/igs/us_core_600.tgz +0 -0
  562. data/lib/us_core_test_kit/reference_resolution_test.rb +4 -2
  563. data/lib/us_core_test_kit/version.rb +1 -1
  564. data/lib/us_core_test_kit.rb +1 -0
  565. metadata +537 -2
@@ -0,0 +1,168 @@
1
+ require 'inferno/dsl/oauth_credentials'
2
+ require_relative '../../version'
3
+ require_relative '../../custom_groups/v6.0.0/capability_statement_group'
4
+ require_relative '../../custom_groups/v4.0.0/clinical_notes_guidance_group'
5
+ require_relative '../../custom_groups/data_absent_reason_group'
6
+ require_relative '../../provenance_validator'
7
+ require_relative 'patient_group'
8
+ require_relative 'allergy_intolerance_group'
9
+ require_relative 'care_plan_group'
10
+ require_relative 'care_team_group'
11
+ require_relative 'condition_encounter_diagnosis_group'
12
+ require_relative 'condition_problems_health_concerns_group'
13
+ require_relative 'coverage_group'
14
+ require_relative 'device_group'
15
+ require_relative 'diagnostic_report_note_group'
16
+ require_relative 'diagnostic_report_lab_group'
17
+ require_relative 'document_reference_group'
18
+ require_relative 'encounter_group'
19
+ require_relative 'goal_group'
20
+ require_relative 'immunization_group'
21
+ require_relative 'medication_dispense_group'
22
+ require_relative 'medication_request_group'
23
+ require_relative 'observation_lab_group'
24
+ require_relative 'observation_pregnancystatus_group'
25
+ require_relative 'observation_pregnancyintent_group'
26
+ require_relative 'observation_occupation_group'
27
+ require_relative 'respiratory_rate_group'
28
+ require_relative 'simple_observation_group'
29
+ require_relative 'heart_rate_group'
30
+ require_relative 'body_temperature_group'
31
+ require_relative 'pediatric_weight_for_height_group'
32
+ require_relative 'pulse_oximetry_group'
33
+ require_relative 'smokingstatus_group'
34
+ require_relative 'observation_sexual_orientation_group'
35
+ require_relative 'head_circumference_group'
36
+ require_relative 'body_height_group'
37
+ require_relative 'bmi_group'
38
+ require_relative 'observation_screening_assessment_group'
39
+ require_relative 'blood_pressure_group'
40
+ require_relative 'observation_clinical_result_group'
41
+ require_relative 'pediatric_bmi_for_age_group'
42
+ require_relative 'head_circumference_percentile_group'
43
+ require_relative 'body_weight_group'
44
+ require_relative 'procedure_group'
45
+ require_relative 'questionnaire_response_group'
46
+ require_relative 'service_request_group'
47
+ require_relative 'organization_group'
48
+ require_relative 'practitioner_group'
49
+ require_relative 'provenance_group'
50
+ require_relative 'related_person_group'
51
+ require_relative 'specimen_group'
52
+
53
+ module USCoreTestKit
54
+ module USCoreV600
55
+ class USCoreTestSuite < Inferno::TestSuite
56
+ title 'US Core v6.0.0'
57
+ description %(
58
+ The US Core Test Kit tests systems for their conformance to the [US Core
59
+ Implementation Guide]().
60
+
61
+ Resources are validated with the FHIR Java validator using `tx.fhir.org`
62
+ as the terminology server. Users should note that the although the ONC
63
+ Certification (g)(10) Standardized API Test Suite includes tests from
64
+ this suite, [it uses a different method to perform terminology
65
+ validation](https://github.com/onc-healthit/onc-certification-g10-test-kit/wiki/FAQ#q-why-do-some-resources-fail-in-us-core-test-kit-with-terminology-validation-errors).
66
+ As a result, resource validation results may not be consistent between
67
+ the US Core Test Suite and the ONC Certification (g)(10) Standardized
68
+ API Test Suite.
69
+ )
70
+ version VERSION
71
+
72
+ VALIDATION_MESSAGE_FILTERS = [
73
+ %r{Sub-extension url 'introspect' is not defined by the Extension http://fhir-registry\.smarthealthit\.org/StructureDefinition/oauth-uris},
74
+ %r{Sub-extension url 'revoke' is not defined by the Extension http://fhir-registry\.smarthealthit\.org/StructureDefinition/oauth-uris},
75
+ /Observation\.effective\.ofType\(Period\): .*vs-1:/, # Invalid invariant in FHIR v4.0.1
76
+ /Observation\.effective\.ofType\(Period\): .*us-core-1:/, # Invalid invariant in US Core v3.1.1
77
+ /Provenance.agent\[\d*\]: Rule provenance-1/ #Invalid invariant in US Core v5.0.1
78
+ ].freeze
79
+
80
+ VERSION_SPECIFIC_MESSAGE_FILTERS = [].freeze
81
+
82
+ def self.metadata
83
+ @metadata ||= YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)[:groups].map do |raw_metadata|
84
+ Generator::GroupMetadata.new(raw_metadata)
85
+ end
86
+ end
87
+
88
+ validator do
89
+ url ENV.fetch('V600_VALIDATOR_URL', 'http://validator_service:4567')
90
+ message_filters = VALIDATION_MESSAGE_FILTERS + VERSION_SPECIFIC_MESSAGE_FILTERS
91
+
92
+ exclude_message do |message|
93
+
94
+ message_filters.any? { |filter| filter.match? message.message }
95
+ end
96
+
97
+ perform_additional_validation do |resource, profile_url|
98
+ ProvenanceValidator.validate(resource) if resource.instance_of?(FHIR::Provenance)
99
+ end
100
+ end
101
+
102
+ id :us_core_v600
103
+
104
+ input :url,
105
+ title: 'FHIR Endpoint',
106
+ description: 'URL of the FHIR endpoint'
107
+ input :smart_credentials,
108
+ title: 'OAuth Credentials',
109
+ type: :oauth_credentials,
110
+ optional: true
111
+
112
+ fhir_client do
113
+ url :url
114
+ oauth_credentials :smart_credentials
115
+ end
116
+
117
+ group from: :us_core_v600_capability_statement
118
+
119
+ group from: :us_core_v600_patient
120
+ group from: :us_core_v600_allergy_intolerance
121
+ group from: :us_core_v600_care_plan
122
+ group from: :us_core_v600_care_team
123
+ group from: :us_core_v600_condition_encounter_diagnosis
124
+ group from: :us_core_v600_condition_problems_health_concerns
125
+ group from: :us_core_v600_coverage
126
+ group from: :us_core_v600_device
127
+ group from: :us_core_v600_diagnostic_report_note
128
+ group from: :us_core_v600_diagnostic_report_lab
129
+ group from: :us_core_v600_document_reference
130
+ group from: :us_core_v600_encounter
131
+ group from: :us_core_v600_goal
132
+ group from: :us_core_v600_immunization
133
+ group from: :us_core_v600_medication_dispense
134
+ group from: :us_core_v600_medication_request
135
+ group from: :us_core_v600_observation_lab
136
+ group from: :us_core_v600_observation_pregnancystatus
137
+ group from: :us_core_v600_observation_pregnancyintent
138
+ group from: :us_core_v600_observation_occupation
139
+ group from: :us_core_v600_respiratory_rate
140
+ group from: :us_core_v600_simple_observation
141
+ group from: :us_core_v600_heart_rate
142
+ group from: :us_core_v600_body_temperature
143
+ group from: :us_core_v600_pediatric_weight_for_height
144
+ group from: :us_core_v600_pulse_oximetry
145
+ group from: :us_core_v600_smokingstatus
146
+ group from: :us_core_v600_observation_sexual_orientation
147
+ group from: :us_core_v600_head_circumference
148
+ group from: :us_core_v600_body_height
149
+ group from: :us_core_v600_bmi
150
+ group from: :us_core_v600_observation_screening_assessment
151
+ group from: :us_core_v600_blood_pressure
152
+ group from: :us_core_v600_observation_clinical_result
153
+ group from: :us_core_v600_pediatric_bmi_for_age
154
+ group from: :us_core_v600_head_circumference_percentile
155
+ group from: :us_core_v600_body_weight
156
+ group from: :us_core_v600_procedure
157
+ group from: :us_core_v600_questionnaire_response
158
+ group from: :us_core_v600_service_request
159
+ group from: :us_core_v600_organization
160
+ group from: :us_core_v600_practitioner
161
+ group from: :us_core_v600_provenance
162
+ group from: :us_core_v600_related_person
163
+ group from: :us_core_v600_specimen
164
+ group from: :us_core_v400_clinical_notes_guidance
165
+ group from: :us_core_311_data_absent_reason
166
+ end
167
+ end
168
+ end
@@ -95,7 +95,8 @@ module USCoreTestKit
95
95
 
96
96
 
97
97
  def optional?
98
- resource_type == 'QuestionnaireResponse'
98
+ resource_type == 'QuestionnaireResponse' ||
99
+ profile_url == 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-simple-observation'
99
100
  end
100
101
 
101
102
  def generate
@@ -31,12 +31,13 @@ module USCoreTestKit
31
31
 
32
32
  NON_USCDI_RESOURCES = {
33
33
  'Encounter' => ['v311', 'v400'],
34
- 'Location' => ['v311', 'v400', 'v501'],
35
- 'Organization' => ['v311', 'v400', 'v501'],
36
- 'Practitioner' => ['v311', 'v400', 'v501'],
37
- 'PractitionerRole' => ['v311', 'v400', 'v501'],
38
- 'Provenance' => ['v311', 'v400', 'v501'],
39
- 'RelatedPerson' => ['v501']
34
+ 'Location' => ['v311', 'v400', 'v501', 'v600'],
35
+ 'Organization' => ['v311', 'v400', 'v501', 'v600'],
36
+ 'Practitioner' => ['v311', 'v400', 'v501', 'v600'],
37
+ 'PractitionerRole' => ['v311', 'v400', 'v501', 'v600'],
38
+ 'Provenance' => ['v311', 'v400', 'v501', 'v600'],
39
+ 'RelatedPerson' => ['v501', 'v600'],
40
+ 'Specimen' => ['v600']
40
41
  }.freeze
41
42
 
42
43
 
@@ -95,20 +95,29 @@ module USCoreTestKit
95
95
 
96
96
  ### BEGIN SPECIAL CASES ###
97
97
 
98
- CATEGORY_FIRST_PROFILES = [
98
+ ALL_VERSION_CATEGORY_FIRST_PROFILES = [
99
99
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan',
100
100
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab',
101
101
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note',
102
+ 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-clinical-result',
102
103
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-clinical-test',
103
104
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-imaging',
104
105
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab',
106
+ 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment',
105
107
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-sdoh-assessment',
106
108
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-social-history',
107
- 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-survey'
109
+ 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-survey',
110
+ 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-simple-observation'
108
111
  ]
109
112
 
113
+ VERSION_SPECIFIC_CATEGORY_FIRST_PROFILES = {
114
+ 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition-encounter-diagnosis' => [ 'v600' ],
115
+ 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition-problems-health-concerns' => [ 'v600' ]
116
+ }
117
+
110
118
  def category_first_profile?
111
- CATEGORY_FIRST_PROFILES.include?(profile_url)
119
+ ALL_VERSION_CATEGORY_FIRST_PROFILES.include?(profile_url) ||
120
+ VERSION_SPECIFIC_CATEGORY_FIRST_PROFILES[profile_url]&.include?(reformatted_version)
112
121
  end
113
122
 
114
123
  def first_search_params
@@ -178,6 +187,7 @@ module USCoreTestKit
178
187
  end
179
188
 
180
189
  def profile_name
190
+ binding.pry if profile.nil?
181
191
  profile.title.gsub(' ', ' ')
182
192
  end
183
193
 
@@ -249,6 +259,7 @@ module USCoreTestKit
249
259
  .select { |element| element.type&.any? { |type| type.code == 'CodeableConcept' } }
250
260
  .select { |element| element.binding&.strength == 'required' }
251
261
  .map { |element| element.path.gsub("#{resource}.", '').gsub('[x]', 'CodeableConcept') }
262
+ .uniq
252
263
  end
253
264
 
254
265
  def terminology_binding_metadata_extractor
@@ -4,7 +4,7 @@ module USCoreTestKit
4
4
  attr_accessor :ig_version, :groups
5
5
 
6
6
  def reformatted_version
7
- @reformatted_version ||= ig_version.delete('.')
7
+ @reformatted_version ||= ig_version.delete('.').gsub('-', '_')
8
8
  end
9
9
 
10
10
  def ordered_groups
@@ -64,9 +64,10 @@ module USCoreTestKit
64
64
  metadata.groups =
65
65
  resources_in_capability_statement.flat_map do |resource|
66
66
  resource.supportedProfile&.map do |supported_profile|
67
+ next if supported_profile == 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire'
67
68
  GroupMetadataExtractor.new(resource, supported_profile, metadata, ig_resources).group_metadata
68
69
  end
69
- end
70
+ end.compact
70
71
 
71
72
  metadata.postprocess_groups(ig_resources)
72
73
  end
@@ -31,6 +31,10 @@ module USCoreTestKit
31
31
  resources_by_type['ValueSet'].find { |profile| profile.url == url }
32
32
  end
33
33
 
34
+ def code_system_by_url(url)
35
+ resources_by_type['CodeSystem'].find { |system| system.url == url }
36
+ end
37
+
34
38
  def search_param_by_resource_and_name(resource, name)
35
39
  # remove '_' from search parameter name, such as _id or _tag
36
40
  normalized_name = normalized_name = name.to_s.delete_prefix('_')
@@ -2,6 +2,7 @@ require_relative 'value_extractor'
2
2
  require_relative 'must_support_metadata_extractor_us_core_3'
3
3
  require_relative 'must_support_metadata_extractor_us_core_4'
4
4
  require_relative 'must_support_metadata_extractor_us_core_5'
5
+ require_relative 'must_support_metadata_extractor_us_core_6'
5
6
 
6
7
  module USCoreTestKit
7
8
  class Generator
@@ -27,8 +28,15 @@ module USCoreTestKit
27
28
  @must_supports
28
29
  end
29
30
 
31
+ def is_uscdi_requirement_element?(element)
32
+ element.extension.any? do |extension|
33
+ extension.url == 'http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement' &&
34
+ extension.valueBoolean
35
+ end && !element.mustSupport
36
+ end
37
+
30
38
  def all_must_support_elements
31
- profile_elements.select { |element| element.mustSupport }
39
+ profile_elements.select { |element| element.mustSupport || is_uscdi_requirement_element?(element) }
32
40
  end
33
41
 
34
42
  def must_support_extension_elements
@@ -40,7 +48,11 @@ module USCoreTestKit
40
48
  {
41
49
  id: element.id,
42
50
  url: element.type.first.profile.first
43
- }
51
+ }.tap do |metadata|
52
+ if is_uscdi_requirement_element?(element)
53
+ metadata[:uscdi_only] = true
54
+ end
55
+ end
44
56
  end
45
57
  end
46
58
 
@@ -49,7 +61,7 @@ module USCoreTestKit
49
61
  end
50
62
 
51
63
  def sliced_element(slice)
52
- profile_elements.find { |element| element.id == slice.path }
64
+ profile_elements.find { |element| element.id == slice.path || element.id == slice.id.sub(":#{slice.sliceName}", '') }
53
65
  end
54
66
 
55
67
  def discriminators(slice)
@@ -115,6 +127,10 @@ module USCoreTestKit
115
127
  else
116
128
  raise StandardError, 'Unsupported discriminator pattern type'
117
129
  end
130
+
131
+ if is_uscdi_requirement_element?(current_element)
132
+ metadata[:uscdi_only] = true
133
+ end
118
134
  end
119
135
  end
120
136
  end
@@ -146,7 +162,11 @@ module USCoreTestKit
146
162
  type: 'type',
147
163
  code: type_code.upcase_first
148
164
  }
149
- }
165
+ }.tap do |metadata|
166
+ if is_uscdi_requirement_element?(current_element)
167
+ metadata[:uscdi_only] = true
168
+ end
169
+ end
150
170
  end
151
171
  end
152
172
 
@@ -176,6 +196,10 @@ module USCoreTestKit
176
196
  value: fixed_element.fixedUri || fixed_element.fixedCode
177
197
  }
178
198
  end
199
+
200
+ if is_uscdi_requirement_element?(current_element)
201
+ metadata[:uscdi_only] = true
202
+ end
179
203
  end
180
204
  end
181
205
  end
@@ -261,6 +285,10 @@ module USCoreTestKit
261
285
  {
262
286
  path: current_element.path.gsub("#{resource}.", '')
263
287
  }.tap do |current_metadata|
288
+ if is_uscdi_requirement_element?(current_element)
289
+ current_metadata[:uscdi_only] = true
290
+ end
291
+
264
292
  type_must_support_metadata = get_type_must_support_metadata(current_metadata, current_element)
265
293
 
266
294
  if type_must_support_metadata.any?
@@ -299,6 +327,8 @@ module USCoreTestKit
299
327
  MustSupportMetadataExtractorUsCore4.new(profile, @must_supports).handle_special_cases
300
328
  when '5.0.1'
301
329
  MustSupportMetadataExtractorUsCore5.new(profile, @must_supports).handle_special_cases
330
+ when '6.0.0'
331
+ MustSupportMetadataExtractorUsCore6.new(profile, @must_supports).handle_special_cases
302
332
  end
303
333
  end
304
334
 
@@ -95,6 +95,13 @@ module USCoreTestKit
95
95
  path: 'communication',
96
96
  uscdi_only: true
97
97
  }
98
+
99
+ add_patient_telecom_communication_uscdi
100
+ end
101
+
102
+ def add_patient_telecom_communication_uscdi
103
+ return unless profile.type == 'Patient'
104
+
98
105
  # Though telecom.system, telecom.value, telecom.use, and communication.language are marked as MustSupport since US Core v4.0.0,
99
106
  # their parent elements telecom, and communication are not MustSupport but listed under "Additional USCDI requirements"
100
107
  # According to the updated FHIR spec that "When a child element is defined as Must Support and the parent element isn't,
@@ -19,7 +19,6 @@ module USCoreTestKit
19
19
  add_must_support_choices
20
20
  remove_patient_address_period
21
21
  add_patient_uscdi_elements
22
- add_value_set_expansion
23
22
  remove_survey_questionnaire_response
24
23
  end
25
24
 
@@ -80,24 +79,6 @@ module USCoreTestKit
80
79
  add_service_request_category_values
81
80
  end
82
81
 
83
- def add_document_reference_category_values
84
- return unless profile.type == 'DocumentReference'
85
-
86
- slice = must_supports[:slices].find{|slice| slice[:path] == 'category'}
87
-
88
- slice[:discriminator][:values] = ['clinical-note'] if slice.present?
89
- end
90
-
91
- def add_service_request_category_values
92
- return unless profile.type == 'ServiceRequest'
93
-
94
- slice = must_supports[:slices].find{|slice| slice[:path] == 'category'}
95
-
96
- if slice.present?
97
- slice[:discriminator][:values].concat(['108252007', '363679005', '409063005', '409073007', '387713003'])
98
- end
99
- end
100
-
101
82
  # FHIR-37794 Server systems are not required to support US Core QuestionnaireResponse
102
83
  def remove_survey_questionnaire_response
103
84
  return unless profile.type == 'Observation' &&
@@ -0,0 +1,84 @@
1
+ require_relative 'must_support_metadata_extractor_us_core_5'
2
+
3
+ module USCoreTestKit
4
+ class Generator
5
+ class MustSupportMetadataExtractorUsCore6
6
+ attr_accessor :profile, :must_supports
7
+
8
+ US_CORE_CATEGORY = ['sdoh', 'functional-status', 'disability-status', 'cognitive-status']
9
+
10
+ def initialize(profile, must_supports)
11
+ self.profile = profile
12
+ self.must_supports = must_supports
13
+ end
14
+
15
+ def us_core_4_extractor
16
+ @us_core_4_extractor ||= MustSupportMetadataExtractorUsCore4.new(profile, must_supports)
17
+ end
18
+
19
+ def us_core_5_extractor
20
+ @us_core_5_extractor ||= MustSupportMetadataExtractorUsCore5.new(profile, must_supports)
21
+ end
22
+
23
+ def handle_special_cases
24
+ add_must_support_choices
25
+ add_patient_uscdi_elements
26
+ end
27
+
28
+ def add_must_support_choices
29
+ us_core_5_extractor.add_must_support_choices
30
+
31
+ more_choices = []
32
+
33
+ case profile.type
34
+ when 'Goal'
35
+ more_choices << {
36
+ paths: ['startDate', 'target.dueDate']
37
+ }
38
+ when 'MedicationRequest'
39
+ more_choices << {
40
+ paths: ['reasonCode', 'reasonReference'],
41
+ uscdi_only: true
42
+ }
43
+ when 'ServiceRequest'
44
+ more_choices << {
45
+ paths: ['reasonCode', 'reasonReference'],
46
+ uscdi_only: true
47
+ }
48
+ end
49
+
50
+ if profile.id == 'us-core-observation-screening-assessment'
51
+ more_choices << {
52
+ target_profiles: [
53
+ 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment',
54
+ 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-questionnaireresponse'
55
+ ]
56
+ }
57
+ end
58
+
59
+ if more_choices.present?
60
+ must_supports[:choices] ||= []
61
+ must_supports[:choices].concat(more_choices)
62
+ end
63
+ end
64
+
65
+ def add_patient_uscdi_elements
66
+ return unless profile.type == 'Patient'
67
+
68
+ us_core_4_extractor.add_patient_telecom_communication_uscdi
69
+
70
+ must_supports[:elements].each do |element|
71
+ case element[:path]
72
+ when 'address.use', 'name.use'
73
+ element[:fixed_value] = 'old'
74
+ when 'deceased[x]'
75
+ element[:original_path] = element[:path]
76
+ element[:path] = 'deceasedDateTime'
77
+ end
78
+ end
79
+
80
+
81
+ end
82
+ end
83
+ end
84
+ end
@@ -163,8 +163,10 @@ module USCoreTestKit
163
163
 
164
164
  def values
165
165
  value_extractor.values_from_slicing(profile_element, type).presence ||
166
+ value_extractor.values_from_required_binding(profile_element).presence ||
166
167
  value_extractor.values_from_value_set_binding(profile_element).presence ||
167
- values_from_resource_metadata(paths).presence || []
168
+ values_from_resource_metadata(paths).presence ||
169
+ []
168
170
  end
169
171
 
170
172
  def values_from_resource_metadata(paths)
@@ -184,7 +184,7 @@ module USCoreTestKit
184
184
  end
185
185
 
186
186
  def test_medication_inclusion?
187
- resource_type == 'MedicationRequest'
187
+ ['MedicationRequest', 'MedicationDispense'].include?(resource_type)
188
188
  end
189
189
 
190
190
  def test_post_search?
@@ -17,6 +17,10 @@ module USCoreTestKit
17
17
  self.base_output_dir = base_output_dir
18
18
  end
19
19
 
20
+ def version_specific_message_filters
21
+ []
22
+ end
23
+
20
24
  def template
21
25
  @template ||= File.read(File.join(__dir__, 'templates', 'suite.rb.erb'))
22
26
  end
@@ -11,7 +11,6 @@ module USCoreTestKit
11
11
 
12
12
  def values_from_slicing(profile_element, type)
13
13
  (
14
- values_from_required_binding(profile_element) +
15
14
  values_from_fixed_codes(profile_element, type) +
16
15
  values_from_pattern_coding(profile_element, type) +
17
16
  values_from_pattern_codeable_concept(profile_element, type)
@@ -68,7 +67,24 @@ module USCoreTestKit
68
67
  end
69
68
 
70
69
  def bound_systems(the_element)
71
- value_set(the_element)&.compose&.include&.reject { |code| code.concept.nil? }
70
+ bound_systems_from_valueset(value_set(the_element))
71
+ end
72
+
73
+ def bound_systems_from_valueset(value_set)
74
+ systems = value_set&.compose&.include&.map do |include|
75
+ if include.concept.present?
76
+ include
77
+ elsif include.system.present? && include.filter&.empty? # Cannot process intensional value set with filters
78
+ ig_resources.code_system_by_url(include.system)
79
+ elsif include.valueSet.present?
80
+ include.valueSet.map do |vs|
81
+ a_value_set = ig_resources.value_set_by_url(vs)
82
+ bound_systems_from_valueset(a_value_set)
83
+ end
84
+ end
85
+ end&.flatten&.compact
86
+
87
+ systems
72
88
  end
73
89
 
74
90
  def values_from_value_set_binding(the_element)
@@ -0,0 +1,69 @@
1
+ {
2
+ "resourceType" : "ValueSet",
3
+ "id" : "servicerequest-category",
4
+ "meta" : {
5
+ "lastUpdated" : "2019-11-01T09:29:23.356+11:00",
6
+ "profile" : ["http://hl7.org/fhir/StructureDefinition/shareablevalueset"]
7
+ },
8
+ "text" : {
9
+ "status" : "generated",
10
+ "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h2>Service Request Category Codes</h2><div><p>An example value set of SNOMED CT concepts that can classify a requested service</p>\n</div><p><b>Copyright Statement:</b></p><div><p>This specification includes content from SNOMED Clinical Terms® (SNOMED CT®) which is copyright of the International Health Terminology Standards Development Organisation (IHTSDO). Implementers of these specifications must have the appropriate SNOMED CT Affiliate license - for more information contact http://www.snomed.org/snomed-ct/get-snomed-ct or info@snomed.org.</p>\n</div><p>This value set includes codes from the following code systems:</p><ul><li>Include these codes as defined in <a href=\"http://www.snomed.org/\"><code>http://snomed.info/sct</code></a><table class=\"none\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td></tr><tr><td><a href=\"http://browser.ihtsdotools.org/?perspective=full&amp;conceptId1=108252007\">108252007</a></td><td>Laboratory procedure</td><td/></tr><tr><td><a href=\"http://browser.ihtsdotools.org/?perspective=full&amp;conceptId1=363679005\">363679005</a></td><td>Imaging</td><td/></tr><tr><td><a href=\"http://browser.ihtsdotools.org/?perspective=full&amp;conceptId1=409063005\">409063005</a></td><td>Counselling</td><td/></tr><tr><td><a href=\"http://browser.ihtsdotools.org/?perspective=full&amp;conceptId1=409073007\">409073007</a></td><td>Education</td><td/></tr><tr><td><a href=\"http://browser.ihtsdotools.org/?perspective=full&amp;conceptId1=387713003\">387713003</a></td><td>Surgical procedure</td><td/></tr></table></li></ul></div>"
11
+ },
12
+ "extension" : [{
13
+ "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
14
+ "valueCode" : "oo"
15
+ },
16
+ {
17
+ "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
18
+ "valueCode" : "draft"
19
+ },
20
+ {
21
+ "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
22
+ "valueInteger" : 1
23
+ }],
24
+ "url" : "http://hl7.org/fhir/ValueSet/servicerequest-category",
25
+ "identifier" : [{
26
+ "system" : "urn:ietf:rfc:3986",
27
+ "value" : "urn:oid:2.16.840.1.113883.4.642.3.434"
28
+ }],
29
+ "version" : "4.0.1",
30
+ "name" : "ServiceRequestCategoryCodes",
31
+ "title" : "Service Request Category Codes",
32
+ "status" : "draft",
33
+ "experimental" : false,
34
+ "date" : "2019-11-01T09:29:23+11:00",
35
+ "publisher" : "Orders and Observations Workgroup",
36
+ "contact" : [{
37
+ "telecom" : [{
38
+ "system" : "url",
39
+ "value" : "http://www.hl7.org/Special/committees/orders/index.cfm"
40
+ }]
41
+ }],
42
+ "description" : "An example value set of SNOMED CT concepts that can classify a requested service",
43
+ "copyright" : "This specification includes content from SNOMED Clinical Terms® (SNOMED CT®) which is copyright of the International Health Terminology Standards Development Organisation (IHTSDO). Implementers of these specifications must have the appropriate SNOMED CT Affiliate license - for more information contact http://www.snomed.org/snomed-ct/get-snomed-ct or info@snomed.org.",
44
+ "compose" : {
45
+ "include" : [{
46
+ "system" : "http://snomed.info/sct",
47
+ "concept" : [{
48
+ "code" : "108252007",
49
+ "display" : "Laboratory procedure"
50
+ },
51
+ {
52
+ "code" : "363679005",
53
+ "display" : "Imaging"
54
+ },
55
+ {
56
+ "code" : "409063005",
57
+ "display" : "Counselling"
58
+ },
59
+ {
60
+ "code" : "409073007",
61
+ "display" : "Education"
62
+ },
63
+ {
64
+ "code" : "387713003",
65
+ "display" : "Surgical procedure"
66
+ }]
67
+ }]
68
+ }
69
+ }