carin_for_blue_button_test_kit 0.9.1 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (674) hide show
  1. checksums.yaml +4 -4
  2. data/lib/carin_for_blue_button_test_kit/capability_statement/capability_statement_group.rb +6 -5
  3. data/lib/carin_for_blue_button_test_kit/capability_statement/tests/instantiates_test.rb +4 -16
  4. data/lib/carin_for_blue_button_test_kit/carin_search_test.rb +451 -195
  5. data/lib/carin_for_blue_button_test_kit/custom_groups/v1.1.0/c4bb_smart_launch_group.rb +59 -0
  6. data/lib/carin_for_blue_button_test_kit/custom_groups/v2.0.0/c4bb_smart_launch/smart_scopes_test.rb +119 -0
  7. data/lib/carin_for_blue_button_test_kit/custom_groups/v2.0.0/c4bb_smart_launch/well_known_capabilities_test.rb +48 -0
  8. data/lib/carin_for_blue_button_test_kit/custom_groups/v2.0.0/c4bb_smart_launch_group.rb +126 -0
  9. data/lib/carin_for_blue_button_test_kit/custom_groups/v2.0.0-dev-nonfinancial/c4bb_smart_launch/smart_scopes_test.rb +119 -0
  10. data/lib/carin_for_blue_button_test_kit/custom_groups/v2.0.0-dev-nonfinancial/c4bb_smart_launch/well_known_capabilities_test.rb +51 -0
  11. data/lib/carin_for_blue_button_test_kit/custom_groups/v2.0.0-dev-nonfinancial/c4bb_smart_launch_group.rb +129 -0
  12. data/lib/carin_for_blue_button_test_kit/date_search_validator.rb +102 -98
  13. data/lib/carin_for_blue_button_test_kit/fhir_resource_navigation.rb +57 -58
  14. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/c4bb_test_suite.rb +32 -56
  15. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/coverage/metadata.yml +20 -4
  16. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/coverage/{coverage_must_support_test.rb → must_support_test.rb} +2 -2
  17. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/coverage/{coverage_read_test.rb → read_test.rb} +10 -11
  18. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/coverage/{coverage_validation_test.rb → validation_test.rb} +3 -4
  19. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/coverage_group.rb +24 -25
  20. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob/id_search_test.rb +40 -0
  21. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit/explanation_of_benefit_identifier_search_test.rb → eob/identifier_search_test.rb} +8 -16
  22. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob/incl_all_search_test.rb +37 -0
  23. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob/incl_careteam_search_test.rb +37 -0
  24. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob/incl_coverage_search_test.rb +37 -0
  25. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob/incl_insurer_search_test.rb +37 -0
  26. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob/incl_patient_search_test.rb +37 -0
  27. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob/incl_provider_search_test.rb +37 -0
  28. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit/explanation_of_benefit_lastupdated_search_test.rb → eob/lastupdated_search_test.rb} +7 -15
  29. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit → eob}/metadata.yml +155 -42
  30. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit/explanation_of_benefit_must_support_test.rb → eob/must_support_test.rb} +5 -5
  31. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_id_search_test.rb → eob/patient_search_test.rb} +22 -19
  32. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob/read_test.rb +32 -0
  33. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit/explanation_of_benefit_service_date_search_test.rb → eob/service_date_search_test.rb} +7 -15
  34. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_type_search_test.rb → eob/type_search_test.rb} +8 -16
  35. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit/explanation_of_benefit_validation_test.rb → eob/validation_test.rb} +6 -7
  36. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_group.rb +125 -0
  37. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_inpatient_institutional/id_search_test.rb +40 -0
  38. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_identifier_search_test.rb → eob_inpatient_institutional/identifier_search_test.rb} +8 -16
  39. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_inpatient_institutional/incl_all_search_test.rb +37 -0
  40. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_inpatient_institutional/incl_careteam_search_test.rb +37 -0
  41. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_inpatient_institutional/incl_coverage_search_test.rb +37 -0
  42. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_inpatient_institutional/incl_insurer_search_test.rb +37 -0
  43. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_inpatient_institutional/incl_patient_search_test.rb +37 -0
  44. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_inpatient_institutional/incl_provider_search_test.rb +37 -0
  45. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_lastupdated_search_test.rb → eob_inpatient_institutional/lastupdated_search_test.rb} +7 -15
  46. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_inpatient_institutional → eob_inpatient_institutional}/metadata.yml +155 -42
  47. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_must_support_test.rb → eob_inpatient_institutional/must_support_test.rb} +7 -7
  48. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_id_search_test.rb → eob_inpatient_institutional/patient_search_test.rb} +22 -19
  49. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_inpatient_institutional/read_test.rb +32 -0
  50. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_service_date_search_test.rb → eob_inpatient_institutional/service_date_search_test.rb} +7 -15
  51. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit/explanation_of_benefit_type_search_test.rb → eob_inpatient_institutional/type_search_test.rb} +8 -16
  52. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_validation_test.rb → eob_inpatient_institutional/validation_test.rb} +6 -7
  53. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit/explanation_of_benefit_patient_search_test.rb → eob_outpatient_institutional/id_search_test.rb} +9 -17
  54. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_outpatient_institutional/identifier_search_test.rb +41 -0
  55. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_outpatient_institutional/incl_all_search_test.rb +37 -0
  56. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_outpatient_institutional/incl_careteam_search_test.rb +37 -0
  57. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_outpatient_institutional/incl_coverage_search_test.rb +37 -0
  58. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_outpatient_institutional/incl_insurer_search_test.rb +37 -0
  59. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_outpatient_institutional/incl_patient_search_test.rb +37 -0
  60. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_outpatient_institutional/incl_provider_search_test.rb +37 -0
  61. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_outpatient_institutional/lastupdated_search_test.rb +40 -0
  62. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_outpatient_institutional → eob_outpatient_institutional}/metadata.yml +155 -42
  63. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_must_support_test.rb → eob_outpatient_institutional/must_support_test.rb} +7 -7
  64. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_outpatient_institutional/patient_search_test.rb +62 -0
  65. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_outpatient_institutional/read_test.rb +32 -0
  66. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_outpatient_institutional/service_date_search_test.rb +40 -0
  67. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_outpatient_institutional/type_search_test.rb +41 -0
  68. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_validation_test.rb → eob_outpatient_institutional/validation_test.rb} +6 -7
  69. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_pharmacy/id_search_test.rb +40 -0
  70. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_pharmacy/identifier_search_test.rb +41 -0
  71. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_pharmacy/incl_all_search_test.rb +37 -0
  72. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_pharmacy/incl_careteam_search_test.rb +37 -0
  73. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_pharmacy/incl_coverage_search_test.rb +37 -0
  74. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_pharmacy/incl_insurer_search_test.rb +37 -0
  75. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_pharmacy/incl_patient_search_test.rb +37 -0
  76. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_pharmacy/incl_provider_search_test.rb +37 -0
  77. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_pharmacy/lastupdated_search_test.rb +40 -0
  78. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_pharmacy → eob_pharmacy}/metadata.yml +155 -42
  79. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_must_support_test.rb → eob_pharmacy/must_support_test.rb} +7 -7
  80. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_id_search_test.rb → eob_pharmacy/patient_search_test.rb} +22 -19
  81. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_pharmacy/read_test.rb +32 -0
  82. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_pharmacy/service_date_search_test.rb +40 -0
  83. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_pharmacy/type_search_test.rb +41 -0
  84. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_validation_test.rb → eob_pharmacy/validation_test.rb} +6 -7
  85. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_patient_search_test.rb → eob_professional_non_clinician/id_search_test.rb} +9 -17
  86. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_professional_non_clinician/identifier_search_test.rb +41 -0
  87. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_professional_non_clinician/incl_all_search_test.rb +37 -0
  88. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_professional_non_clinician/incl_careteam_search_test.rb +37 -0
  89. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_professional_non_clinician/incl_coverage_search_test.rb +37 -0
  90. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_professional_non_clinician/incl_insurer_search_test.rb +37 -0
  91. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_professional_non_clinician/incl_patient_search_test.rb +37 -0
  92. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_professional_non_clinician/incl_provider_search_test.rb +37 -0
  93. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_professional_non_clinician/lastupdated_search_test.rb +40 -0
  94. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_professional_non_clinician → eob_professional_non_clinician}/metadata.yml +155 -42
  95. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_must_support_test.rb → eob_professional_non_clinician/must_support_test.rb} +7 -7
  96. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_professional_non_clinician/patient_search_test.rb +62 -0
  97. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_professional_non_clinician/read_test.rb +32 -0
  98. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_professional_non_clinician/service_date_search_test.rb +40 -0
  99. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/eob_professional_non_clinician/type_search_test.rb +41 -0
  100. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/{explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_validation_test.rb → eob_professional_non_clinician/validation_test.rb} +6 -7
  101. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/metadata.yml +604 -56
  102. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/organization/metadata.yml +4 -3
  103. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/organization/{organization_must_support_test.rb → must_support_test.rb} +2 -2
  104. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/organization/{organization_read_test.rb → read_test.rb} +10 -11
  105. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/organization/{organization_validation_test.rb → validation_test.rb} +3 -4
  106. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/organization_group.rb +24 -25
  107. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/patient/metadata.yml +4 -3
  108. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/patient/{patient_must_support_test.rb → must_support_test.rb} +2 -2
  109. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/patient/read_test.rb +39 -0
  110. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/patient/{patient_validation_test.rb → validation_test.rb} +3 -4
  111. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/patient_group.rb +24 -25
  112. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/practitioner/metadata.yml +4 -3
  113. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/practitioner/{practitioner_must_support_test.rb → must_support_test.rb} +2 -2
  114. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/practitioner/{practitioner_read_test.rb → read_test.rb} +10 -11
  115. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/practitioner/{practitioner_validation_test.rb → validation_test.rb} +3 -4
  116. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/practitioner_group.rb +24 -25
  117. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/c4bb_test_suite.rb +33 -59
  118. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/coverage/{coverage_id_search_test.rb → id_search_test.rb} +16 -12
  119. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/coverage/{coverage_coverage_payor_search_test.rb → incl_payor_search_test.rb} +8 -9
  120. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/coverage/{coverage_lastupdated_search_test.rb → lastupdated_search_test.rb} +6 -12
  121. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/coverage/metadata.yml +56 -13
  122. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/coverage/{coverage_must_support_test.rb → must_support_test.rb} +2 -2
  123. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/coverage/{coverage_read_test.rb → read_test.rb} +5 -12
  124. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/coverage/{coverage_validation_test.rb → validation_test.rb} +3 -4
  125. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/coverage_group.rb +30 -31
  126. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit/explanation_of_benefit_billable_period_start_search_test.rb → eob/billable_period_start_search_test.rb} +7 -15
  127. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob/id_search_test.rb +40 -0
  128. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit/explanation_of_benefit_identifier_search_test.rb → eob/identifier_search_test.rb} +8 -16
  129. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob/incl_all_search_test.rb +37 -0
  130. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob/incl_careteam_search_test.rb +37 -0
  131. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob/incl_coverage_search_test.rb +37 -0
  132. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob/incl_insurer_search_test.rb +37 -0
  133. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob/incl_patient_search_test.rb +37 -0
  134. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob/incl_payee_search_test.rb +37 -0
  135. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob/incl_provider_search_test.rb +37 -0
  136. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit/explanation_of_benefit_lastupdated_search_test.rb → eob/lastupdated_search_test.rb} +7 -15
  137. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit → eob}/metadata.yml +188 -55
  138. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit/explanation_of_benefit_must_support_test.rb → eob/must_support_test.rb} +5 -5
  139. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_id_search_test.rb → eob/patient_search_test.rb} +22 -19
  140. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob/read_test.rb +32 -0
  141. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit/explanation_of_benefit_service_date_search_test.rb → eob/service_date_search_test.rb} +7 -15
  142. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit/explanation_of_benefit_service_start_date_search_test.rb → eob/service_start_date_search_test.rb} +7 -15
  143. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_oral/explanation_of_benefit_oral_type_search_test.rb → eob/type_search_test.rb} +8 -16
  144. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit/explanation_of_benefit_validation_test.rb → eob/validation_test.rb} +6 -7
  145. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_group.rb +137 -0
  146. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_oral/explanation_of_benefit_oral_billable_period_start_search_test.rb → eob_inpatient_institutional/billable_period_start_search_test.rb} +7 -15
  147. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_inpatient_institutional/id_search_test.rb +40 -0
  148. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_oral/explanation_of_benefit_oral_identifier_search_test.rb → eob_inpatient_institutional/identifier_search_test.rb} +8 -16
  149. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_inpatient_institutional/incl_all_search_test.rb +37 -0
  150. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_oral/explanation_of_benefit_oral_explanation_of_benefit_careteam_search_test.rb → eob_inpatient_institutional/incl_careteam_search_test.rb} +10 -11
  151. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_oral/explanation_of_benefit_oral_explanation_of_benefit_coverage_search_test.rb → eob_inpatient_institutional/incl_coverage_search_test.rb} +10 -11
  152. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_oral/explanation_of_benefit_oral_explanation_of_benefit_insurer_search_test.rb → eob_inpatient_institutional/incl_insurer_search_test.rb} +10 -11
  153. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_oral/explanation_of_benefit_oral_explanation_of_benefit_patient_search_test.rb → eob_inpatient_institutional/incl_patient_search_test.rb} +10 -11
  154. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_oral/explanation_of_benefit_oral_explanation_of_benefit_payee_search_test.rb → eob_inpatient_institutional/incl_payee_search_test.rb} +10 -11
  155. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_oral/explanation_of_benefit_oral_explanation_of_benefit_provider_search_test.rb → eob_inpatient_institutional/incl_provider_search_test.rb} +10 -11
  156. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_oral/explanation_of_benefit_oral_lastupdated_search_test.rb → eob_inpatient_institutional/lastupdated_search_test.rb} +7 -15
  157. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_inpatient_institutional → eob_inpatient_institutional}/metadata.yml +188 -55
  158. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_must_support_test.rb → eob_inpatient_institutional/must_support_test.rb} +7 -7
  159. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_id_search_test.rb → eob_inpatient_institutional/patient_search_test.rb} +22 -19
  160. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_inpatient_institutional/read_test.rb +32 -0
  161. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_oral/explanation_of_benefit_oral_service_date_search_test.rb → eob_inpatient_institutional/service_date_search_test.rb} +7 -15
  162. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_oral/explanation_of_benefit_oral_service_start_date_search_test.rb → eob_inpatient_institutional/service_start_date_search_test.rb} +7 -15
  163. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit/explanation_of_benefit_type_search_test.rb → eob_inpatient_institutional/type_search_test.rb} +8 -16
  164. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_validation_test.rb → eob_inpatient_institutional/validation_test.rb} +6 -7
  165. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_billable_period_start_search_test.rb → eob_oral/billable_period_start_search_test.rb} +7 -15
  166. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_oral/id_search_test.rb +40 -0
  167. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_identifier_search_test.rb → eob_oral/identifier_search_test.rb} +8 -16
  168. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_oral/incl_all_search_test.rb +37 -0
  169. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_oral/incl_careteam_search_test.rb +37 -0
  170. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_oral/incl_coverage_search_test.rb +37 -0
  171. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_oral/incl_insurer_search_test.rb +37 -0
  172. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_oral/incl_patient_search_test.rb +37 -0
  173. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_oral/incl_payee_search_test.rb +37 -0
  174. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_oral/incl_provider_search_test.rb +37 -0
  175. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_lastupdated_search_test.rb → eob_oral/lastupdated_search_test.rb} +7 -15
  176. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_oral → eob_oral}/metadata.yml +188 -55
  177. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_oral/explanation_of_benefit_oral_must_support_test.rb → eob_oral/must_support_test.rb} +7 -7
  178. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_id_search_test.rb → eob_oral/patient_search_test.rb} +22 -19
  179. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_oral/read_test.rb +32 -0
  180. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_service_date_search_test.rb → eob_oral/service_date_search_test.rb} +7 -15
  181. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_service_start_date_search_test.rb → eob_oral/service_start_date_search_test.rb} +7 -15
  182. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_type_search_test.rb → eob_oral/type_search_test.rb} +8 -16
  183. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_oral/explanation_of_benefit_oral_validation_test.rb → eob_oral/validation_test.rb} +6 -7
  184. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_outpatient_institutional/billable_period_start_search_test.rb +40 -0
  185. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit/explanation_of_benefit_patient_search_test.rb → eob_outpatient_institutional/id_search_test.rb} +9 -17
  186. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_outpatient_institutional/identifier_search_test.rb +41 -0
  187. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_outpatient_institutional/incl_all_search_test.rb +37 -0
  188. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_outpatient_institutional/incl_careteam_search_test.rb +37 -0
  189. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_outpatient_institutional/incl_coverage_search_test.rb +37 -0
  190. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_outpatient_institutional/incl_insurer_search_test.rb +37 -0
  191. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_outpatient_institutional/incl_patient_search_test.rb +37 -0
  192. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_outpatient_institutional/incl_payee_search_test.rb +37 -0
  193. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_outpatient_institutional/incl_provider_search_test.rb +37 -0
  194. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_outpatient_institutional/lastupdated_search_test.rb +40 -0
  195. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_outpatient_institutional → eob_outpatient_institutional}/metadata.yml +188 -55
  196. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_must_support_test.rb → eob_outpatient_institutional/must_support_test.rb} +7 -7
  197. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_outpatient_institutional/patient_search_test.rb +62 -0
  198. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_outpatient_institutional/read_test.rb +32 -0
  199. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_outpatient_institutional/service_date_search_test.rb +40 -0
  200. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_outpatient_institutional/service_start_date_search_test.rb +40 -0
  201. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_outpatient_institutional/type_search_test.rb +41 -0
  202. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_validation_test.rb → eob_outpatient_institutional/validation_test.rb} +6 -7
  203. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_pharmacy/billable_period_start_search_test.rb +40 -0
  204. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_pharmacy/id_search_test.rb +40 -0
  205. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_pharmacy/identifier_search_test.rb +41 -0
  206. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_pharmacy/incl_all_search_test.rb +37 -0
  207. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_pharmacy/incl_careteam_search_test.rb +37 -0
  208. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_pharmacy/incl_coverage_search_test.rb +37 -0
  209. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_pharmacy/incl_insurer_search_test.rb +37 -0
  210. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_pharmacy/incl_patient_search_test.rb +37 -0
  211. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_pharmacy/incl_payee_search_test.rb +37 -0
  212. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_pharmacy/incl_provider_search_test.rb +37 -0
  213. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_pharmacy/lastupdated_search_test.rb +40 -0
  214. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_pharmacy → eob_pharmacy}/metadata.yml +188 -55
  215. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_must_support_test.rb → eob_pharmacy/must_support_test.rb} +7 -7
  216. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_oral/explanation_of_benefit_oral_id_search_test.rb → eob_pharmacy/patient_search_test.rb} +22 -19
  217. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_pharmacy/read_test.rb +32 -0
  218. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_pharmacy/service_date_search_test.rb +40 -0
  219. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_pharmacy/service_start_date_search_test.rb +40 -0
  220. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_pharmacy/type_search_test.rb +41 -0
  221. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_validation_test.rb → eob_pharmacy/validation_test.rb} +6 -7
  222. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_professional_non_clinician/billable_period_start_search_test.rb +40 -0
  223. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_oral/explanation_of_benefit_oral_patient_search_test.rb → eob_professional_non_clinician/id_search_test.rb} +9 -17
  224. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_professional_non_clinician/identifier_search_test.rb +41 -0
  225. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_professional_non_clinician/incl_all_search_test.rb +37 -0
  226. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_professional_non_clinician/incl_careteam_search_test.rb +37 -0
  227. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_professional_non_clinician/incl_coverage_search_test.rb +37 -0
  228. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_professional_non_clinician/incl_insurer_search_test.rb +37 -0
  229. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_professional_non_clinician/incl_patient_search_test.rb +37 -0
  230. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_professional_non_clinician/incl_payee_search_test.rb +37 -0
  231. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_professional_non_clinician/incl_provider_search_test.rb +37 -0
  232. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_professional_non_clinician/lastupdated_search_test.rb +40 -0
  233. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_professional_non_clinician → eob_professional_non_clinician}/metadata.yml +188 -55
  234. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_must_support_test.rb → eob_professional_non_clinician/must_support_test.rb} +7 -7
  235. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_professional_non_clinician/patient_search_test.rb +62 -0
  236. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_professional_non_clinician/read_test.rb +32 -0
  237. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_professional_non_clinician/service_date_search_test.rb +40 -0
  238. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_professional_non_clinician/service_start_date_search_test.rb +40 -0
  239. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/eob_professional_non_clinician/type_search_test.rb +41 -0
  240. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_validation_test.rb → eob_professional_non_clinician/validation_test.rb} +6 -7
  241. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/metadata.yml +1036 -128
  242. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/organization/id_search_test.rb +62 -0
  243. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/organization/lastupdated_search_test.rb +42 -0
  244. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/organization/metadata.yml +39 -7
  245. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/organization/{organization_must_support_test.rb → must_support_test.rb} +2 -2
  246. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/organization/{organization_read_test.rb → read_test.rb} +5 -12
  247. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/organization/{organization_validation_test.rb → validation_test.rb} +3 -4
  248. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/organization_group.rb +29 -24
  249. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/{explanation_of_benefit/explanation_of_benefit_id_search_test.rb → patient/id_search_test.rb} +16 -19
  250. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/patient/lastupdated_search_test.rb +42 -0
  251. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/patient/metadata.yml +39 -7
  252. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/patient/{patient_must_support_test.rb → must_support_test.rb} +2 -2
  253. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/patient/{patient_read_test.rb → read_test.rb} +5 -12
  254. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/patient/{patient_validation_test.rb → validation_test.rb} +3 -4
  255. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/patient_group.rb +28 -25
  256. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/practitioner/id_search_test.rb +62 -0
  257. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/practitioner/lastupdated_search_test.rb +42 -0
  258. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/practitioner/metadata.yml +39 -7
  259. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/practitioner/{practitioner_must_support_test.rb → must_support_test.rb} +2 -2
  260. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/practitioner/{practitioner_read_test.rb → read_test.rb} +5 -12
  261. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/practitioner/{practitioner_validation_test.rb → validation_test.rb} +3 -4
  262. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/practitioner_group.rb +29 -24
  263. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person/id_search_test.rb +62 -0
  264. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person/lastupdated_search_test.rb +42 -0
  265. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person/metadata.yml +39 -7
  266. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person/{related_person_must_support_test.rb → must_support_test.rb} +3 -3
  267. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person/{related_person_read_test.rb → read_test.rb} +6 -13
  268. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person/{related_person_validation_test.rb → validation_test.rb} +4 -5
  269. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person_group.rb +29 -24
  270. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/c4bb_test_suite.rb +86 -0
  271. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/coverage/id_search_test.rb +63 -0
  272. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/coverage/incl_payor_search_test.rb +37 -0
  273. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/coverage/lastupdated_search_test.rb +42 -0
  274. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/coverage/metadata.yml +216 -0
  275. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/coverage/must_support_test.rb +53 -0
  276. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/coverage/read_test.rb +32 -0
  277. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/coverage/validation_test.rb +42 -0
  278. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/coverage_group.rb +86 -0
  279. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob/billable_period_start_search_test.rb +40 -0
  280. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob/id_search_test.rb +40 -0
  281. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob/identifier_search_test.rb +41 -0
  282. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob/incl_all_search_test.rb +37 -0
  283. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob/incl_careteam_search_test.rb +37 -0
  284. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob/incl_coverage_search_test.rb +37 -0
  285. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob/incl_insurer_search_test.rb +37 -0
  286. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob/incl_patient_search_test.rb +37 -0
  287. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob/incl_payee_search_test.rb +37 -0
  288. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob/incl_provider_search_test.rb +37 -0
  289. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob/lastupdated_search_test.rb +40 -0
  290. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob/metadata.yml +813 -0
  291. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob/must_support_test.rb +72 -0
  292. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob/patient_search_test.rb +62 -0
  293. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob/read_test.rb +32 -0
  294. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob/service_date_search_test.rb +40 -0
  295. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob/service_start_date_search_test.rb +40 -0
  296. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob/type_search_test.rb +41 -0
  297. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob/validation_test.rb +42 -0
  298. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_group.rb +157 -0
  299. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional/billable_period_start_search_test.rb +40 -0
  300. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional/id_search_test.rb +40 -0
  301. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional/identifier_search_test.rb +41 -0
  302. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional/incl_all_search_test.rb +37 -0
  303. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional/incl_careteam_search_test.rb +37 -0
  304. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional/incl_coverage_search_test.rb +37 -0
  305. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional/incl_insurer_search_test.rb +37 -0
  306. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional/incl_patient_search_test.rb +37 -0
  307. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional/incl_payee_search_test.rb +37 -0
  308. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional/incl_provider_search_test.rb +37 -0
  309. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional/lastupdated_search_test.rb +40 -0
  310. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional/metadata.yml +1225 -0
  311. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional/must_support_test.rb +121 -0
  312. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional/patient_search_test.rb +62 -0
  313. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional/read_test.rb +32 -0
  314. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional/service_date_search_test.rb +40 -0
  315. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional/service_start_date_search_test.rb +40 -0
  316. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional/type_search_test.rb +41 -0
  317. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional/validation_test.rb +42 -0
  318. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional_non_financial/billable_period_start_search_test.rb +40 -0
  319. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional_non_financial/id_search_test.rb +40 -0
  320. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional_non_financial/identifier_search_test.rb +41 -0
  321. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional_non_financial/incl_all_search_test.rb +37 -0
  322. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional_non_financial/incl_careteam_search_test.rb +37 -0
  323. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional_non_financial/incl_coverage_search_test.rb +37 -0
  324. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional_non_financial/incl_insurer_search_test.rb +37 -0
  325. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional_non_financial/incl_patient_search_test.rb +37 -0
  326. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional_non_financial/incl_payee_search_test.rb +37 -0
  327. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional_non_financial/incl_provider_search_test.rb +37 -0
  328. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional_non_financial/lastupdated_search_test.rb +40 -0
  329. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional_non_financial/metadata.yml +1129 -0
  330. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional_non_financial/must_support_test.rb +114 -0
  331. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional_non_financial/patient_search_test.rb +62 -0
  332. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional_non_financial/read_test.rb +32 -0
  333. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional_non_financial/service_date_search_test.rb +40 -0
  334. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional_non_financial/service_start_date_search_test.rb +40 -0
  335. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional_non_financial/type_search_test.rb +41 -0
  336. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_inpatient_institutional_non_financial/validation_test.rb +42 -0
  337. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral/billable_period_start_search_test.rb +40 -0
  338. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral/id_search_test.rb +40 -0
  339. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral/identifier_search_test.rb +41 -0
  340. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral/incl_all_search_test.rb +37 -0
  341. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral/incl_careteam_search_test.rb +37 -0
  342. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral/incl_coverage_search_test.rb +37 -0
  343. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral/incl_insurer_search_test.rb +37 -0
  344. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral/incl_patient_search_test.rb +37 -0
  345. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral/incl_payee_search_test.rb +37 -0
  346. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral/incl_provider_search_test.rb +37 -0
  347. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral/lastupdated_search_test.rb +40 -0
  348. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral/metadata.yml +1199 -0
  349. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral/must_support_test.rb +112 -0
  350. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral/patient_search_test.rb +62 -0
  351. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral/read_test.rb +32 -0
  352. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral/service_date_search_test.rb +40 -0
  353. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral/service_start_date_search_test.rb +40 -0
  354. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral/type_search_test.rb +41 -0
  355. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral/validation_test.rb +42 -0
  356. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral_non_financial/billable_period_start_search_test.rb +40 -0
  357. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral_non_financial/id_search_test.rb +40 -0
  358. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral_non_financial/identifier_search_test.rb +41 -0
  359. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral_non_financial/incl_all_search_test.rb +37 -0
  360. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral_non_financial/incl_careteam_search_test.rb +37 -0
  361. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral_non_financial/incl_coverage_search_test.rb +37 -0
  362. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral_non_financial/incl_insurer_search_test.rb +37 -0
  363. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral_non_financial/incl_patient_search_test.rb +37 -0
  364. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral_non_financial/incl_payee_search_test.rb +37 -0
  365. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral_non_financial/incl_provider_search_test.rb +37 -0
  366. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral_non_financial/lastupdated_search_test.rb +40 -0
  367. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral_non_financial/metadata.yml +1136 -0
  368. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral_non_financial/must_support_test.rb +107 -0
  369. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral_non_financial/patient_search_test.rb +62 -0
  370. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral_non_financial/read_test.rb +32 -0
  371. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral_non_financial/service_date_search_test.rb +40 -0
  372. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral_non_financial/service_start_date_search_test.rb +40 -0
  373. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral_non_financial/type_search_test.rb +41 -0
  374. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_oral_non_financial/validation_test.rb +42 -0
  375. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional/billable_period_start_search_test.rb +40 -0
  376. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional/id_search_test.rb +40 -0
  377. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional/identifier_search_test.rb +41 -0
  378. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional/incl_all_search_test.rb +37 -0
  379. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional/incl_careteam_search_test.rb +37 -0
  380. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional/incl_coverage_search_test.rb +37 -0
  381. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional/incl_insurer_search_test.rb +37 -0
  382. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional/incl_patient_search_test.rb +37 -0
  383. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional/incl_payee_search_test.rb +37 -0
  384. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional/incl_provider_search_test.rb +37 -0
  385. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional/lastupdated_search_test.rb +40 -0
  386. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional/metadata.yml +1178 -0
  387. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional/must_support_test.rb +114 -0
  388. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional/patient_search_test.rb +62 -0
  389. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional/read_test.rb +32 -0
  390. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional/service_date_search_test.rb +40 -0
  391. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional/service_start_date_search_test.rb +40 -0
  392. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional/type_search_test.rb +41 -0
  393. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional/validation_test.rb +42 -0
  394. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional_non_financial/billable_period_start_search_test.rb +40 -0
  395. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional_non_financial/id_search_test.rb +40 -0
  396. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional_non_financial/identifier_search_test.rb +41 -0
  397. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional_non_financial/incl_all_search_test.rb +37 -0
  398. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional_non_financial/incl_careteam_search_test.rb +37 -0
  399. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional_non_financial/incl_coverage_search_test.rb +37 -0
  400. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional_non_financial/incl_insurer_search_test.rb +37 -0
  401. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional_non_financial/incl_patient_search_test.rb +37 -0
  402. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional_non_financial/incl_payee_search_test.rb +37 -0
  403. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional_non_financial/incl_provider_search_test.rb +37 -0
  404. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional_non_financial/lastupdated_search_test.rb +40 -0
  405. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional_non_financial/metadata.yml +1081 -0
  406. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional_non_financial/must_support_test.rb +106 -0
  407. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional_non_financial/patient_search_test.rb +62 -0
  408. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional_non_financial/read_test.rb +32 -0
  409. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional_non_financial/service_date_search_test.rb +40 -0
  410. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional_non_financial/service_start_date_search_test.rb +40 -0
  411. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional_non_financial/type_search_test.rb +41 -0
  412. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_outpatient_institutional_non_financial/validation_test.rb +42 -0
  413. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy/billable_period_start_search_test.rb +40 -0
  414. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy/id_search_test.rb +40 -0
  415. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy/identifier_search_test.rb +41 -0
  416. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy/incl_all_search_test.rb +37 -0
  417. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy/incl_careteam_search_test.rb +37 -0
  418. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy/incl_coverage_search_test.rb +37 -0
  419. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy/incl_insurer_search_test.rb +37 -0
  420. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy/incl_patient_search_test.rb +37 -0
  421. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy/incl_payee_search_test.rb +37 -0
  422. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy/incl_provider_search_test.rb +37 -0
  423. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy/lastupdated_search_test.rb +40 -0
  424. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy/metadata.yml +1129 -0
  425. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy/must_support_test.rb +109 -0
  426. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy/patient_search_test.rb +62 -0
  427. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy/read_test.rb +32 -0
  428. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy/service_date_search_test.rb +40 -0
  429. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy/service_start_date_search_test.rb +40 -0
  430. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy/type_search_test.rb +41 -0
  431. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy/validation_test.rb +42 -0
  432. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy_non_financial/billable_period_start_search_test.rb +40 -0
  433. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy_non_financial/id_search_test.rb +40 -0
  434. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy_non_financial/identifier_search_test.rb +41 -0
  435. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy_non_financial/incl_all_search_test.rb +37 -0
  436. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy_non_financial/incl_careteam_search_test.rb +37 -0
  437. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy_non_financial/incl_coverage_search_test.rb +37 -0
  438. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy_non_financial/incl_insurer_search_test.rb +37 -0
  439. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy_non_financial/incl_patient_search_test.rb +37 -0
  440. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy_non_financial/incl_payee_search_test.rb +37 -0
  441. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy_non_financial/incl_provider_search_test.rb +37 -0
  442. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy_non_financial/lastupdated_search_test.rb +40 -0
  443. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy_non_financial/metadata.yml +1064 -0
  444. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy_non_financial/must_support_test.rb +103 -0
  445. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy_non_financial/patient_search_test.rb +62 -0
  446. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy_non_financial/read_test.rb +32 -0
  447. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy_non_financial/service_date_search_test.rb +40 -0
  448. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy_non_financial/service_start_date_search_test.rb +40 -0
  449. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy_non_financial/type_search_test.rb +41 -0
  450. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_pharmacy_non_financial/validation_test.rb +42 -0
  451. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician/billable_period_start_search_test.rb +40 -0
  452. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician/id_search_test.rb +40 -0
  453. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician/identifier_search_test.rb +41 -0
  454. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician/incl_all_search_test.rb +37 -0
  455. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician/incl_careteam_search_test.rb +37 -0
  456. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician/incl_coverage_search_test.rb +37 -0
  457. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician/incl_insurer_search_test.rb +37 -0
  458. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician/incl_patient_search_test.rb +37 -0
  459. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician/incl_payee_search_test.rb +37 -0
  460. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician/incl_provider_search_test.rb +37 -0
  461. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician/lastupdated_search_test.rb +40 -0
  462. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician/metadata.yml +1233 -0
  463. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician/must_support_test.rb +108 -0
  464. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician/patient_search_test.rb +62 -0
  465. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician/read_test.rb +32 -0
  466. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician/service_date_search_test.rb +40 -0
  467. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician/service_start_date_search_test.rb +40 -0
  468. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician/type_search_test.rb +41 -0
  469. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician/validation_test.rb +42 -0
  470. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician_non_financial/billable_period_start_search_test.rb +40 -0
  471. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician_non_financial/id_search_test.rb +40 -0
  472. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician_non_financial/identifier_search_test.rb +41 -0
  473. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician_non_financial/incl_all_search_test.rb +37 -0
  474. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician_non_financial/incl_careteam_search_test.rb +37 -0
  475. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician_non_financial/incl_coverage_search_test.rb +37 -0
  476. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician_non_financial/incl_insurer_search_test.rb +37 -0
  477. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician_non_financial/incl_patient_search_test.rb +37 -0
  478. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician_non_financial/incl_payee_search_test.rb +37 -0
  479. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician_non_financial/incl_provider_search_test.rb +37 -0
  480. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician_non_financial/lastupdated_search_test.rb +40 -0
  481. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician_non_financial/metadata.yml +1170 -0
  482. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician_non_financial/must_support_test.rb +103 -0
  483. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician_non_financial/patient_search_test.rb +62 -0
  484. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician_non_financial/read_test.rb +32 -0
  485. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician_non_financial/service_date_search_test.rb +40 -0
  486. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician_non_financial/service_start_date_search_test.rb +40 -0
  487. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician_non_financial/type_search_test.rb +41 -0
  488. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/eob_professional_non_clinician_non_financial/validation_test.rb +42 -0
  489. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/metadata.yml +12605 -0
  490. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/organization/id_search_test.rb +62 -0
  491. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/organization/lastupdated_search_test.rb +42 -0
  492. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/organization/metadata.yml +168 -0
  493. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/organization/must_support_test.rb +55 -0
  494. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/organization/read_test.rb +32 -0
  495. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/organization/validation_test.rb +42 -0
  496. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/organization_group.rb +86 -0
  497. data/lib/carin_for_blue_button_test_kit/generated/{v1.1.0/explanation_of_benefit/explanation_of_benefit_id_search_test.rb → v2.0.0-dev-nonfinancial/patient/id_search_test.rb} +18 -21
  498. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/patient/lastupdated_search_test.rb +42 -0
  499. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/patient/metadata.yml +256 -0
  500. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/patient/must_support_test.rb +68 -0
  501. data/lib/carin_for_blue_button_test_kit/generated/{v1.1.0/patient/patient_read_test.rb → v2.0.0-dev-nonfinancial/patient/read_test.rb} +7 -14
  502. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/patient/validation_test.rb +42 -0
  503. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/patient_group.rb +84 -0
  504. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/practitioner/id_search_test.rb +62 -0
  505. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/practitioner/lastupdated_search_test.rb +42 -0
  506. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/practitioner/metadata.yml +144 -0
  507. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/practitioner/must_support_test.rb +46 -0
  508. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/practitioner/read_test.rb +32 -0
  509. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/practitioner/validation_test.rb +42 -0
  510. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/practitioner_group.rb +86 -0
  511. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/related_person/id_search_test.rb +62 -0
  512. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/related_person/lastupdated_search_test.rb +42 -0
  513. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/related_person/metadata.yml +133 -0
  514. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/related_person/must_support_test.rb +47 -0
  515. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/related_person/read_test.rb +32 -0
  516. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/related_person/validation_test.rb +42 -0
  517. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/related_person_group.rb +86 -0
  518. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/resource_list.rb +24 -0
  519. data/lib/carin_for_blue_button_test_kit/generator/group_generator.rb +104 -76
  520. data/lib/carin_for_blue_button_test_kit/generator/group_metadata.rb +82 -80
  521. data/lib/carin_for_blue_button_test_kit/generator/group_metadata_extractor.rb +42 -37
  522. data/lib/carin_for_blue_button_test_kit/generator/ig_metadata.rb +13 -10
  523. data/lib/carin_for_blue_button_test_kit/generator/ig_resources.rb +19 -13
  524. data/lib/carin_for_blue_button_test_kit/generator/include_search_test_generator.rb +26 -5
  525. data/lib/carin_for_blue_button_test_kit/generator/must_support_test_generator.rb +9 -6
  526. data/lib/carin_for_blue_button_test_kit/generator/naming.rb +13 -1
  527. data/lib/carin_for_blue_button_test_kit/generator/read_test_generator.rb +50 -15
  528. data/lib/carin_for_blue_button_test_kit/generator/search_definition_metadata_extractor.rb +58 -60
  529. data/lib/carin_for_blue_button_test_kit/generator/search_metadata_extractor.rb +14 -1
  530. data/lib/carin_for_blue_button_test_kit/generator/search_test_generator.rb +79 -37
  531. data/lib/carin_for_blue_button_test_kit/generator/special_cases.rb +0 -4
  532. data/lib/carin_for_blue_button_test_kit/generator/suite_generator.rb +9 -2
  533. data/lib/carin_for_blue_button_test_kit/generator/validation_test_generator.rb +8 -6
  534. data/lib/carin_for_blue_button_test_kit/generator.rb +4 -7
  535. data/lib/carin_for_blue_button_test_kit/igs/carin4bb-110/SearchParameter-Resource-id.json +1 -0
  536. data/lib/carin_for_blue_button_test_kit/igs/carin4bb-110/SearchParameter-Resource-lastUpdated.json +1 -0
  537. data/lib/carin_for_blue_button_test_kit/igs/carin4bb-200/SearchParameter-Resource-id.json +1 -0
  538. data/lib/carin_for_blue_button_test_kit/igs/carin4bb-200/SearchParameter-Resource-lastUpdated.json +1 -0
  539. data/lib/carin_for_blue_button_test_kit/igs/carin4bb-200-dev-nonfinancial-fixed/SearchParameter-Resource-id.json +1 -0
  540. data/lib/carin_for_blue_button_test_kit/igs/carin4bb-200-dev-nonfinancial-fixed/SearchParameter-Resource-lastUpdated.json +1 -0
  541. data/lib/carin_for_blue_button_test_kit/igs/carin4bb-200-dev-nonfinancial-fixed.tgz +0 -0
  542. data/lib/carin_for_blue_button_test_kit/must_support_test.rb +7 -7
  543. data/lib/carin_for_blue_button_test_kit/read_test.rb +56 -45
  544. data/lib/carin_for_blue_button_test_kit/search_test_properties.rb +2 -1
  545. data/lib/carin_for_blue_button_test_kit/version.rb +1 -1
  546. data/lib/carin_for_blue_button_test_kit.rb +1 -0
  547. metadata +499 -237
  548. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_all_search_test.rb +0 -38
  549. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_careteam_search_test.rb +0 -38
  550. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_coverage_search_test.rb +0 -38
  551. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_insurer_search_test.rb +0 -38
  552. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_patient_search_test.rb +0 -38
  553. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_provider_search_test.rb +0 -38
  554. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_read_test.rb +0 -39
  555. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_group.rb +0 -110
  556. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_all_search_test.rb +0 -38
  557. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_careteam_search_test.rb +0 -38
  558. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_coverage_search_test.rb +0 -38
  559. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_insurer_search_test.rb +0 -38
  560. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_patient_search_test.rb +0 -38
  561. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_provider_search_test.rb +0 -38
  562. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_identifier_search_test.rb +0 -49
  563. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_lastupdated_search_test.rb +0 -48
  564. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_patient_search_test.rb +0 -48
  565. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_read_test.rb +0 -39
  566. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_service_date_search_test.rb +0 -48
  567. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_type_search_test.rb +0 -49
  568. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional_group.rb +0 -58
  569. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_all_search_test.rb +0 -38
  570. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_careteam_search_test.rb +0 -38
  571. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_coverage_search_test.rb +0 -38
  572. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_insurer_search_test.rb +0 -38
  573. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_patient_search_test.rb +0 -38
  574. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_provider_search_test.rb +0 -38
  575. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_identifier_search_test.rb +0 -49
  576. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_lastupdated_search_test.rb +0 -48
  577. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_patient_search_test.rb +0 -48
  578. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_read_test.rb +0 -39
  579. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_service_date_search_test.rb +0 -48
  580. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_type_search_test.rb +0 -49
  581. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional_group.rb +0 -58
  582. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_all_search_test.rb +0 -38
  583. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_careteam_search_test.rb +0 -38
  584. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_coverage_search_test.rb +0 -38
  585. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_insurer_search_test.rb +0 -38
  586. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_patient_search_test.rb +0 -38
  587. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_provider_search_test.rb +0 -38
  588. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_read_test.rb +0 -39
  589. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy_group.rb +0 -58
  590. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_all_search_test.rb +0 -38
  591. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_careteam_search_test.rb +0 -38
  592. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_coverage_search_test.rb +0 -38
  593. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_insurer_search_test.rb +0 -38
  594. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_patient_search_test.rb +0 -38
  595. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_provider_search_test.rb +0 -38
  596. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_id_search_test.rb +0 -59
  597. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_identifier_search_test.rb +0 -49
  598. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_lastupdated_search_test.rb +0 -48
  599. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_patient_search_test.rb +0 -48
  600. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_read_test.rb +0 -39
  601. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_service_date_search_test.rb +0 -48
  602. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_type_search_test.rb +0 -49
  603. data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician_group.rb +0 -58
  604. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_all_search_test.rb +0 -38
  605. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_careteam_search_test.rb +0 -38
  606. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_coverage_search_test.rb +0 -38
  607. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_insurer_search_test.rb +0 -38
  608. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_patient_search_test.rb +0 -38
  609. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_payee_search_test.rb +0 -38
  610. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_provider_search_test.rb +0 -38
  611. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_read_test.rb +0 -39
  612. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_group.rb +0 -118
  613. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_billable_period_start_search_test.rb +0 -48
  614. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_all_search_test.rb +0 -38
  615. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_careteam_search_test.rb +0 -38
  616. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_coverage_search_test.rb +0 -38
  617. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_insurer_search_test.rb +0 -38
  618. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_patient_search_test.rb +0 -38
  619. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_payee_search_test.rb +0 -38
  620. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_provider_search_test.rb +0 -38
  621. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_identifier_search_test.rb +0 -49
  622. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_lastupdated_search_test.rb +0 -48
  623. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_patient_search_test.rb +0 -48
  624. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_read_test.rb +0 -39
  625. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_service_date_search_test.rb +0 -48
  626. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_service_start_date_search_test.rb +0 -48
  627. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_type_search_test.rb +0 -49
  628. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional_group.rb +0 -58
  629. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_explanation_of_benefit_all_search_test.rb +0 -38
  630. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_read_test.rb +0 -39
  631. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral_group.rb +0 -58
  632. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_billable_period_start_search_test.rb +0 -48
  633. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_all_search_test.rb +0 -38
  634. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_careteam_search_test.rb +0 -38
  635. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_coverage_search_test.rb +0 -38
  636. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_insurer_search_test.rb +0 -38
  637. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_patient_search_test.rb +0 -38
  638. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_payee_search_test.rb +0 -38
  639. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_provider_search_test.rb +0 -38
  640. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_identifier_search_test.rb +0 -49
  641. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_lastupdated_search_test.rb +0 -48
  642. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_patient_search_test.rb +0 -48
  643. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_read_test.rb +0 -39
  644. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_service_date_search_test.rb +0 -48
  645. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_service_start_date_search_test.rb +0 -48
  646. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_type_search_test.rb +0 -49
  647. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional_group.rb +0 -58
  648. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_all_search_test.rb +0 -38
  649. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_careteam_search_test.rb +0 -38
  650. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_coverage_search_test.rb +0 -38
  651. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_insurer_search_test.rb +0 -38
  652. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_patient_search_test.rb +0 -38
  653. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_payee_search_test.rb +0 -38
  654. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_provider_search_test.rb +0 -38
  655. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_patient_search_test.rb +0 -48
  656. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_read_test.rb +0 -39
  657. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy_group.rb +0 -58
  658. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_billable_period_start_search_test.rb +0 -48
  659. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_all_search_test.rb +0 -38
  660. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_careteam_search_test.rb +0 -38
  661. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_coverage_search_test.rb +0 -38
  662. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_insurer_search_test.rb +0 -38
  663. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_patient_search_test.rb +0 -38
  664. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_payee_search_test.rb +0 -38
  665. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_provider_search_test.rb +0 -38
  666. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_id_search_test.rb +0 -59
  667. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_identifier_search_test.rb +0 -49
  668. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_lastupdated_search_test.rb +0 -48
  669. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_patient_search_test.rb +0 -48
  670. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_read_test.rb +0 -39
  671. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_service_date_search_test.rb +0 -48
  672. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_service_start_date_search_test.rb +0 -48
  673. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_type_search_test.rb +0 -49
  674. data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician_group.rb +0 -58
