# Cori integration

> Build workflow automations with 11 public Cori actions.

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

## Available actions

11 actions. Connection types: cori.

### [Cancel Referral](https://genhealth.ai/docs/workflows/integrations/cori/cori_cancel_referral.md)

- Handler: `cori_cancel_referral`
- Connection type: `cori`
- External effect: `write`
- Inputs: `referral_id`
- Outputs: `success`, `operation`, `data`, `referral_id`, `document_id`, `s3_path`, `cori_url`, `error`, `error_kind`, `indeterminate`, `retryable`, `was_existing`, `already_submitted`

Perform Cancel Referral through Cori.

### [Create Referral Draft](https://genhealth.ai/docs/workflows/integrations/cori/cori_create_referral.md)

- Handler: `cori_create_referral`
- Connection type: `cori`
- External effect: `write`
- Inputs: `client_submission_key`, `patient_first_name`, `patient_last_name`, `date_of_birth`, `address_line_1`, `address_line_2`, `city`, `state`, `postal_code`, `phone`, `gender`, `doctor_name`, `doctor_npi`, `payer_name`, `policy_number`, `diagnosis_codes`, `due_date`, `priority`, `notes`, `destination`, `owner`, `submitted_by_name`, `submitted_by_email`, `brightree_patient_ref`, `brightree_order_ref`, `lines`
- Outputs: `success`, `operation`, `data`, `referral_id`, `document_id`, `s3_path`, `cori_url`, `error`, `error_kind`, `indeterminate`, `retryable`, `was_existing`, `already_submitted`

Perform Create Referral Draft through Cori.

### [Download Document](https://genhealth.ai/docs/workflows/integrations/cori/cori_download_document.md)

- Handler: `cori_download_document`
- Connection type: `cori`
- External effect: `write`
- Inputs: `referral_id`, `document_id`
- Outputs: `success`, `operation`, `data`, `referral_id`, `document_id`, `s3_path`, `cori_url`, `error`, `error_kind`, `indeterminate`, `retryable`, `was_existing`, `already_submitted`

Perform Download Document through Cori.

### [Get Document](https://genhealth.ai/docs/workflows/integrations/cori/cori_get_document.md)

- Handler: `cori_get_document`
- Connection type: `cori`
- External effect: `read`
- Inputs: `referral_id`, `document_id`
- Outputs: `success`, `operation`, `data`, `referral_id`, `document_id`, `s3_path`, `cori_url`, `error`, `error_kind`, `indeterminate`, `retryable`, `was_existing`, `already_submitted`

Perform Get Document through Cori.

### [Get Referral](https://genhealth.ai/docs/workflows/integrations/cori/cori_get_referral.md)

- Handler: `cori_get_referral`
- Connection type: `cori`
- External effect: `read`
- Inputs: `referral_id`
- Outputs: `success`, `operation`, `data`, `referral_id`, `document_id`, `s3_path`, `cori_url`, `error`, `error_kind`, `indeterminate`, `retryable`, `was_existing`, `already_submitted`

Perform Get Referral through Cori.

### [Get Referral Status](https://genhealth.ai/docs/workflows/integrations/cori/cori_get_referral_status.md)

- Handler: `cori_get_referral_status`
- Connection type: `cori`
- External effect: `read`
- Inputs: `referral_id`
- Outputs: `success`, `operation`, `data`, `referral_id`, `document_id`, `s3_path`, `cori_url`, `error`, `error_kind`, `indeterminate`, `retryable`, `was_existing`, `already_submitted`

Perform Get Referral Status through Cori.

### [List Referral Documents](https://genhealth.ai/docs/workflows/integrations/cori/cori_list_documents.md)

- Handler: `cori_list_documents`
- Connection type: `cori`
- External effect: `read`
- Inputs: `referral_id`
- Outputs: `success`, `operation`, `data`, `referral_id`, `document_id`, `s3_path`, `cori_url`, `error`, `error_kind`, `indeterminate`, `retryable`, `was_existing`, `already_submitted`

Perform List Referral Documents through Cori.

### [List Referrals](https://genhealth.ai/docs/workflows/integrations/cori/cori_list_referrals.md)

- Handler: `cori_list_referrals`
- Connection type: `cori`
- External effect: `read`
- Inputs: `page`, `page_size`, `q`, `status`, `updated_since`
- Outputs: `success`, `operation`, `data`, `referral_id`, `document_id`, `s3_path`, `cori_url`, `error`, `error_kind`, `indeterminate`, `retryable`, `was_existing`, `already_submitted`

Perform List Referrals through Cori.

### [Submit Referral](https://genhealth.ai/docs/workflows/integrations/cori/cori_submit_referral.md)

- Handler: `cori_submit_referral`
- Connection type: `cori`
- External effect: `write`
- Inputs: `referral_id`
- Outputs: `success`, `operation`, `data`, `referral_id`, `document_id`, `s3_path`, `cori_url`, `error`, `error_kind`, `indeterminate`, `retryable`, `was_existing`, `already_submitted`

Perform Submit Referral through Cori.

### [Update Referral Draft](https://genhealth.ai/docs/workflows/integrations/cori/cori_update_referral.md)

- Handler: `cori_update_referral`
- Connection type: `cori`
- External effect: `write`
- Inputs: `client_submission_key`, `patient_first_name`, `patient_last_name`, `date_of_birth`, `address_line_1`, `address_line_2`, `city`, `state`, `postal_code`, `phone`, `gender`, `doctor_name`, `doctor_npi`, `payer_name`, `policy_number`, `diagnosis_codes`, `due_date`, `priority`, `notes`, `destination`, `owner`, `submitted_by_name`, `submitted_by_email`, `brightree_patient_ref`, `brightree_order_ref`, `lines`, `referral_id`, `idempotency_key`, `acknowledge_unverified_patch`
- Outputs: `success`, `operation`, `data`, `referral_id`, `document_id`, `s3_path`, `cori_url`, `error`, `error_kind`, `indeterminate`, `retryable`, `was_existing`, `already_submitted`

Perform Update Referral Draft through Cori.

### [Upload Referral Document](https://genhealth.ai/docs/workflows/integrations/cori/cori_upload_document.md)

- Handler: `cori_upload_document`
- Connection type: `cori`
- External effect: `write`
- Inputs: `referral_id`, `document_id`, `document_type`
- Outputs: `success`, `operation`, `data`, `referral_id`, `document_id`, `s3_path`, `cori_url`, `error`, `error_kind`, `indeterminate`, `retryable`, `was_existing`, `already_submitted`

Perform Upload Referral Document through Cori.
