{
	"id": "MedicalStudy.json",
	"title": "Medical Study",
	"description": "A medical study is an umbrella type covering all kinds of research studies relating to human medicine or health, including observational studies and interventional trials and registries, randomized, controlled or not. When the specific type of study is known, use one of the extensions of this type, such as MedicalTrial or MedicalObservationalStudy. Also, note that this type should be used to mark up data that describes the study itself; to tag an article that publishes the results of a study, use MedicalScholarlyArticle. Note: use the code property of MedicalEntity to store study IDs, e.g. clinicaltrials.gov ID.",
	"media": {"type": "application/json;profile=http://schema.org/MedicalStudy"},
	"allOf": [{"$ref": "Thing.json"}, {"$ref": "MedicalEntity.json"}],
	"type": "object",
	"properties": {
		"healthCondition": {"$ref": "MedicalCondition.json#/definitions/possibleRef"},
		"outcome": {"$ref": "#/definitions/outcome"},
		"population": {"$ref": "#/definitions/population"},
		"sponsor": {
			"oneOf": [
				{
					"type": "array",
					"items": {"$ref": "#/definitions/sponsor"}
				},
				{"$ref": "#/definitions/sponsor"}
			]
		},
		"status": {"$ref": "#/definitions/status"},
		"studyLocation": {"$ref": "AdministrativeArea.json#/definitions/possibleRef"},
		"studySubject": {"$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": "{+$}"
					}]
				}
			]
		},
		"outcome": {
			"title": "Outcome",
			"description": "Expected or actual outcomes of the study.",
			"anyOf": [{"type": "string"}, {"$ref": "MedicalEntity.json#/definitions/possibleRef"}]
		},
		"population": {
			"title": "Population",
			"description": "Any characteristics of the population used in the study, e.g. 'males under 65'.",
			"type": "string"
		},
		"sponsor": {
			"title": "Sponsor",
			"description": "A person or organization that supports a thing through a pledge, promise, or financial contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event.",
			"anyOf": [{"$ref": "Organization.json#/definitions/possibleRef"}, {"$ref": "Person.json#/definitions/possibleRef"}]
		},
		"status": {
			"title": "Status",
			"description": "The status of the study (enumerated).",
			"anyOf": [{"$ref": "EventStatusType.json#/definitions/possibleRef"}, {"$ref": "MedicalStudyStatus.json#/definitions/possibleRef"}, {"type": "string"}]
		}
	}
}