@@ -3,225 +3,481 @@ require_relative 'fhir_resource_navigation'
3
3
  require_relative 'search_test_properties'
4
4
 
5
5
  module CarinForBlueButtonTestKit
6
- module CarinSearchTest
7
- extend Forwardable
8
- include DateSearchValidation
9
- include FHIRResourceNavigation
10
-
11
- def_delegators 'self.class', :metadata, :properties
12
- def_delegators 'properties',
13
- :resource_type,
14
- :search_param_names,
15
- :saves_delayed_references?,
16
- :first_search?,
17
- :fixed_value_search?,
18
- :possible_status_search?,
19
- :test_medication_inclusion?,
20
- :test_post_search?,
21
- :token_search_params,
22
- :test_reference_variants?,
23
- :params_with_comparators,
24
- :multiple_or_search_params
25
-
26
- def run_search_test(param_value, include_search: false, resource_id: nil)
27
- search_params = {}
28
-
29
- if include_search
30
- search_params = { _id: resource_id }
31
- run_include_search(search_params, param_value)
32
- return
33
- end
6
+ module CarinSearchTest
7
+ extend Forwardable
8
+ include DateSearchValidation
9
+ include FHIRResourceNavigation
10
+
11
+ def_delegators 'self.class', :metadata, :properties
12
+ def_delegators 'properties',
13
+ :resource_type,
14
+ :search_param_names,
15
+ :saves_delayed_references?,
16
+ :first_search?,
17
+ :fixed_value_search?,
18
+ :possible_status_search?,
19
+ :test_medication_inclusion?,
20
+ :test_post_search?,
21
+ :token_search_params,
22
+ :test_reference_variants?,
23
+ :params_with_comparators,
24
+ :multiple_or_search_params,
25
+ :include_parameters
26
+
27
+ def all_scratch_resources
28
+ scratch_resources[:all] ||= []
29
+ end
34
30
 
