{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://publicschema.org/CodedValue.schema.json",
  "title": "CodedValue",
  "description": "A code together with the code scheme that gives it meaning, optionally with the display label supplied by the source and the URI of the concept it denotes. Unknown, retired and local codes remain representable; a label alone does not establish equivalence.",
  "type": "object",
  "properties": {
    "code_value": {
      "type": "string",
      "description": "The code exactly as issued by its scheme, including codes that are unknown or retired."
    },
    "code_scheme": {
      "type": "string",
      "format": "uri",
      "description": "The URI of the code scheme, including its edition when the edition changes what codes mean."
    },
    "code_label": {
      "type": "string",
      "description": "The display text supplied with the code by its source. It does not replace the scheme and code."
    },
    "code_meaning": {
      "type": "string",
      "format": "uri",
      "description": "The URI of the concept the code denotes, when that concept has been confirmed. Leave it absent when no verified interpretation exists."
    }
  },
  "required": [
    "code_value",
    "code_scheme"
  ]
}
