{
  "schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://hl7.erp.uno/schema/Annotation.schema.json",
  "$ref": "#/definitions/Annotation",
  "description": "see https://hl7.org/fhir/R5/json.html for information about the FHIR Json Schemas",
  "definitions": {
    "Annotation": {
      "allOf": [
        {
          "description": "A  text note which also  contains information about who made the statement and when.",
          "properties": {
            "authorReference": {
              "description": "The individual responsible for making the annotation.",
              "$ref": "Reference.schema.json#/definitions/Reference"
            },
            "authorString": {
              "description": "The individual responsible for making the annotation.",
              "type": "string"
            },
            "time": {
              "description": "Indicates when this particular annotation was made.",
              "type": "string",
              "pattern": "-?[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?"
            },
            "text": {
              "description": "The text of the annotation.",
              "type": "string"
            }
          }
        }
      ]
    }
  }
}