> ## 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.

# Create Allergies

> Documentation for the Create Allergies action for Elation

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

# Parameters

**Action** `Parameters`

**parameters**

**Patient ID** `string`

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

**Allergy Names** `[]string` *required*

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

**Reaction** `string`

`HI`
This field maps to the destination API `reaction` field.

**Severity** `elation.v1.Severity`

`HI`
This field maps to the destination API `severity` field.

```json Allowed Enumeration Values theme={null}
SEVERITY_MILD
SEVERITY_MODERATE
SEVERITY_SEVERE
SEVERITY_UNKNOWN
```

**Start Date** `values.v1.Date`

`HI`
This field maps to the destination API `start_date` field.

```json Result Object Example theme={null}
{
  "$result_object_key": [
    {
      "created_at": "2021-06-15T14:30:00Z",
      "id": "123456789",
      "name": "Peanuts",
      "patient_id": "64184451073",
      "reaction": "Hives",
      "severity": "SEVERITY_MODERATE",
      "start_date": "2020-05-20"
    }
  ]
}
```

```json Result Object Description theme={null}
{
  "$result_object_key": [
    {
      "created_at": "Timestamp when the allergy record was created.",
      "id": "Unique identifier for the allergy record.",
      "name": "Name of the allergen.",
      "patient_id": "ID of the patient this allergy belongs to.",
      "reaction": "Description of the allergic reaction.",
      "severity": "Severity of the allergic reaction.",
      "start_date": "The date of onset for the allergy."
    }
  ]
}
```

### 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`.

**\[]Allergy** `Fetch Action Response Object`

**fields**

**id** `string` *required*

`ID` Unique identifier for the allergy record.

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

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

**patient\_id** `string` *required*

`ID` ID of the patient this allergy belongs to.

```json CEL theme={null}
$result_object_key[*].patient_id
```

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

**name** `string` *required*

Name of the allergen.

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

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

**reaction** `string`

Description of the allergic reaction.

```json CEL theme={null}
$result_object_key[*].reaction
```

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

**severity** `elation.v1.Severity`

Severity of the allergic reaction.

```json CEL theme={null}
$result_object_key[*].severity
```

```json Example theme={null}
elation.v1.Severity.SEVERITY_MILD
elation.v1.Severity.SEVERITY_MODERATE
elation.v1.Severity.SEVERITY_SEVERE
elation.v1.Severity.SEVERITY_UNKNOWN
```

**start\_date** `values.v1.Date`

The date of onset for the allergy.

```json CEL theme={null}
$result_object_key[*].start_date
```

```json Example theme={null}
"2020-05-20"
```

**created\_at** `timing.v1.Timestamp` *required*

Timestamp when the allergy record was created.

```json CEL theme={null}
$result_object_key[*].created_at
```

```json Example theme={null}
"2021-06-15T14:30:00Z"
```


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