Location
Overview
The Location resource provides details and position information for physical places where healthcare services are provided. This includes hospitals, clinics, rooms, buildings, and other healthcare facilities.
Important: Always validate Location resource support and available operations by retrieving the current CapabilityStatement from /metadata before implementing integrations.
Resource Schema
The Location resource follows the HL7 FHIR R4 Location specification.
Key elements include:
identifier- Unique code or number identifying the locationstatus- Active, suspended, inactiveoperationalStatus- Operational status of the locationname- Name of the locationalias- Alternative names for the locationdescription- Additional details about the locationmode- Instance or kind of locationtype- Type of function performed at locationtelecom- Contact details for the locationaddress- Physical location addressphysicalType- Physical form of the locationposition- Absolute geographic locationmanagingOrganization- Organization responsible for locationpartOf- Another location this location is part ofhoursOfOperation- Operating hours for the locationavailabilityExceptions- Description of availability exceptionsendpoint- Technical endpoints for the location
Example Location Resource
{
"resourceType": "Location",
"id": "12345",
"identifier": [{
"use": "usual",
"system": "http://hospital.example.org/locations",
"value": "ROOM-101"
}],
"status": "active",
"name": "Emergency Room 101",
"alias": ["ER 101", "Emergency Bay 1"],
"description": "Emergency treatment room with cardiac monitoring",
"mode": "instance",
"type": [{
"coding": [{
"system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
"code": "ER",
"display": "Emergency room"
}]
}],
"telecom": [{
"system": "phone",
"value": "+1-555-123-4567",
"use": "work"
}],
"address": {
"use": "work",
"line": ["123 Hospital Drive", "Emergency Department"],
"city": "Medical City",
"state": "CA",
"postalCode": "12345",
"country": "US"
},
"physicalType": {
"coding": [{
"system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
"code": "ro",
"display": "Room"
}]
},
"managingOrganization": {
"reference": "Organization/hospital-123"
},
"partOf": {
"reference": "Location/emergency-dept"
}
}
Supported Profiles
This API supports the following FHIR profiles:
Operations
The General Purpose FHIR R4 Location resource supports the following standard operations. However, support varies by the targeted CareRecord or solution.
| CareRecord / Solution | Create | Read | Update | Search |
|---|---|---|---|---|
| GEHRIMED | - | Yes | - | Yes |
| myAvatar | Yes | Yes | Yes | Yes |
| myEvolv | - | Yes | - | Yes |
| myUnity | - | Yes | - | Yes |
| Referral Manager | - | - | - | - |
Search
Not all Netsmart solutions support Location search. See supported operations table above and consult your target solution's documentation for more information.
This resource supports a combination of standard and custom search parameters in addition to the common parameters.
Standard Parameters
| Name | Type | Description |
|---|---|---|
| address-state | string | A state specified in an address |
| address-city | string | A city specified in an address |
| address-postalcode | string | A postal code specified in an address |
| identifier | token | An identifier for the location |
| name | string | A portion of the location's name or alias |
| organization | reference | Searches for locations that are managed by the provided organization |
| partof | reference | A location of which this location is a part |
Custom Parameters
| Name | Type | Description |
|---|---|---|
| end | date | Deprecated. Use date parameter with le prefix instead. |
| practitioner | reference | The practitioner ID to be used for the search. |
| start | date | Deprecated. Use date parameter with ge prefix instead. |
Search Examples
The POST method is recommended as it keeps health information out of the URL.
- Production
- Preview
curl -X POST https://fhir.netsmartcloud.com/v4/Location/_search \
-H "Authorization: {Bearer Token}" \
-H "Accept: application/fhir+json" \
-H "Content-Type: application/x-form-urlencoded" \
-d "address-city=Kansas City" \
curl -X POST https://fhirtest.netsmartcloud.com/v4/Location/_search \
-H "Authorization: {Bearer Token}" \
-H "Accept: application/fhir+json" \
-H "Content-Type: application/x-form-urlencoded" \
-d "address-city=Kansas City" \
Extended Operations
In addition to the standard operations described above, we have also implemented extended operations on the Location resource. These extended operations are not intended for CareRecord use as these operations bypass the CareRecords to communicate with FHIR directly.
Create Relay ($create-relay)
This is an experimental operation within CareConnect that is not yet supported by any Netsmart CareRecord or other solution.
The Resource Create Relay operation is used to relay requests to another FHIR server.
Read Relay ($read-relay)
This is an experimental operation within CareConnect that is not yet supported by any Netsmart CareRecord or other solution.
The Resource Read Relay operation is used to relay requests to another FHIR server.
Update Relay ($update-relay)
This is an experimental operation within CareConnect that is not yet supported by any Netsmart CareRecord or other solution.
The Resource Update Relay operation is used to relay requests to another FHIR server.
Search Relay ($search-relay)
This is an experimental operation within CareConnect that is not yet supported by any Netsmart CareRecord or other solution.
The Resource Search Relay operation is used to relay requests to another FHIR server.
Error Handling
For information about error responses when working with Location resources, see Common Errors.
Common Location-related errors include:
- Invalid location identifiers
- Unsupported location types or physical types
- Malformed address information
- Invalid organization or parent location references
Integration Patterns
Facility Directory
Search for healthcare facilities:
# Find locations by name
curl -X GET "https://fhir.netsmartcloud.com/v4/Location?name=emergency" \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json"
Geographic Search
Find locations by geographic criteria:
# Search by city and state
curl -X GET "https://fhir.netsmartcloud.com/v4/Location?address-city=Medical City&address-state=CA" \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json"
Organizational Hierarchy
Track location relationships:
# Get locations managed by organization
curl -X GET "https://fhir.netsmartcloud.com/v4/Location?organization=Organization/hospital-123" \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json"
Provider Networks
Find locations associated with practitioners:
# Get locations by practitioner
curl -X GET "https://fhir.netsmartcloud.com/v4/Location?practitioner=Practitioner/67890" \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json"
Relationships to Other Resources
The Location resource connects to many healthcare workflow resources:
- Organization - Organizations that manage locations
- Practitioner - Healthcare providers working at locations
- PractitionerRole - Roles practitioners have at specific locations
- Encounter - Clinical encounters occurring at locations
- Immunization - Vaccinations administered at locations
- Procedure - Procedures performed at locations
- Device - Medical devices located at facilities
Support
For questions about Location resource implementation or facility directory integration, contact Netsmart support through your designated support channels.