{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Classification",
    "description": "A classification from a code list",
    "type": "object",
    "properties": {
        "code_scheme_id": {
            "description": "The scheme of the classification",
            "type": "string"
        },
        "code": {
            "description": "The classification",
            "type": "string"
        },
        "name": {
            "description": "A title or description of the classification, especially if the value is a code",
            "type": "string"
        }
    },
    "additionalProperties": false,
    "anyOf": [
        {
            "required": [
                "name"
            ]
        },
        {
            "required": [
                "code",
                "code_scheme_id"
            ]
        }
    ]
}