Stream: implementers
Topic: filter predicate clarification for _id
Sean McIlvenna (Jan 28 2018 at 15:53):
Is it valid to do a search like so:
[base]/[resourceType]?_id:text=blah
Sean McIlvenna (Jan 28 2018 at 15:53):
or is the :text modifier only valid for CodeableConcept?
Sean McIlvenna (Jan 28 2018 at 15:54):
I get the impression some modifiers are only valid for certain data types, but I can't find a table that shows the relationship/validity of those modifiers and datatypes
Michele Mottini (Jan 28 2018 at 15:56):
For all parameters (except combination): :missing; e.g. gender:missing=true (or false). Searching for gender:missing=true will return all the resources that don't have a value for the gender parameter (which usually equates to not having the relevant element in the resource). Searching for gender:missing=false will return all the resources that have a value for the gender parameter.
For string: :exact (the match needs to be exact, no partial matches, case sensitive and accent-sensitive), or :contains (case insensitive and accent-insensitive, partial match at start or end), instead of the default behavior (case insensitive and accent-insensitive, partial matches at the end of the string).
For token: :text (the match does a partial searches on the text portion of a CodeableConcept or the display portion of a Coding), instead of the default search which uses codes. Other defined modifiers are :in, :below, :above and :not-in which are described below.
For reference: :[type] where [type] is the name of a type of resource
For uri: :below, :above indicate that instead of an exact match, either the search term left matches the value, or vice-versa.
Michele Mottini (Jan 28 2018 at 15:57):
see http://hl7.org/fhir/search.html#modifiers
Michele Mottini (Jan 28 2018 at 16:00):
_id is of type token
Sean McIlvenna (Jan 28 2018 at 16:00):
Thanks @Michele Mottini
Is there any documentation that you know of about modifiers for id types? I'm not seeing anything in the bullets above... maybe elsewhere
Sean McIlvenna (Jan 28 2018 at 16:00):
good point
Sean McIlvenna (Jan 28 2018 at 16:00):
that answers that :)
Last updated: Apr 12 2022 at 19:14 UTC