Skip to content

gem dependency updates and addressing vulnerabilities + non-FHIR:reference filter added#290

Closed
FlexonyoPizza wants to merge 1 commit into
inferno-framework:mainfrom
FlexonyoPizza:main
Closed

gem dependency updates and addressing vulnerabilities + non-FHIR:reference filter added#290
FlexonyoPizza wants to merge 1 commit into
inferno-framework:mainfrom
FlexonyoPizza:main

Conversation

@FlexonyoPizza
Copy link
Copy Markdown
Contributor

  • Filler gem path to inferno-core, tls-test-kit, and smart-app-test-kit in order to bundle install and update gemlock locally. Will remove those gem path and reference the actual inferno-core, tls-test-kit, and smart-app-test-kit versions once those gems are released.

  • Added a filter in lib/reference_resolution_test.rb that filters out non-FHIR:reference variants passed to
    "def unresolved_references(resources = [])";

Some suite tests (in particular medication[x] tests) in the g10 test kit wouldn't pass because 'CodeableConcept' variants were being passed to that function in US-core that only accepts FHIR:reference variants.

@FlexonyoPizza FlexonyoPizza marked this pull request as draft May 8, 2026 17:40

resolve_one_reference = resources.any? do |resource|
value_found = resolve_path(resource, path)
value_found = resolve_path(resource, path).select { |v| v.is_a?(FHIR::Reference) }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it could be the right fix. However, we need at least a spec test case in the reference_test_spec.rb and ideally an example execution in the UI that demonstrates that it is resolved. Looks like I did make the same change in a branch I'm working on here, but haven't gotten around to a spec test yet. So I think it is right and should be relatively easy to get a test that proves it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants