Skip to documentation
GenHealth integration

Split Document By Patient

Perform Split Document By Patient through GenHealth.

View as Markdown
genhealth_split_by_patient
write

Inputs

  • document_id
    expression
    Document Id

    Optional literal value or workflow expression.

  • boundary_categories
    text
    Boundary Categories

    Optional text value.

  • drop_categories
    text
    Drop Categories

    Optional text value.

  • cover_page_policy
    select
    Cover Page Policy

    Optional selected identifier or value.

    Default: "drop"

    Options: Drop ("drop"), Previous ("previous"), Next ("next")

  • group_by
    text
    Group By

    Optional text value.

    Default: "name,dob"

  • split_on_identity_change
    boolean
    Split On Identity Change

    Optional true-or-false value.

    Default: "true"

  • orphan_page_policy
    select
    Orphan Page Policy

    Optional selected identifier or value.

    Default: "previous"

    Options: Previous ("previous"), Next ("next"), Review ("review")

  • identity_source
    select
    Identity Source

    Optional selected identifier or value.

    Default: "llm"

    Options: LLM (read each page) ("llm"), None (boundary categories only) ("none")

  • identity_model
    text
    Identity Model

    Optional text value.

  • identity_prompt_override
    textarea
    Identity Prompt Override

    Optional text value.

  • expected_patient_count
    expression
    Expected Patient Count

    Optional literal value or workflow expression.

  • review_on_count_mismatch
    boolean
    Review On Count Mismatch

    Optional true-or-false value.

    Default: "true"

  • min_pages_per_patient
    number
    Min Pages Per Patient

    Optional numeric value.

    Default: 1

  • persist
    boolean
    Persist

    Optional true-or-false value.

    Default: "true"

  • hide_parent
    boolean
    Hide Parent

    Optional true-or-false value.

    Default: "false"

  • force
    boolean
    Force

    Optional true-or-false value.

    Default: "false"

  • split_cache_version
    number
    Split Cache Version

    Optional numeric value.

    Default: 0

Outputs

  • successSuccess
  • document_idDocument Id
  • childrenChildren
  • child_countChild Count
  • segmentsSegments
  • segment_countSegment Count
  • dropped_pagesDropped Pages
  • review_requiredReview Required
  • review_reasonReview Reason
  • review_reasonsReview Reasons
  • reasonReason
  • split_failure_reasonSplit Failure Reason
  • split_reconciliationSplit Reconciliation
  • skippedSkipped
  • manual_splitManual Split
  • 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",
  "properties": {
    "force": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "persist": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "group_by": {
      "type": "string",
      "default": "name,dob",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "document_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "hide_parent": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "identity_model": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "drop_categories": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "identity_source": {
      "enum": [
        "llm",
        "none"
      ],
      "type": "string",
      "default": "llm",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "cover_page_policy": {
      "enum": [
        "drop",
        "previous",
        "next"
      ],
      "type": "string",
      "default": "drop",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "orphan_page_policy": {
      "enum": [
        "previous",
        "next",
        "review"
      ],
      "type": "string",
      "default": "previous",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "boundary_categories": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "split_cache_version": {
      "type": "number",
      "default": 0,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "min_pages_per_patient": {
      "type": "number",
      "default": 1,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "expected_patient_count": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "identity_prompt_override": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    },
    "review_on_count_mismatch": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "split_on_identity_change": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
Output schema
{
  "type": "object",
  "properties": {
    "error": {},
    "reason": {},
    "skipped": {},
    "success": {},
    "children": {},
    "segments": {},
    "child_count": {},
    "document_id": {},
    "manual_split": {},
    "dropped_pages": {},
    "review_reason": {},
    "segment_count": {},
    "review_reasons": {},
    "review_required": {},
    "split_failure_reason": {},
    "split_reconciliation": {}
  },
  "additionalProperties": true
}
View all GenHealth actions