---
title: Location Object
slug: location-object
createdAt: 2023-01-25T22:08:52.000Z
---

Locations describe a physical, geographical location representing an office for a practice.

Creating recommendations requires a `patient_id`, so a patient record must be created prior to creating a recommendation.

::::CodeDrawer{title="The Location Object" isResponseExpanded="false" autoGeneratedAnchorSlug="the-location-object" legacyHash="1jDbAyShE3LZpElj2A6S5"}
:::CodeblockTabsExamples
```json
{
    "location_id": 12345,
    "location_name": "Main Office",
    "city": "Chicago",
    "region_id": "IL",
    "country_id": "US",
    "address": [
        "Street Address",
        "Office Suite"
    ],
    "postcode": "",
    "telephone": "",
    "doctors":[{
        "doctor_id": 321,
        "doctor_name": "Dr. Wasserman",
        "email": "drwass@example.com",
        "first_name": "Jim",
        "last_name": "Wasserman",
        "telephone":""
    }]
}
```
:::

:::CodeblockTabsResponses
```javascript
```
:::
::::

:::ExpandableHeading{isOpen="true"}
## Core Attributes

**location\_id&#x20;**`integer`&#x20;
The main identifier for this object.

***

**location\_name&#x20;**`string`&#x20;
A human readable name for this location

***

**doctors&#x20;**`array`&#x20;
An array of doctor objects associated with this location. The array may be represented as empty if no doctors are associated. See the doctor object for detailed information.
:::

***

:::ExpandableHeading
### Additional Attributes

**address1&#x20;**`string`

Line 1 of a street address for the location

***

**address2&#x20;**`string`

Line 2 of a street address for the location

***

**city&#x20;**`string`

City name of the location

***

**postcode&#x20;**`string`

Geographical postal code for the location.

***

**region\_id&#x20;**`string`

2-letter state abbreviation

***

**country\_id&#x20;**`string`

2-letter country abbreviation

***

**telephone&#x20;**`string`

Main telephone number for the location
:::

