Location

The FHIR R4 Location resource describes the physical or virtual place where healthcare services are provided. This includes clinics, hospitals, departments, and telehealth service locations. It is commonly referenced by other resources like Encounter, PractitionerRole, and Organization.

Use Cases

  • Identify the facility where a patient was seen or treated
  • Associate a provider with a specific service location
  • Filter encounters or appointments by location

Base URLs

Authentication

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

Required Scope: location.read for GET

For more information, go to: OAuth 2.0 Authentication.

Supported Methods

MethodOperationDescription
GETRead LocationRetrieves a specific Location record by its FHIR ID.
GETSearch LocationSearches for Location records based on supported parameters.

Frequently Used Search Parameters

ParameterDescriptionFHIR Value Set / Example ValuesFHIR Data TypeRequired
nameFilters by location name"Downtown Clinic"stringNo
addressMatches any part of the address (street, city, zip, etc.)"Sunnyvale"stringNo
identifierFilters by facility identifier1234567tokenNo
organizationFilters by the managing organizationOrganization/{id}ReferenceNo
_idFilters by the Location resource IDLocation/{id}tokenNo

Commonly Returned Resource Attributes

AttributeDescriptionExample ValuesFHIR Data TypeRequired
idUnique FHIR ID for the location6b2a8a16-2131-49fb-b5f7-ef8cfe2a9a6cidYes
nameName of the location"Health Gorilla Main Clinic"stringNo
statusWhether the location record is currently activeactive, suspended, inactivecodeNo
modeIndicates instance vs kindinstance, kindcodeNo
typeType of facility or locationoutpatient clinic, lab, pharmacyCodeableConcept[]No
addressPhysical or mailing addressCity, state, postal code, etc.AddressNo
telecomContact informationPhone, faxContactPoint[]No
managingOrganizationOrganization responsible for the locationOrganization/{id}Reference(Organization)No
partOfLarger location that this is a part ofLocation/{id}Reference(Location)No
positionLatitude and longitudelatitude: 37.37, longitude: -122.03Location.positionNo

Webhooks

Location resources are not directly monitored via webhook. However, they may appear in webhook payloads for Encounter, PractitionerRole, or Appointment resources.

For more information, go to: Webhooks & Polling.

Error Handling

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

For more information, go to: Error Handling.

Additional Resources

HL7 FHIR Location