35
- search_params[search_param_names[0]] = param_value
31
+ def run_search_test(param_value = nil)
32
+ search_params = build_search_params(param_value)
33
+ returned_resources = execute_search(search_params)
36
34
 
37
- fhir_search(resource_type, params: search_params)
38
- assert_response_status(200)
39
- assert_resource_type(:bundle)
35
+ all_scratch_resources.concat(returned_resources).uniq! if first_search?
36
+ save_delayed_references(returned_resources) if saves_delayed_references?
37
+ perform_response_validation(returned_resources, search_params)
38
+ end
40
39
 
41
- returned_resources = extract_resources_from_bundle(bundle: resource, response: response).select{|item| item.resourceType == resource_type}
40
+ def execute_search(search_params)
41
+ if patient_id_param?(search_param_names[0])
42
+ patient_id_list.inject([]) do |resources, id|
43
+ search = { search_param_names[0] => id }
44
+ perform_search_and_validate(search)
45
+ resources.concat(extract_relevant_resources)
46
+ end
47
+ else
48
+ perform_search_and_validate(search_params)
49
+ extract_relevant_resources
50
+ end
51
+ end
42
52
 
43
- skip_if returned_resources.blank?, self.no_resources_message
53
+ def perform_search_and_validate(search_params)
54
+ fhir_search(resource_type, params: search_params)
44
55
 
