Split Document By Patient
Perform Split Document By Patient through GenHealth.
genhealth_split_by_patientInputs
- Document Id
document_idexpressionOptional literal value or workflow expression.
- Boundary Categories
boundary_categoriestextOptional text value.
- Drop Categories
drop_categoriestextOptional text value.
- Cover Page Policy
cover_page_policyselectOptional selected identifier or value.
Default:
"drop"Options: Drop ("drop"), Previous ("previous"), Next ("next")
- Group By
group_bytextOptional text value.
Default:
"name,dob" - Split On Identity Change
split_on_identity_changebooleanOptional true-or-false value.
Default:
"true" - Orphan Page Policy
orphan_page_policyselectOptional selected identifier or value.
Default:
"previous"Options: Previous ("previous"), Next ("next"), Review ("review")
- Identity Source
identity_sourceselectOptional selected identifier or value.
Default:
"llm"Options: LLM (read each page) ("llm"), None (boundary categories only) ("none")
- Identity Model
identity_modeltextOptional text value.
- Identity Prompt Override
identity_prompt_overridetextareaOptional text value.
- Expected Patient Count
expected_patient_countexpressionOptional literal value or workflow expression.
- Review On Count Mismatch
review_on_count_mismatchbooleanOptional true-or-false value.
Default:
"true" - Min Pages Per Patient
min_pages_per_patientnumberOptional numeric value.
Default:
1 - Persist
persistbooleanOptional true-or-false value.
Default:
"true" - Hide Parent
hide_parentbooleanOptional true-or-false value.
Default:
"false" - Force
forcebooleanOptional true-or-false value.
Default:
"false" - Split Cache Version
split_cache_versionnumberOptional numeric value.
Default:
0
Outputs
successSuccessdocument_idDocument IdchildrenChildrenchild_countChild CountsegmentsSegmentssegment_countSegment Countdropped_pagesDropped Pagesreview_requiredReview Requiredreview_reasonReview Reasonreview_reasonsReview ReasonsreasonReasonsplit_failure_reasonSplit Failure Reasonsplit_reconciliationSplit ReconciliationskippedSkippedmanual_splitManual SpliterrorError
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
}