{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://api-evangelist.com/department-of-veterans-affairs/schemas/facility.json", "title": "VA Facility", "description": "A Department of Veterans Affairs facility, including health, benefits, vet center, and cemetery locations.", "type": "object", "required": ["id", "type", "attributes"], "properties": { "id": { "type": "string", "description": "Stable identifier (e.g. vha_688, vba_306, nca_001)" }, "type": { "type": "string", "const": "facility" }, "attributes": { "type": "object", "required": ["name", "facilityType", "lat", "long"], "properties": { "name": { "type": "string" }, "facilityType": { "type": "string", "enum": ["va_health_facility", "va_benefits_facility", "va_cemetery", "vet_center"] }, "classification": { "type": ["string", "null"] }, "website": { "type": ["string", "null"], "format": "uri" }, "lat": { "type": "number", "minimum": -90, "maximum": 90 }, "long": { "type": "number", "minimum": -180, "maximum": 180 }, "timeZone": { "type": "string" }, "address": { "type": "object", "properties": { "mailing": { "$ref": "#/$defs/Address" }, "physical": { "$ref": "#/$defs/Address" } } }, "phone": { "type": "object", "properties": { "main": { "type": ["string", "null"] }, "fax": { "type": ["string", "null"] }, "afterHours": { "type": ["string", "null"] }, "patientAdvocate": { "type": ["string", "null"] }, "mentalHealthClinic": { "type": ["string", "null"] }, "enrollmentCoordinator": { "type": ["string", "null"] }, "pharmacy": { "type": ["string", "null"] } } }, "hours": { "type": "object", "additionalProperties": { "type": "string" } }, "services": { "type": "object" }, "visn": { "type": ["string", "null"] } } } }, "$defs": { "Address": { "type": "object", "properties": { "address1": { "type": ["string", "null"] }, "address2": { "type": ["string", "null"] }, "address3": { "type": ["string", "null"] }, "city": { "type": ["string", "null"] }, "state": { "type": ["string", "null"], "pattern": "^[A-Z]{2}$" }, "zip": { "type": ["string", "null"] } } } } }