au_core_test_kit 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (501) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +201 -0
  3. data/lib/au_core_test_kit/assert_helpers.rb +31 -0
  4. data/lib/au_core_test_kit/au_core_options.rb +11 -0
  5. data/lib/au_core_test_kit/chained_search_test.rb +99 -0
  6. data/lib/au_core_test_kit/constants.rb +11 -0
  7. data/lib/au_core_test_kit/custom_groups/capability_statement/conformance_support_test.rb +43 -0
  8. data/lib/au_core_test_kit/custom_groups/capability_statement/fhir_version_test.rb +21 -0
  9. data/lib/au_core_test_kit/custom_groups/capability_statement/instantiate_test.rb +21 -0
  10. data/lib/au_core_test_kit/custom_groups/capability_statement/json_support_test.rb +39 -0
  11. data/lib/au_core_test_kit/custom_groups/capability_statement/profile_support_test.rb +53 -0
  12. data/lib/au_core_test_kit/custom_groups/capability_statement/xml_support_test.rb +40 -0
  13. data/lib/au_core_test_kit/custom_groups/clinical_note_attachment_test.rb +45 -0
  14. data/lib/au_core_test_kit/custom_groups/clinical_note_type_test.rb +114 -0
  15. data/lib/au_core_test_kit/custom_groups/missing_data_group.rb +88 -0
  16. data/lib/au_core_test_kit/custom_groups/smart_app_launch_group.rb +167 -0
  17. data/lib/au_core_test_kit/custom_groups/v0.3.0-ballot/capability_statement_group.rb +81 -0
  18. data/lib/au_core_test_kit/custom_groups/v0.3.0-ballot/profile_support_test.rb +51 -0
  19. data/lib/au_core_test_kit/custom_groups/v4.0.0/document_reference_custodian_test.rb +50 -0
  20. data/lib/au_core_test_kit/custom_suites/validation_suite.rb +53 -0
  21. data/lib/au_core_test_kit/date_search_validation.rb +114 -0
  22. data/lib/au_core_test_kit/fhir_resource_navigation.rb +177 -0
  23. data/lib/au_core_test_kit/generated/v1.0.0-preview/allergy_intolerance/allergy_intolerance_clinical_status_search_test.rb +47 -0
  24. data/lib/au_core_test_kit/generated/v1.0.0-preview/allergy_intolerance/allergy_intolerance_must_support_test.rb +46 -0
  25. data/lib/au_core_test_kit/generated/v1.0.0-preview/allergy_intolerance/allergy_intolerance_patient_chain_search_test.rb +50 -0
  26. data/lib/au_core_test_kit/generated/v1.0.0-preview/allergy_intolerance/allergy_intolerance_patient_clinical_status_search_test.rb +52 -0
  27. data/lib/au_core_test_kit/generated/v1.0.0-preview/allergy_intolerance/allergy_intolerance_patient_dva_chain_search_test.rb +51 -0
  28. data/lib/au_core_test_kit/generated/v1.0.0-preview/allergy_intolerance/allergy_intolerance_patient_ihi_chain_search_test.rb +51 -0
  29. data/lib/au_core_test_kit/generated/v1.0.0-preview/allergy_intolerance/allergy_intolerance_patient_medicare_chain_search_test.rb +51 -0
  30. data/lib/au_core_test_kit/generated/v1.0.0-preview/allergy_intolerance/allergy_intolerance_patient_search_test.rb +66 -0
  31. data/lib/au_core_test_kit/generated/v1.0.0-preview/allergy_intolerance/allergy_intolerance_read_test.rb +28 -0
  32. data/lib/au_core_test_kit/generated/v1.0.0-preview/allergy_intolerance/allergy_intolerance_reference_resolution_test.rb +42 -0
  33. data/lib/au_core_test_kit/generated/v1.0.0-preview/allergy_intolerance/allergy_intolerance_validation_test.rb +42 -0
  34. data/lib/au_core_test_kit/generated/v1.0.0-preview/allergy_intolerance/metadata.yml +159 -0
  35. data/lib/au_core_test_kit/generated/v1.0.0-preview/allergy_intolerance_group.rb +93 -0
  36. data/lib/au_core_test_kit/generated/v1.0.0-preview/au_core_test_suite.rb +164 -0
  37. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_category_search_test.rb +48 -0
  38. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_code_multiple_or_search_test.rb +49 -0
  39. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_code_search_test.rb +48 -0
  40. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_date_multiple_and_search_test.rb +49 -0
  41. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_date_search_test.rb +48 -0
  42. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_must_support_test.rb +67 -0
  43. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_patient_category_date_search_test.rb +52 -0
  44. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_patient_category_search_test.rb +51 -0
  45. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_patient_category_status_search_test.rb +52 -0
  46. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_patient_chain_search_test.rb +50 -0
  47. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_patient_code_date_search_test.rb +54 -0
  48. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_patient_code_search_test.rb +68 -0
  49. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_patient_dva_chain_search_test.rb +51 -0
  50. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_patient_ihi_chain_search_test.rb +51 -0
  51. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_patient_medicare_chain_search_test.rb +51 -0
  52. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_patient_search_test.rb +52 -0
  53. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_read_test.rb +28 -0
  54. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_reference_resolution_test.rb +42 -0
  55. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_status_multiple_or_search_test.rb +49 -0
  56. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_status_search_test.rb +46 -0
  57. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/bloodpressure_validation_test.rb +42 -0
  58. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure/metadata.yml +364 -0
  59. data/lib/au_core_test_kit/generated/v1.0.0-preview/bloodpressure_group.rb +115 -0
  60. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_category_search_test.rb +48 -0
  61. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_code_multiple_or_search_test.rb +49 -0
  62. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_code_search_test.rb +48 -0
  63. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_date_multiple_and_search_test.rb +49 -0
  64. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_date_search_test.rb +48 -0
  65. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_must_support_test.rb +53 -0
  66. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_patient_category_date_search_test.rb +52 -0
  67. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_patient_category_search_test.rb +51 -0
  68. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_patient_category_status_search_test.rb +52 -0
  69. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_patient_chain_search_test.rb +50 -0
  70. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_patient_code_date_search_test.rb +54 -0
  71. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_patient_code_search_test.rb +68 -0
  72. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_patient_dva_chain_search_test.rb +51 -0
  73. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_patient_ihi_chain_search_test.rb +51 -0
  74. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_patient_medicare_chain_search_test.rb +51 -0
  75. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_patient_search_test.rb +52 -0
  76. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_read_test.rb +28 -0
  77. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_reference_resolution_test.rb +42 -0
  78. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_status_multiple_or_search_test.rb +49 -0
  79. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_status_search_test.rb +46 -0
  80. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/bodyheight_validation_test.rb +42 -0
  81. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight/metadata.yml +330 -0
  82. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyheight_group.rb +115 -0
  83. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_category_search_test.rb +48 -0
  84. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_code_multiple_or_search_test.rb +49 -0
  85. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_code_search_test.rb +48 -0
  86. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_date_multiple_and_search_test.rb +49 -0
  87. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_date_search_test.rb +48 -0
  88. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_must_support_test.rb +53 -0
  89. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_patient_category_date_search_test.rb +52 -0
  90. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_patient_category_search_test.rb +51 -0
  91. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_patient_category_status_search_test.rb +52 -0
  92. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_patient_chain_search_test.rb +50 -0
  93. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_patient_code_date_search_test.rb +54 -0
  94. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_patient_code_search_test.rb +68 -0
  95. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_patient_dva_chain_search_test.rb +51 -0
  96. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_patient_ihi_chain_search_test.rb +51 -0
  97. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_patient_medicare_chain_search_test.rb +51 -0
  98. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_patient_search_test.rb +52 -0
  99. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_read_test.rb +28 -0
  100. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_reference_resolution_test.rb +42 -0
  101. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_status_multiple_or_search_test.rb +49 -0
  102. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_status_search_test.rb +46 -0
  103. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/bodytemp_validation_test.rb +42 -0
  104. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp/metadata.yml +330 -0
  105. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodytemp_group.rb +115 -0
  106. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_category_search_test.rb +48 -0
  107. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_code_multiple_or_search_test.rb +49 -0
  108. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_code_search_test.rb +48 -0
  109. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_date_multiple_and_search_test.rb +49 -0
  110. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_date_search_test.rb +48 -0
  111. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_must_support_test.rb +53 -0
  112. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_patient_category_date_search_test.rb +52 -0
  113. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_patient_category_search_test.rb +51 -0
  114. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_patient_category_status_search_test.rb +52 -0
  115. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_patient_chain_search_test.rb +50 -0
  116. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_patient_code_date_search_test.rb +54 -0
  117. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_patient_code_search_test.rb +68 -0
  118. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_patient_dva_chain_search_test.rb +51 -0
  119. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_patient_ihi_chain_search_test.rb +51 -0
  120. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_patient_medicare_chain_search_test.rb +51 -0
  121. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_patient_search_test.rb +52 -0
  122. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_read_test.rb +28 -0
  123. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_reference_resolution_test.rb +42 -0
  124. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_status_multiple_or_search_test.rb +49 -0
  125. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_status_search_test.rb +46 -0
  126. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/bodyweight_validation_test.rb +42 -0
  127. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight/metadata.yml +330 -0
  128. data/lib/au_core_test_kit/generated/v1.0.0-preview/bodyweight_group.rb +115 -0
  129. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_category_search_test.rb +48 -0
  130. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_clinical_status_search_test.rb +47 -0
  131. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_code_multiple_or_search_test.rb +48 -0
  132. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_code_search_test.rb +48 -0
  133. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_must_support_test.rb +47 -0
  134. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_onset_date_multiple_and_search_test.rb +49 -0
  135. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_onset_date_search_test.rb +48 -0
  136. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_patient_category_clinical_status_search_test.rb +52 -0
  137. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_patient_category_search_test.rb +51 -0
  138. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_patient_chain_search_test.rb +50 -0
  139. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_patient_clinical_status_search_test.rb +50 -0
  140. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_patient_code_search_test.rb +53 -0
  141. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_patient_dva_chain_search_test.rb +51 -0
  142. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_patient_ihi_chain_search_test.rb +51 -0
  143. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_patient_medicare_chain_search_test.rb +51 -0
  144. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_patient_onset_date_search_test.rb +53 -0
  145. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_patient_search_test.rb +66 -0
  146. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_read_test.rb +28 -0
  147. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_reference_resolution_test.rb +42 -0
  148. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/condition_validation_test.rb +42 -0
  149. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition/metadata.yml +259 -0
  150. data/lib/au_core_test_kit/generated/v1.0.0-preview/condition_group.rb +113 -0
  151. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_category_search_test.rb +48 -0
  152. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_code_multiple_or_search_test.rb +49 -0
  153. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_code_search_test.rb +48 -0
  154. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_date_multiple_and_search_test.rb +49 -0
  155. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_date_search_test.rb +48 -0
  156. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_must_support_test.rb +50 -0
  157. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_patient_category_date_search_test.rb +52 -0
  158. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_patient_category_search_test.rb +51 -0
  159. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_patient_category_status_search_test.rb +52 -0
  160. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_patient_chain_search_test.rb +50 -0
  161. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_patient_code_date_search_test.rb +54 -0
  162. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_patient_code_search_test.rb +69 -0
  163. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_patient_dva_chain_search_test.rb +51 -0
  164. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_patient_ihi_chain_search_test.rb +51 -0
  165. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_patient_medicare_chain_search_test.rb +51 -0
  166. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_patient_search_test.rb +52 -0
  167. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_read_test.rb +28 -0
  168. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_reference_resolution_test.rb +44 -0
  169. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_status_multiple_or_search_test.rb +49 -0
  170. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_status_search_test.rb +46 -0
  171. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/diagnosticresult_validation_test.rb +42 -0
  172. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult/metadata.yml +299 -0
  173. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_group.rb +115 -0
  174. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_category_search_test.rb +48 -0
  175. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_code_multiple_or_search_test.rb +49 -0
  176. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_code_search_test.rb +48 -0
  177. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_date_multiple_and_search_test.rb +49 -0
  178. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_date_search_test.rb +48 -0
  179. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_must_support_test.rb +56 -0
  180. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_patient_category_date_search_test.rb +52 -0
  181. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_patient_category_search_test.rb +69 -0
  182. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_patient_category_status_search_test.rb +52 -0
  183. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_patient_chain_search_test.rb +50 -0
  184. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_patient_code_date_search_test.rb +54 -0
  185. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_patient_code_search_test.rb +51 -0
  186. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_patient_dva_chain_search_test.rb +51 -0
  187. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_patient_ihi_chain_search_test.rb +51 -0
  188. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_patient_medicare_chain_search_test.rb +51 -0
  189. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_patient_search_test.rb +52 -0
  190. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_read_test.rb +28 -0
  191. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_reference_resolution_test.rb +45 -0
  192. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_status_multiple_or_search_test.rb +49 -0
  193. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_status_search_test.rb +46 -0
  194. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/diagnosticresult_path_validation_test.rb +42 -0
  195. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path/metadata.yml +312 -0
  196. data/lib/au_core_test_kit/generated/v1.0.0-preview/diagnosticresult_path_group.rb +115 -0
  197. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/encounter_class_patient_search_test.rb +53 -0
  198. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/encounter_class_search_test.rb +48 -0
  199. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/encounter_date_multiple_and_search_test.rb +49 -0
  200. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/encounter_date_patient_search_test.rb +51 -0
  201. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/encounter_date_search_test.rb +48 -0
  202. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/encounter_location_search_test.rb +47 -0
  203. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/encounter_must_support_test.rb +51 -0
  204. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/encounter_patient_chain_search_test.rb +50 -0
  205. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/encounter_patient_dva_chain_search_test.rb +51 -0
  206. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/encounter_patient_ihi_chain_search_test.rb +51 -0
  207. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/encounter_patient_location_search_test.rb +52 -0
  208. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/encounter_patient_medicare_chain_search_test.rb +51 -0
  209. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/encounter_patient_search_test.rb +67 -0
  210. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/encounter_patient_status_search_test.rb +51 -0
  211. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/encounter_read_test.rb +28 -0
  212. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/encounter_reference_resolution_test.rb +46 -0
  213. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/encounter_status_multiple_or_search_test.rb +48 -0
  214. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/encounter_status_search_test.rb +46 -0
  215. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/encounter_validation_test.rb +42 -0
  216. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter/metadata.yml +305 -0
  217. data/lib/au_core_test_kit/generated/v1.0.0-preview/encounter_group.rb +110 -0
  218. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_category_search_test.rb +48 -0
  219. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_code_multiple_or_search_test.rb +49 -0
  220. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_code_search_test.rb +48 -0
  221. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_date_multiple_and_search_test.rb +49 -0
  222. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_date_search_test.rb +48 -0
  223. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_must_support_test.rb +53 -0
  224. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_patient_category_date_search_test.rb +52 -0
  225. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_patient_category_search_test.rb +51 -0
  226. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_patient_category_status_search_test.rb +52 -0
  227. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_patient_chain_search_test.rb +50 -0
  228. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_patient_code_date_search_test.rb +54 -0
  229. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_patient_code_search_test.rb +68 -0
  230. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_patient_dva_chain_search_test.rb +51 -0
  231. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_patient_ihi_chain_search_test.rb +51 -0
  232. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_patient_medicare_chain_search_test.rb +51 -0
  233. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_patient_search_test.rb +52 -0
  234. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_read_test.rb +28 -0
  235. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_reference_resolution_test.rb +42 -0
  236. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_status_multiple_or_search_test.rb +49 -0
  237. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_status_search_test.rb +46 -0
  238. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/heartrate_validation_test.rb +42 -0
  239. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate/metadata.yml +327 -0
  240. data/lib/au_core_test_kit/generated/v1.0.0-preview/heartrate_group.rb +115 -0
  241. data/lib/au_core_test_kit/generated/v1.0.0-preview/immunization/immunization_date_multiple_and_search_test.rb +49 -0
  242. data/lib/au_core_test_kit/generated/v1.0.0-preview/immunization/immunization_date_search_test.rb +48 -0
  243. data/lib/au_core_test_kit/generated/v1.0.0-preview/immunization/immunization_must_support_test.rb +44 -0
  244. data/lib/au_core_test_kit/generated/v1.0.0-preview/immunization/immunization_patient_chain_search_test.rb +50 -0
  245. data/lib/au_core_test_kit/generated/v1.0.0-preview/immunization/immunization_patient_date_search_test.rb +53 -0
  246. data/lib/au_core_test_kit/generated/v1.0.0-preview/immunization/immunization_patient_dva_chain_search_test.rb +51 -0
  247. data/lib/au_core_test_kit/generated/v1.0.0-preview/immunization/immunization_patient_ihi_chain_search_test.rb +51 -0
  248. data/lib/au_core_test_kit/generated/v1.0.0-preview/immunization/immunization_patient_medicare_chain_search_test.rb +51 -0
  249. data/lib/au_core_test_kit/generated/v1.0.0-preview/immunization/immunization_patient_search_test.rb +66 -0
  250. data/lib/au_core_test_kit/generated/v1.0.0-preview/immunization/immunization_patient_status_search_test.rb +49 -0
  251. data/lib/au_core_test_kit/generated/v1.0.0-preview/immunization/immunization_patient_vaccine_code_search_test.rb +53 -0
  252. data/lib/au_core_test_kit/generated/v1.0.0-preview/immunization/immunization_read_test.rb +28 -0
  253. data/lib/au_core_test_kit/generated/v1.0.0-preview/immunization/immunization_reference_resolution_test.rb +42 -0
  254. data/lib/au_core_test_kit/generated/v1.0.0-preview/immunization/immunization_status_search_test.rb +46 -0
  255. data/lib/au_core_test_kit/generated/v1.0.0-preview/immunization/immunization_vaccine_code_multiple_or_search_test.rb +49 -0
  256. data/lib/au_core_test_kit/generated/v1.0.0-preview/immunization/immunization_vaccine_code_search_test.rb +48 -0
  257. data/lib/au_core_test_kit/generated/v1.0.0-preview/immunization/immunization_validation_test.rb +42 -0
  258. data/lib/au_core_test_kit/generated/v1.0.0-preview/immunization/metadata.yml +226 -0
  259. data/lib/au_core_test_kit/generated/v1.0.0-preview/immunization_group.rb +106 -0
  260. data/lib/au_core_test_kit/generated/v1.0.0-preview/location/location_address_city_search_test.rb +46 -0
  261. data/lib/au_core_test_kit/generated/v1.0.0-preview/location/location_address_postalcode_search_test.rb +46 -0
  262. data/lib/au_core_test_kit/generated/v1.0.0-preview/location/location_address_search_test.rb +57 -0
  263. data/lib/au_core_test_kit/generated/v1.0.0-preview/location/location_address_state_search_test.rb +46 -0
  264. data/lib/au_core_test_kit/generated/v1.0.0-preview/location/location_must_support_test.rb +43 -0
  265. data/lib/au_core_test_kit/generated/v1.0.0-preview/location/location_name_search_test.rb +44 -0
  266. data/lib/au_core_test_kit/generated/v1.0.0-preview/location/location_read_test.rb +34 -0
  267. data/lib/au_core_test_kit/generated/v1.0.0-preview/location/location_reference_resolution_test.rb +42 -0
  268. data/lib/au_core_test_kit/generated/v1.0.0-preview/location/location_validation_test.rb +42 -0
  269. data/lib/au_core_test_kit/generated/v1.0.0-preview/location/metadata.yml +162 -0
  270. data/lib/au_core_test_kit/generated/v1.0.0-preview/location_group.rb +89 -0
  271. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_authoredon_multiple_and_search_test.rb +50 -0
  272. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_authoredon_search_test.rb +54 -0
  273. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_id_include_medication_test.rb +49 -0
  274. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_id_search_test.rb +53 -0
  275. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_intent_multiple_or_search_test.rb +50 -0
  276. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_intent_search_test.rb +53 -0
  277. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_must_support_test.rb +48 -0
  278. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_patient_chain_search_test.rb +50 -0
  279. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_patient_dva_chain_search_test.rb +51 -0
  280. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_patient_ihi_chain_search_test.rb +51 -0
  281. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_patient_include_medication_test.rb +50 -0
  282. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_patient_intent_authoredon_include_medication_test.rb +49 -0
  283. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_patient_intent_authoredon_search_test.rb +59 -0
  284. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_patient_intent_include_medication_test.rb +49 -0
  285. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_patient_intent_search_test.rb +58 -0
  286. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_patient_intent_status_include_medication_test.rb +49 -0
  287. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_patient_intent_status_search_test.rb +57 -0
  288. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_patient_medicare_chain_search_test.rb +51 -0
  289. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_patient_search_test.rb +73 -0
  290. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_patient_status_search_test.rb +55 -0
  291. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_read_test.rb +28 -0
  292. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_reference_resolution_test.rb +46 -0
  293. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_status_multiple_or_search_test.rb +48 -0
  294. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_status_search_test.rb +52 -0
  295. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_request_validation_test.rb +42 -0
  296. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/medication_validation_test.rb +41 -0
  297. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request/metadata.yml +330 -0
  298. data/lib/au_core_test_kit/generated/v1.0.0-preview/medication_request_group.rb +124 -0
  299. data/lib/au_core_test_kit/generated/v1.0.0-preview/metadata.yml +4882 -0
  300. data/lib/au_core_test_kit/generated/v1.0.0-preview/organization/metadata.yml +122 -0
  301. data/lib/au_core_test_kit/generated/v1.0.0-preview/organization/organization_address_search_test.rb +46 -0
  302. data/lib/au_core_test_kit/generated/v1.0.0-preview/organization/organization_id_search_test.rb +56 -0
  303. data/lib/au_core_test_kit/generated/v1.0.0-preview/organization/organization_identifier_abn_search_test.rb +45 -0
  304. data/lib/au_core_test_kit/generated/v1.0.0-preview/organization/organization_identifier_hpio_search_test.rb +45 -0
  305. data/lib/au_core_test_kit/generated/v1.0.0-preview/organization/organization_identifier_search_test.rb +45 -0
  306. data/lib/au_core_test_kit/generated/v1.0.0-preview/organization/organization_must_support_test.rb +43 -0
  307. data/lib/au_core_test_kit/generated/v1.0.0-preview/organization/organization_name_search_test.rb +44 -0
  308. data/lib/au_core_test_kit/generated/v1.0.0-preview/organization/organization_read_test.rb +34 -0
  309. data/lib/au_core_test_kit/generated/v1.0.0-preview/organization/organization_validation_test.rb +42 -0
  310. data/lib/au_core_test_kit/generated/v1.0.0-preview/organization_group.rb +90 -0
  311. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/metadata.yml +293 -0
  312. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_birthdate_family_search_test.rb +48 -0
  313. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_birthdate_multiple_and_search_test.rb +48 -0
  314. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_birthdate_name_search_test.rb +48 -0
  315. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_birthdate_search_test.rb +48 -0
  316. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_family_gender_search_test.rb +47 -0
  317. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_family_search_test.rb +47 -0
  318. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_gender_identity_multiple_and_search_test.rb +48 -0
  319. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_gender_identity_multiple_or_search_test.rb +48 -0
  320. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_gender_identity_search_test.rb +47 -0
  321. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_gender_name_search_test.rb +47 -0
  322. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_gender_search_test.rb +47 -0
  323. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_id_search_test.rb +61 -0
  324. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_identifier_dva_search_test.rb +45 -0
  325. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_identifier_ihi_search_test.rb +45 -0
  326. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_identifier_medicare_search_test.rb +45 -0
  327. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_identifier_search_test.rb +46 -0
  328. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_indigenous_status_multiple_and_search_test.rb +48 -0
  329. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_indigenous_status_multiple_or_search_test.rb +48 -0
  330. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_indigenous_status_search_test.rb +46 -0
  331. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_must_support_test.rb +54 -0
  332. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_name_search_test.rb +47 -0
  333. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_read_test.rb +28 -0
  334. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient/patient_validation_test.rb +42 -0
  335. data/lib/au_core_test_kit/generated/v1.0.0-preview/patient_group.rb +118 -0
  336. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner/metadata.yml +108 -0
  337. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner/practitioner_id_search_test.rb +56 -0
  338. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner/practitioner_identifier_hpii_search_test.rb +45 -0
  339. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner/practitioner_identifier_search_test.rb +45 -0
  340. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner/practitioner_must_support_test.rb +42 -0
  341. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner/practitioner_name_search_test.rb +46 -0
  342. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner/practitioner_read_test.rb +34 -0
  343. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner/practitioner_validation_test.rb +42 -0
  344. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_group.rb +85 -0
  345. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role/metadata.yml +204 -0
  346. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role/practitioner_role_id_include_practitioner_test.rb +50 -0
  347. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role/practitioner_role_id_search_test.rb +58 -0
  348. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role/practitioner_role_identifier_include_practitioner_test.rb +49 -0
  349. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role/practitioner_role_identifier_medicare_search_test.rb +45 -0
  350. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role/practitioner_role_identifier_search_test.rb +46 -0
  351. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role/practitioner_role_must_support_test.rb +44 -0
  352. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role/practitioner_role_organization_search_test.rb +47 -0
  353. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role/practitioner_role_practitioner_chain_search_test.rb +50 -0
  354. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role/practitioner_role_practitioner_include_practitioner_test.rb +49 -0
  355. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role/practitioner_role_practitioner_multiple_and_search_test.rb +49 -0
  356. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role/practitioner_role_practitioner_multiple_or_search_test.rb +49 -0
  357. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role/practitioner_role_practitioner_search_test.rb +51 -0
  358. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role/practitioner_role_read_test.rb +34 -0
  359. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role/practitioner_role_reference_resolution_test.rb +43 -0
  360. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role/practitioner_role_role_search_test.rb +48 -0
  361. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role/practitioner_role_specialty_include_practitioner_test.rb +49 -0
  362. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role/practitioner_role_specialty_search_test.rb +48 -0
  363. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role/practitioner_role_validation_test.rb +42 -0
  364. data/lib/au_core_test_kit/generated/v1.0.0-preview/practitioner_role_group.rb +108 -0
  365. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure/metadata.yml +265 -0
  366. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure/procedure_code_multiple_or_search_test.rb +49 -0
  367. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure/procedure_code_search_test.rb +48 -0
  368. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure/procedure_date_multiple_and_search_test.rb +48 -0
  369. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure/procedure_date_search_test.rb +48 -0
  370. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure/procedure_must_support_test.rb +45 -0
  371. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure/procedure_patient_chain_search_test.rb +50 -0
  372. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure/procedure_patient_code_date_search_test.rb +54 -0
  373. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure/procedure_patient_date_search_test.rb +51 -0
  374. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure/procedure_patient_dva_chain_search_test.rb +51 -0
  375. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure/procedure_patient_ihi_chain_search_test.rb +51 -0
  376. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure/procedure_patient_medicare_chain_search_test.rb +51 -0
  377. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure/procedure_patient_search_test.rb +66 -0
  378. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure/procedure_patient_status_search_test.rb +51 -0
  379. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure/procedure_read_test.rb +28 -0
  380. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure/procedure_reference_resolution_test.rb +44 -0
  381. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure/procedure_status_multiple_or_search_test.rb +49 -0
  382. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure/procedure_status_search_test.rb +46 -0
  383. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure/procedure_validation_test.rb +42 -0
  384. data/lib/au_core_test_kit/generated/v1.0.0-preview/procedure_group.rb +108 -0
  385. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/metadata.yml +327 -0
  386. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_category_search_test.rb +48 -0
  387. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_code_multiple_or_search_test.rb +49 -0
  388. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_code_search_test.rb +48 -0
  389. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_date_multiple_and_search_test.rb +49 -0
  390. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_date_search_test.rb +48 -0
  391. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_must_support_test.rb +53 -0
  392. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_patient_category_date_search_test.rb +52 -0
  393. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_patient_category_search_test.rb +51 -0
  394. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_patient_category_status_search_test.rb +52 -0
  395. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_patient_chain_search_test.rb +50 -0
  396. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_patient_code_date_search_test.rb +54 -0
  397. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_patient_code_search_test.rb +68 -0
  398. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_patient_dva_chain_search_test.rb +51 -0
  399. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_patient_ihi_chain_search_test.rb +51 -0
  400. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_patient_medicare_chain_search_test.rb +51 -0
  401. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_patient_search_test.rb +52 -0
  402. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_read_test.rb +28 -0
  403. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_reference_resolution_test.rb +42 -0
  404. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_status_multiple_or_search_test.rb +49 -0
  405. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_status_search_test.rb +46 -0
  406. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate/resprate_validation_test.rb +42 -0
  407. data/lib/au_core_test_kit/generated/v1.0.0-preview/resprate_group.rb +115 -0
  408. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/metadata.yml +287 -0
  409. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_category_search_test.rb +48 -0
  410. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_code_multiple_or_search_test.rb +49 -0
  411. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_code_search_test.rb +48 -0
  412. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_date_multiple_and_search_test.rb +49 -0
  413. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_date_search_test.rb +48 -0
  414. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_must_support_test.rb +44 -0
  415. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_patient_category_date_search_test.rb +52 -0
  416. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_patient_category_search_test.rb +51 -0
  417. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_patient_category_status_search_test.rb +52 -0
  418. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_patient_chain_search_test.rb +50 -0
  419. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_patient_code_date_search_test.rb +54 -0
  420. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_patient_code_search_test.rb +68 -0
  421. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_patient_dva_chain_search_test.rb +51 -0
  422. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_patient_ihi_chain_search_test.rb +51 -0
  423. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_patient_medicare_chain_search_test.rb +51 -0
  424. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_patient_search_test.rb +52 -0
  425. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_read_test.rb +28 -0
  426. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_reference_resolution_test.rb +42 -0
  427. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_status_multiple_or_search_test.rb +49 -0
  428. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_status_search_test.rb +46 -0
  429. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus/smokingstatus_validation_test.rb +42 -0
  430. data/lib/au_core_test_kit/generated/v1.0.0-preview/smokingstatus_group.rb +115 -0
  431. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/metadata.yml +325 -0
  432. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_category_search_test.rb +48 -0
  433. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_code_multiple_or_search_test.rb +49 -0
  434. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_code_search_test.rb +48 -0
  435. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_date_multiple_and_search_test.rb +49 -0
  436. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_date_search_test.rb +48 -0
  437. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_must_support_test.rb +49 -0
  438. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_patient_category_date_search_test.rb +52 -0
  439. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_patient_category_search_test.rb +51 -0
  440. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_patient_category_status_search_test.rb +52 -0
  441. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_patient_chain_search_test.rb +50 -0
  442. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_patient_code_date_search_test.rb +54 -0
  443. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_patient_code_search_test.rb +68 -0
  444. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_patient_dva_chain_search_test.rb +51 -0
  445. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_patient_ihi_chain_search_test.rb +51 -0
  446. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_patient_medicare_chain_search_test.rb +51 -0
  447. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_patient_search_test.rb +52 -0
  448. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_read_test.rb +28 -0
  449. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_reference_resolution_test.rb +42 -0
  450. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_status_multiple_or_search_test.rb +49 -0
  451. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_status_search_test.rb +46 -0
  452. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum/waistcircum_validation_test.rb +42 -0
  453. data/lib/au_core_test_kit/generated/v1.0.0-preview/waistcircum_group.rb +115 -0
  454. data/lib/au_core_test_kit/generator/chain_search_test_generator.rb +169 -0
  455. data/lib/au_core_test_kit/generator/group_generator.rb +143 -0
  456. data/lib/au_core_test_kit/generator/group_metadata.rb +103 -0
  457. data/lib/au_core_test_kit/generator/group_metadata_extractor.rb +336 -0
  458. data/lib/au_core_test_kit/generator/ig_download.rb +59 -0
  459. data/lib/au_core_test_kit/generator/ig_loader.rb +88 -0
  460. data/lib/au_core_test_kit/generator/ig_metadata.rb +51 -0
  461. data/lib/au_core_test_kit/generator/ig_metadata_extractor.rb +92 -0
  462. data/lib/au_core_test_kit/generator/ig_resources.rb +106 -0
  463. data/lib/au_core_test_kit/generator/include_search_test_generator.rb +111 -0
  464. data/lib/au_core_test_kit/generator/multiple_and_search_test_generator.rb +216 -0
  465. data/lib/au_core_test_kit/generator/multiple_or_search_test_generator.rb +219 -0
  466. data/lib/au_core_test_kit/generator/must_support_metadata_extractor.rb +472 -0
  467. data/lib/au_core_test_kit/generator/must_support_metadata_extractor_au_core_3.rb +64 -0
  468. data/lib/au_core_test_kit/generator/must_support_test_generator.rb +118 -0
  469. data/lib/au_core_test_kit/generator/naming.rb +57 -0
  470. data/lib/au_core_test_kit/generator/provenance_revinclude_search_test_generator.rb +193 -0
  471. data/lib/au_core_test_kit/generator/read_test_generator.rb +112 -0
  472. data/lib/au_core_test_kit/generator/reference_resolution_test_generator.rb +94 -0
  473. data/lib/au_core_test_kit/generator/search_definition_metadata_extractor.rb +340 -0
  474. data/lib/au_core_test_kit/generator/search_metadata_extractor.rb +95 -0
  475. data/lib/au_core_test_kit/generator/search_test_generator.rb +386 -0
  476. data/lib/au_core_test_kit/generator/special_cases.rb +91 -0
  477. data/lib/au_core_test_kit/generator/special_identifier_search_test_generator.rb +85 -0
  478. data/lib/au_core_test_kit/generator/special_identifiers_chain_search_test_generator.rb +77 -0
  479. data/lib/au_core_test_kit/generator/suite_generator.rb +104 -0
  480. data/lib/au_core_test_kit/generator/summary_generator.rb +172 -0
  481. data/lib/au_core_test_kit/generator/terminology_binding_metadata_extractor.rb +118 -0
  482. data/lib/au_core_test_kit/generator/validation_test_generator.rb +142 -0
  483. data/lib/au_core_test_kit/generator/value_extractor.rb +107 -0
  484. data/lib/au_core_test_kit/generator.rb +146 -0
  485. data/lib/au_core_test_kit/helpers.rb +238 -0
  486. data/lib/au_core_test_kit/igs/1.0.0-preview.tgz +0 -0
  487. data/lib/au_core_test_kit/igs/au-base-resources.json +1 -0
  488. data/lib/au_core_test_kit/igs/search-params.json +80725 -0
  489. data/lib/au_core_test_kit/must_support_test.rb +221 -0
  490. data/lib/au_core_test_kit/provenance_validator.rb +38 -0
  491. data/lib/au_core_test_kit/read_test.rb +121 -0
  492. data/lib/au_core_test_kit/reference_resolution_test.rb +193 -0
  493. data/lib/au_core_test_kit/request_logger.rb +48 -0
  494. data/lib/au_core_test_kit/search_test.rb +1032 -0
  495. data/lib/au_core_test_kit/search_test_helpers.rb +21 -0
  496. data/lib/au_core_test_kit/search_test_properties.rb +67 -0
  497. data/lib/au_core_test_kit/special_identifier_search_test.rb +94 -0
  498. data/lib/au_core_test_kit/validation_test.rb +62 -0
  499. data/lib/au_core_test_kit/version.rb +5 -0
  500. data/lib/au_core_test_kit.rb +15 -0
  501. metadata +642 -0
