Get a location

get

/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

Query Parameters
  • 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.
  • 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" ]
  • 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" ]
  • 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).
  • 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.
  • 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
  • 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, either INBOUND or OUTBOUND.
    • VALUE is the alias value that uniquely identifies the location.

    Note:

    • SYSTEM is optional.
    • TYPE is optional. If no TYPE is provided, then both INBOUND and OUTBOUND 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.

  • The name of the location to retrieve. Locations with names matching the supplied name are returned. This name is case insensitive.
  • 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 supplied organizationIds and organizationRestriction.
  • 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 a 400 (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" ]
  • Minimum Length: 1
    For list pagination. The value of the opc-next-page response header from the previous List request.
  • The postal code of the locations to retrieve. This value can be partial.
  • The state name of the locations to retrieve. The state name can be a partial name or partial abbreviation. This name is case insensitive.
  • 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.
  • 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.

Header Parameters
  • The URI of the standard used for mapping relationships between Oracle Health EHR and an external system.
  • 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.
Back to Top

Response

Supported Media Types

200 Response

Success
  • Locations matching the request are returned in the locations list.
  • If no locations match the request, an empty locations list is returned.
Body ()
Root Schema : LocationCollection
Type: object
Response that contains a collection of locations retrieved along with a collection of diagnostic events.
Show Source
Nested Schema : diagnostics
Type: array
Collection of diagnostic events.
Show Source
Nested Schema : items
Type: array
The collection of locations that were retrieved.
Show Source
Nested Schema : DiagnosticEvent
Type: object
The details of this diagnostic event.
Show Source
  • The field within the parameters or criteria body that caused the event.
  • An event message that is useful for troubleshooting.
  • 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.
  • The value associated with the field or type.
Nested Schema : LocationSummary
Type: object
The details of the location that were retrieved.
Show Source
Nested Schema : addresses
Type: array
A collection of address details for the location.
Show Source
Nested Schema : aliases
Type: array
A collection of aliases that identify the location. Aliases are grouped by type and ordered by system.
Show Source
Nested Schema : attributes
Type: array
A collection of location descriptors.
Show Source
Nested Schema : DateTimePeriod
Type: object
A representation of a date and time range.
Show Source
  • 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.
  • 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.
Nested Schema : Organization
Type: object

The organization associated with the patient and encounter.

Only loaded for inbox list and message details views when the OptionalShouldLoadOrganizationSummary is set.

Show Source
Nested Schema : ParentLocation
Type: object
The details of a parent location.
Show Source
  • 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.
Nested Schema : telecoms
Type: array
A collection of contact details, for example, telephone number or fax, for the location.
Show Source
Nested Schema : TimeZone
Type: object
The time zone information of the location.
Show Source
Nested Schema : CodeValueSimple
Type: object
A minimal representation of a code value.
Show Source
Nested Schema : Update
Type: object
Meta information about a resource.
Show Source
Nested Schema : Address
Type: object
A postal address.
Show Source
Nested Schema : MultivalueField
Type: object
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.
Show Source
Nested Schema : Alias
Type: object
An alias for another concept.
Show Source
Nested Schema : Attribute
Type: object
Location descriptor.
Show Source
Nested Schema : value
Type: object
  • If valueType is type CODE, the value is a system identifier.
  • If valueType is type NUMBER or STRING, the value is a string representation of a number or a string value.
Example:
{
    "display":"ICU",
    "id":"20140688",
    "meaning":"ICU"
}
Nested Schema : orgTypes
Type: array
List of the organization types.
Show Source
Nested Schema : Telecom
Type: object
A contact detail (such as a telephone number) by which the party may be contacted.
Show Source

400 Response

Bad Request
Headers
  • 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.
Body ()
Root Schema : ApiError
Type: object
Error information.
Show Source
Nested Schema : details
Type: array
A list of details regarding any errors from the resulting service call.
Show Source
Nested Schema : ErrorDetail
Type: object
Additional detail information pertaining to the error.
Show Source
Nested Schema : ErrorDetailSource
Type: object
An object containing references to the source of the error.
Show Source
  • headers
    A list of the request headers which caused the error.
  • parameters
    A list of which URI query parameters caused the error.
  • 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.

Nested Schema : headers
Type: array
A list of the request headers which caused the error.
Show Source
Nested Schema : parameters
Type: array
A list of which URI query parameters caused the error.
Show Source
Nested Schema : pointers
Type: 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.

Show Source

401 Response

Unauthorized
Headers
  • 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.
Body ()
Root Schema : ApiError
Type: object
Error information.
Show Source
Nested Schema : details
Type: array
A list of details regarding any errors from the resulting service call.
Show Source
Nested Schema : ErrorDetail
Type: object
Additional detail information pertaining to the error.
Show Source
Nested Schema : ErrorDetailSource
Type: object
An object containing references to the source of the error.
Show Source
  • headers
    A list of the request headers which caused the error.
  • parameters
    A list of which URI query parameters caused the error.
  • 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.

Nested Schema : headers
Type: array
A list of the request headers which caused the error.
Show Source
Nested Schema : parameters
Type: array
A list of which URI query parameters caused the error.
Show Source
Nested Schema : pointers
Type: 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.

Show Source

403 Response

NotAuthorized
Headers
  • 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.
Body ()
Root Schema : ApiError
Type: object
Error information.
Show Source
Nested Schema : details
Type: array
A list of details regarding any errors from the resulting service call.
Show Source
Nested Schema : ErrorDetail
Type: object
Additional detail information pertaining to the error.
Show Source
Nested Schema : ErrorDetailSource
Type: object
An object containing references to the source of the error.
Show Source
  • headers
    A list of the request headers which caused the error.
  • parameters
    A list of which URI query parameters caused the error.
  • 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.

Nested Schema : headers
Type: array
A list of the request headers which caused the error.
Show Source
Nested Schema : parameters
Type: array
A list of which URI query parameters caused the error.
Show Source
Nested Schema : pointers
Type: 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.

Show Source

412 Response

Precondition Failed
Headers
  • 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.
Body ()
Root Schema : ApiError
Type: object
Error information.
Show Source
Nested Schema : details
Type: array
A list of details regarding any errors from the resulting service call.
Show Source
Nested Schema : ErrorDetail
Type: object
Additional detail information pertaining to the error.
Show Source
Nested Schema : ErrorDetailSource
Type: object
An object containing references to the source of the error.
Show Source
  • headers
    A list of the request headers which caused the error.
  • parameters
    A list of which URI query parameters caused the error.
  • 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.

Nested Schema : headers
Type: array
A list of the request headers which caused the error.
Show Source
Nested Schema : parameters
Type: array
A list of which URI query parameters caused the error.
Show Source
Nested Schema : pointers
Type: 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.

Show Source

429 Response

Too Many Requests
Headers
  • 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.
Body ()
Root Schema : ApiError
Type: object
Error information.
Show Source
Nested Schema : details
Type: array
A list of details regarding any errors from the resulting service call.
Show Source
Nested Schema : ErrorDetail
Type: object
Additional detail information pertaining to the error.
Show Source
Nested Schema : ErrorDetailSource
Type: object
An object containing references to the source of the error.
Show Source
  • headers
    A list of the request headers which caused the error.
  • parameters
    A list of which URI query parameters caused the error.
  • 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.

Nested Schema : headers
Type: array
A list of the request headers which caused the error.
Show Source
Nested Schema : parameters
Type: array
A list of which URI query parameters caused the error.
Show Source
Nested Schema : pointers
Type: 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.

Show Source

500 Response

Internal Server Error
Headers
  • 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.
Body ()
Root Schema : ApiError
Type: object
Error information.
Show Source
Nested Schema : details
Type: array
A list of details regarding any errors from the resulting service call.
Show Source
Nested Schema : ErrorDetail
Type: object
Additional detail information pertaining to the error.
Show Source
Nested Schema : ErrorDetailSource
Type: object
An object containing references to the source of the error.
Show Source
  • headers
    A list of the request headers which caused the error.
  • parameters
    A list of which URI query parameters caused the error.
  • 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.

Nested Schema : headers
Type: array
A list of the request headers which caused the error.
Show Source
Nested Schema : parameters
Type: array
A list of which URI query parameters caused the error.
Show Source
Nested Schema : pointers
Type: 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.

Show Source
Back to Top