# Extract Ordering Facility From Document

> Perform Extract Ordering Facility From Document through Tomorrow Health.

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

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

- Handler: `tomorrow_health_extract_ordering_facility_from_document`

## Inputs

- `document_id` — Document Id (expression, required)
  Required literal value or workflow expression.

## Outputs

- `success` — Success
- `document_id` — Document Id
- `facility_name` — Facility Name
- `address_1` — Address 1
- `city` — City
- `state` — State
- `postal_code` — Postal Code
- `address_source` — Address Source
- `match_address_1` — Match Address 1
- `match_city` — Match City
- `match_state` — Match State
- `match_postal_code` — Match Postal Code
- `match_address_source` — Match Address Source
- `provider_npi` — Provider Npi
- `phone` — Phone
- `fax` — Fax
- `action_required` — Action Required
- `action_required_message` — Action Required Message
- `missing_fields` — Missing Fields
- `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": {
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "fax": {},
    "city": {},
    "error": {},
    "phone": {},
    "state": {},
    "success": {},
    "address_1": {},
    "match_city": {},
    "document_id": {},
    "match_state": {},
    "postal_code": {},
    "provider_npi": {},
    "facility_name": {},
    "address_source": {},
    "missing_fields": {},
    "action_required": {},
    "match_address_1": {},
    "match_postal_code": {},
    "match_address_source": {},
    "action_required_message": {}
  },
  "additionalProperties": true
}
```
