Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
FI-1406 Allow case-insensitive comparison for token search (#421)
Browse files Browse the repository at this point in the history
* Allow case-insensitive comparasion for token search

* Add & to avoid nil value

* reverse config.yml changes
  • Loading branch information
yunwwang authored Dec 21, 2021
1 parent 2278be8 commit e09bd10
Show file tree
Hide file tree
Showing 23 changed files with 80 additions and 80 deletions.
4 changes: 2 additions & 2 deletions generator/uscore/uscore_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1450,9 +1450,9 @@ def search_param_match_found_code(type, element)
coding_value = value.split('|').last
match_found = values_found.any? do |codeable_concept|
if value.include? '|'
codeable_concept.coding.any? { |coding| coding.system == coding_system && coding.code == coding_value }
codeable_concept.coding.any? { |coding| coding.system == coding_system && coding.code&.casecmp?(coding_value) }
else
codeable_concept.coding.any? { |coding| coding.code == value }
codeable_concept.coding.any? { |coding| coding.code&.casecmp?(value) }
end
end)
when 'Identifier'
Expand Down
8 changes: 4 additions & 4 deletions lib/modules/uscore_v3.1.1/bodyheight_sequence.rb

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

8 changes: 4 additions & 4 deletions lib/modules/uscore_v3.1.1/bodytemp_sequence.rb

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

8 changes: 4 additions & 4 deletions lib/modules/uscore_v3.1.1/bodyweight_sequence.rb

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

8 changes: 4 additions & 4 deletions lib/modules/uscore_v3.1.1/bp_sequence.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.

8 changes: 4 additions & 4 deletions lib/modules/uscore_v3.1.1/heartrate_sequence.rb

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

8 changes: 4 additions & 4 deletions lib/modules/uscore_v3.1.1/pediatric_bmi_for_age_sequence.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.

8 changes: 4 additions & 4 deletions lib/modules/uscore_v3.1.1/resprate_sequence.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.

4 changes: 2 additions & 2 deletions lib/modules/uscore_v3.1.1/us_core_careplan_sequence.rb

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

12 changes: 6 additions & 6 deletions lib/modules/uscore_v3.1.1/us_core_condition_sequence.rb

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

Loading

0 comments on commit e09bd10

Please sign in to comment.