FHIR Chat · Verify patient exists · implementers

Stream: implementers

Topic: Verify patient exists


view this post on Zulip Naminder Soorma (May 06 2016 at 08:57):

Hi, I have a requirement using RESTful where we just want to verify if a patient id exists. So it returns a True or False, I do not want to pull back the whole Patient Resource. Can anyone give an idea on the most efficient way to do this?

view this post on Zulip Grahame Grieve (May 06 2016 at 09:04):

search and ask for _summary=count

view this post on Zulip Naminder Soorma (May 06 2016 at 09:37):

I have got it to return total number of records like this [$base]/Patient?_summary=count
But am struggling with the syntax to return just for an id so something like
[$base]/Patient/71/_summary=count

EDIT: thanks got it working with this code

[$base]/Patient?_id=71&_summary=count

view this post on Zulip Naminder Soorma (May 06 2016 at 12:03):

Can I add something to the RESTful query to return me another field as well such as patient active?

view this post on Zulip Grahame Grieve (May 06 2016 at 12:03):

see _elements

view this post on Zulip Naminder Soorma (May 06 2016 at 12:39):

Thanks Grahame worked great, here is my query for others. [base]/Patient?_id=71&birthdate=19340609&_elements=identifier,link_summary=count

Another question that has arisen, is it possible to return an extension using this method too?

view this post on Zulip Grahame Grieve (May 06 2016 at 15:03):

all or none, I guess

view this post on Zulip Brian Postlethwaite (May 07 2016 at 18:43):

and not many servers are implementing elements at the moment too.


Last updated: Apr 12 2022 at 19:14 UTC