This fixes JIRA FHIR-2687. The problem happens when search parameter targets a primitive value and the resource has an extension on the primitive, for example, instead of
When Infenro extract search values from returned resourcee, Inferno locates the primitive and tries to conver the "primitve value" into a string. When the value is actually an extension, as shown above, the to_s fails.
Change Logs:
Fix search_param_value method so that when the element is a type of Element is skip. This is based on that all search parameters target concrete data types. Data type Element is the base class and not used in any profile directly. The only usage in Inferno US Core test kit is when the navigator sees a primitive extension, it converts that into an Element with extension.
Add two unit tests to verify that search value is retrieved when primitive has extension
Update Dockerfile to run gem update before gem install
Summary
This fixes JIRA FHIR-2687. The problem happens when search parameter targets a primitive value and the resource has an extension on the primitive, for example, instead of
server pupulates
date
with extension:When Infenro extract search values from returned resourcee, Inferno locates the primitive and tries to conver the "primitve value" into a string. When the value is actually an extension, as shown above, the
to_s
fails.Change Logs:
gem update
beforegem install
Testing Guidance