| title | Goal | R4 API |
|---|
- TOC {:toc}
The Goal resource describes intended objectives for a patient. A goal is typically expressed as a desired outcome or health state for a patient to achieve over a period or at a specific point in time. A goal may address preventative health or mitigation of a diagnosis or problem. Goals can be nonhealth care related (for example, to dance at a wedding).
Soarian Clinicals® supports a read-only Application Programming Interface (API). This API accepts GET and POST based search and GET based read interactions. The response represents the most current information about the patient that is charted in Soarian Clinicals® at the time of the query.
The search results include the following fields if they contain values:
- Goal id{:target="_blank"}
- Lifecycle Status{:target="_blank"}
- Description{:target="_blank"}
- Subject (Patient only){:target="_blank"}
- Target Due Date{:target="_blank"}
Search for Goal resources that meet the specified query parameters:
GET/Goal?:parameters
<%= authorization_types(provider: true, patient: true, system: true)%>
| Name | Required? | Type | Description |
|---|---|---|---|
_id |
This, or patient |
token |
The logical resource ID associated with the resource. |
patient |
This, or _id |
reference |
The patient who has the goal. |
_revinclude |
No | _revinclude |
A request to include any Provenance resource in the bundle that refers to a Goal resource in the search results. Only supported with Provenance. |
Notes:
- The
_revincludeparameter may be provided once with the valueProvenance:target. Example:_revinclude=Provenance:target - When
_revincludeis provided in a request, the OAuth2 token must include thepatient/Provenance.read system/Provenance.readoruser/Provenance.readscope as applicable.
<%= headers fhir_json: true %>
GET https://fhir-myrecord-sc.sandboxcerner.com/r4/3f2aca24-87f3-4eac-a6d7-1f75247e6b43/Goal?patient=A879904FD2FE4B2D90C89FDA84E1285F
<%= headers status: 200 %> <%= json(:SOARIAN_R4_GOAL_SEARCH_BY_PT) %>
Note: The examples provided here are non-normative and replaying them in the public sandbox is not guaranteed to yield the results shown on the site
GET https://fhir-myrecord-sc.sandboxcerner.com/r4/3f2aca24-87f3-4eac-a6d7-1f75247e6b43/Goal?_id=A879904FD2FE4B2D90C89FDA84E1285F.NRS.43083
<%= headers status: 200 %> <%= json(:SOARIAN_R4_GOAL_SEARCH_BY_ID) %>
Note: The examples provided here are non-normative and replaying them in the public sandbox is not guaranteed to yield the results shown on the site.
The common errors and OperationOutcomes may be returned.
List an individual Goal Resource by its ID:
GET /Goal/:id
<%= authorization_types(provider: true, patient: true, system: true)%>
<%= headers fhir_json: true %>
GET https://fhir-myrecord-sc.sandboxcerner.com/r4/3f2aca24-87f3-4eac-a6d7-1f75247e6b43/Goal/A879904FD2FE4B2D90C89FDA84E1285F.NRS.43083
<%= headers status: 200 %> <%= json(:SOARIAN_R4_GOAL_READ) %>
Note: The examples provided here are non-normative and replaying them in the public sandbox is not guaranteed to yield the results shown on the site.
The common errors and OperationOutcomes may be returned.