Skip to content

Commit

Permalink
Remove test groups sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
projkov committed Mar 1, 2024
1 parent bec6b62 commit c7a2cca
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 48 deletions.
12 changes: 6 additions & 6 deletions lib/au_core_test_kit/generated/v0.3.0/au_core_test_suite.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 1 addition & 40 deletions lib/au_core_test_kit/generator/suite_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,47 +82,8 @@ def groups
end

def group_id_list
# This hash with resource positions is built on a subjective view and can be changed.
# Used for sorting resources in the test suite.
positions = {
"patient" => 1,
"observation" => 2,
"bmi" => 2,
"bodyweight" => 2,
"oxygensat" => 2,
"bloodpressure" => 2,
"bodyheight" => 2,
"diagnosticresult_path" => 2,
"lipid_result" => 2,
"headcircum" => 2,
"bodytemp" => 2,
"heartrate" => 2,
"waistcircum" => 2,
"vitalspanel" => 2,
"resprate" => 2,
"diagnosticresult_imag" => 2,
"diagnosticresult" => 2,
"sexassignedatbirth" => 2,
"smokingstatus" => 2,
"medication_request" => 3,
"encounter" => 4,
"condition" => 5,
"procedure" => 6,
"diagnostic_report" => 7,
"immunization" => 8,
"allergy_intolerance" => 9,
"medication_statement" => 11,
"practitioner" => 12,
"organization" => 13,
"healthcare_service" => 15,
"document_reference" => 17,
"service_request" => 18,
"provenance" => 19,
"related_person" => 20,
}

@group_id_list ||=
groups.map(&:id).sort_by { |type| positions[type.split("au_core_#{ig_metadata.reformatted_version}_").last] }
groups.map(&:id)
end

def group_file_list
Expand Down
2 changes: 1 addition & 1 deletion lib/au_core_test_kit/generator/templates/search.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module AUCoreTestKit
input :practitioner_ids,
title: 'Practitioner IDs',
description: 'Comma separated list of practitioner IDs that in sum contain all MUST SUPPORT elements',
default: 'bradley-jill, surgeon-david, nurse-nancy, pharmacist, cardy-igist, levin-henry, sandyson-sandy, bobrester-bob, primary-peter'
default: 'bradley-jill, surgeon-david, nurse-nancy, pharmacist, cardy-igist, levin-henry, sandyson-sandy, bobrester-bob, primary-peter, bobrester-bob-tc-1.21'
<% end %><% if needs_healthcare_service_name? %>
input :healthcare_service_names,
title: 'HealthcareService Names',
Expand Down

0 comments on commit c7a2cca

Please sign in to comment.