{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schema.humancellatlas.org/type/biomaterial/12.0.1/donor_organism",
  "description": "Information about the donor organism from which a specimen was collected.",
  "additionalProperties": false,
  "required": [
    "describedBy",
    "schema_type",
    "biomaterial_core",
    "is_living",
    "sex",
    "development_stage"
  ],
  "title": "Donor organism",
  "name": "donor_organism",
  "type": "object",
  "properties": {
    "describedBy": {
      "description": "The URL reference to the schema.",
      "type": "string",
      "pattern": "^(http|https)://schema.(.*?)humancellatlas.org/type/biomaterial/(([0-9]{1,}.[0-9]{1,}.[0-9]{1,})|([a-zA-Z]*?))/donor_organism"
    },
    "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"
    },
    "schema_type": {
      "description": "The type of the metadata schema entity.",
      "type": "string",
      "enum": [
        "biomaterial"
      ]
    },
    "provenance": {
      "description": "Provenance information provided by the system.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/system/1.0.3/provenance"
    },
    "biomaterial_core": {
      "description": "Core biomaterial-level information.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/core/biomaterial/7.0.3/biomaterial_core",
      "user_friendly": "Biomaterial core"
    },
    "human_specific": {
      "description": "Fields specific to human (homo sapiens) organisms.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/biomaterial/1.0.6/human_specific",
      "user_friendly": "Human-specific"
    },
    "mouse_specific": {
      "description": "Fields specific to mouse (mus musculus) organisms.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/biomaterial/1.0.5/mouse_specific",
      "user_friendly": "Mouse-specific"
    },
    "genus_species": {
      "description": "The scientific binomial name for the species of the organism.",
      "type": "array",
      "items": {
        "$ref": "https://schema.humancellatlas.org/module/ontology/5.3.3/species_ontology"
      },
      "user_friendly": "Genus species"
    },
    "sex": {
      "description": "The biological sex of the organism.",
      "type": "string",
      "enum": [
        "female",
        "male",
        "mixed",
        "unknown"
      ],
      "user_friendly": "Biological sex",
      "example": "Should be one of: male, female, mixed, or unknown."
    },
    "is_living": {
      "description": "Whether organism was alive at time of biomaterial collection.",
      "type": "string",
      "enum": [
        "yes",
        "no",
        "unknown"
      ],
      "user_friendly": "Alive at collection?",
      "example": "Should be one of: yes, no, unknown.",
      "guidelines": "Enter yes if organism was alive at time of biomaterial collection, no if organism was dead, unknown if not known."
    },
    "organism_age": {
      "description": "Age of organism in Age units measured since birth.",
      "pattern": "^[0-9]+\\.?[0-9]*-?[0-9]*\\.?[0-9]*$",
      "type": "string",
      "user_friendly": "Age",
      "example": "20, 45-65",
      "guidelines": "Enter either a single value or a range of values. Indicate a range using a hyphen."
    },
    "organism_age_unit": {
      "description": "The unit in which Age is expressed.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/ontology/5.3.3/time_unit_ontology",
      "user_friendly": "Age unit"
    },
    "development_stage": {
      "description": "A classification of the developmental stage of the organism.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/ontology/5.3.3/development_stage_ontology",
      "user_friendly": "Development stage"
    },
    "diseases": {
      "description": "Short description of known disease(s) of the organism.",
      "type": "array",
      "items": {
        "$ref": "https://schema.humancellatlas.org/module/ontology/5.3.4/disease_ontology"
      },
      "user_friendly": "Known disease(s)",
      "guidelines": "Enter 'normal' if no known disease."
    },
    "death": {
      "description": "Information about conditions of death of the organism.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/biomaterial/5.4.0/death",
      "user_friendly": "Death conditions"
    },
    "familial_relationship": {
      "description": "Information about other organisms related to this organism.",
      "type": "array",
      "items": {
        "$ref": "https://schema.humancellatlas.org/module/biomaterial/6.0.2/familial_relationship"
      },
      "user_friendly": "Familial relationship"
    },
    "medical_history": {
      "description": "Information about the medical history of the organism.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/biomaterial/5.2.4/medical_history",
      "user_friendly": "Medical history"
    },
    "gestational_age": {
      "description": "Gestational age of organism in Gestational age units measured since fertilization.",
      "pattern": "^[0-9]+\\.?[0-9]*-?[0-9]*\\.?[0-9]*$",
      "type": "string",
      "user_friendly": "Gestational age",
      "example": "22, 5-7",
      "guidelines": "Enter either a single value or a range of values. Indicate a range using a hyphen."
    },
    "gestational_age_unit": {
      "description": "The unit in which Gestational age is expressed.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/ontology/5.3.3/time_unit_ontology",
      "user_friendly": "Gestational age unit"
    },
    "height": {
      "description": "Height of organism in Height unit.",
      "pattern": "^[0-9]+\\.?[0-9]*-?[0-9]*\\.?[0-9]*$",
      "type": "string",
      "user_friendly": "Height",
      "example": "160, 120-140",
      "guidelines": "Enter either a single value or a range of values. Indicate a range using a hyphen."
    },
    "height_unit": {
      "description": "The unit in which Height is expressed.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/ontology/5.3.3/length_unit_ontology",
      "user_friendly": "Height unit"
    },
    "weight": {
      "description": "Weight of organism in Weight unit.",
      "pattern": "^[0-9]+\\.?[0-9]*-?[0-9]*\\.?[0-9]*$",
      "type": "string",
      "user_friendly": "Weight",
      "example": "60, 40-60",
      "guidelines": "Enter either a single value or a range of values. Indicate a range using a hyphen."
    },
    "weight_unit": {
      "description": "The unit in which Weight is expressed.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/ontology/5.3.3/mass_unit_ontology",
      "user_friendly": "Weight unit"
    },
    "timecourse": {
      "description": "Information relating to a timecourse associated with this biomaterial.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/biomaterial/1.1.4/timecourse",
      "user_friendly": "Timecourse"
    }
  }
}
