{
	"id": "ExercisePlan.json",
	"title": "Exercise Plan",
	"description": "Fitness-related activity designed for a specific health-related purpose, including defined exercise routines as well as activity prescribed by a clinician.",
	"media": {"type": "application/json;profile=http://schema.org/ExercisePlan"},
	"allOf": [{"$ref": "Thing.json"}, {"$ref": "MedicalEntity.json"}, {"$ref": "LifestyleModification.json"}, {"$ref": "PhysicalActivity.json"}, {"$ref": "CreativeWork.json"}],
	"type": "object",
	"properties": {
		"activityDuration": {"$ref": "#/definitions/activityDuration"},
		"activityFrequency": {"$ref": "#/definitions/activityFrequency"},
		"additionalVariable": {
			"oneOf": [
				{
					"type": "array",
					"items": {"$ref": "#/definitions/additionalVariable"}
				},
				{"$ref": "#/definitions/additionalVariable"}
			]
		},
		"exerciseType": {
			"oneOf": [
				{
					"type": "array",
					"items": {"$ref": "#/definitions/exerciseType"}
				},
				{"$ref": "#/definitions/exerciseType"}
			]
		},
		"intensity": {"$ref": "#/definitions/intensity"},
		"repetitions": {"$ref": "#/definitions/repetitions"},
		"restPeriods": {"$ref": "#/definitions/restPeriods"},
		"workload": {"$ref": "#/definitions/workload"}
	},
	"definitions": {
		"activityDuration": {
			"title": "Activity Duration",
			"description": "Length of time to engage in the activity.",
			"anyOf": [{"$ref": "Duration.json#/definitions/possibleRef"}, {"$ref": "QualitativeValue.json#/definitions/possibleRef"}]
		},
		"activityFrequency": {
			"title": "Activity Frequency",
			"description": "How often one should engage in the activity.",
			"anyOf": [{"$ref": "QualitativeValue.json#/definitions/possibleRef"}, {"type": "string"}]
		},
		"additionalVariable": {
			"title": "Additional Variable",
			"description": "Any additional component of the exercise prescription that may need to be articulated to the patient. This may include the order of exercises, the number of repetitions of movement, quantitative distance, progressions over time, etc.",
			"type": "string"
		},
		"array": {
			"type": "array",
			"items": {"$ref": "#"}
		},
		"exerciseType": {
			"title": "Exercise Type",
			"description": "Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc.",
			"type": "string"
		},
		"intensity": {
			"title": "Intensity",
			"description": "Quantitative measure gauging the degree of force involved in the exercise, for example, heartbeats per minute. May include the velocity of the movement.",
			"anyOf": [{"$ref": "QualitativeValue.json#/definitions/possibleRef"}, {"type": "string"}]
		},
		"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": "{+$}"
					}]
				}
			]
		},
		"repetitions": {
			"title": "Repetitions",
			"description": "Number of times one should repeat the activity.",
			"type": "integer",
			"minimum": 1
		},
		"restPeriods": {
			"title": "Rest Periods",
			"description": "How often one should break from the activity.",
			"anyOf": [{"$ref": "QualitativeValue.json#/definitions/possibleRef"}, {"type": "string"}]
		},
		"workload": {
			"title": "Workload",
			"description": "Quantitative measure of the physiologic output of the exercise; also referred to as energy expenditure.",
			"anyOf": [{"$ref": "Energy.json#/definitions/possibleRef"}, {"$ref": "QualitativeValue.json#/definitions/possibleRef"}]
		}
	}
}