45
- returned_resources.each do |resource|
46
- check_resource_against_params(resource, search_params)
47
- end
56
+ assert_response_status(200)
57
+ assert_resource_type(:bundle)
58
+ end
48
59
 
49
- end
60
+ def extract_relevant_resources
61
+ extract_resources_from_bundle(bundle: resource, response:).select do |item|
62
+ item.resourceType == resource_type
63
+ end
64
+ end
50
65
 
51
- def extract_resources_from_bundle(
52
- bundle: nil,
53
- response: nil,
54
- reply_handler: nil,
55
- max_pages: 20,
56
- additional_resource_types: [],
57
- resource_type: self.resource_type
58
- )
59
- page_count = 1
60
- resources = []
61
-
62
- until bundle.nil? || page_count == max_pages
63
- resources += bundle&.entry&.map { |entry| entry&.resource }
64
- next_bundle_link = bundle&.link&.find { |link| link.relation == 'next' }&.url
65
- reply_handler&.call(response)
66
-
67
- break if next_bundle_link.blank?
68
-
69
- page_count += 1
70
- end
71
-
72
- resources
73
- end
66
+ def build_search_params(param_value = nil)
67
+ search_params = {}
68
+ param_name = search_param_names[0]
74
69
 
75
- def search_param_paths(name)
76
- paths = metadata.search_definitions[name.to_sym][:paths]
77
- if paths.first =='class'
78
- paths[0] = 'local_class'
79
- end
80
-
81
- paths
82
- end
70
+ if patient_id_param?(param_name)
71
+ search_params[param_name] = patient_id_list.join(',')
72
+ else
73
+ param_value = find_param_value(param_value, param_name) if param_value.blank?
74
+ skip_if param_value.blank?, no_resources_skip_message
75
+ search_params[param_name] = param_value
76
+ end
77
+
78
+ search_params
79
+ end
80
+
81
+ def find_param_value(param_value, param_name)
82
+ all_scratch_resources.each do |resource|
83
+ break if param_value.present?
84
+
85
+ param_value = search_param_value(param_name, resource)
86
+ end
87
+
88
+ if param_value.nil? && param_name == '_id' && resource_type != 'ExplanationOfBenefit'
89
+ resources = readable_resources(scratch.dig(:references, resource_type))
90
+ param_value = resource_id(resources.first)
91
+ end
92
+
93
+ param_value
94
+ end
95
+
96
+ def search_param_value(name, resource, include_system = false)
97
+ paths = determine_paths(name)
98
+ paths.each do |path|
99
+ element = find_a_value_at(resource, path) { |el| element_has_valid_value?(el, include_system) }
100
+ search_value = process_element(name, element, include_system, resource)
101
+ return search_value.gsub(',', '\\,') if search_value.present?
102
+ end
103
+ nil
104
+ end
105
+
106
+ # Handles the processing logic for each resource element type.
107
+ def process_element(name, element, include_system, resource)
108
+ case element
109
+ when FHIR::Period
110
+ process_period_element(element)
111
+ when FHIR::Reference
112
+ element.reference
113
+ when FHIR::CodeableConcept
114
+ process_codeable_concept_element(element, include_system)
115
+ when FHIR::Identifier
116
+ include_system ? "#{element.system}|#{element.value}" : element.value
117
+ when FHIR::Coding
118
+ include_system ? "#{element.system}|#{element.code}" : element.code
119
+ when FHIR::HumanName
120
+ element.family || element.given&.first || element.text
121
+ when FHIR::Address
122
+ element.text || element.city || element.state || element.postalCode || element.country
123
+ else
124
+ process_other_element_types(name, element, resource)
125
+ end
126
+ end
127
+
128
+ # Handles logic for processing FHIR::Period elements.
129
+ def process_period_element(element)
130
+ if element.start.present?
131
+ "gt#{(DateTime.xmlschema(element.start) - 1).xmlschema}"
132
+ else
133
+ end_datetime = get_fhir_datetime_range(element.end)[:end]
134
+ "lt#{(end_datetime + 1).xmlschema}"
135
+ end
136
+ end
83
137
 
