# Log Activity

> Perform Log Activity through GenHealth.

Source: [https://genhealth.ai/docs/workflows/integrations/gen-health/log_activity](https://genhealth.ai/docs/workflows/integrations/gen-health/log_activity)

Integration: [GenHealth](https://genhealth.ai/docs/workflows/integrations/gen-health.md)

- Handler: `log_activity`

## Inputs

- `document_id` — Document Id (expression)
  Optional literal value or workflow expression.
- `resource_type` — Resource Type (select, required)
  Required selected identifier or value.
  Options: Patient ("PATIENT"), Insurance ("INSURANCE"), Order ("ORDER"), Document ("DOCUMENT"), Ordering Provider ("ORDERING_PROVIDER"), Facility ("FACILITY"), Prescription ("PRESCRIPTION"), ICD Codes ("ICD CODES"), Eligibility ("ELIGIBILITY"), Pre-Authorization ("PRE_AUTHORIZATION"), Patient Tag ("PATIENT_TAG"), Task ("TASK"), Note ("NOTE"), Comment ("COMMENT")
- `action_type` — Action Type (select, required)
  Required selected identifier or value.
  Options: Create ("CREATE"), Update ("UPDATE"), Delete ("DELETE"), Execute ("EXECUTE"), Extract ("EXTRACT"), Validate ("VALIDATE"), Verify Eligibility ("VERIFY_ELIGIBILITY"), Upload ("UPLOAD"), Skip ("SKIP"), Read ("READ")
- `step_label` — Step Label (text)
  Optional text value.
- `status` — Status (select)
  Optional selected identifier or value.
  Options: Completed ("completed"), Skipped ("skipped"), Needs Review ("review"), Failed ("failed")
- `message` — Message (textarea)
  Optional text value.
- `external_id` — External Id (expression)
  Optional literal value or workflow expression.
- `url` — Url (expression)
  Optional literal value or workflow expression.
- `system` — System (text)
  Optional text value.
- `patient_id` — Patient Id (expression)
  Optional literal value or workflow expression.
- `job_id` — Job Id (expression)
  Optional literal value or workflow expression.
- `meta_json` — Meta Json (textarea)
  Optional text value.

## Outputs

- `success` — Success
- `activity_logged` — Activity Logged
- `error` — Error

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

```json
{
  "type": "object",
  "required": [
    "resource_type",
    "action_type"
  ],
  "properties": {
    "url": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "job_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "status": {
      "enum": [
        "completed",
        "skipped",
        "review",
        "failed"
      ],
      "type": "string",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "system": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "message": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    },
    "meta_json": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    },
    "patient_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "step_label": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "action_type": {
      "enum": [
        "CREATE",
        "UPDATE",
        "DELETE",
        "EXECUTE",
        "EXTRACT",
        "VALIDATE",
        "VERIFY_ELIGIBILITY",
        "UPLOAD",
        "SKIP",
        "READ"
      ],
      "type": "string",
      "description": "Required selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "document_id": {
      "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"
    },
    "resource_type": {
      "enum": [
        "PATIENT",
        "INSURANCE",
        "ORDER",
        "DOCUMENT",
        "ORDERING_PROVIDER",
        "FACILITY",
        "PRESCRIPTION",
        "ICD CODES",
        "ELIGIBILITY",
        "PRE_AUTHORIZATION",
        "PATIENT_TAG",
        "TASK",
        "NOTE",
        "COMMENT"
      ],
      "type": "string",
      "description": "Required selected identifier or value.",
      "x-workflow-field-type": "select"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "success": {},
    "activity_logged": {}
  },
  "additionalProperties": true
}
```
