GraphQL doesn't support "pr" filter
# support
b
Hello, trying to filter PatientList by active patients, but we want to include patients that do not have
active
(active undefined) in the active category as opposed to inactive. We can do this via REST with
active pr false
, but this seems to is not be included on the graphql side and gets ignored in the query. Is there an option to get around this or is REST the best option? Thanks for your help!
d
Hi @bnz , have you tried using the _filter syntax in graphql? For example:
Copy code
{
  PatientList(_filter: "active pr false") {
    id
    name { given }
    ...
  }
}
b
Hi Derrick, yes this is what we're doing that gets ignored, it will return the whole valueset.
d
Ok we are investigating what is happening here
Is this a self-hosted / local version of Medplum? If so, what version are you running?
16 Views