Stream: implementers
Topic: Search across two fields?
Paul Lynch (Oct 23 2019 at 21:51):
Is there a way to search across two fields at once? The immediate use case I have in mind is a Questionnaire lookup in which the user can either type words in the title or the code (in case they know the code). If not something that general, what about searching in both code and code:text?
I have a vague recollection that I might have asked this before, but if so I couldn't find the thread.
Grahame Grieve (Oct 23 2019 at 22:00):
look in the search for combining parameters
Paul Lynch (Oct 24 2019 at 15:08):
I'm not seeing anything on combining parameter names. I did find _filter. Is that what you meant?
Michele Mottini (Oct 24 2019 at 15:29):
'Give me the questionnaires that have this word(s) in the title or in the code' ? That is possible only using _filter - or with a new custom search parameter that does exactly that (like Patient name)
Lloyd McKenzie (Oct 24 2019 at 15:47):
You'd need a custom parameter. (Or use the query language)
Grahame Grieve (Oct 24 2019 at 17:42):
yes actually I was wrong, you can't compose or statements across different modifiers. You have to use _filter
Last updated: Apr 12 2022 at 19:14 UTC