{
	"id": "Hospital.json",
	"title": "Hospital",
	"description": "A hospital.",
	"media": {"type": "application/json;profile=http://schema.org/Hospital"},
	"allOf": [
		{"$ref": "Thing.json"},
		{"$ref": "Organization.json"},
		{"$ref": "LocalBusiness.json"},
		{"$ref": "EmergencyService.json"},
		{"$ref": "MedicalOrganization.json"},
		{"$ref": "Place.json"},
		{"$ref": "CivicStructure.json"}
	],
	"type": "object",
	"properties": {
		"availableService": {
			"oneOf": [
				{
					"type": "array",
					"items": {"$ref": "#/definitions/availableService"}
				},
				{"$ref": "#/definitions/availableService"}
			]
		},
		"medicalSpecialty": {"$ref": "MedicalSpecialty.json#/definitions/possibleRefArray"}
	},
	"definitions": {
		"array": {
			"type": "array",
			"items": {"$ref": "#"}
		},
		"possibleRef": {
			"oneOf": [
				{"$ref": "#"},
				{
					"type": "string",
					"format": "uri",
					"links": [{
						"rel": "full",
						"href": "{+$}"
					}]
				}
			]
		},
		"possibleRefArray": {
			"oneOf": [
				{
					"type": "array",
					"items": {"$ref": "#/definitions/possibleRef"}
				},
				{
					"type": "string",
					"format": "uri",
					"links": [{
						"rel": "full",
						"href": "{+$}"
					}]
				}
			]
		},
		"availableService": {
			"title": "Available Service",
			"description": "A medical service available from this provider.",
			"anyOf": [{"$ref": "MedicalTest.json#/definitions/possibleRef"}, {"$ref": "MedicalProcedure.json#/definitions/possibleRef"}, {"$ref": "MedicalTherapy.json#/definitions/possibleRef"}]
		}
	}
}