Skip to documentation
GenHealth integration

Find Similar Patient Document

Perform Find Similar Patient Document through GenHealth.

View as Markdown
genhealth_find_similar_document
write

Use in a workflow

Copy the discovered node config and fill its params from the input contract. Validate the complete graph before publishing. Integration results use {{node_id.default.field}}. Check business success before dependent writes; completion alone does not prove success.

{
  "_group": "GenHealth",
  "params": {
    "min_shingles": 50,
    "lookback_days": 14,
    "duplicate_threshold": 0.85,
    "containment_threshold": 0.9
  },
  "handler": "genhealth_find_similar_document"
}

Action contracts and connections · Run recovery

Inputs

  • document_id
    expressionrequired
    Document Id

    Required literal value or workflow expression.

  • lookback_days
    number
    Lookback Days

    Optional numeric value.

    Default: 14

  • duplicate_threshold
    number
    Duplicate Threshold

    Optional numeric value.

    Default: 0.85

  • containment_threshold
    number
    Containment Threshold

    Optional numeric value.

    Default: 0.9

  • min_shingles
    number
    Min Shingles

    Optional numeric value.

    Default: 50

Outputs

  • successSuccess
  • document_idDocument Id
  • decisionDecision
  • reasonReason
  • is_duplicateIs Duplicate
  • needs_reviewNeeds Review
  • original_document_idOriginal Document Id
  • jaccardJaccard
  • incoming_containmentIncoming Containment
  • candidates_comparedCandidates Compared
  • 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": [
    "document_id"
  ],
  "properties": {
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "min_shingles": {
      "type": "number",
      "default": 50,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "lookback_days": {
      "type": "number",
      "default": 14,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "duplicate_threshold": {
      "type": "number",
      "default": 0.85,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "containment_threshold": {
      "type": "number",
      "default": 0.9,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    }
  },
  "additionalProperties": false
}
Output schema
{
  "type": "object",
  "properties": {
    "error": {},
    "reason": {},
    "jaccard": {},
    "success": {},
    "decision": {},
    "document_id": {},
    "is_duplicate": {},
    "needs_review": {},
    "candidates_compared": {},
    "incoming_containment": {},
    "original_document_id": {}
  },
  "additionalProperties": true
}
View all GenHealth actions