FHIR Chat · Firely - Filter by StringValue and SearchModifierCode · dotnet

Stream: dotnet

Topic: Firely - Filter by StringValue and SearchModifierCode


view this post on Zulip Brian Beatty (Jul 12 2021 at 19:54):

I'm getting started with Firely and I'm looking to implement the filters with SearchModifierCode, ex Patient?given:exact=Smith
Do I need to write a specific predicate for each of the SearchModifierCodes (exact, contains, not, text, In, NotIn, etc...) or is there a library or utility function built into the product?

view this post on Zulip Mirjam Baltus (Jul 19 2021 at 13:45):

@Brian Beatty Is this a question on the Firely Server Facade? The SDK itself does not have methods for the modifiers, but if you use a Firely Server Facade, Firely Server will parse the url for you and put the modifier as separate attribute in the value sent to the Filter method. This should make it easy to check for the existence as well as which modifier was added to the search.

view this post on Zulip Brian Beatty (Jul 19 2021 at 15:00):

It's for the Server Facade, and I am getting the modifiers on the value object, for contains and exact, etc., as expected. I was wondering if there was an existing library or method(s) that handled these modifiers when supplied, like the "And", "Not" & "Or" methods. Or do I need to code the predicates individually. Based on more research I think the later.

view this post on Zulip Mirjam Baltus (Jul 19 2021 at 17:14):

Yes, you need to code them yourselves. It could be different from system to system how this is done, so that's why they're not implemented in a default method.


Last updated: Apr 12 2022 at 19:14 UTC