Skip to content

Commit

Permalink
Workaround to support Checklist tests that have a presentOnAdmissionI…
Browse files Browse the repository at this point in the history
…ndicator valueset (#1835)
  • Loading branch information
dczulada committed Sep 11, 2023
1 parent e7289da commit 52a5894
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/validators/checklist_criteria_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ def verify_component_attribute(attribute, checked_criteria)

def verify_dx_component_attribute(attribute, checked_criteria)
# A component has nested attributes, check those
attribute_has_data(attribute.code, checked_criteria)
# Check the dx code first
return true if attribute_has_data(attribute.code, checked_criteria)

# Check the dx presentOnAdmissionIndicator
attribute_has_data(attribute.presentOnAdmissionIndicator, checked_criteria)
end

def verify_id_attribute(attribute)
Expand Down

0 comments on commit 52a5894

Please sign in to comment.