{
	"id": "Substance.json",
	"title": "Substance",
	"description": "Any matter of defined composition that has discrete existence, whose origin may be biological, mineral or chemical.",
	"media": {"type": "application/json;profile=http://schema.org/Substance"},
	"allOf": [{"$ref": "Thing.json"}, {"$ref": "MedicalEntity.json"}],
	"type": "object",
	"properties": {
		"activeIngredient": {
			"oneOf": [
				{
					"type": "array",
					"items": {"$ref": "#/definitions/activeIngredient"}
				},
				{"$ref": "#/definitions/activeIngredient"}
			]
		},
		"maximumIntake": {"$ref": "MaximumDoseSchedule.json#/definitions/possibleRef"}
	},
	"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": "{+$}"
					}]
				}
			]
		},
		"activeIngredient": {
			"title": "Active Ingredient",
			"description": "An active ingredient, typically chemical compounds and/or biologic substances.",
			"type": "string"
		}
	}
}