You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For each item in the collection, if it is a string that is a uri (or canonical or url), locate the target of the reference, and add it to the resulting collection. If the item does not resolve to a resource, the item is ignored and nothing is added to the output collection.
The items in the collection may also represent a Reference, in which case the Reference.reference is resolved.
Environment
main
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
A clear and concise description of what you expected to happen.
If the input collections contains more than one item, the evaluator will throw an error.
So even if we fixed this issue in our resolve function, the constraint would still fail because we have a non-singleton collection on the lhs of the or operator.
I opened https://jira.hl7.org/browse/FHIR-36328 for this part of it, but we should consider patching this expression in our packaging of us core 4.0 when we fix this issue.
The text was updated successfully, but these errors were encountered:
technically we were already testing this under
testResolveBundleReference_HttpFullUrl, but having a dedicated test for
this case makes sense
Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
I went to "fix" this and I found that our resolve function ALREADY supports multiple nodes in the input collection. The error from the description is actually coming from the is operator and this operator is correct to throw when there are multiple nodes as input.
I still opened a PR with the simple test I used to prove its working.
Describe the bug
US Core 4.0 defines the following contraint expression at http://hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-provenance.html#constraints
Currently, when our FHIRPath engine evaluates that against input with multiple agents, our
resolve()
function implementation rejects that:However, the definition at https://build.fhir.org/fhirpath.html#functions says that this should work over a collection:
Environment
main
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
This particular constraint from US Core has other issues... https://hl7.org/fhirpath/#is-type-specifier says
So even if we fixed this issue in our resolve function, the constraint would still fail because we have a non-singleton collection on the lhs of the
or
operator.I opened https://jira.hl7.org/browse/FHIR-36328 for this part of it, but we should consider patching this expression in our packaging of us core 4.0 when we fix this issue.
The text was updated successfully, but these errors were encountered: