Stream: implementers
Topic: query syntax for value "missing or true"
Simone Heckmann (Aug 11 2016 at 14:20):
What's the proper syntax for a query that's supposed to return all Patients that are either active=true or are missing the "active" attribute?
Simone Heckmann (Aug 11 2016 at 14:23):
and that's when I realize that this is the same as Patient?active:not=true
Simone Heckmann (Aug 11 2016 at 14:24):
But for curiousity's sake: is there a way to search for an attribute that is either missing or has value x?
Brian Postlethwaite (Aug 11 2016 at 21:58):
I was thinking about this one a few weeks ago with respect to active flags.
My thought was that would be good for the default earch to only consider "active" style records, and not have to put the parameters on for that. And force the inclusion of the parameter to include inactive content.
Brian Postlethwaite (Aug 11 2016 at 21:59):
For me it makes things more difficult in the administrative sections that you need to deal with what you've pointed out.
Grahame Grieve (Aug 11 2016 at 23:22):
default values in search are very troublesome, for all the apparent attractions of defaulting active to true
Grahame Grieve (Aug 11 2016 at 23:24):
Patient?active:not=false
Grahame Grieve (Aug 11 2016 at 23:24):
I think
Last updated: Apr 12 2022 at 19:14 UTC