ylboerner / Pathfinder

A frontend for the Firely .NET SDK FHIRPath engine.
2 stars 0 forks source link

Pathfinder doesn't display 1 as output for substring query #10

Open wardweistra opened 2 years ago

wardweistra commented 2 years ago

The query 'abcdefg'.indexOf('bc') gives no results: https://ylboerner.github.io/Pathfinder/?fhirPath=%27abcdefg%27.indexOf(%27bc%27) However, testing if the answer is 1 does give True: https://ylboerner.github.io/Pathfinder/?fhirPath=%27abcdefg%27.indexOf(%27bc%27)=1 (testing against 0 or 2 gives False)

wardweistra commented 2 years ago

It would be very helpful if Pathfinder would be explicit about when the result is an empty array, empty string, etc. Just so it's clear that's the FHIRPath output and not an error.