{
	"id": "MedicalCode.json",
	"title": "Medical Code",
	"description": "A code for a medical entity.",
	"media": {"type": "application/json;profile=http://schema.org/MedicalCode"},
	"allOf": [
		{"$ref": "Thing.json"},
		{"$ref": "Intangible.json"},
		{"$ref": "DefinedTerm.json"},
		{"$ref": "CategoryCode.json"},
		{"$ref": "MedicalEntity.json"},
		{"$ref": "MedicalIntangible.json"}
	],
	"type": "object",
	"properties": {
		"codeValue": {"$ref": "#/definitions/codeValue"},
		"codingSystem": {"$ref": "#/definitions/codingSystem"}
	},
	"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": "{+$}"
					}]
				}
			]
		},
		"codeValue": {
			"title": "Code Value",
			"description": "A short textual code that uniquely identifies the value.",
			"type": "string"
		},
		"codingSystem": {
			"title": "Coding System",
			"description": "The coding system, e.g. 'ICD-10'.",
			"type": "string"
		}
	}
}