{
	"id": "MedicalEntity.json",
	"title": "Medical Entity",
	"description": "The most generic type of entity related to health and the practice of medicine.",
	"media": {"type": "application/json;profile=http://schema.org/MedicalEntity"},
	"allOf": [{"$ref": "Thing.json"}],
	"type": "object",
	"properties": {
		"code": {"$ref": "MedicalCode.json#/definitions/possibleRefArray"},
		"guideline": {"$ref": "MedicalGuideline.json#/definitions/possibleRefArray"},
		"legalStatus": {"$ref": "#/definitions/legalStatus"},
		"medicineSystem": {"$ref": "MedicineSystem.json#/definitions/possibleRef"},
		"recognizingAuthority": {"$ref": "Organization.json#/definitions/possibleRefArray"},
		"relevantSpecialty": {"$ref": "MedicalSpecialty.json#/definitions/possibleRefArray"},
		"study": {"$ref": "MedicalStudy.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": "{+$}"
					}]
				}
			]
		},
		"legalStatus": {
			"title": "Legal Status",
			"description": "The drug or supplement's legal status, including any controlled substance schedules that apply.",
			"anyOf": [{"$ref": "DrugLegalStatus.json#/definitions/possibleRef"}, {"$ref": "MedicalEnumeration.json#/definitions/possibleRef"}, {"type": "string"}]
		}
	}
}