{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schema.humancellatlas.org/module/biomaterial/5.3.2/death",
  "description": "Information relating to the death of an organism.",
  "additionalProperties": false,
  "required": [
    "cause_of_death"
  ],
  "title": "death",
  "type": "object",
  "properties": {
    "describedBy": {
      "description": "The URL reference to the schema.",
      "type": "string",
      "pattern": "^(http|https)://schema.(.*?)humancellatlas.org/module/biomaterial/(([0-9]{1,}.[0-9]{1,}.[0-9]{1,})|([a-zA-Z]*?))/death"
    },
    "schema_version": {
      "description": "The version number of the schema in major.minor.patch format.",
      "type": "string",
      "pattern": "^[0-9]{1,}.[0-9]{1,}.[0-9]{1,}$",
      "example": "4.6.1"
    },
    "cause_of_death": {
      "description": "Cause of death from death report for human donor, from research lab for mouse.",
      "type": "string",
      "user_friendly": "Cause of death"
    },
    "cold_perfused": {
      "description": "Yes if perfused with cold fluid to help preserve tissues before heart stopped. No otherwise.",
      "type": "boolean",
      "user_friendly": "Cold perfused?",
      "example": "Should be one of: yes, no."
    },
    "days_on_ventilator": {
      "description": "Number of days on ventilator before death occurred.",
      "maximum": 10000,
      "minimum": 0,
      "type": "number",
      "example": 4,
      "user_friendly": "Number of days on ventilator"
    },
    "hardy_scale": {
      "description": "Value of 4-point Hardy scale cause of death classification: (0) ventilator case, (1) violent and fast death, (2) fast death of natural causes, (3) intermediate death, or (4) slow death.",
      "maximum": 4,
      "minimum": 0,
      "type": "integer",
      "example": 0,
      "user_friendly": "Value on Hardy scale"
    },
    "time_of_death": {
      "description": "Date and time of death of the organism, in format yyyy-mm-ddThh:mm:ssZ.",
      "format": "date-time",
      "type": "string",
      "user_friendly": "Time of death",
      "example": "2016-01-21T00:00:00Z"
    },
    "organ_donation_death_type": {
      "description": "Type of death preceding organ donation (for organ donors only).",
      "type": "string",
      "enum": [
        "Donation after circulatory death (DCD)",
        "Donation after brainstem death (DBD)"
      ],
      "user_friendly": "Organ donation death type",
      "example": "Should be one of: Donation after circulatory death (DCD), or Donation after brainstem death (DBD)."
    }
  }
}
