# nearest_cms_hospital_has_emergency

> Whether the hospital that nearest_cms_hospital_distance_m measures to runs an emergency department: CMS attests Emergency Services, or it reports a scored ED measure (EDV, OP-18, OP-22 or OP-23).

Source: https://docs.invariant-ai.com/fields/nearest_cms_hospital_has_emergency

|  |  |
| --- | --- |
| Name | `nearest_cms_hospital_has_emergency` |
| Layer | built\_environment |
| Type, unit | boolean, none |
| Sources (in order) | `CMS_HOSPITALS` |
| Cache | 90 days (`ttl_seconds` 7776000) |

## What it is

Whether the hospital that nearest\_cms\_hospital\_distance\_m measures to runs an emergency department: CMS attests Emergency Services, or it reports a scored ED measure (EDV, OP-18, OP-22 or OP-23).

## Nulls

status "absent": no CMS hospital within 500 km. "failed": the stored CMS reference could not be read.

## Example

```bash
curl -s https://api.invariant-ai.com/v1/fetch \
  -H "X-API-Key: $INVARIANT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lat": 39.0438, "lng": -77.4874, "fields": ["nearest_cms_hospital_has_emergency"]}'
```

Field object keys are described in [Responses](https://docs.invariant-ai.com/responses). Live definition: [`GET /v1/meta/fields`](https://docs.invariant-ai.com/api/meta-fields).
