Update Referral Draft
Perform Update Referral Draft through Cori.
cori_update_referralUse 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"
}Inputs
- Client Submission Key
client_submission_keytextOptional text value.
- Patient First Name
patient_first_nametextrequiredRequired text value.
- Patient Last Name
patient_last_nametextrequiredRequired text value.
- Date Of Birth
date_of_birthtextrequiredRequired text value.
- Address Line 1
address_line_1textOptional text value.
- Address Line 2
address_line_2textOptional text value.
- City
citytextOptional text value.
- State
statetextOptional text value.
- Postal Code
postal_codetextOptional text value.
- Phone
phonetextOptional text value.
- Gender
gendertextOptional text value.
- Doctor Name
doctor_nametextOptional text value.
- Doctor Npi
doctor_npitextOptional text value.
- Payer Name
payer_nametextOptional text value.
- Policy Number
policy_numbertextOptional text value.
- Diagnosis Codes
diagnosis_codesjsonOptional JSON value.
- Due Date
due_datetextOptional text value.
- Priority
prioritytextOptional text value.
Options: High ("High"), Normal ("Normal"), Low ("Low")
- Notes
notestextOptional text value.
- Destination
destinationtextOptional text value.
- Owner
ownertextOptional text value.
- Submitted By Name
submitted_by_nametextOptional text value.
- Submitted By Email
submitted_by_emailtextOptional text value.
- Brightree Patient Ref
brightree_patient_reftextOptional text value.
- Brightree Order Ref
brightree_order_reftextOptional text value.
- Lines
linesjsonOptional JSON value.
- Referral Id
referral_idexpressionrequiredRequired literal value or workflow expression.
- Idempotency Key
idempotency_keytextrequiredRequired text value.
- Acknowledge Unverified Patch
acknowledge_unverified_patchbooleanrequiredRequired true-or-false value.
Outputs
successSuccessoperationOperationdataDatareferral_idReferral Iddocument_idDocument Ids3_pathS3 Pathcori_urlCori UrlerrorErrorerror_kindError KindindeterminateIndeterminateretryableRetryablewas_existingWas Existingalready_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
}