SSoma HealthFHIR API
Getting started

Paging and counts

Search results come in pages: read them with _count and the Bundle's next link.

Searches return a Bundle of type searchset with total (how many match) and up to _count entries: 50 by default, at most 200.

When there are more results, the Bundle has a next link. Follow it as-is to get the next page, and stop when there's no next link. Don't build page addresses yourself.

Search response
{
  "resourceType": "Bundle",
  "type": "searchset",
  "total": 137,
  "link": [
    { "relation": "self", "url": "https://dev3.somahealth.com/api/fhir/r4/your-practice/Patient?family=sample&_count=50&_offset=0" },
    { "relation": "next", "url": "https://dev3.somahealth.com/api/fhir/r4/your-practice/Patient?family=sample&_count=50&_offset=50" }
  ],
  "entry": [
    {
      "fullUrl": "https://dev3.somahealth.com/api/fhir/r4/your-practice/Patient/2b6f…",
      "resource": { "resourceType": "Patient", "id": "2b6f…" },
      "search": { "mode": "match" }
    }
  ]
}

Resources added by _include come after the matches, with search.mode set to include. They don't count toward total or _count.

Search with POST

Long queries can be sent as a form instead: POST [base]/{type}/_search with Content-Type: application/x-www-form-urlencoded and the same parameters in the body.

Dates and times

Date parameters take yyyy, yyyy-MM, yyyy-MM-dd or a date-time (which counts as its whole day), with the prefixes eq, ge, gt, le, lt, sa, eb and ap. Repeat the parameter to set a range: date=ge2026-12-01&date=lt2026-12-08. Times in responses carry the practice's time zone offset.