> ## 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 Drug Intolerances

> Documentation for the Create Drug Intolerances 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.

**Drug 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` *required*

`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": [
    {
      "id": "123456789",
      "is_inactive": false,
      "name": "Penicillin",
      "patient_id": "64184451073",
      "reaction": "Rash",
      "severity": "SEVERITY_MILD",
      "start_date": "2023-01-15"
    }
  ]
}
```

```json Result Object Description theme={null}
{
  "$result_object_key": [
    {
      "id": "Unique identifier for the drug intolerance record.",
      "is_inactive": "Indicates if the drug intolerance is currently inactive.",
      "name": "Name of the drug that causes the intolerance.",
      "patient_id": "ID of the patient this drug intolerance belongs to.",
      "reaction": "Description of the reaction experienced.",
      "severity": "Severity of the intolerance reaction.",
      "start_date": "The date of onset for the drug intolerance."
    }
  ]
}
```

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

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

**fields**

**id** `string` *required*

`ID` Unique identifier for the drug intolerance record.

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

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

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

`ID` ID of the patient this drug intolerance belongs to.

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

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

**name** `string` *required*

Name of the drug that causes the intolerance.

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

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

**reaction** `string`

Description of the reaction experienced.

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

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

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

Severity of the intolerance 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 drug intolerance.

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

```json Example theme={null}
"2023-01-15"
```

**is\_inactive** `bool` *required*

Indicates if the drug intolerance is currently inactive.

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

```json Example theme={null}
false
```


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