< Back

Send a Test Call

After configuring your environment and obtaining a valid access token, verify connectivity by sending a test request to a basic FHIR endpoint.

To retrieve a patient record

  1. From your terminal or API client, send a GET request to the Patient endpoint using your bearer token.

Example using curl:

curl -X GET "https://sandbox.healthgorilla.com/fhir/R4/Patient/12345" \
     -H "Authorization: Bearer your_access_token" \
     -H "Accept: application/fhir+json"
  1. Confirm that the response returns a valid FHIR resource with the following fields:
  • resourceType: "Patient"
  • id: "12345"
  • name: (patient name array)
  • gender: (e.g., "male", "female")
  • birthDate: (ISO 8601 format)Example response:

Example using curl:

{
  "resourceType": "Patient",
  "id": "12345",
  "name": [{
    "family": "Doe",
    "given": ["John"]
  }],
  "gender": "male",
  "birthDate": "1980-01-01"
}