Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to get a count of the number of patients (or other resources) from a FHIR server?

Tags:

hl7-fhir

Is it possible to get a count for the number of Patients on an FHIR server. Searching for FHIR and count I get several results for using _count to limit the number of records returned by a query, but I'm not seeing anything that shows how to get a count for the number of Patients on a FHIR Patient server.

like image 410
John Avatar asked Aug 31 '25 22:08

John


1 Answers

It looks like this is being done with the _summary=count parameter:

https://syntheticmass.mitre.org/v1/fhir/Patient?_summary=count&apikey=API_KEY_GOES_HERE

Unfortunately it looks like this isn't supported by syntheicmass

{
  "issue": [
    {
      "code": "value",
      "details": {
        "text": "invalid_query"
      },
      "diagnostics": "generic::unimplemented: _summary argument is not supported yet.",
      "severity": "error"
    }
  ],
  "resourceType": "OperationOutcome"
}
like image 149
John Avatar answered Sep 04 '25 09:09

John