Skip to content

Commit

Permalink
FI-2955: Include code system when checking for resources to read (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jammjammjamm authored Jul 29, 2024
1 parent 1a5a76d commit 95a0b08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/us_core_test_kit/granular_scope_read_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def run_scope_read_test
resource_specific_granular_scope_search_params.each do |scope|
current_scope = granular_scopes.find {|granular| granular.include?(scope[:name]) && granular.include?(scope[:value])}

resource_matching_scope = previous_resources_for_reads.find do |prev_resource|
resource_matches_param?(prev_resource, scope[:name], scope[:value])
resource_matching_scope = previous_resources_for_reads.find do |prev_resource|
resource_matches_param?(prev_resource, scope[:name], current_scope.split('=').last)
end
skip_if resource_matching_scope.nil?, "Unable to find any resources to match scope #{current_scope}"

Expand Down
2 changes: 1 addition & 1 deletion spec/us_core/granular_scope_read_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def self.metadata
category: {
coding: [
{
system: 'http://terminology.hl7.org/CodeSystem/condition-category',
system: 'http://hl7.org/fhir/us/core/CodeSystem/condition-category',
code: 'health-concern'
}
]
Expand Down

0 comments on commit 95a0b08

Please sign in to comment.