SSoma HealthFHIR API
API reference

GETEncounter

Visits the patient came in for, with type, provider, location and time.

Conforms to US Core Encounter. Scope: system/Encounter.rs (or system/Encounter.read).

GET[base]/Encounter/{id}Read one Encounter.
GET[base]/Encounter?{parameters}Search Encounter. Returns a Bundle.
POST[base]/Encounter/_searchSearch with the parameters in a form body.

Search parameters

ParameterTypeDescription
_idtokenThe resource id. Comma-separate for several.
patientreferencePatient/{id}.
datedateDate (FHIR date, with prefixes; repeat for a range).
identifiertokenAn identifier, as system|value or just value (MRN for Patient, NPI for Practitioner, Location and Organization).
statustokenStatus code; comma-separate for several.
classtokenEncounter class (AMB).
typetokenprov (the practice) or pay (insurance payers).
locationreferenceLocation/{id}.
discharge-dispositiontokenNot recorded for office visits.
_lastUpdateddateLast change (FHIR date, with prefixes).
_countnumberResults per page (default 50, at most 200). See paging.

Repeat a parameter to AND its values; separate values with commas to OR them.

Encounter must be searched by patient: Encounter?patient=Patient/{id} (or by _id).

Ids start with the patient's key, so reads work directly. Add _revinclude=Provenance:target to get each resource's Provenance.

Example

Search request
curl "https://dev3.somahealth.com/api/fhir/r4/your-practice/Encounter?" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Accept: application/fhir+json"
Encounter (an entry in the response Bundle)
{}

Examples use made-up data. Elements appear only when the practice has recorded them.