Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FI-2185 and FI-2186: Add Optional Tests for _lastUpdated Interaction and Required Tests for _id Search #21

Merged
merged 17 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
bf11545
Make _lastUpdated param for Coverage tests optional, and change searc…
emichaud998 Oct 25, 2023
a04ac8a
Add tests to make sure _lastUpdated is optional for coverage but requ…
emichaud998 Oct 25, 2023
51c8008
Revert metadata back to original as it cannot be manually set and get…
emichaud998 Oct 31, 2023
9f1bd87
Updated search test generator so that it adds optional to any tests t…
emichaud998 Oct 31, 2023
cb9f843
Remove warning and skipping of lastUpdated tests since they are alrea…
emichaud998 Oct 31, 2023
fdf7514
Fix search.rb generator template so that it adds input as optional if…
emichaud998 Oct 31, 2023
d707f9c
Fix search template to add comma after input description before optio…
emichaud998 Oct 31, 2023
0c14748
Add optional _lastUpdated test to patient, organization, practitioner…
emichaud998 Oct 27, 2023
a25d043
Update new _lastUpdated tests so class name follows naming convention…
emichaud998 Oct 27, 2023
45863bd
Fix group generator so that search test generator does not exclude Pa…
emichaud998 Oct 31, 2023
b0ddfd0
Remove temporary fix for optional? function
emichaud998 Oct 31, 2023
d96c979
Fix typo in optional? method in search test generator
emichaud998 Nov 1, 2023
13c7567
Fix _lastUpdated search spec test
emichaud998 Nov 1, 2023
2e1e539
Remove some of the _lastUpdated tests since they all do the same thin…
emichaud998 Nov 1, 2023
022753b
Update search test so _lastUpdated test is skipped for optional resou…
emichaud998 Nov 1, 2023
1899baf
Remove temporary skip test fix and update search test template so the…
emichaud998 Nov 1, 2023
5c95d9f
Fix template so that a tab is not entered before skip_if function
emichaud998 Nov 1, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
vanessuniq marked this conversation as resolved.
Show resolved Hide resolved

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