@@ -0,0 +1,146 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'fhir_models'
4
+ require 'inferno/ext/fhir_models'
5
+
6
+ require_relative 'generator/ig_loader'
7
+ require_relative 'generator/ig_metadata_extractor'
8
+ require_relative 'generator/group_generator'
9
+ require_relative 'generator/must_support_test_generator'
10
+ require_relative 'generator/provenance_revinclude_search_test_generator'
11
+ require_relative 'generator/read_test_generator'
12
+ require_relative 'generator/reference_resolution_test_generator'
13
+ require_relative 'generator/search_test_generator'
14
+ require_relative 'generator/suite_generator'
15
+ require_relative 'generator/validation_test_generator'
16
+ require_relative 'generator/multiple_or_search_test_generator'
17
+ require_relative 'generator/multiple_and_search_test_generator'
18
+ require_relative 'generator/chain_search_test_generator'
19
+ require_relative 'generator/special_identifier_search_test_generator'
20
+ require_relative 'generator/special_identifiers_chain_search_test_generator'
21
+ require_relative 'generator/include_search_test_generator'
22
+
23
+ module AUCoreTestKit
24
+ class Generator
25
+ def self.generate
26
+ ig_packages = Dir.glob(File.join(Dir.pwd, 'lib', 'au_core_test_kit', 'igs', '*.tgz'))
27
+
28
+ ig_packages.each do |ig_package|
29
+ new(ig_package).generate
30
+ end
31
+ end
32
+
33
+ attr_accessor :ig_resources, :ig_metadata, :ig_file_name
34
+
35
+ def initialize(ig_file_name)
36
+ self.ig_file_name = ig_file_name
37
+ end
38
+
39
+ def generate
40
+ puts "Generating tests for IG #{File.basename(ig_file_name)}"
41
+ load_ig_package
42
+ extract_metadata
43
+ generate_search_tests
44
+ generate_read_tests
45
+ generate_provenance_revinclude_search_tests
46
+ generate_include_search_tests
47
+ generate_validation_tests
48
+ generate_must_support_tests
49
+ generate_reference_resolution_tests
50
+ generate_groups
51
+ generate_suites
52
+ use_tests
53
+ end
54
+
55
+ def extract_metadata
56
+ self.ig_metadata = IGMetadataExtractor.new(ig_resources).extract
57
+
58
+ FileUtils.mkdir_p(base_output_dir)
59
+ File.open(File.join(base_output_dir, 'metadata.yml'), 'w') do |file|
60
+ file.write(YAML.dump(ig_metadata.to_hash))
61
+ end
62
+ end
63
+
64
+ def base_output_dir
65
+ File.join(__dir__, 'generated', ig_metadata.ig_version)
66
+ end
67
+
68
+ def load_ig_package
69
+ FHIR.logger = Logger.new('/dev/null')
70
+ self.ig_resources = IGLoader.new(ig_file_name).load
71
+ end
72
+
73
+ def generate_reference_resolution_tests
74
+ ReferenceResolutionTestGenerator.generate(ig_metadata, base_output_dir)
75
+ end
76
+
77
+ def generate_must_support_tests
78
+ MustSupportTestGenerator.generate(ig_metadata, base_output_dir)
79
+ end
80
+
81
+ def generate_validation_tests
82
+ ValidationTestGenerator.generate(ig_metadata, base_output_dir)
83
+ end
84
+
85
+ def generate_read_tests
86
+ ReadTestGenerator.generate(ig_metadata, base_output_dir)
87
+ end
88
+
89
+ def generate_search_tests
90
+ SearchTestGenerator.generate(ig_metadata, base_output_dir)
91
+ generate_multiple_or_search_tests
92
+ generate_multiple_and_search_tests
93
+ generate_chain_search_tests
94
+ generate_special_identifier_search_tests
95
+ generate_special_identifiers_chain_search_tests
96
+ end
97
+
98
+ def generate_include_search_tests
99
+ IncludeSearchTestGenerator.generate(ig_metadata, base_output_dir)
100
+ end
101
+
102
+ def generate_provenance_revinclude_search_tests
103
+ ProvenanceRevincludeSearchTestGenerator.generate(ig_metadata, base_output_dir)
104
+ end
105
+
106
+ def generate_multiple_or_search_tests
107
+ MultipleOrSearchTestGenerator.generate(ig_metadata, base_output_dir)
108
+ end
109
+
110
+ def generate_multiple_and_search_tests
111
+ MultipleAndSearchTestGenerator.generate(ig_metadata, base_output_dir)
112
+ end
113
+
114
+ def generate_chain_search_tests
115
+ ChainSearchTestGenerator.generate(ig_metadata, base_output_dir)
116
+ end
117
+
118
+ def generate_special_identifier_search_tests
119
+ SpecialIdentifierSearchTestGenerator.generate(ig_metadata, base_output_dir)
120
+ end
121
+
122
+ def generate_special_identifiers_chain_search_tests
123
+ SpecialIdentifiersChainSearchTestGenerator.generate(ig_metadata, base_output_dir)
124
+ end
125
+
126
+ def generate_groups
127
+ GroupGenerator.generate(ig_metadata, base_output_dir)
128
+ end
129
+
130
+ def generate_suites
131
+ SuiteGenerator.generate(ig_metadata, base_output_dir)
132
+ end
133
+
134
+ def use_tests
135
+ file_path = File.expand_path('../au_core_test_kit.rb', __dir__)
136
+
137
+ file_content = File.read(file_path)
138
+ string_to_add = "require_relative '#{base_output_dir.split('/opt/inferno/lib/').last}/au_core_test_suite'"
139
+
140
+ return if file_content.include? string_to_add
141
+
142
+ file_content << "\n#{string_to_add}"
143
+ File.write(file_path, file_content)
144
+ end
145
+ end
146
+ end
@@ -0,0 +1,238 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Helpers
4
+ DAR_CODE_SYSTEM_URL = 'http://terminology.hl7.org/CodeSystem/data-absent-reason'
5
+ DAR_EXTENSION_URL = 'http://hl7.org/fhir/StructureDefinition/data-absent-reason'
6
+
7
+ def self.test_on_target_resource_data?(special_cases_hash, resource_type, search_param_names)
8
+ if special_cases_hash.keys.include? resource_type
9
+ special_cases_hash[resource_type].include? search_param_names
10
+ end
11
+ end
12
+
13
+ def self.multiple_test_description(multiple_type, conformance_expectation, search_param_name_string, resource_type, url_version)
14
+ multiple_type_str = multiple_type == 'OR' ? 'multipleOr' : 'multipleAnd'
15
+ <<~DESCRIPTION.gsub(/\n{3,}/, "\n\n")
16
+ A server #{conformance_expectation} support searching by #{multiple_type_str}
17
+ #{search_param_name_string} on the #{resource_type} resource. This test
18
+ will pass if resources are returned and match the search criteria. If
19
+ none are returned, the test is skipped.
20
+
21
+ [AU Core Server CapabilityStatement](http://hl7.org.au/fhir/core/#{url_version}/CapabilityStatement-au-core-server.html)
22
+ DESCRIPTION
23
+ end
24
+
25
+ def self.get_http_header(header_name, header_value)
26
+ (header_name && header_value) ? {header_name => header_value} : {}
27
+ end
28
+
29
+ def self.extract_extensions_from_resource(resource, extensions = [])
30
+ resource_hash = convert_resource_to_hash(resource)
31
+ process_resource_element(resource_hash, extensions)
32
+ extensions
33
+ end
34
+
35
+ def self.get_capability_statement_group_description_text(title, for_group_description = true)
36
+ background_title = for_group_description ? '# Background' : '#### Background'
37
+ testing_methodology_title = for_group_description ? '# Testing Methodology' : '#### Testing Methodology'
38
+
39
+ <<~DESCRIPTION
40
+ #{background_title}
41
+ The #{title} Sequence tests a FHIR server's ability to formally describe
42
+ features supported by the API by using the [Capability
43
+ Statement](https://www.hl7.org/fhir/capabilitystatement.html) resource.
44
+ The features described in the Capability Statement must be consistent with
45
+ the required capabilities of a AU Core **Responder**.
46
+
47
+ The Capability Statement resource allows clients to determine which
48
+ resources are supported by a FHIR Server. Not all servers are expected to
49
+ implement all possible queries and data elements described in the AU Core
50
+ API. The **AU Core Responder Capability Statement** requires that
51
+ the Patient resource and **at least** one additional resource profile from the AU Core profiles.
52
+
53
+ #{testing_methodology_title}
54
+
55
+ This test sequence accesses the server endpoint at `/metadata` using a
56
+ `GET` request. It parses the Capability Statement and verifies that:
57
+
58
+ * The endpoint is secured by an appropriate cryptographic protocol
59
+ * The resource matches the expected FHIR version defined by the tests
60
+ * The resource is a valid FHIR resource
61
+ * The server claims support for JSON encoding of resources
62
+ * The server claims support for the Patient resource and one other
63
+ resource
64
+
65
+ It collects the following information that is saved in the testing session
66
+ for use by later tests:
67
+
68
+ * List of resources supported
69
+ * List of queries parameters supported
70
+ DESCRIPTION
71
+ end
72
+
73
+ def self.get_group_description_text(title, resource_type, profile_name, group_version, profile_url,
74
+ required_searches, search_param_name_string, search_validation_resource_type,
75
+ for_group_description = true)
76
+ background_title = for_group_description ? '# Background' : '#### Background'
77
+ testing_methodology_title = for_group_description ? '# Testing Methodology' : '#### Testing Methodology'
78
+ must_support_title = for_group_description ? '## Must Support' : '##### Must Support'
79
+ profile_validation_title = for_group_description ? '## Profile Validation' : '##### Profile Validation'
80
+ reference_validation_title = for_group_description ? '## Reference Validation' : '##### Reference Validation'
81
+
82
+ <<~DESCRIPTION
83
+ #{background_title}
84
+
85
+ The AU Core #{title} sequence verifies that the system under test is
86
+ able to provide correct responses for #{resource_type} queries. These queries
87
+ must contain resources conforming to the #{profile_name} as
88
+ specified in the AU Core #{group_version} Implementation Guide.
89
+
90
+ #{testing_methodology_title}
91
+ #{search_description(required_searches, search_param_name_string, search_validation_resource_type, for_group_description, resource_type)}
92
+
93
+ #{must_support_title}
94
+ Each profile contains elements marked as "must support". This test
95
+ sequence expects to see each of these elements at least once. If at
96
+ least one cannot be found, the test will fail. The test will look
97
+ through the #{resource_type} resources found in the first test for these
98
+ elements.
99
+
100
+ #{profile_validation_title}
101
+ Each resource returned from the first search is expected to conform to
102
+ the [#{profile_name}](#{profile_url}). Each element is checked against
103
+ teminology binding and cardinality requirements.
104
+
105
+ Elements with a required binding are validated against their bound
106
+ ValueSet. If the code/system in the element is not part of the ValueSet,
107
+ then the test will fail.
108
+
109
+ #{reference_validation_title}
110
+ At least one instance of each external reference in elements marked as
111
+ "must support" within the resources provided by the system must resolve.
112
+ The test will attempt to read each reference found and will fail if no
113
+ read succeeds.
114
+ DESCRIPTION
115
+ end
116
+
117
+ def self.search_description(required_searches, search_param_name_string, search_validation_resource_type, for_group_description, resource_type)
118
+ return '' if required_searches.blank?
119
+
120
+ is_independant_group = ['Practitioner', 'PractitionerRole', 'Location', 'Organization'].include? resource_type
121
+ basic_search_parameters_text = 'The first search uses the selected patient(s) from the prior launch sequence. Any subsequent searches will look for its parameter values from the results of the first search. For example, the `identifier` search in the patient sequence is performed by looking for an existing `Patient.identifier` from any of the resources returned in the `_id` search. If a value cannot be found this way, the search is skipped.'
122
+ independant_search_parameters_text = 'Resources for this test group can\'t be found using patient search parameters. This means that in this particular case, the first test will be a read test, not a search. To ensure that this resource will be available for reading, please review the [prerequisites](https://github.com/hl7au/au-fhir-core-inferno/blob/master/docs/pre-requisites.md). Additionally, you can run this test group separately by using specific resource IDs.'
123
+ search_parameters_text = is_independant_group ? independant_search_parameters_text : basic_search_parameters_text
124
+
125
+ searching_title = for_group_description ? '## Searching' : '##### Searching'
126
+ search_parameters_title = for_group_description ? '### Search Parameters' : '###### Search Parameters'
127
+ search_validation_title = for_group_description ? '### Search Validation' : '###### Search Validation'
128
+
129
+ <<~SEARCH_DESCRIPTION
130
+ #{searching_title}
131
+ This test sequence will first perform each required search associated
132
+ with this resource. This sequence will perform searches with the
133
+ following parameters:
134
+
135
+ #{search_param_name_string}
136
+
137
+ #{search_parameters_title}
138
+ #{search_parameters_text}
139
+
140
+ #{search_validation_title}
141
+ Inferno will retrieve up to the first 20 bundle pages of the reply for
142
+ #{search_validation_resource_type} and save them for subsequent tests. Each of
143
+ these resources is then checked to see if it matches the searched
144
+ parameters in accordance with [FHIR search
145
+ guidelines](https://www.hl7.org/fhir/search.html). The test will fail,
146
+ for example, if a Patient search for `gender=male` returns a `female`
147
+ patient.
148
+ SEARCH_DESCRIPTION
149
+ end
150
+
151
+ def self.convert_resource_to_hash(resource)
152
+ if defined?(FHIR) && resource.is_a?(FHIR::Model)
153
+ resource.source_hash.deep_stringify_keys
154
+ else
155
+ resource
156
+ end
157
+ end
158
+
159
+ def self.process_resource_element(element, extensions)
160
+ case element
161
+ when Hash
162
+ extensions.concat(element['extension']) if element['extension'].is_a?(Array)
163
+ element.each_value do |value|
164
+ process_resource_element(value, extensions)
165
+ end
166
+ when Array
167
+ element.each { |item| process_resource_element(item, extensions) }
168
+ end
169
+ end
170
+
171
+ def self.custom_validation_group_title_text
172
+ 'Custom Validation Group'
173
+ end
174
+
175
+ def self.custom_validation_group_description_text
176
+ %(
177
+ This test group is designed to validate the conformity of FHIR resources against specified profiles.
178
+ Leveraging the dynamic capabilities of FHIR, this validation ensures that the resources adhere to the standards and guidelines established within the relevant AU Core.
179
+ )
180
+ end
181
+
182
+ def self.custom_validation_test_title_text
183
+ 'Custom validation of the resource'
184
+ end
185
+
186
+ def self.custom_validation_test_input_text
187
+ 'FHIR resource in JSON format (custom validation)'
188
+ end
189
+
190
+ def self.custom_validation_test_description_text
191
+ %(
192
+ This test automatically identifies and validates any provided FHIR resource.
193
+ Users are required to input the FHIR resource in JSON format, referred to as 'resource_json'.
194
+ The test extracts the applicable profile for validation from the first element in the 'meta.profile' array, located at the path: resource.meta.profile.0.
195
+ This profile serves as the benchmark for the validation process.
196
+
197
+ Given the optional nature of this test, its results do not influence the final outcome of the test report.
198
+ )
199
+ end
200
+
201
+ def self.custom_validation_test_info_resource_type_text(resource_type)
202
+ "Resource type to validate is #{resource_type}"
203
+ end
204
+
205
+ def self.custom_validation_test_info_profile_text(fhir_resource_profile)
206
+ "Resource profile to validate is #{fhir_resource_profile}"
207
+ end
208
+
209
+ def self.custom_validation_test_info_ig_text(ig_version)
210
+ "IG version to validate is #{ig_version}"
211
+ end
212
+
213
+ def self.default_patient_ids_string
214
+ 'baratz-toni, irvine-ronny-lawrence, italia-sofia, howe-deangelo, hayes-arianne, baby-banks-john, banks-mia-leanne'
215
+ end
216
+
217
+ def self.check_for_dar(resource)
218
+ resource.each_element do |element, _meta, path|
219
+ next unless element.is_a?(FHIR::Coding)
220
+
221
+ return true if (element.code == 'masked' || element.code == 'unknown') && element.system == DAR_CODE_SYSTEM_URL
222
+ end
223
+
224
+ false
225
+ end
226
+
227
+ def self.check_for_dar_extension(resource)
228
+ return resource.source_contents&.include? DAR_EXTENSION_URL
229
+ end
230
+
231
+ def self.return_uniq_list_resources(resource_list)
232
+ return resource_list.uniq
233
+ end
234
+
235
+ def self.is_message_exist_in_list(message_list, message)
236
+ message_list.any? { |list_message| message.include? list_message }
237
+ end
238
+ end
@@ -0,0 +1 @@
1
+ {"resourceType":"Bundle","id":"au-base-resources","meta":{"lastUpdated":"2023-03-26T15:21:02.749+11:00"},"type":"collection","entry":[{"resource":{"resourceType":"SearchParameter","id":"encounter-discharge-disposition","text":{"status":"generated","div":"<div xmlns=\"http://www.w3.org/1999/xhtml\"><h2>EncounterDischargeDisposition <a style=\"padding-left: 3px; padding-right: 3px; border: 1px grey solid; font-weight: bold; color: black; background-color: #fff5e6\" href=\"http://hl7.org/fhir/R4/versions.html#std-process\" title=\"Standards Status = Trial Use\">TU</a></h2><p>Parameter <code>discharge-disposition</code>:<code>token</code></p><div><p>This search parameter returns encounters with a discharge-disposition matching the specified code.</p>\n</div><table class=\"grid\"><tr><td>Resource</td><td><a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a></td></tr><tr><td>Expression</td><td><code>Encounter.hospitalization.dischargeDisposition</code></td></tr><tr><td>Multiples</td><td><ul><li>multipleAnd: The parameter may repeat in order to specify multiple values that must all be true</li><li>multipleOr: The parameter may have multiple values (separated by comma) where at least one must be true</li></ul></td></tr></table></div>"},"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm","valueInteger":0},{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status","valueCode":"trial-use","_valueCode":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom","valueCanonical":"http://hl7.org.au/fhir/ImplementationGuide/hl7.fhir.au.base"}]}}],"url":"http://hl7.org.au/fhir/SearchParameter/encounter-discharge-disposition","version":"4.1.3","name":"EncounterDischargeDisposition","status":"draft","date":"2024-02-07T02:22:45+00:00","publisher":"HL7 Australia","contact":[{"name":"HL7 Australia FHIR Working Group","telecom":[{"system":"url","value":"https://confluence.hl7.org/display/HAFWG","use":"work"}]}],"description":"This search parameter returns encounters with a discharge-disposition matching the specified code.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"AU"}]}],"code":"discharge-disposition","base":["Encounter"],"type":"token","expression":"Encounter.hospitalization.dischargeDisposition","multipleOr":true,"_multipleOr":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"MAY"}]},"multipleAnd":true,"_multipleAnd":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"MAY"}]}}},{"resource":{"resourceType":"StructureDefinition","id":"au-relatedperson","text":{"status":"extensions","div":"<div xmlns=\"http://www.w3.org/1999/xhtml\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;\"><tr style=\"border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top\"><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"The logical name of the element\">Name</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Information about the use of the element\">Flags</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Minimum and Maximum # of times the the element can appear in the instance\">Card.</a></th><th style=\"width: 100px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Reference to the type of the element\">Type</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Additional information about the element\">Description &amp; Constraints</a><span style=\"float: right\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC\" alt=\"doco\" style=\"background-color: inherit\"/></a></span></th></tr><tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_resource.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-au-relatedperson-definitions.html#RelatedPerson\">RelatedPerson</a><a name=\"RelatedPerson\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/relatedperson.html\">RelatedPerson</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">A person related to a patient in an Australian healthcare context</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-au-relatedperson-definitions.html#RelatedPerson.identifier\" title=\"Identifier for a person within a particular scope.\">identifier</a><a name=\"RelatedPerson.identifier\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#Identifier\" title=\"Identifier\">Identifier</a>, <a href=\"StructureDefinition-au-ihi.html\" title=\"Identifier\">AUIHI</a>, <a href=\"StructureDefinition-au-medicarecardnumber.html\" title=\"Identifier\">AUMedicareCardNumber</a>, <a href=\"StructureDefinition-au-dvanumber.html\" title=\"Identifier\">AUDVANumber</a>, <a href=\"StructureDefinition-au-healthcarecardnumber.html\" title=\"Identifier\">AUHealthCareCardNumber</a>, <a href=\"StructureDefinition-au-pensionerconcessioncardnumber.html\" title=\"Identifier\">AUPensionerConcessionCardNumber</a>, <a href=\"StructureDefinition-au-cwlthseniorshealthcardnumber.html\" title=\"Identifier\">AUCwlthSeniorsHealthCardNumber</a>, <a href=\"StructureDefinition-au-medicalrecordnumber.html\" title=\"Identifier\">AUMedicalRecordNumber</a>, <a href=\"StructureDefinition-au-insurancemembernumber.html\" title=\"Identifier\">AUInsuranceMemberNumber</a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">A human identifier for this person</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-au-relatedperson-definitions.html#RelatedPerson.relationship\">relationship</a><a name=\"RelatedPerson.relationship\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#CodeableConcept\">CodeableConcept</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">The nature of the relationship</span><br/><span style=\"font-weight:bold\">Binding: </span><a href=\"https://tx.ontoserver.csiro.au/fhir/ValueSet/related-person-relationship-type-1\" title=\"https://healthterminologies.gov.au/fhir/ValueSet/related-person-relationship-type-1\">Related Person Relationship Type <img src=\"external.png\"/></a> (<a href=\"http://hl7.org/fhir/R4/terminologies.html#extensible\" title=\"To be conformant, the concept in this element SHALL be from the specified value set if any of the codes within the value set can apply to the concept being communicated. If the value set does not cover the concept (based on human review), alternate codings (or, data type allowing, text) may be included instead.\">extensible</a>)</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-au-relatedperson-definitions.html#RelatedPerson.address\" title=\"Address where the related person can be contacted or visited.\">address</a><a name=\"RelatedPerson.address\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#Address\" title=\"Address\">Address</a>, <a href=\"StructureDefinition-au-address.html\" title=\"Address\">AustralianAddress</a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Address where the related person can be contacted or visited</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-au-relatedperson-definitions.html#RelatedPerson.communication\">communication</a><a name=\"RelatedPerson.communication\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#BackboneElement\">BackboneElement</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">A language which may be used to communicate with about the patient's health</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck000.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-au-relatedperson-definitions.html#RelatedPerson.communication.language\" title=\"A language which can be used to communicate with about the patient's health. The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. &quot;en&quot; for English, or &quot;en-US&quot; for American English versus &quot;en-EN&quot; for England English.\">language</a><a name=\"RelatedPerson.communication.language\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">1</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#CodeableConcept\">CodeableConcept</a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">The language which can be used to communicate with the patient about his or her health</span><br/><span style=\"font-weight:bold\">Binding: </span><a href=\"https://tx.ontoserver.csiro.au/fhir/ValueSet/common-languages-australia-2\" title=\"https://healthterminologies.gov.au/fhir/ValueSet/common-languages-australia-2\">Common Languages in Australia <img src=\"external.png\"/></a> (<a href=\"http://hl7.org/fhir/R4/terminologies.html#extensible\" title=\"To be conformant, the concept in this element SHALL be from the specified value set if any of the codes within the value set can apply to the concept being communicated. If the value set does not cover the concept (based on human review), alternate codings (or, data type allowing, text) may be included instead.\">extensible</a>)</td></tr>\r\n<tr><td colspan=\"5\" class=\"hierarchy\"><br/><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC\" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></div>"},"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm","valueInteger":2},{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status","valueCode":"trial-use","_valueCode":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom","valueCanonical":"http://hl7.org.au/fhir/ImplementationGuide/hl7.fhir.au.base"}]}}],"url":"http://hl7.org.au/fhir/StructureDefinition/au-relatedperson","version":"4.1.3","name":"AUBaseRelatedPerson","title":"AU Base Related Person","status":"active","date":"2024-02-07T02:22:45+00:00","publisher":"HL7 Australia","contact":[{"name":"HL7 Australia FHIR Working Group","telecom":[{"system":"url","value":"https://confluence.hl7.org/display/HAFWG","use":"work"}]}],"description":"This profile defines a related person structure that localises core concepts, including identifiers and terminology, for use in an Australian context. The purpose of this profile is to provide national level agreement on core localised concepts. This profile does not force conformance to core localised concepts. It enables implementers and modellers to make their own rules, i.e. [profiling](http://hl7.org/fhir/profiling.html), about how to support these concepts for specific implementation needs.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"AU"}]}],"copyright":"HL7 Australia© 2018+; Licensed Under Creative Commons No Rights Reserved.","fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"},{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"}],"kind":"resource","abstract":false,"type":"RelatedPerson","baseDefinition":"http://hl7.org/fhir/StructureDefinition/RelatedPerson","derivation":"constraint","snapshot":{"element":[{"id":"RelatedPerson","path":"RelatedPerson","short":"A person related to a patient in an Australian healthcare context","definition":"Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process.","min":0,"max":"*","base":{"path":"RelatedPerson","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"rim","map":"role"}]},{"id":"RelatedPerson.id","path":"RelatedPerson.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":0,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"RelatedPerson.meta","path":"RelatedPerson.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"RelatedPerson.implicitRules","path":"RelatedPerson.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"RelatedPerson.language","path":"RelatedPerson.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages"}},{"id":"RelatedPerson.text","path":"RelatedPerson.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"RelatedPerson.contained","path":"RelatedPerson.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"RelatedPerson.extension","path":"RelatedPerson.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"RelatedPerson.modifierExtension","path":"RelatedPerson.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"RelatedPerson.identifier","path":"RelatedPerson.identifier","short":"A human identifier for this person","definition":"Identifier for a person within a particular scope.","requirements":"People are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the patient. Examples are national person identifier and local identifier.","min":0,"max":"*","base":{"path":"RelatedPerson.identifier","min":0,"max":"*"},"type":[{"code":"Identifier","profile":["http://hl7.org/fhir/StructureDefinition/Identifier","http://hl7.org.au/fhir/StructureDefinition/au-ihi","http://hl7.org.au/fhir/StructureDefinition/au-medicarecardnumber","http://hl7.org.au/fhir/StructureDefinition/au-dvanumber","http://hl7.org.au/fhir/StructureDefinition/au-healthcarecardnumber","http://hl7.org.au/fhir/StructureDefinition/au-pensionerconcessioncardnumber","http://hl7.org.au/fhir/StructureDefinition/au-cwlthseniorshealthcardnumber","http://hl7.org.au/fhir/StructureDefinition/au-medicalrecordnumber","http://hl7.org.au/fhir/StructureDefinition/au-insurancemembernumber"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"mapping":[{"identity":"rim","map":"n/a"},{"identity":"v2","map":"CX / EI (occasionally, more often EI maps to a resource id or a URL)"},{"identity":"rim","map":"II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"},{"identity":"servd","map":"Identifier"}]},{"id":"RelatedPerson.active","path":"RelatedPerson.active","short":"Whether this related person's record is in active use","definition":"Whether this related person record is in active use.","comment":"This element is labeled as a modifier because it may be used to mark that the resource was created in error.","requirements":"Need to be able to mark a related person record as not to be used, such as if it was created in error.","min":0,"max":"1","base":{"path":"RelatedPerson.active","min":0,"max":"1"},"type":[{"code":"boolean"}],"meaningWhenMissing":"This resource is generally assumed to be active if no value is provided for the active element","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid","isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.status"},{"identity":"rim","map":".statusCode"}]},{"id":"RelatedPerson.patient","path":"RelatedPerson.patient","short":"The patient this person is related to","definition":"The patient this person is related to.","requirements":"We need to know which patient this RelatedPerson is related to.","min":1,"max":"1","base":{"path":"RelatedPerson.patient","min":1,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Patient"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"PID-3"},{"identity":"rim","map":"scoper[classCode=PSN|ANM and determinerCode='INSTANCE']/playedRole[classCode='PAT']/id"}]},{"id":"RelatedPerson.relationship","path":"RelatedPerson.relationship","short":"The nature of the relationship","definition":"The nature of the relationship between a patient and the related person.","requirements":"We need to know the relationship with the patient since it influences the interpretation of the information attributed to this person.","min":0,"max":"*","base":{"path":"RelatedPerson.relationship","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"PatientRelationshipType"}],"strength":"extensible","valueSet":"https://healthterminologies.gov.au/fhir/ValueSet/related-person-relationship-type-1"},"mapping":[{"identity":"w5","map":"FiveWs.class"},{"identity":"v2","map":"NK1-3"},{"identity":"rim","map":"code"}]},{"id":"RelatedPerson.name","path":"RelatedPerson.name","short":"A name associated with the person","definition":"A name associated with the person.","requirements":"Related persons need to be identified by name, but it is uncommon to need details about multiple other names for that person.","min":0,"max":"*","base":{"path":"RelatedPerson.name","min":0,"max":"*"},"type":[{"code":"HumanName"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"NK1-2"},{"identity":"rim","map":"name"}]},{"id":"RelatedPerson.telecom","path":"RelatedPerson.telecom","short":"A contact detail for the person","definition":"A contact detail for the person, e.g. a telephone number or an email address.","comment":"Person may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently, and also to help with identification.","requirements":"People have (primary) ways to contact them in some way such as phone, email.","min":0,"max":"*","base":{"path":"RelatedPerson.telecom","min":0,"max":"*"},"type":[{"code":"ContactPoint"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"NK1-5 / NK1-6 / NK1-40"},{"identity":"rim","map":"telecom"}]},{"id":"RelatedPerson.gender","path":"RelatedPerson.gender","short":"male | female | other | unknown","definition":"Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.","requirements":"Needed for identification of the person, in combination with (at least) name and birth date.","min":0,"max":"1","base":{"path":"RelatedPerson.gender","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"AdministrativeGender"}],"strength":"required","description":"The gender of a person used for administrative purposes.","valueSet":"http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"},"mapping":[{"identity":"v2","map":"NK1-15"},{"identity":"rim","map":"administrativeGender"}]},{"id":"RelatedPerson.birthDate","path":"RelatedPerson.birthDate","short":"The date on which the related person was born","definition":"The date on which the related person was born.","min":0,"max":"1","base":{"path":"RelatedPerson.birthDate","min":0,"max":"1"},"type":[{"code":"date"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":"player.birthTime"}]},{"id":"RelatedPerson.address","path":"RelatedPerson.address","short":"Address where the related person can be contacted or visited","definition":"Address where the related person can be contacted or visited.","comment":"The address is intended to describe postal addresses for administrative purposes, not to describe absolute geographical coordinates. Postal addresses are often used as proxies for physical locations (also see the Location resource).","requirements":"Need to keep track where the related person can be contacted per postal mail or visited.","min":0,"max":"*","base":{"path":"RelatedPerson.address","min":0,"max":"*"},"type":[{"code":"Address","profile":["http://hl7.org/fhir/StructureDefinition/Address","http://hl7.org.au/fhir/StructureDefinition/au-address"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"mapping":[{"identity":"rim","map":"n/a"},{"identity":"v2","map":"XAD"},{"identity":"rim","map":"AD"},{"identity":"servd","map":"Address"}]},{"id":"RelatedPerson.photo","path":"RelatedPerson.photo","short":"Image of the person","definition":"Image of the person.","requirements":"Many EHR systems have the capability to capture an image of persons. Fits with newer social media usage too.","min":0,"max":"*","base":{"path":"RelatedPerson.photo","min":0,"max":"*"},"type":[{"code":"Attachment"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX-5 - needs a profile"},{"identity":"rim","map":"player[classCode='PSN' and determinerCode='INSTANCE']/desc"}]},{"id":"RelatedPerson.period","path":"RelatedPerson.period","short":"Period of time that this relationship is considered valid","definition":"The period of time during which this relationship is or was active. If there are no dates defined, then the interval is unknown.","min":0,"max":"1","base":{"path":"RelatedPerson.period","min":0,"max":"1"},"type":[{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"w5","map":"FiveWs.done[x]"},{"identity":"rim","map":".effectiveTime"}]},{"id":"RelatedPerson.communication","path":"RelatedPerson.communication","short":"A language which may be used to communicate with about the patient's health","definition":"A language which may be used to communicate with about the patient's health.","comment":"If no language is specified, this *implies* that the default local language is spoken. If you need to convey proficiency for multiple modes, then you need multiple RelatedPerson.Communication associations. If the RelatedPerson does not speak the default local language, then the Interpreter Required Standard can be used to explicitly declare that an interpreter is required.","requirements":"If a related person does not speak the local language, interpreters may be required, so languages spoken and proficiency is an important things to keep track of both for patient and other persons of interest.","min":0,"max":"*","base":{"path":"RelatedPerson.communication","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"LanguageCommunication"}]},{"id":"RelatedPerson.communication.id","path":"RelatedPerson.communication.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"RelatedPerson.communication.extension","path":"RelatedPerson.communication.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"RelatedPerson.communication.modifierExtension","path":"RelatedPerson.communication.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"RelatedPerson.communication.language","path":"RelatedPerson.communication.language","short":"The language which can be used to communicate with the patient about his or her health","definition":"A language which can be used to communicate with about the patient's health. The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. \"en\" for English, or \"en-US\" for American English versus \"en-EN\" for England English.","comment":"The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.","requirements":"Most systems in multilingual countries will want to convey language. Not all systems actually need the regional dialect.","min":1,"max":"1","base":{"path":"RelatedPerson.communication.language","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"strength":"extensible","valueSet":"https://healthterminologies.gov.au/fhir/ValueSet/common-languages-australia-2"},"mapping":[{"identity":"rim","map":"player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code"}]},{"id":"RelatedPerson.communication.preferred","path":"RelatedPerson.communication.preferred","short":"Language preference indicator","definition":"Indicates whether or not the patient prefers this language (over other languages he masters up a certain level).","comment":"This language is specifically identified for communicating healthcare information.","requirements":"People that master multiple languages up to certain level may prefer one or more, i.e. feel more confident in communicating in a particular language making other languages sort of a fall back method.","min":0,"max":"1","base":{"path":"RelatedPerson.communication.preferred","min":0,"max":"1"},"type":[{"code":"boolean"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"preferenceInd"}]}]},"differential":{"element":[{"id":"RelatedPerson","path":"RelatedPerson","short":"A person related to a patient in an Australian healthcare context"},{"id":"RelatedPerson.identifier","path":"RelatedPerson.identifier","short":"A human identifier for this person","definition":"Identifier for a person within a particular scope.","type":[{"code":"Identifier","profile":["http://hl7.org/fhir/StructureDefinition/Identifier","http://hl7.org.au/fhir/StructureDefinition/au-ihi","http://hl7.org.au/fhir/StructureDefinition/au-medicarecardnumber","http://hl7.org.au/fhir/StructureDefinition/au-dvanumber","http://hl7.org.au/fhir/StructureDefinition/au-healthcarecardnumber","http://hl7.org.au/fhir/StructureDefinition/au-pensionerconcessioncardnumber","http://hl7.org.au/fhir/StructureDefinition/au-cwlthseniorshealthcardnumber","http://hl7.org.au/fhir/StructureDefinition/au-medicalrecordnumber","http://hl7.org.au/fhir/StructureDefinition/au-insurancemembernumber"]}]},{"id":"RelatedPerson.relationship","path":"RelatedPerson.relationship","binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"PatientRelationshipType"}],"strength":"extensible","valueSet":"https://healthterminologies.gov.au/fhir/ValueSet/related-person-relationship-type-1"}},{"id":"RelatedPerson.address","path":"RelatedPerson.address","short":"Address where the related person can be contacted or visited","definition":"Address where the related person can be contacted or visited.","comment":"The address is intended to describe postal addresses for administrative purposes, not to describe absolute geographical coordinates. Postal addresses are often used as proxies for physical locations (also see the Location resource).","type":[{"code":"Address","profile":["http://hl7.org/fhir/StructureDefinition/Address","http://hl7.org.au/fhir/StructureDefinition/au-address"]}]},{"id":"RelatedPerson.communication","path":"RelatedPerson.communication"},{"id":"RelatedPerson.communication.language","path":"RelatedPerson.communication.language","definition":"A language which can be used to communicate with about the patient's health. The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. \"en\" for English, or \"en-US\" for American English versus \"en-EN\" for England English.","binding":{"strength":"extensible","valueSet":"https://healthterminologies.gov.au/fhir/ValueSet/common-languages-australia-2"}}]}}}]}