Get a location
/20240101/locations
Retrieves details about a location using the location identifiers or the provided query parameters. You can provide parts to filter the location data included in the response. If no parts are provided, all location data is returned.
Although not required, Oracle Cerner recommends providing the parts corresponding with the fields that consuming applications process. This recommendation is in place to reduce the size of the response payload and to improve system efficiency.
Request
-
city: string
The city name of the locations to retrieve. The city name can be a partial name. This name is case insensitive. You must supply either state or postalCode when you search by city.
-
excludedFields: array[string]
Collection Format:
multi
This parameter determines the fields of the location data model that are excluded from the response. All fields are returned if the
excludedFields
parameter is not supplied.attributes
: A collection of properties that describe the location.telecoms
: A contact detail, for example, a telephone number or fax, by which the party may be contacted.addresses
: The location addresses. Only a business address is returned.timezone
: The time zone information of the location.aliases
: The aliases that identify the location.
Allowed Values:[ "attributes", "telecoms", "addresses", "timezone", "aliases" ]
-
fields: array[string]
Collection Format:
multi
This parameter determines the fields of the location data model that are included in the response. All fields are returned if the fields parameter is not supplied.
Oracle Cerner recommends that you use the
fields
parameter to retrieve exactly what you need to reduce both the response and transaction times.attributes
: A collection of properties that describe the location.telecoms
: A contact detail, for example, a telephone number or fax, by which the party may be contacted.addresses
: The location addresses. Only a business address is returned.timezone
: The time zone information of the location.aliases
: The aliases which identify the location.
Allowed Values:[ "attributes", "telecoms", "addresses", "timezone", "aliases" ]
-
freetextAddress: string
The street name, city name, state name, or postal code. This value is case insensitive and can be partial. This value cannot be used together with the discrete address fields (street, city, state, or postalCode).
-
id(required): array[string]
Collection Format:
multi
Minimum Number of Items:0
Maximum Number of Items:100
Unique Items Required:true
The collection of IDs uniquely identifying the locations. Valid location IDs are a positive, a non-floating point, and numerical values. -
limit: integer
Minimum Value:
1000
Maximum Value:1000
For list pagination. The maximum number of results per page, or items to return in a paginated List request.Default Value:1000
-
localAlias: array[string]
Collection Format:
multi
Minimum Number of Items:0
Maximum Number of Items:100
Unique Items Required:true
The collection of local aliases uniquely identifying one or more locations to retrieve. This value is a string composed of the contributor source, alias type, and alias value in the following format:
SYSTEM$TYPE|VALUE
where
SYSTEM
is associated with the alias. Acceptable values include an ID of the contributor source or a meaning of the contributor source.TYPE
is the type of alias, eitherINBOUND
orOUTBOUND
.VALUE
is the alias value that uniquely identifies the location.
Note:
SYSTEM
is optional.TYPE
is optional. If noTYPE
is provided, then bothINBOUND
andOUTBOUND
aliases are searched.
Examples for finding the location with different aliases:
- 3310545$INBOUND|N457: Retrieves locations using inbound, contributor source cd, and alias value.
- OUTBOUND|119: Retrieves locations using outbound and alias value.
- SDV_STD_SRC|SE162321000255-O24215: Retrieves locations using a meaning of contributor source and alias value.
- SE162321000255-O24215: Retrieves locations using alias value.
-
name: string
The name of the location to retrieve. Locations with names matching the supplied name are returned. This name is case insensitive.
-
organizationId: array[string]
Collection Format:
multi
Minimum Number of Items:0
Maximum Number of Items:10
Unique Items Required:true
The collection of organization IDs of the locations to retrieve. Valid organization IDs are a positive, a non-floating point, and numerical values. The locations returned depend upon the suppliedorganizationId
s andorganizationRestriction
. -
organizationRestriction: string
Restrict which locations are retrieved based on whether the organization is accessible by the current user. Defaults to
UNRESTRICTED
if not set. If an invalid value is set, then a400
(Bad Request) status code is returned.ACCESSIBLE_ONLY
: Retrieve only locations with accessible organizations.ACCESSIBLE_AND_NO_ORG
: Retrieve locations that have accessible organizations and locations that do not have an organization.UNRESTRICTED
: Do not apply any filtering based on organization accessibility.
Default Value:UNRESTRICTED
Allowed Values:[ "ACCESSIBLE_ONLY", "ACCESSIBLE_AND_NO_ORG", "UNRESTRICTED" ]
-
page: string
Minimum Length:
1
For list pagination. The value of the opc-next-page response header from the previous List request. -
postalCode: string
The postal code of the locations to retrieve. This value can be partial.
-
state: string
The state name of the locations to retrieve. The state name can be a partial name or partial abbreviation. This name is case insensitive.
-
street: string
The street name of the locations to retrieve. The street name can be a partial name. This name is case insensitive. You must supply either state or postalCode when you search by street.
-
type: array[string]
Collection Format:
multi
Minimum Number of Items:0
Maximum Number of Items:15
A collection of identifiers that specify types of locations to retrieve.
Valid Location Types
- PATIENTCAREFACILITY: Any location facility that is also a patient care facility.
- Any Location Type CDF Meaning from Code Set 222.
-
oh-identifier-mapping-scope: string
The URI of the standard used for mapping relationships between Oracle Health EHR and an external system.
-
opc-request-id: string
Unique Oracle Cerner-assigned identifier for the request. If you need to contact Oracle Cerner about a particular request, you must provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.
Response
- application/json
200 Response
- Locations matching the request are returned in the locations list.
- If no locations match the request, an empty locations list is returned.
object
-
diagnostics:
array diagnostics
Collection of diagnostic events.
-
items(required):
array items
The collection of locations that were retrieved.
array
-
Array of:
object DiagnosticEvent
The details of this diagnostic event.
array
-
Array of:
object LocationSummary
The details of the location that were retrieved.
object
-
field:
string
The field within the parameters or criteria body that caused the event.
-
message:
string
An event message that is useful for troubleshooting.
-
type(required):
string
Allowed Values:
[ "INVALID_PARAMETER", "MAPPING_NOT_FOUND", "MAPPING_SERVICE_FAILURE", "REQUEST_API_LIMIT_EXCEEDED", "RESOURCE_NOT_FOUND", "MAPPING_SCOPE_NOT_RECOGNIZED" ]
String representing the event type. -
value:
string
The value associated with the field or type.
object
-
addresses:
array addresses
A collection of address details for the location.
-
aliases:
array aliases
A collection of aliases that identify the location. Aliases are grouped by type and ordered by system.
-
attributes:
array attributes
A collection of location descriptors.
-
description(required):
string
The description of the location.
-
effective(required):
object DateTimePeriod
A representation of a date and time range.
-
id(required):
string
The unique identifier for the location.
-
isPatientCareLocation(required):
boolean
True if the location is a patient care location and false if it is not.
-
name(required):
string
A display name of the location.
-
organization:
object Organization
The organization associated with the patient and encounter.
Only loaded for inbox list and message details views when the OptionalShouldLoadOrganizationSummary is set.
-
parentLocation:
object ParentLocation
The details of a parent location.
-
status(required):
string
Allowed Values:
[ "ACTIVE", "INACTIVE", "DELETED", "COMBINED" ]
Indicates the status of the location. -
telecoms:
array telecoms
A collection of contact details, for example, telephone number or fax, for the location.
-
timezone:
object TimeZone
The time zone information of the location.
-
type(required):
object CodeValueSimple
A minimal representation of a code value.
-
update(required):
object Update
Meta information about a resource.
array
-
Array of:
object Address
A postal address.
array
-
Array of:
object Alias
An alias for another concept.
array
-
Array of:
object Attribute
Location descriptor.
object
-
end:
string
The date and time represented in YYYY-MM-DDTHH:MM:SS:SSSZ format without the UTC offset as defined by RFC 3339. No time zone information is associated with this date and time.
-
start:
string
The date and time represented in YYYY-MM-DDTHH:MM:SS:SSSZ format without the UTC offset as defined by RFC 3339. No time zone information is associated with this date and time.
object
The organization associated with the patient and encounter.
Only loaded for inbox list and message details views when the OptionalShouldLoadOrganizationSummary is set.
-
display:
string
The display name for the organization.
-
id(required):
string
The unique identifier for the organization.
-
orgTypes:
array orgTypes
List of the organization types.
object
-
id:
string
The unique identifier of the parent location. This is the parent location with a root code of 0. If multiple parents have a root code of 0, the child organization is disqualified and not returned.
array
-
Array of:
object Telecom
A contact detail (such as a telephone number) by which the party may be contacted.
object
-
value:
string
The time zone value for the location.
object
-
cdfMeaning:
string
A programmatic value, primarily used by applications to search for this value.
-
display:
string
The text consumers see that represents this code value.
-
id(required):
string
The ID of the code value.
object
-
lastModifiedDateTime(required):
string(date-time)
The date and time in ISO-8601 format of the last changed date and time of the resource.
-
version(required):
integer(int64)
The count specific identifier of the resource.
object
-
city:
string
The text name of the city associated with the address.
-
country:
object MultivalueField
A field that can be represented by multiple values (one of which could be code value). Currently, only code value and free-text name are supported.
-
county:
object MultivalueField
A field that can be represented by multiple values (one of which could be code value). Currently, only code value and free-text name are supported.
-
postalCode:
string
A postal code designating a region defined by the postal service.
-
state:
object MultivalueField
A field that can be represented by multiple values (one of which could be code value). Currently, only code value and free-text name are supported.
-
street1:
string
The first line of the street address.
-
street2:
string
The second line of the street address.
-
street3:
string
The third line of the street address.
-
street4:
string
The fourth line of the street address.
-
type:
object CodeValueSimple
A minimal representation of a code value.
object
-
codeValue:
object CodeValueSimple
A minimal representation of a code value.
-
displayName:
string
The displayable free-text name of the field.
object
-
dateTimePeriod:
object DateTimePeriod
A representation of a date and time range.
-
displayName(required):
string
The displayable name for the alias.
-
id(required):
string
The unique identifier for the alias.
-
systemIdentifier:
object CodeValueSimple
A minimal representation of a code value.
-
systemNamespace:
string
The namespace URI with a set of possible system identifier values that are unique.
-
type:
object CodeValueSimple
A minimal representation of a code value.
object
-
description:
string
Location description.Example:
ICU
-
type(required):
object CodeValueSimple
A minimal representation of a code value.
-
value(required):
object value
- If
valueType
is typeCODE
, the value is a system identifier. - If
valueType
is typeNUMBER
orSTRING
, the value is a string representation of a number or a string value.
- If
-
valueType(required):
string
Allowed Values:
[ "CODE", "NUMBER", "STRING" ]
Value type (CODE/NUMBER/STRING) of attribute.
object
- If
valueType
is typeCODE
, the value is a system identifier. - If
valueType
is typeNUMBER
orSTRING
, the value is a string representation of a number or a string value.
{
"display":"ICU",
"id":"20140688",
"meaning":"ICU"
}
object
-
contact:
object CodeValueSimple
A minimal representation of a code value.
-
extension:
string
The extension associated with this contact.
-
format:
object CodeValueSimple
A minimal representation of a code value.
-
id(required):
string
The unique Millennium Platform identifier for the telecommunication.
-
type:
object CodeValueSimple
A minimal representation of a code value.
-
value(required):
string
The actual contact point details such as phone number or fax number.
400 Response
-
opc-request-id: string
Unique Oracle Cerner-assigned identifier for the request. If you need to contact Oracle Cerner about a particular request, you must provide the request ID.
object
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
details:
array details
A list of details regarding any errors from the resulting service call.
-
message(required):
string
A human-readable error message.
array
-
Array of:
object ErrorDetail
Additional detail information pertaining to the error.
object
-
detail:
string
A human-readable explanation specific to this occurrence of the problem.
-
source:
object ErrorDetailSource
An object containing references to the source of the error.
object
-
headers:
array headers
A list of the request headers which caused the error.
-
parameters:
array parameters
A list of which URI query parameters caused the error.
-
pointers:
array pointers
A list of JSON Pointers (RFC6901) to the values in the request document that caused the error.
For example,
/data
for a primary data object, or/data/attributes/title
for a specific attribute. A JSON pointer must point to a value in the request document that exists; if it does not, ignore the pointer.
array
array
array
A list of JSON Pointers (RFC6901) to the values in the request document that caused the error.
For example, /data
for a primary data object, or /data/attributes/title
for a specific attribute. A JSON pointer must
point to a value in the request document that exists; if it does not, ignore the pointer.
401 Response
-
opc-request-id: string
Unique Oracle Cerner-assigned identifier for the request. If you need to contact Oracle Cerner about a particular request, you must provide the request ID.
object
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
details:
array details
A list of details regarding any errors from the resulting service call.
-
message(required):
string
A human-readable error message.
array
-
Array of:
object ErrorDetail
Additional detail information pertaining to the error.
object
-
detail:
string
A human-readable explanation specific to this occurrence of the problem.
-
source:
object ErrorDetailSource
An object containing references to the source of the error.
object
-
headers:
array headers
A list of the request headers which caused the error.
-
parameters:
array parameters
A list of which URI query parameters caused the error.
-
pointers:
array pointers
A list of JSON Pointers (RFC6901) to the values in the request document that caused the error.
For example,
/data
for a primary data object, or/data/attributes/title
for a specific attribute. A JSON pointer must point to a value in the request document that exists; if it does not, ignore the pointer.
array
array
array
A list of JSON Pointers (RFC6901) to the values in the request document that caused the error.
For example, /data
for a primary data object, or /data/attributes/title
for a specific attribute. A JSON pointer must
point to a value in the request document that exists; if it does not, ignore the pointer.
403 Response
-
opc-request-id: string
Unique Oracle Cerner-assigned identifier for the request. If you need to contact Oracle Cerner about a particular request, you must provide the request ID.
object
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
details:
array details
A list of details regarding any errors from the resulting service call.
-
message(required):
string
A human-readable error message.
array
-
Array of:
object ErrorDetail
Additional detail information pertaining to the error.
object
-
detail:
string
A human-readable explanation specific to this occurrence of the problem.
-
source:
object ErrorDetailSource
An object containing references to the source of the error.
object
-
headers:
array headers
A list of the request headers which caused the error.
-
parameters:
array parameters
A list of which URI query parameters caused the error.
-
pointers:
array pointers
A list of JSON Pointers (RFC6901) to the values in the request document that caused the error.
For example,
/data
for a primary data object, or/data/attributes/title
for a specific attribute. A JSON pointer must point to a value in the request document that exists; if it does not, ignore the pointer.
array
array
array
A list of JSON Pointers (RFC6901) to the values in the request document that caused the error.
For example, /data
for a primary data object, or /data/attributes/title
for a specific attribute. A JSON pointer must
point to a value in the request document that exists; if it does not, ignore the pointer.
412 Response
-
opc-request-id: string
Unique Oracle Cerner-assigned identifier for the request. If you need to contact Oracle Cerner about a particular request, you must provide the request ID.
object
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
details:
array details
A list of details regarding any errors from the resulting service call.
-
message(required):
string
A human-readable error message.
array
-
Array of:
object ErrorDetail
Additional detail information pertaining to the error.
object
-
detail:
string
A human-readable explanation specific to this occurrence of the problem.
-
source:
object ErrorDetailSource
An object containing references to the source of the error.
object
-
headers:
array headers
A list of the request headers which caused the error.
-
parameters:
array parameters
A list of which URI query parameters caused the error.
-
pointers:
array pointers
A list of JSON Pointers (RFC6901) to the values in the request document that caused the error.
For example,
/data
for a primary data object, or/data/attributes/title
for a specific attribute. A JSON pointer must point to a value in the request document that exists; if it does not, ignore the pointer.
array
array
array
A list of JSON Pointers (RFC6901) to the values in the request document that caused the error.
For example, /data
for a primary data object, or /data/attributes/title
for a specific attribute. A JSON pointer must
point to a value in the request document that exists; if it does not, ignore the pointer.
429 Response
-
opc-request-id: string
Unique Oracle Cerner-assigned identifier for the request. If you need to contact Oracle Cerner about a particular request, you must provide the request ID.
object
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
details:
array details
A list of details regarding any errors from the resulting service call.
-
message(required):
string
A human-readable error message.
array
-
Array of:
object ErrorDetail
Additional detail information pertaining to the error.
object
-
detail:
string
A human-readable explanation specific to this occurrence of the problem.
-
source:
object ErrorDetailSource
An object containing references to the source of the error.
object
-
headers:
array headers
A list of the request headers which caused the error.
-
parameters:
array parameters
A list of which URI query parameters caused the error.
-
pointers:
array pointers
A list of JSON Pointers (RFC6901) to the values in the request document that caused the error.
For example,
/data
for a primary data object, or/data/attributes/title
for a specific attribute. A JSON pointer must point to a value in the request document that exists; if it does not, ignore the pointer.
array
array
array
A list of JSON Pointers (RFC6901) to the values in the request document that caused the error.
For example, /data
for a primary data object, or /data/attributes/title
for a specific attribute. A JSON pointer must
point to a value in the request document that exists; if it does not, ignore the pointer.
500 Response
-
opc-request-id: string
Unique Oracle Cerner-assigned identifier for the request. If you need to contact Oracle Cerner about a particular request, you must provide the request ID.
object
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
details:
array details
A list of details regarding any errors from the resulting service call.
-
message(required):
string
A human-readable error message.
array
-
Array of:
object ErrorDetail
Additional detail information pertaining to the error.
object
-
detail:
string
A human-readable explanation specific to this occurrence of the problem.
-
source:
object ErrorDetailSource
An object containing references to the source of the error.
object
-
headers:
array headers
A list of the request headers which caused the error.
-
parameters:
array parameters
A list of which URI query parameters caused the error.
-
pointers:
array pointers
A list of JSON Pointers (RFC6901) to the values in the request document that caused the error.
For example,
/data
for a primary data object, or/data/attributes/title
for a specific attribute. A JSON pointer must point to a value in the request document that exists; if it does not, ignore the pointer.
array
array
array
A list of JSON Pointers (RFC6901) to the values in the request document that caused the error.
For example, /data
for a primary data object, or /data/attributes/title
for a specific attribute. A JSON pointer must
point to a value in the request document that exists; if it does not, ignore the pointer.