84
- def no_resources_message
85
- "No resources were returned from this query."
138
+ # Handles logic for processing FHIR::CodeableConcept elements.
139
+ def process_codeable_concept_element(element, include_system)
140
+ if include_system
141
+ coding = find_a_value_at(element, 'coding') { |c| c.code.present? && c.system.present? }
142
+ "#{coding.system}|#{coding.code}"
143
+ else
144
+ find_a_value_at(element, 'coding.code')
145
+ end
146
+ end
147
+
148
+ # Handles the remaining types, including date types
149
+ def process_other_element_types(name, element, resource)
150
+ type = metadata.search_definitions[name.to_sym][:type]
151
+ if type == 'date' && params_with_comparators&.include?(name)
152
+ process_date_element(name, element, resource)
153
+ else
154
+ element
155
+ end
156
+ end
157
+
158
+ def process_date_element(element)
159
+ if /^\d{4}(-\d{2})?$/.match?(element) || # YYYY or YYYY-MM
160
+ (/^\d{4}-\d{2}-\d{2}$/.match?(element) && resource_type != 'Goal') # YYYY-MM-DD AND Resource is NOT Goal
161
+ "gt#{(DateTime.xmlschema(element) - 1).xmlschema}"
162
+ else
163
+ element
164
+ end
165
+ end
166
+
167
+ def readable_resources(resources)
168
+ return [] if resources.nil?
169
+
170
+ resources
171
+ .select { |resource| resource.is_a?(resource_class) || resource.is_a?(FHIR::Reference) }
172
+ .select { |resource| (resource.is_a?(FHIR::Reference) ? resource.reference.split('/').last : resource.id).present? }
173
+ .compact
174
+ .uniq { |resource| resource.is_a?(FHIR::Reference) ? resource.reference.split('/').last : resource.id }
175
+ end
176
+
177
+ def resource_id(resource)
178
+ return if resource.blank?
179
+
180
+ resource.is_a?(FHIR::Reference) ? resource.reference.split('/').last : resource.id
181
+ end
182
+
183
+ def perform_response_validation(returned_resources, search_params)
184
+ skip_if returned_resources.blank?, no_resources_skip_message
185
+
186
+ returned_resources.each do |resource|
187
+ check_resource_against_params(resource, search_params)
188
+ end
189
+ end
190
+
191
+ def check_resource_against_params(resource, search_params)
192
+ search_params.each do |name, param_value|
193
+ paths = determine_paths(name)
194
+ type = determine_type(name)
195
+ assert check_paths_for_match(resource, paths, type, param_value),
196
+ 'Returned resource did not match the search parameter'
197
+ end
198
+ end
199
+
200
+ # Determines the path based on the param name
201
+ def determine_paths(name)
202
+ case name
203
+ when '_id'
204
+ ['id']
205
+ when '_lastUpdated'
206
+ ['meta.lastUpdated']
207
+ else
208
+ search_param_paths(name)
209
+ end
210
+ end
211
+
212
+ # Determines the param type based on the param name
213
+ def determine_type(name)
214
+ case name
215
+ when '_id'
216
+ 'http://hl7.org/fhirpath/System.String'
217
+ when '_lastUpdated'
218
+ 'date'
219
+ else
220
+ metadata.search_definitions[name.to_sym][:type]
221
+ end
222
+ end
223
+
224
+ # Checks if any of the paths have a matching value
225
+ def check_paths_for_match(resource, paths, type, param_value)
226
+ paths.any? do |path|
227
+ values_found = extract_values(resource, path, type)
228
+ match_found?(values_found, type, param_value)
229
+ end
230
+ end
231
+
232
+ # Extracts values from the resource based on the path and type
233
+ def extract_values(resource, path, type)
234
+ resolve_path(resource, path).map do |value|
235
+ type == 'Reference' ? value.try(:reference) : value
236
+ end
237
+ end
238
+
239
+ # Determines if a match is found based on the type and value
240
+ def match_found?(values_found, type, param_value)
241
+ case type
242
+ when 'Reference'
243
+ values_found.any? { |val| param_value.split(',').any? { |item| val.include?(item) } }
244
+ when 'CodeableConcept'
245
+ codings = values_found.flat_map { |val| val.coding || nil }.compact
246
+ if param_value.include? '|'
247
+ system, code = param_value.split('|', 2)
248
+ codings.any? { |coding| coding.system == system && coding.code&.casecmp?(code) }
249
+ else
250
+ codings.any? { |coding| coding.code&.casecmp?(param_value) }
251
+ end
252
+ when 'Identifier'
253
+ if param_value.include? '|'
254
+ values_found.any? do |identifier|
255
+ "#{identifier.system}|#{identifier.value}" == param_value
256
+ end
257
+ else
258
+ values_found.any? { |identifier| identifier.value == param_value }
86
259
  end
