{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://heartcortex.ai/schemas/1.0/property.schema.json",
  "title": "property",
  "type": "object",
  "required": [
    "name",
    "privacy"
  ],
  "properties": {
    "name": {
      "$ref": "common.schema.json#/$defs/capabilityName",
      "x-heart-privacy": "public"
    },
    "privacy": {
      "$ref": "common.schema.json#/$defs/messageLevel",
      "x-heart-privacy": "public"
    },
    "unit": {
      "description": "UCUM unit code.",
      "type": "string",
      "x-heart-privacy": "public"
    },
    "writable": {
      "type": "boolean",
      "x-heart-privacy": "public"
    },
    "quality": {
      "enum": [
        "good",
        "uncertain",
        "bad"
      ],
      "x-heart-privacy": "public"
    },
    "time": {
      "$ref": "common.schema.json#/$defs/timestamp",
      "x-heart-privacy": "public"
    },
    "value": {
      "description": "The value, in unit. Its privacy level is the sibling privacy field (annotation dynamic).",
      "x-heart-privacy": "dynamic"
    },
    "ext": {
      "$ref": "common.schema.json#/$defs/ext",
      "x-heart-privacy": "private"
    }
  }
}
