# Push Diagnosis Codes

> Perform Push Diagnosis Codes through Brightree.

Source: [https://genhealth.ai/docs/workflows/integrations/brightree/brightree_push_diagnosis_codes_to_patient](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_push_diagnosis_codes_to_patient)

Integration: [Brightree](https://genhealth.ai/docs/workflows/integrations/brightree.md)

- Handler: `brightree_push_diagnosis_codes_to_patient`

- Connection type: `brightree`

## Inputs

- `patient_key` — Patient Key (expression, required)
  Required literal value or workflow expression.
- `diagnosis_codes` — Diagnosis Codes (expression)
  Optional literal value or workflow expression.
- `document_id` — Document Id (expression)
  Optional literal value or workflow expression.

## Outputs

- `success` — Success
- `document_id` — Document Id
- `patient_key` — Patient Key
- `pushed` — Pushed
- `icd10_added` — Icd10 Added
- `icd9_added` — Icd9 Added
- `icd10_duplicates` — Icd10 Duplicates
- `icd9_duplicates` — Icd9 Duplicates
- `icd10_failed` — Icd10 Failed
- `icd9_failed` — Icd9 Failed
- `icd10_no_slot` — Icd10 No Slot
- `icd9_no_slot` — Icd9 No Slot
- `message` — Message
- `error_message` — Error Message

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `write`
- Confirmation recommended: no
- Retry safe: no
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "required": [
    "patient_key"
  ],
  "properties": {
    "document_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_key": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "diagnosis_codes": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "pushed": {},
    "message": {},
    "success": {},
    "icd9_added": {},
    "document_id": {},
    "icd10_added": {},
    "icd9_failed": {},
    "patient_key": {},
    "icd10_failed": {},
    "icd9_no_slot": {},
    "error_message": {},
    "icd10_no_slot": {},
    "icd9_duplicates": {},
    "icd10_duplicates": {}
  },
  "additionalProperties": true
}
```
