{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://schema.humancellatlas.org/module/biomaterial/5.2.2/medical_history",
  "description": "Information about the medical history of a donor.",
  "additionalProperties": false,
  "title": "medical_history",
  "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]*?))/medical_history"
    },
    "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"
    },
    "alcohol_history": {
      "description": "Estimated number of drink units consumed per day.",
      "type": "string",
      "user_friendly": "Alcohol history",
      "example": "3-6 units/day"
    },
    "medication": {
      "description": "List of medications the individual was taking at time of biomaterial collection.",
      "type": "string",
      "user_friendly": "Medications",
      "example": "Naproxen 500mg/day, "
    },
    "nutritional_state": {
      "description": "Nutritional state of individual at time of biomaterial collection.",
      "type": "string",
      "enum": [
        "normal",
        "fasting",
        "feeding tube removed"
      ],
      "user_friendly": "Nutritional state",
      "example": "Should be one of: normal, fasting, or feeding tube removed."
    },
    "smoking_history": {
      "description": "Estimated number of cigarettes smoked per day and for how many years.",
      "type": "string",
      "user_friendly": "Smoking history",
      "example": "Smoker, 20/day for 25 years, stopped 2000"
    },
    "test_results": {
      "description": "Results from any medical tests performed on the individual.",
      "type": "string",
      "user_friendly": "Test results"
    },
    "treatment": {
      "description": "Description of treatments the individual has undergone prior to biomaterial collection.",
      "type": "string",
      "user_friendly": "Treatments"
    }
  }
}