260
+ when 'Period', 'date', 'instant', 'dateTime'
261
+ values_found.any? { |date| validate_date_search(param_value, date) }
262
+ when 'http://hl7.org/fhirpath/System.String'
263
+ values_found.any? { |str| param_value.split(',').include?(str) }
264
+ else
265
+ false
266
+ end
267
+ end
87
268
 
88
- # VALIDATION
89
-
90
- def check_resource_against_params(resource, search_params)
91
- search_params.each do |name, param_value|
92
- paths = []
93
-
94
- if name == '_id'
95
- paths = ['id']
96
- elsif name == '_lastUpdated'
97
- paths = ['meta.lastUpdated']
98
- else
99
- paths = search_param_paths(name)
100
- end
101
-
102
- match_found = false
103
- values_found = []
104
-
105
- paths.each do |path|
106
- if name == '_id'
107
- type = 'http://hl7.org/fhirpath/System.String'
108
- elsif name == '_lastUpdated'
109
- type = 'date'
110
- else
111
- type = metadata.search_definitions[name.to_sym][:type]
112
- end
113
-
114
- values_found =
115
- resolve_path(resource.source_hash, path)
116
- .map do |value|
117
- if value[:reference.to_s]
118
- value[:reference.to_s]
119
- else
120
- value
121
- end
122
- end
123
-
124
- match_found =
125
- case type
126
- when 'Reference'
127
- values_found.any? do |val|
128
- val.include? param_value
129
- end
130
- when 'CodeableConcept'
131
- codings = values_found.flat_map do |val|
132
- if val[:coding.to_s]
133
- val[:coding.to_s]
134
- else
135
- nil
136
- end
137
- end.compact
138
- if param_value.include? '|'
139
- system = param_value.split('|').first
140
- code = param_value.split('|').last
141
- codings&.any? { |coding| coding[:system.to_s] == system && coding[:code.to_s]&.casecmp?(code) }
142
- else
143
- codings&.any? { |coding| coding.code&. casecmp?(search_value) }
144
- end
145
- when 'Identifier'
146
- if param_value.include? '|'
147
- values_found.any? { |identifier|
148
- puts "#{identifier[:system.to_s]}|#{identifier[:value.to_s]}"
149
- "#{identifier[:system.to_s]}|#{identifier[:value.to_s]}" == param_value
150
- }
151
- else
152
- values_found.any? { |identifier| identifier[:value] == param_value }
153
- end
154
- when 'date'
155
- values_found.any? { |date| validate_date_search(param_value, date) }
156
- when 'http://hl7.org/fhirpath/System.String'
157
- values_found.any? { |str| param_value == str}
158
- else
159
- false
160
- end
161
-
162
- break if match_found
163
- end
164
- assert match_found, "Returned resource did not match the search parameter"
165
- end
269
+ def extract_resources_from_bundle(
270
+ bundle: nil,
271
+ response: nil,
272
+ reply_handler: nil,
273
+ max_pages: 20
274
+ )
275
+ page_count = 1
276
+ resources = []
277
+
278
+ until bundle.nil? || page_count == max_pages
279
+ resources += bundle&.entry&.map { |entry| entry&.resource }
280
+ next_bundle_link = bundle&.link&.find { |link| link.relation == 'next' }&.url
281
+ reply_handler&.call(response)
282
+
283
+ break if next_bundle_link.blank?
284
+
285
+ page_count += 1
286
+ end
287
+
288
+ resources
289
+ end
290
+
291
+ def element_has_valid_value?(element, include_system)
292
+ case element
293
+ when FHIR::Reference
294
+ element.reference.present?
295
+ when FHIR::CodeableConcept
296
+ if include_system
297
+ coding =
298
+ find_a_value_at(element, 'coding') { |koding| koding.code.present? && koding.system.present? }
299
+ coding.present?
300
+ else
301
+ find_a_value_at(element, 'coding.code').present?
166
302
  end
