> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morf.health/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Pharmacy To Patient

> Documentation for the Add Pharmacy To Patient action for Healthie

![images/healthie.svg](https://mintcdn.com/morfhealth/EU2WCxuXGIUQcziR/images/healthie.svg?fit=max\&auto=format\&n=EU2WCxuXGIUQcziR\&q=85\&s=d168a24dbae69f2202ca63dd7aa2e1f3)

# Parameters

**Action** `Parameters`

**parameters**

**Patient ID** `string`

`ID`
This field maps to the destination API `patient_id` field.

**Pharmacy ID** `string`

`ID`
This field maps to the destination API `pharmacy_id` field.

**Address** `string`

`PII`
This field maps to the destination API `address` field.

**City** `string`

`PII`
This field maps to the destination API `city` field.

**Name** `string`

This field maps to the destination API `name` field.

**NCPDP ID** `string`

This field maps to the destination API `ncpdp_id` field.

**Phone or Fax** `string`

`PII`
This field maps to the destination API `phone_or_fax` field.

**Specialties** `[]string`

This field maps to the destination API `specialties` field.

**State** `string`

`PII`
This field maps to the destination API `state` field.

**Zip** `string`

`PII`
This field maps to the destination API `zip` field.

**Primary** `bool`

This field maps to the destination API `primary` field.

```json Result Object Example theme={null}
{
  "$result_object_key": {
    "city": "San Francisco",
    "id": "123456",
    "latitude": "37.7749",
    "line1": "123 Main St",
    "line2": "Suite 100",
    "longitude": "-122.4194",
    "name": "CVS Pharmacy",
    "phone_number": "+14155551234",
    "state": "CA",
    "zip": "94102"
  }
}
```

```json Result Object Description theme={null}
{
  "$result_object_key": {
    "city": "The city of the address",
    "id": "The unique identifier of the pharmacy",
    "latitude": "Latitude coordinate of the pharmacy",
    "line1": "The first line of the address",
    "line2": "The second line of the address",
    "longitude": "Longitude coordinate of the pharmacy",
    "name": "The name of the pharmacy",
    "phone_number": "The phone number of the pharmacy",
    "state": "The state of the address (Uses the 2 letter abbreviation if in US)",
    "zip": "The zip/postal code of the address"
  }
}
```

### Result Object Field Details

You can use the result of the action's data as inputs to downstream workflow actions.

Each fetch action requires an object name, which nests the action's result data inside the downstream data context in the workflow. See [Passing Data Between Actions](https://docs.morf.health/docs/knowledge_base/passing_data_between_actions.md) for how to set it and reference the result from downstream nodes.

Here we demonstrate how to refer to this data using the prefix `$result_object_key`.

**Pharmacy** `Fetch Action Response Object`

**fields**

**id** `string` *required*

The unique identifier of the pharmacy

```json CEL theme={null}
$result_object_key.id
```

```json Example theme={null}
"123456"
```

**city** `string`

The city of the address

```json CEL theme={null}
$result_object_key.city
```

```json Example theme={null}
"San Francisco"
```

**latitude** `string`

Latitude coordinate of the pharmacy

```json CEL theme={null}
$result_object_key.latitude
```

```json Example theme={null}
"37.7749"
```

**longitude** `string`

Longitude coordinate of the pharmacy

```json CEL theme={null}
$result_object_key.longitude
```

```json Example theme={null}
"-122.4194"
```

**line1** `string`

The first line of the address

```json CEL theme={null}
$result_object_key.line1
```

```json Example theme={null}
"123 Main St"
```

**line2** `string`

The second line of the address

```json CEL theme={null}
$result_object_key.line2
```

```json Example theme={null}
"Suite 100"
```

**name** `string`

The name of the pharmacy

```json CEL theme={null}
$result_object_key.name
```

```json Example theme={null}
"CVS Pharmacy"
```

**phone\_number** `string`

The phone number of the pharmacy

```json CEL theme={null}
$result_object_key.phone_number
```

```json Example theme={null}
"+14155551234"
```

**state** `string`

The state of the address (Uses the 2 letter abbreviation if in US)

```json CEL theme={null}
$result_object_key.state
```

```json Example theme={null}
"CA"
```

**zip** `string`

The zip/postal code of the address

```json CEL theme={null}
$result_object_key.zip
```

```json Example theme={null}
"94102"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.