Skip to content
Partner Developer Portal

Definition

A Location represents a physical site belonging to an EMIS-X organisation, such as a main surgery or branch surgery. It provides the location’s name, postal address and contact details.

Locations are always accessed through their parent organisation, using the organisation’s EMIS GUID in the ERN format ern:emis:organisation:uuid:{guid}. A single location is read by its location GUID, and the $find operation returns the GUIDs of the organisation’s locations whose name contains the supplied text (case-insensitive). The organisation’s main location is also referenced from the Organization resource.

Every Location returned by the FHIR Platform declares the https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-location-1 profile in meta.profile.

Paths are relative to the FHIR Platform base URL. Every request needs a bearer token with the listed scope. Responses are application/fhir+json by default, or application/fhir+xml when requested in the Accept header. Errors are returned as an OperationOutcome.

GET /R4/1/Organization/ern:{Vendor}:organisation:{Type}:{Identifier}/Location/{LocationId}

Returns the location details for the given location GUID within an organisation.

  • Scope: fpx-org.read
  • Returns: Location
Name In Type Required Description
Vendor path string Yes The vendor system for the organisation identifier. Use emis.
Type path string Yes The identifier type for the organisation identifier. Use uuid.
Identifier path string Yes The EMIS organisation GUID that owns the location. Must be a valid, non-empty GUID.
LocationId path string Yes The location GUID (case-insensitive). Returns 404 Not Found if the organisation has no location with this GUID.
_elements query string No Comma-separated list of top-level elements to return (for example name). id and meta are always returned, and the response is marked with the SUBSETTED security label when filtering is applied.
{
"resourceType": "Location",
"id": "4985CF5F-3AFE-4A84-A17B-A249D9E07B2E",
"meta": {
"profile": [
"https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-location-1"
]
},
"name": "The Surgery",
"telecom": [
{ "system": "phone", "value": "01234 567890", "use": "work", "rank": 1 },
{
"system": "email",
"value": "info@thesurgery.example.com",
"use": "work",
"rank": 1
}
],
"address": {
"line": ["123 Main St"],
"city": "Anytown",
"state": "Anycounty",
"postalCode": "A1 2BC"
}
}
POST /R4/1/Organization/ern:{Vendor}:organisation:{Type}:{Identifier}/Location/$find

Returns the GUIDs of the organisation’s locations whose name matches the supplied criteria.

  • Scope: fpx-org.read
  • Returns: Parameters
  • OperationDefinition: https://fhir.partner.emis-x.uk/OperationDefinition/emis-x-location-find-1
Name In Type Required Description
Vendor path string Yes The vendor system for the organisation identifier. Use emis.
Type path string Yes The identifier type for the organisation identifier. Use uuid.
Identifier path string Yes The EMIS organisation GUID whose locations are searched.
Parameters body Parameters Yes A FHIR Parameters resource (application/fhir+json or application/fhir+xml) conforming to https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-location-find-input-1. meta.profile must contain exactly this URL and id must not be populated. The only supported parameter is name (valueString, not empty): locations whose name contains this text (case-insensitive) are returned. Any other parameter is rejected with 400 Bad Request. The response contains zero or more location-id parameters, each a valueUuid in the form urn:uuid:{guid}.
{
"resourceType": "Parameters",
"meta": {
"profile": [
"https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-location-find-input-1"
]
},
"parameter": [{ "name": "name", "valueString": "Surgery" }]
}
{
"resourceType": "Parameters",
"meta": {
"profile": [
"https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-location-find-output-1"
]
},
"parameter": [
{
"name": "location-id",
"valueUuid": "urn:uuid:4985cf5f-3afe-4a84-a17b-a249d9e07b2e"
}
]
}