Goal

The FHIR R4 Goal resource is used to capture a patient’s health goals, including both clinical and non-clinical objectives. It allows the tracking of a goal’s status, target date, achievement, and other relevant details, providing a structured way to monitor progress towards health improvement.

Use Cases

  • Create a new treatment goal for a patient
  • Retrieve patient progress towards a specific health goal
  • Update a patient's health goal as their treatment plan evolves

Base URLs

Authentication

All requests require OAuth 2.0 authentication using a Bearer Token. Unauthorized requests return 401 Unauthorized responses.

Required scopes:

  • goal.read for GET
  • goal.write for POST, PUT, DELETE

For more information, go to: OAuth 2.0 Authentication.

Supported Methods

MethodOperationDescription
GETRead GoalRetrieves a specific Goal record by its FHIR ID.
GETSearch GoalSearches for Goal records for a specified patient.
POSTCreate GoalSubmits a new Goal record to the Health Gorilla FHIR server.
PUTUpdate GoalUpdates an existing Goal record by full resource replacement.
DELETEDelete GoalRemoves an existing Goal record from the system by full resource deletion.

Frequently Used Search Parameters

ParameterDescriptionFHIR Value Set / Example ValuesFHIR Data TypeRequired
patientFilters by patient IDPatient/{id}ReferenceYes
statusFilters by the current status of the goalGoalStatus (active)tokenNo
categoryFilters by the category of the goalGoalCategory (clinical)tokenNo
priorityFilters by the priority of the goalGoalPriority (high)tokenNo
startDateFilters by the start date of the goalge2024-01-01, le2024-12-31dateNo
targetDateFilters by the target date for achieving the goalge2024-01-01, le2024-12-31dateNo

Commonly Returned Resource Attributes

AttributeDescriptionExample ValuesFHIR Data TypeRequired
statusThe current status of the goalactiveCodeableConceptYes
categoryThe category of the goalclinicalCodeableConceptNo
priorityThe priority of the goalhighCodeableConceptNo
descriptionA description of the goalImprove cardiovascular healthstringYes
targetDateThe date by which the goal is expected to be achieved2024-12-31dateNo
achievementA measure of how well the goal has been metachieved, in-progressCodeableConceptNo

Webhooks

Health Gorilla supports webhook-based notifications for changes to a patient's clinical data, including Goal resources. Clients can register a webhook endpoint to be notified when:

  • A new goal is created for a patient.
  • An existing goal is updated.
  • A goal's status is changed or its target date is modified.

For more information, go to: Webhooks & Polling.

Error Handling

All Goal operations follow standard Health Gorilla error handling, including use of FHIR OperationOutcome for structured responses.

Common reasons for failure include missing required fields (e.g., patient, status), invalid codes, or insufficient authorization scope (goal.write). For more information, go to: Error Handling.

Additional Resources

HL7 FHIR Goal