Skip to content

Commit

Permalink
Merge pull request #21 from inferno-framework/FI-2185-SHOULD_optional…
Browse files Browse the repository at this point in the history
…_tests

FI-2185 and FI-2186: Add Optional Tests for _lastUpdated Interaction and Required Tests for _id Search
  • Loading branch information
emichaud998 authored Nov 2, 2023
2 parents 45b8a10 + 5c95d9f commit dc50546
Show file tree
Hide file tree
Showing 211 changed files with 1,571 additions and 9 deletions.
1 change: 1 addition & 0 deletions lib/carin_for_blue_button_test_kit/carin_search_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def run_search_test(param_value, include_search: false, resource_id: nil)
search_params[search_param_names[0]] = param_value

fhir_search(resource_type, params: search_params)

assert_response_status(200)
assert_resource_type(:bundle)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit__id_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_identifier_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit__lastUpdated_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_patient_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_service_date_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_type_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_inpatient_institutional__id_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_inpatient_institutional_identifier_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_inpatient_institutional__lastUpdated_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_inpatient_institutional_patient_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_inpatient_institutional_service_date_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_inpatient_institutional_type_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_outpatient_institutional__id_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_outpatient_institutional_identifier_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_outpatient_institutional__lastUpdated_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_outpatient_institutional_patient_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_outpatient_institutional_service_date_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_outpatient_institutional_type_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_pharmacy__id_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_pharmacy_identifier_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_pharmacy__lastUpdated_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_pharmacy_patient_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_pharmacy_service_date_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_pharmacy_type_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_professional_non_clinician__id_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_professional_non_clinician_identifier_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_professional_non_clinician__lastUpdated_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_professional_non_clinician_patient_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_professional_non_clinician_service_date_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v110_explanation_of_benefit_professional_non_clinician_type_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v200devnonfinancial_coverage__id_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ class CoverageLastupdatedSearchTest < Inferno::Test
)

id :c4bb_v200devnonfinancial_coverage__lastUpdated_search_test
optional


input :c4bb_v200devnonfinancial_coverage__lastUpdated_search_test_param,
title: 'Coverage search parameter for _lastUpdated
',
type: 'text',
description: 'Coverage search parameter: _lastUpdated
'
',
optional: true

def self.properties
@properties ||= SearchTestProperties.new(
Expand All @@ -41,6 +44,9 @@ def scratch_resources
end

run do

skip_if c4bb_v200devnonfinancial_coverage__lastUpdated_search_test_param.blank?, 'Coverage search parameter for _lastUpdated not provided'

run_search_test(c4bb_v200devnonfinancial_coverage__lastUpdated_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v200devnonfinancial_explanation_of_benefit_billable_period_start_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v200devnonfinancial_explanation_of_benefit__id_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v200devnonfinancial_explanation_of_benefit_identifier_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v200devnonfinancial_explanation_of_benefit__lastUpdated_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v200devnonfinancial_explanation_of_benefit_patient_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v200devnonfinancial_explanation_of_benefit_service_date_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v200devnonfinancial_explanation_of_benefit_service_start_date_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v200devnonfinancial_explanation_of_benefit_type_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v200devnonfinancial_explanation_of_benefit_inpatient_institutional_billable_period_start_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v200devnonfinancial_explanation_of_benefit_inpatient_institutional__id_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v200devnonfinancial_explanation_of_benefit_inpatient_institutional_identifier_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v200devnonfinancial_explanation_of_benefit_inpatient_institutional__lastUpdated_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v200devnonfinancial_explanation_of_benefit_inpatient_institutional_patient_search_test_param)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def scratch_resources
end

run do

run_search_test(c4bb_v200devnonfinancial_explanation_of_benefit_inpatient_institutional_service_date_search_test_param)
end
end
Expand Down
Loading

0 comments on commit dc50546

Please sign in to comment.