{
  "schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://hl7.erp.uno/schema/CodeableReference.schema.json",
  "$ref": "#/definitions/CodeableReference",
  "description": "see https://hl7.org/fhir/R5/json.html for information about the FHIR Json Schemas",
  "definitions" : {
    "CodeableReference": {
      "description": "A reference to a resource (by instance), or instead, a reference to a concept defined in a terminology or ontology (by class).",
      "properties": {
        "id": {
          "description": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "type": "string"
        },
        "extension": {
          "description": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "items": {
            "$ref": "Extension.schema.json#/definitions/Extension"
          },
          "type": "array"
        },
        "concept": {
          "description": "A reference to a concept - e.g. the information is identified by its general class to the degree of precision found in the terminology.",
          "$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept"
        },
        "reference": {
          "description": "A reference to a resource the provides exact details about the information being referenced.",
          "$ref": "Reference.schema.json#/definitions/Reference"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  }
}