Say you want to know the number of Procedures with a status of ‘on-hold’.
Here are two ways.
In SQL this would look like:
select count(*) from Procedure where status=on-hold
In FHIR your query would be:
/Procedure/?status=on-hold&_summary=count
or
/Procedure/?status=on-hold&_count=0
Example query 1: http://hapi.fhir.org/baseR4/Procedure/?status=on-hold&_summary=count
Example query 2: http://hapi.fhir.org/baseR4/Procedure/?status=on-hold&_count=0
Simple, yet so many FHIR developers don’t know how to do this.
---
Sign up to “The Tuesday FHIR Sessions” and receive an email every Tuesday where I go deep on a single FHIR topic.