# Extract Sleep Study Workup

> Perform Extract Sleep Study Workup through GenHealth.

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

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

- Handler: `genhealth_extract_sleep_study_workup`

## Use in a workflow

Copy this discovered node config, fill params from the input contract, and validate the complete graph. Integration results are available as {{node_id.default.field}}. Check business success before dependent writes; completion alone does not prove business success.

```json

{
  "_group": "GenHealth",
  "params": {
    "force": false
  },
  "handler": "genhealth_extract_sleep_study_workup"
}

```

[Action contracts](https://genhealth.ai/docs/workflows/action-contracts.md) · [Run recovery](https://genhealth.ai/docs/workflows/operations.md)

## Inputs

- `document_id` — Document Id (expression, required)
  Required literal value or workflow expression.
- `force` — Force (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `document_id` — Document Id
- `cached` — Cached
- `document_kind` — Document Kind
- `visit_date` — Visit Date
- `plan_orders_sleep_study` — Plan Orders Sleep Study
- `comorbidities` — Comorbidities
- `comorbidity_list` — Comorbidity List
- `study_start_date` — Study Start Date
- `study_end_date` — Study End Date
- `study_setting` — Study Setting
- `ahi_readings` — Ahi Readings
- `ahi_4_percent` — Ahi 4 Percent
- `ahi_3_percent` — Ahi 3 Percent
- `ahi_unspecified` — Ahi Unspecified
- `reason` — Reason
- `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": [
    "document_id"
  ],
  "properties": {
    "force": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "cached": {},
    "reason": {},
    "success": {},
    "visit_date": {},
    "document_id": {},
    "ahi_readings": {},
    "ahi_3_percent": {},
    "ahi_4_percent": {},
    "comorbidities": {},
    "document_kind": {},
    "study_setting": {},
    "study_end_date": {},
    "ahi_unspecified": {},
    "comorbidity_list": {},
    "study_start_date": {},
    "plan_orders_sleep_study": {}
  },
  "additionalProperties": true
}
```
