API reference
GETObservation
Smoking status from intake forms; sexual orientation and pronouns from the patient's demographics; vital signs, lab results and pregnancy status / intent from Chart › Clinical.
Conforms to US Core Smokingstatus. Scope: system/Observation.rs (or system/Observation.read).
GET
[base]/Observation/{id}Read one Observation.GET
[base]/Observation?{parameters}Search Observation. Returns a Bundle.POST
[base]/Observation/_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}. |
category | token | Category code, as system|code or code. |
code | token | Code, as system|code or code (ICD-10-CM, SNOMED CT, CPT, LOINC or RxNorm). |
date | date | Date (FHIR date, with prefixes; repeat for a range). |
status | token | Status code; comma-separate for several. |
_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.
Observation must be searched by patient:
Observation?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://dev3.somahealth.com/api/fhir/r4/your-practice/Observation?" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/fhir+json"{}Examples use made-up data. Elements appear only when the practice has recorded them.