{
	"id": "MedicalDevice.json",
	"title": "Medical Device",
	"description": "Any object used in a medical capacity, such as to diagnose or treat a patient.",
	"media": {"type": "application/json;profile=http://schema.org/MedicalDevice"},
	"allOf": [{"$ref": "Thing.json"}, {"$ref": "MedicalEntity.json"}],
	"type": "object",
	"properties": {
		"adverseOutcome": {"$ref": "MedicalEntity.json#/definitions/possibleRefArray"},
		"contraindication": {
			"oneOf": [
				{
					"type": "array",
					"items": {"$ref": "#/definitions/contraindication"}
				},
				{"$ref": "#/definitions/contraindication"}
			]
		},
		"indication": {"$ref": "MedicalIndication.json#/definitions/possibleRefArray"},
		"postOp": {
			"oneOf": [
				{
					"type": "array",
					"items": {"$ref": "#/definitions/postOp"}
				},
				{"$ref": "#/definitions/postOp"}
			]
		},
		"preOp": {
			"oneOf": [
				{
					"type": "array",
					"items": {"$ref": "#/definitions/preOp"}
				},
				{"$ref": "#/definitions/preOp"}
			]
		},
		"procedure": {
			"oneOf": [
				{
					"type": "array",
					"items": {"$ref": "#/definitions/procedure"}
				},
				{"$ref": "#/definitions/procedure"}
			]
		},
		"purpose": {
			"oneOf": [
				{
					"type": "array",
					"items": {"$ref": "#/definitions/purpose"}
				},
				{"$ref": "#/definitions/purpose"}
			]
		},
		"seriousAdverseOutcome": {"$ref": "MedicalEntity.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": "{+$}"
					}]
				}
			]
		},
		"contraindication": {
			"title": "Contraindication",
			"description": "A contraindication for this therapy.",
			"anyOf": [{"type": "string"}, {"$ref": "MedicalContraindication.json#/definitions/possibleRef"}]
		},
		"postOp": {
			"title": "Post Op",
			"description": "A description of the postoperative procedures, care, and/or followups for this device.",
			"type": "string"
		},
		"preOp": {
			"title": "Pre Op",
			"description": "A description of the workup, testing, and other preparations required before implanting this device.",
			"type": "string"
		},
		"procedure": {
			"title": "Procedure",
			"description": "A description of the procedure involved in setting up, using, and/or installing the device.",
			"type": "string"
		},
		"purpose": {
			"title": "Purpose",
			"description": "A goal towards an action is taken. Can be concrete or abstract.",
			"anyOf": [{"$ref": "Thing.json#/definitions/possibleRef"}, {"$ref": "MedicalDevicePurpose.json#/definitions/possibleRef"}]
		}
	}
}