> ## 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 Or Update Patient

> Documentation for the Create Or Update Patient action for Cerbo

![images/cerbo.svg](https://mintlify.s3.us-west-1.amazonaws.com/morfhealth/images/cerbo.svg)

# Parameters

**Action** `Parameters`

**parameters**

**ID** `string`

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

**First Name** `string` *required*

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

**Last Name** `string` *required*

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

**Sex** `cerbo.v1.PatientSex` *required*

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

```json Allowed Enumeration Values theme={null}
MALE
FEMALE
OTHER
```

**Date Of Birth** `values.v1.Date` *required*

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

```json Result Object Example theme={null}
{
  "$result_object_key": {
    "date_of_birth": "1990-01-01",
    "first_name": "John",
    "id": "5563",
    "last_name": "Doe",
    "sex": "F"
  }
}
```

```json Result Object Description theme={null}
{
  "$result_object_key": {
    "date_of_birth": "Date of Birth",
    "first_name": "First Name",
    "id": "Patient ID",
    "last_name": "Last Name",
    "sex": "Sex"
  }
}
```

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

**Patient** `Fetch Action Response Object`

**fields**

**id** `string` *required*

`ID` Patient ID

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

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

**first\_name** `string`

`PII` First Name

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

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

**last\_name** `string`

`PII` Last Name

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

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

**date\_of\_birth** `values.v1.Date`

`PII` Date of Birth

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

```json Example theme={null}
"1990-01-01"
```

**sex** `cerbo.v1.PatientSex`

Sex

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

```json Example theme={null}
cerbo.v1.PatientSex.MALE
cerbo.v1.PatientSex.FEMALE
cerbo.v1.PatientSex.OTHER
```


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