303
+ when FHIR::Identifier
304
+ include_system ? element.value.present? && element.system.present? : element.value.present?
305
+ when FHIR::Coding
306
+ include_system ? element.code.present? && element.system.present? : element.code.present?
307
+ when FHIR::HumanName
308
+ (element.family || element.given&.first || element.text).present?
309
+ when FHIR::Address
310
+ (element.text || element.city || element.state || element.postalCode || element.country).present?
311
+ else
312
+ true
313
+ end
314
+ end
315
+
316
+ def search_param_paths(name)
317
+ paths = metadata.search_definitions[name.to_sym][:paths]
318
+ paths[0] = 'local_class' if paths.first == 'class'
319
+
320
+ paths
321
+ end
322
+
323
+ def resource_class
324
+ FHIR.const_get(resource_type)
325
+ end
326
+
327
+ def no_resources_skip_message(resource_type = self.resource_type)
328
+ msg = "No #{resource_type} resources appear to be available"
329
+
330
+ "#{msg}. Please use patients with more information"
331
+ end
332
+
333
+ def run_include_search(param_value)
334
+ search_params = initialize_include_search_params(param_value)
335
+ perform_search_and_validate(search_params)
336
+ returned_resources = extract_resources_from_bundle(bundle: resource, response:)
337
+ process_resources(returned_resources, param_value)
338
+ end
339
+
340
+ # Initializes seach param for include search
341
+ def initialize_include_search_params(param_value)
342
+ resource_id = all_scratch_resources.first&.id
343
+ { _id: resource_id, '_include': param_value }
344
+ end
345
+
346
+ # Processes the base resources and included resources for include searches
347
+ def process_resources(returned_resources, param_value)
348
+ base_resources = filter_base_resources(returned_resources)
349
+ all_included_resource_types = extract_included_resource_types
350
+ included_refs = included_refs(returned_resources, all_included_resource_types)
351
+
352
+ skip_if base_resources.blank?, no_resources_skip_message
353
+
354
+ base_resources.each do |resource|
355
+ process_each_base_resource(resource, param_value, returned_resources, included_refs)
356
+ end
357
+ end
358
+
359
+ def filter_base_resources(returned_resources)
360
+ returned_resources.select { |item| item.resourceType == resource_type }
361
+ end
167
362
 
