# Validate Facility Document Candidate

> Perform Validate Facility Document Candidate through MyForms.

Source: [https://genhealth.ai/docs/workflows/integrations/my-forms/myforms_validate_facility_document_candidate](https://genhealth.ai/docs/workflows/integrations/my-forms/myforms_validate_facility_document_candidate)

Integration: [MyForms](https://genhealth.ai/docs/workflows/integrations/my-forms.md)

- Handler: `myforms_validate_facility_document_candidate`

## Inputs

- `candidate` — Candidate (json, required)
  Required JSON value.

## Outputs

- `success` — Success
- `eligible` — Eligible
- `skipped` — Skipped
- `skip_reason` — Skip Reason
- `order_id` — Order Id
- `workflow_number` — Workflow Number
- `workflow_template` — Workflow Template
- `workflow_template_id` — Workflow Template Id
- `workflow_state_id` — Workflow State Id
- `workflow_state_name` — Workflow State Name
- `patient_id` — Patient Id
- `patient_state` — Patient State
- `doc_created_at` — Doc Created At
- `local_patient_id` — Local Patient Id
- `account_key` — Account Key
- `dry_run` — Dry Run
- `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": [
    "candidate"
  ],
  "properties": {
    "candidate": {
      "description": "Required JSON value.",
      "x-workflow-field-type": "json"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "dry_run": {},
    "skipped": {},
    "success": {},
    "eligible": {},
    "order_id": {},
    "patient_id": {},
    "account_key": {},
    "skip_reason": {},
    "patient_state": {},
    "doc_created_at": {},
    "workflow_number": {},
    "local_patient_id": {},
    "workflow_state_id": {},
    "workflow_template": {},
    "workflow_state_name": {},
    "workflow_template_id": {}
  },
  "additionalProperties": true
}
```
