Create Document From File
Perform Create Document From File through GenHealth.
genhealth_create_document_from_filewrite
Inputs
- File Path
file_pathexpressionrequiredRequired literal value or workflow expression.
- Title
titleexpressionOptional literal value or workflow expression.
- Document Type
document_typeselectOptional selected identifier or value.
Default:
"Other"Options: Prescription ("Prescription"), Demographics ("Demographics"), Insurance ("Insurance"), Qualifying Test ("Qualifying Test"), Physician Notes ("Physician Notes"), Other ("Other")
- Source
sourcetextOptional text value.
Default:
"workflow_file" - External Id
external_idexpressionOptional literal value or workflow expression.
- Dedupe Key
dedupe_keyexpressionOptional literal value or workflow expression.
- Show Generated Document In Inbox
show_generated_document_in_inboxbooleanOptional true-or-false value.
Default:
false - Metadata
metadatajsonOptional JSON value.
Outputs
successSuccessstatusStatusdocument_idDocument IdtitleTitledocument_typeDocument TypesourceSourceexternal_idExternal Idsha256Sha256sizeSizes3_keyS3 Keywas_existingWas ExistingerrorErrorerror_messageError Message
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": [
"file_path"
],
"properties": {
"title": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"source": {
"type": "string",
"default": "workflow_file",
"description": "Optional text value.",
"x-workflow-field-type": "text"
},
"metadata": {
"description": "Optional JSON value.",
"x-workflow-field-type": "json"
},
"file_path": {
"description": "Required literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"dedupe_key": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"external_id": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"document_type": {
"enum": [
"Prescription",
"Demographics",
"Insurance",
"Qualifying Test",
"Physician Notes",
"Other"
],
"type": "string",
"default": "Other",
"description": "Optional selected identifier or value.",
"x-workflow-field-type": "select"
},
"show_generated_document_in_inbox": {
"type": "boolean",
"default": false,
"description": "Optional true-or-false value.",
"x-workflow-field-type": "boolean"
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"size": {},
"error": {},
"title": {},
"s3_key": {},
"sha256": {},
"source": {},
"status": {},
"success": {},
"document_id": {},
"external_id": {},
"was_existing": {},
"document_type": {},
"error_message": {}
},
"additionalProperties": true
}