Normalize Worksheet
Perform Normalize Worksheet through GenHealth.
genhealth_normalize_worksheetwrite
Inputs
- Document Id
document_idexpressionOptional literal value or workflow expression.
- Source Format
source_formatselectOptional selected identifier or value.
Default:
"auto"Options: Auto Detect ("auto"), CSV ("csv"), Excel (.xlsx) ("xlsx")
- Target Fields
target_fieldsrepeatable_grouprequiredRequired list of structured items.
- Key
keytextrequiredRequired text value.
- Semantic Type
semantic_typeselectrequiredRequired selected identifier or value.
Default:
"text"Options: Text ("text"), Currency ("currency"), Date ("date"), Identifier ("identifier")
- Description
descriptiontextarearequiredRequired text value.
- Required
requiredbooleanOptional true-or-false value.
Default:
"false"
- Derived Fields
derived_fieldsrepeatable_groupOptional list of structured items.
- Key
keytextrequiredRequired text value.
- Source Field
source_fieldtextrequiredRequired text value.
- Pattern
patterntextrequiredRequired text value.
- Match Group
match_groupnumberOptional numeric value.
Default:
1
Outputs
document_idDocument Idfile_nameFile Namesource_formatSource Formatsheet_nameSheet NamecolumnsColumnsraw_row_countRaw Row CountcountCountrowsRowsschemaSchemamessageMessageerrorError
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": [
"target_fields"
],
"properties": {
"document_id": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"source_format": {
"enum": [
"auto",
"csv",
"xlsx"
],
"type": "string",
"default": "auto",
"description": "Optional selected identifier or value.",
"x-workflow-field-type": "select"
},
"target_fields": {
"type": "array",
"items": {
"type": "object",
"required": [
"key",
"semantic_type",
"description"
],
"properties": {
"key": {
"type": "string",
"description": "Required text value.",
"x-workflow-field-type": "text"
},
"required": {
"type": "boolean",
"description": "Optional true-or-false value.",
"x-workflow-field-type": "boolean"
},
"description": {
"type": "string",
"description": "Required text value.",
"x-workflow-field-type": "textarea"
},
"semantic_type": {
"enum": [
"text",
"currency",
"date",
"identifier"
],
"type": "string",
"default": "text",
"description": "Required selected identifier or value.",
"x-workflow-field-type": "select"
}
},
"additionalProperties": false
},
"description": "Required list of structured items.",
"x-workflow-field-type": "repeatable_group"
},
"derived_fields": {
"type": "array",
"items": {
"type": "object",
"required": [
"key",
"source_field",
"pattern"
],
"properties": {
"key": {
"type": "string",
"description": "Required text value.",
"x-workflow-field-type": "text"
},
"pattern": {
"type": "string",
"description": "Required text value.",
"x-workflow-field-type": "text"
},
"match_group": {
"type": "number",
"default": 1,
"description": "Optional numeric value.",
"x-workflow-field-type": "number"
},
"source_field": {
"type": "string",
"description": "Required text value.",
"x-workflow-field-type": "text"
}
},
"additionalProperties": false
},
"description": "Optional list of structured items.",
"x-workflow-field-type": "repeatable_group"
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"rows": {},
"count": {},
"error": {},
"schema": {},
"columns": {},
"message": {},
"file_name": {},
"sheet_name": {},
"document_id": {},
"raw_row_count": {},
"source_format": {}
},
"additionalProperties": true
}