---
updatedAt: 2026-03-20T22:03:39.000Z
agentTools:
  projectIndex: https://developer.healthgorilla.com/llms.txt
---

# Search

Retrieve Goal resources by the specified search criteria

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "fhir-r4-api-sandbox",
    "version": "1.1.0"
  },
  "servers": [
    {
      "url": "https://sandbox.healthgorilla.com/fhir/R4"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/Goal": {
      "get": {
        "summary": "Search",
        "description": "Retrieve Goal resources by the specified search criteria",
        "operationId": "search-20",
        "parameters": [
          {
            "name": "patient",
            "in": "query",
            "description": "Patient Identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "_lastUpdated",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "_offset",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "_count",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "text",
              "code": "https://api.healthgorilla.com/fhir/R4/Goal?patient=8063965523692105bfc35def",
              "name": "Retrieve goals by patient"
            },
            {
              "language": "text",
              "code": "https://api.healthgorilla.com/fhir/R4/Goal?_lastUpdated=gt2019-03&_offset=0&_count=5",
              "name": "Search records updated since March 2019"
            },
            {
              "language": "text",
              "code": "https://api.healthgorilla.com/fhir/R4/Goal?patient=8063965523692105bfc35def&_lastUpdated=2018",
              "name": "Retrieve records for the given patient updated in 2018"
            }
          ],
          "samples-languages": [
            "text"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```