Skip to documentation
CareWebQI integration

Add Task to Episode

Perform Add Task to Episode through CareWebQI.

View as Markdown
carewebqi_add_task
writecarewebqi

Inputs

  • episode_id
    expressionrequired
    Episode Id

    Required literal value or workflow expression.

  • subject
    expressionrequired
    Subject

    Required literal value or workflow expression.

  • due_date
    expressionrequired
    Due Date

    Required literal value or workflow expression.

  • task_type
    select
    Task Type

    Optional selected identifier or value.

    Default: "2"

    Options: Reminder ("1"), Task ("2"), Follow-Up ("3")

  • priority
    select
    Priority

    Optional selected identifier or value.

    Options: Urgent ("1"), High ("2"), Medium ("3"), Low ("4")

  • status
    select
    Status

    Optional selected identifier or value.

    Default: "1"

    Options: Not Started ("1"), In Progress ("2"), Completed ("3"), Resolved ("4")

  • assignee
    expression
    Assignee

    Optional literal value or workflow expression.

  • start_time
    expression
    Start Time

    Optional literal value or workflow expression.

  • end_time
    expression
    End Time

    Optional literal value or workflow expression.

  • time_spent
    expression
    Time Spent

    Optional literal value or workflow expression.

  • note
    textarea
    Note

    Optional text value.

  • include_discharged
    boolean
    Include Discharged

    Optional true-or-false value.

    Default: true

Outputs

  • successSuccess
  • savedSaved
  • episode_idEpisode Id
  • subjectSubject
  • task_typeTask Type
  • priorityPriority
  • statusStatus
  • due_dateDue Date
  • start_timeStart Time
  • end_timeEnd Time
  • time_spentTime Spent
  • assigneeAssignee
  • note_addedNote Added
  • episode_exitedEpisode Exited
  • errorError

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": [
    "episode_id",
    "subject",
    "due_date"
  ],
  "properties": {
    "note": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    },
    "status": {
      "enum": [
        "1",
        "2",
        "3",
        "4"
      ],
      "type": "string",
      "default": "1",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "subject": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "assignee": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "due_date": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "end_time": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "priority": {
      "enum": [
        "1",
        "2",
        "3",
        "4"
      ],
      "type": "string",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "task_type": {
      "enum": [
        "1",
        "2",
        "3"
      ],
      "type": "string",
      "default": "2",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "episode_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "start_time": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "time_spent": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "include_discharged": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
Output schema
{
  "type": "object",
  "properties": {
    "error": {},
    "saved": {},
    "status": {},
    "subject": {},
    "success": {},
    "assignee": {},
    "due_date": {},
    "end_time": {},
    "priority": {},
    "task_type": {},
    "episode_id": {},
    "note_added": {},
    "start_time": {},
    "time_spent": {},
    "episode_exited": {}
  },
  "additionalProperties": true
}
View all CareWebQI actions