inferno-framework / us-core-test-kit

Inferno Test Kit for evaluating API conformance to the US Core Implementation Guide
Apache License 2.0
7 stars 5 forks source link

FI-2687 Skip find search values from primitive extension #167

Closed yunwwang closed 4 months ago

yunwwang commented 4 months ago

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

"date": "2024-01-01"

server pupulates date with extension:

"_date": {
  "extension": [ {
    "url": "http://example.com/extension",
    "valueString": "value"
  }]
}

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:

Testing Guidance