Skip to documentation
Cori integration

Update Referral Draft

Perform Update Referral Draft through Cori.

View as Markdown
cori_update_referral
writecori

Use in a workflow

Copy the discovered node config and fill its params from the input contract. Validate the complete graph before publishing. Integration results use {{node_id.default.field}}. Check business success before dependent writes; completion alone does not prove success.

{
  "_group": "Cori",
  "params": {},
  "handler": "cori_update_referral"
}

Action contracts and connections · Run recovery

Inputs

  • client_submission_key
    text
    Client Submission Key

    Optional text value.

  • patient_first_name
    textrequired
    Patient First Name

    Required text value.

  • patient_last_name
    textrequired
    Patient Last Name

    Required text value.

  • date_of_birth
    textrequired
    Date Of Birth

    Required text value.

  • address_line_1
    text
    Address Line 1

    Optional text value.

  • address_line_2
    text
    Address Line 2

    Optional text value.

  • city
    text
    City

    Optional text value.

  • state
    text
    State

    Optional text value.

  • postal_code
    text
    Postal Code

    Optional text value.

  • phone
    text
    Phone

    Optional text value.

  • gender
    text
    Gender

    Optional text value.

  • doctor_name
    text
    Doctor Name

    Optional text value.

  • doctor_npi
    text
    Doctor Npi

    Optional text value.

  • payer_name
    text
    Payer Name

    Optional text value.

  • policy_number
    text
    Policy Number

    Optional text value.

  • diagnosis_codes
    json
    Diagnosis Codes

    Optional JSON value.

  • due_date
    text
    Due Date

    Optional text value.

  • priority
    text
    Priority

    Optional text value.

    Options: High ("High"), Normal ("Normal"), Low ("Low")

  • notes
    text
    Notes

    Optional text value.

  • destination
    text
    Destination

    Optional text value.

  • owner
    text
    Owner

    Optional text value.

  • submitted_by_name
    text
    Submitted By Name

    Optional text value.

  • submitted_by_email
    text
    Submitted By Email

    Optional text value.

  • brightree_patient_ref
    text
    Brightree Patient Ref

    Optional text value.

  • brightree_order_ref
    text
    Brightree Order Ref

    Optional text value.

  • lines
    json
    Lines

    Optional JSON value.

  • referral_id
    expressionrequired
    Referral Id

    Required literal value or workflow expression.

  • idempotency_key
    textrequired
    Idempotency Key

    Required text value.

  • acknowledge_unverified_patch
    booleanrequired
    Acknowledge Unverified Patch

    Required true-or-false value.

Outputs

  • successSuccess
  • operationOperation
  • dataData
  • referral_idReferral Id
  • document_idDocument Id
  • s3_pathS3 Path
  • cori_urlCori Url
  • errorError
  • error_kindError Kind
  • indeterminateIndeterminate
  • retryableRetryable
  • was_existingWas Existing
  • already_submittedAlready Submitted

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
{
  "type": "object",
  "required": [
    "patient_first_name",
    "patient_last_name",
    "date_of_birth",
    "referral_id",
    "idempotency_key",
    "acknowledge_unverified_patch"
  ],
  "properties": {
    "city": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "lines": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "notes": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "owner": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "phone": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "state": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "gender": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "due_date": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "priority": {
      "enum": [
        "High",
        "Normal",
        "Low"
      ],
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "doctor_npi": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "payer_name": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "destination": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "doctor_name": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "postal_code": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "referral_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "date_of_birth": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "policy_number": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "address_line_1": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "address_line_2": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "diagnosis_codes": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "idempotency_key": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "patient_last_name": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "submitted_by_name": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "patient_first_name": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "submitted_by_email": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "brightree_order_ref": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "brightree_patient_ref": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "client_submission_key": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "acknowledge_unverified_patch": {
      "type": "boolean",
      "description": "Required true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
Output schema
{
  "type": "object",
  "properties": {
    "data": {},
    "error": {},
    "s3_path": {},
    "success": {},
    "cori_url": {},
    "operation": {},
    "retryable": {},
    "error_kind": {},
    "document_id": {},
    "referral_id": {},
    "was_existing": {},
    "indeterminate": {},
    "already_submitted": {}
  },
  "additionalProperties": true
}
View all Cori actions