Stream: hapi
Topic: Aggregation Query
Kishore Karanam (Aug 24 2021 at 13:31):
In Hapi FHIR, is there a way to get the aggregated output i.e. getting the service type-wise appointments count? The equivalent in DB query,
select service_type, count(1) from appointments group by service_type.
Joel Schneider (Aug 25 2021 at 05:36):
The FHIR search API spec describes a _summary=count parameter, but I'm not aware of a "group by" feature.
Kishore Karanam (Oct 18 2021 at 08:15):
Joel Schneider said:
The FHIR search API spec describes a _summary=count parameter, but I'm not aware of a "group by" feature.
True. But this gives only summary count for the given search criteria. I would like to get the count service-type wise i.e. how many appointments were booked against each service for the given day
Last updated: Apr 12 2022 at 19:14 UTC