API reference
GETGoal
The patient's goals.
Conforms to US Core Goal. Scope: system/Goal.rs (or system/Goal.read).
GET
[base]/Goal/{id}Read one Goal.GET
[base]/Goal?{parameters}Search Goal. Returns a Bundle.POST
[base]/Goal/_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}. |
lifecycle-status | token | Goal status. |
target-date | date | Goal target date. |
description | token | Goal code. |
_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.
Goal must be searched by patient:
Goal?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/Goal?" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/fhir+json"{}Examples use made-up data. Elements appear only when the practice has recorded them.