Skip to documentation
eClinicalWorks integration

List Outgoing Referrals

Perform List Outgoing Referrals through eClinicalWorks.

View as Markdown
ecw_list_outgoing_referrals
readeclinicalworks

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": "eClinicalWorks",
  "params": {
    "status": "open",
    "timezone": "UTC",
    "lookback_days": 7,
    "max_referrals": 200
  },
  "handler": "ecw_list_outgoing_referrals"
}

Action contracts and connections · Run recovery

Inputs

  • lookback_days
    number
    Lookback Days

    Optional numeric value.

    Default: 7

  • query_params
    json
    Query Params

    Optional JSON value.

  • status
    text
    Status

    Optional text value.

    Default: "open"

  • timezone
    text
    Timezone

    Optional text value.

    Default: "UTC"

  • max_referrals
    number
    Max Referrals

    Optional numeric value.

    Default: 200

Outputs

  • successSuccess
  • referralsReferrals
  • countCount
  • scanned_countScanned Count
  • errorError

Output schema completeness: best_effort_declared

Safety

External effect
read
Confirmation recommended
No
Retry safe
Yes
Dry run supported
No

Schemas

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

Input schema
{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "default": "open",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "timezone": {
      "type": "string",
      "default": "UTC",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "query_params": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "lookback_days": {
      "type": "number",
      "default": 7,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "max_referrals": {
      "type": "number",
      "default": 200,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    }
  },
  "additionalProperties": false
}
Output schema
{
  "type": "object",
  "properties": {
    "count": {},
    "error": {},
    "success": {},
    "referrals": {},
    "scanned_count": {}
  },
  "additionalProperties": true
}
View all eClinicalWorks actions