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
| Parameter | Type | Description |
|---|---|---|
_id | token | The resource id. Comma-separate for several. |
patient | reference | Patient/{id}. |
date | date | Date (FHIR date, with prefixes; repeat for a range). |
identifier | token | An identifier, as system|value or just value (MRN for Patient, NPI for Practitioner, Location and Organization). |
status | token | Status code; comma-separate for several. |
class | token | Encounter class (AMB). |
type | token | prov (the practice) or pay (insurance payers). |
location | reference | Location/{id}. |
discharge-disposition | token | Not recorded for office visits. |
_lastUpdated | date | Last change (FHIR date, with prefixes). |
_count | number | Results 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
curl "https://qa3.somahealth.com/api/fhir/r4/your-practice/Encounter?" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/fhir+json"{}Examples use made-up data. Elements appear only when the practice has recorded them.