168
- def run_include_search(search_params, param_value)
169
- search_params['_include'] = param_value
363
+ def extract_included_resource_types
364
+ include_parameters.map { |param| param[:target] }.flatten.uniq
365
+ end
170
366
 
171
- fhir_search(resource_type, params: search_params)
172
- assert_response_status(200)
173
- assert_resource_type(:bundle)
367
+ # Handles the processing for each base resource of an include search
174
368
 
175
- returned_resources = extract_resources_from_bundle(bundle: resource, response: response).select{|item| item.resourceType == resource_type}
369
+ def process_each_base_resource(resource, param_value, returned_resources, included_refs)
370
+ match_found, base_resource_matches = check_for_include_match(resource, param_value, returned_resources)
371
+ assert match_found, 'Returned resource did not match the search parameter'
372
+ validate_included_resources(base_resource_matches, included_refs)
373
+ end
176
374
 
177
- skip_if returned_resources.blank?, self.no_resources_message
375
+ def check_for_include_match(resource, param_value, returned_resources)
376
+ if param_value != 'ExplanationOfBenefit:*'
377
+ check_normal_include(resource, param_value, returned_resources)
378
+ else
379
+ check_explanation_of_benefit_include(resource, param_value, returned_resources)
380
+ end
381
+ end
178
382
 
179
- returned_resources.each do |resource|
180
- match_found = false
181
- paths = include_param_paths(param_value)
182
-
183
- if param_value != 'ExplanationOfBenefit:*'
184
- paths.each do |path|
185
- values_found = resolve_path(resource.source_hash, path)
383
+ # Processes the base resource for the normal include case.
384
+ def check_normal_include(resource, _param_value, returned_resources)
385
+ base_resource_matches = []
386
+ match_found = include_parameters.any? do |include_param|
387
+ values_found = resolve_path(resource, include_param[:path])
388
+ base_resource_matches.concat(matched_base_resources(resource, include_param[:target], returned_resources,
389
+ values_found))
390
+ values_found.length.positive?
391
+ end
392
+ [match_found, base_resource_matches]
393
+ end
186
394
 
187
- match_found = (values_found.length > 0)
395
+ # Processes the base resource for the 'ExplanationOfBenefit:*' case.
396
+ def check_explanation_of_benefit_include(resource, _param_value, returned_resources)
397
+ values_found = []
398
+ base_resource_matches = []
188
399
 
189
- break if match_found
190
- end
191
- assert match_found, "Returned resource did not match the search parameter"
192
- return
193
- else
194
- values_found = []
195
- paths.each do |path|
196
- values_found += resolve_path(resource.source_hash, path)
197
- end
400
+ include_parameters.each do |include_param|
401
+ paths_found = resolve_path(resource, include_param[:path])
402
+ values_found.concat(paths_found)
403
+ base_resource_matches.concat(matched_base_resources(resource, include_param[:target], returned_resources,
404
+ values_found))
405
+ end
198
406
 
199
- match_found = (values_found.length >= 5)
407
+ match_found = (values_found.length >= 5)
408
+ [match_found, base_resource_matches]
409
+ end
200
410
 
201
- assert match_found, "Returned resource did not match the search parameter"
202
- end
203
- end
411
+ # Validates that the included resources match the search criteria.
412
+ def validate_included_resources(base_resource_matches, included_refs)
413
+ not_matched_included_resources = included_refs.select do |resource_reference|
414
+ base_resource_matches.none? do |base_resource_reference|
415
+ reference_match?(base_resource_reference.reference, resource_reference)
204
416
  end
417
+ end
418
+ not_matched_included_resources_string = not_matched_included_resources.join(',')
419
+ assert not_matched_included_resources.empty?,
420
+ "No #{resource_type} references #{not_matched_included_resources_string} in the search result."
421
+ end
422
+
423
+ def matched_base_resources(_resource, referenced_resource_types, returned_resources_all, values_found)
424
+ included_refs = included_refs(returned_resources_all, referenced_resource_types)
425
+
426
+ values_found.select do |base_resource_references|
427
+ included_refs.any? do |referenced_resource|
428
+ reference_match?(base_resource_references.reference, referenced_resource)
429
+ end
430
+ end
431
+ end
432
+
433
+ def included_resources(returned_resources, referenced_resource_types)
434
+ returned_resources.select { |item| referenced_resource_types.include?(item.resourceType) }
435
+ end
436
+
437
+ def included_refs(returned_resources, referenced_resource_types)
438
+ included_resources(returned_resources, referenced_resource_types)
439
+ .map { |resource| "#{resource.resourceType}/#{resource.id}" }
440
+ end
441
+
442
+ def reference_match?(reference, local_reference)
443
+ regex_pattern = %r{^(#{Regexp.escape(local_reference)}|\S+/#{Regexp.escape(local_reference)}(?:[/|]\S+)*)$}
444
+ reference.match?(regex_pattern)
445
+ end
446
+
447
+ def patient_id_param?(name)
448
+ (name == '_id' && resource_type == 'Patient') || name == 'patient'
449
+ end
450
+
451
+ def patient_id_list
452
+ return [nil] unless respond_to? :patient_ids
453
+
454
+ patient_ids.split(',').map(&:strip)
455
+ end
456
+
457
+ def references_to_save
458
+ metadata.delayed_references
459
+ end
460
+
461
+ def save_resource_reference(resource_type, reference)
462
+ scratch[:references] ||= {}
463
+ scratch[:references][resource_type] ||= Set.new
464
+ scratch[:references][resource_type] << reference
465
+ end
205
466
 
206
- def include_param_paths(param)
207
- case param
208
- when 'ExplanationOfBenefit:patient'
209
- ['patient']
210
- when 'ExplanationOfBenefit:provider'
211
- ['provider']
212
- when 'ExplanationOfBenefit:care-team'
213
- ['careTeam']
214
- when 'ExplanationOfBenefit:coverage'
215
- ['insurance.coverage']
216
- when 'ExplanationOfBenefit:insurer'
217
- ['insurer']
218
- when 'Coverage:payor'
219
- ['payor']
220
- when 'ExplanationOfBenefit:*'
221
- ['patient', 'provider', 'careTeam', 'insurance.coverage', 'insurer']
222
- else
223
- []
467
+ def save_delayed_references(resources)
468
+ resources.each do |resource|
469
+ references_to_save.each do |reference_to_save|
470
+ resolve_path(resource, reference_to_save[:path])
471
+ .select { |reference| reference.is_a?(FHIR::Reference) && !reference.contained? }
472
+ .each do |reference|
473
+ resource_type = reference.resource_class.name.demodulize
474
+ need_to_save = reference_to_save[:resources].include?(resource_type)
475
+ next unless need_to_save
476
+
477
+ save_resource_reference(resource_type, reference)
224
478
  end
225
479
  end
480
+ end
226
481
  end
482
+ end
227
483
  end