Skip to content

Commit

Permalink
Fix problem with values from patternCoding
Browse files Browse the repository at this point in the history
Ref: #13
  • Loading branch information
projkov committed Feb 23, 2024
1 parent ad40041 commit 712606c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 3 additions & 1 deletion lib/au_core_test_kit/generated/v0.3.0/metadata.yml

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.

Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,11 @@ def multiple_or_expectation
end

def values
values_from_must_supports(profile_element).presence ||
value_extractor.values_from_fixed_codes(profile_element, type).presence ||
values_from_fixed_codes = value_extractor.values_from_fixed_codes(profile_element, type).presence
values_from_pattern_coding = value_extractor.values_from_pattern_coding(profile_element, type).presence
merged_values = Array(values_from_fixed_codes) + Array(values_from_pattern_coding)

values_from_must_supports(profile_element).presence || merged_values.presence ||
#value_extractor.values_from_required_binding(profile_element).presence ||
value_extractor.values_from_value_set_binding(profile_element).presence ||
values_from_resource_metadata(paths).presence ||
Expand Down
3 changes: 0 additions & 3 deletions lib/au_core_test_kit/reference_resolution_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ def unresolved_references(resources = [])
must_support_references_with_target_profile.select do |reference_path_profile_pair|
path = reference_path_profile_pair[:path]
target_profile = reference_path_profile_pair[:target_profile]
puts "reference_path_profile_pair #{reference_path_profile_pair}"
puts "path #{path}"
puts "target_profile #{target_profile}"

found_one_reference = false

Expand Down

0 comments on commit 712606c

Please sign in to comment.