# Get Best Compliance Report

> Perform Get Best Compliance Report through React Health.

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

Integration: [React Health](https://genhealth.ai/docs/workflows/integrations/react-health.md)

- Handler: `reacthealth_best_compliance_report`

- Connection type: `reacthealth`

## 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": "React Health",
  "params": {
    "period_days": 30,
    "lookback_days": 88,
    "skip_if_empty": false
  },
  "handler": "reacthealth_best_compliance_report"
}

```

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

## Inputs

- `reacthealth_patient_id` — Reacthealth Patient Id (expression)
  Optional literal value or workflow expression.
- `lookback_end_date` — Lookback End Date (expression)
  Optional literal value or workflow expression.
- `lookback_days` — Lookback Days (number)
  Optional numeric value.
  Default: `88`
- `period_days` — Period Days (number)
  Optional numeric value.
  Default: `30`
- `skip_if_empty` — Skip If Empty (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `skipped` — Skipped
- `failure_category` — Failure Category
- `document_id` — Document Id
- `requested_period_begin` — Requested Period Begin
- `requested_period_end` — Requested Period End
- `requested_period_days` — Requested Period Days
- `report_start_date` — Report Start Date
- `report_end_date` — Report End Date
- `days_in_period` — Days In Period
- `days_used` — Days Used
- `usage_threshold_hours` — Usage Threshold Hours
- `days_at_or_above_threshold` — Days At Or Above Threshold
- `best_window_start` — Best Window Start
- `best_window_end` — Best Window End
- `best_window_days_met` — Best Window Days Met
- `average_usage_days_used_minutes` — Average Usage Days Used Minutes
- `therapy_mode` — Therapy Mode
- `retryable` — Retryable
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `read`
- Confirmation recommended: no
- Retry safe: yes
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "period_days": {
      "type": "number",
      "default": 30,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "lookback_days": {
      "type": "number",
      "default": 88,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "skip_if_empty": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "lookback_end_date": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "reacthealth_patient_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "skipped": {},
    "success": {},
    "days_used": {},
    "retryable": {},
    "document_id": {},
    "therapy_mode": {},
    "days_in_period": {},
    "best_window_end": {},
    "report_end_date": {},
    "failure_category": {},
    "best_window_start": {},
    "report_start_date": {},
    "best_window_days_met": {},
    "requested_period_end": {},
    "requested_period_days": {},
    "usage_threshold_hours": {},
    "requested_period_begin": {},
    "days_at_or_above_threshold": {},
    "average_usage_days_used_minutes": {}
  },
  "additionalProperties": true
}
```
