{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://schema.humancellatlas.org/type/biomaterial/8.2.2/donor_organism",
  "description": "Information about the donor organism from which a specimen was collected.",
  "additionalProperties": false,
  "required": [
    "describedBy",
    "schema_type",
    "biomaterial_core",
    "is_living",
    "biological_sex"
  ],
  "title": "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.0/provenance"
    },
    "biomaterial_core": {
      "description": "Core biomaterial-level information.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/core/biomaterial/7.0.1/biomaterial_core"
    },
    "human_specific": {
      "description": "Fields specific to human (homo sapiens) organisms.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/biomaterial/1.0.0/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.0/mouse_specific",
      "user_friendly": "Mouse-specific"
    },
    "death": {
      "description": "Information about conditions of death of an organism.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/biomaterial/5.3.0/death",
      "user_friendly": "Death conditions"
    },
    "medical_history": {
      "description": "Information about the medical history of an organism.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/biomaterial/5.2.1/medical_history",
      "user_friendly": "Medical history"
    },
    "genus_species": {
      "description": "The scientific binomial name for the species of the donor.",
      "type": "array",
      "example": "Homo sapiens",
      "items": {
        "$ref": "https://schema.humancellatlas.org/module/ontology/5.3.0/species_ontology"
      },
      "user_friendly": "Genus species"
    },
    "organism_age": {
      "description": "Age in Organism age unit. Measured since birth.",
      "pattern": "^[0-9]+\\.?[0-9]*-?[0-9]*\\.?[0-9]*$",
      "type": "string",
      "user_friendly": "Organism age",
      "example": "20"
    },
    "organism_age_unit": {
      "description": "The unit in which Organism age is expressed. Must be one of hour, day, week, month, or year.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/ontology/5.3.0/time_unit_ontology",
      "user_friendly": "Organism age unit",
      "example": "year"
    },
    "development_stage": {
      "description": "A classification of the developmental stage of the organism.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/ontology/5.3.0/development_stage_ontology",
      "user_friendly": "Development stage",
      "example": "adult"
    },
    "disease": {
      "description": "Short description of known disease(s) of the organism. Enter normal if no known disease.",
      "type": "array",
      "items": {
        "$ref": "https://schema.humancellatlas.org/module/ontology/5.3.0/disease_ontology"
      },
      "user_friendly": "Known disease(s)",
      "example": "bone squamous cell carcinoma"
    },
    "familial_relationship": {
      "description": "Information about other organisms related to this organism.",
      "type": "array",
      "items": {
        "$ref": "https://schema.humancellatlas.org/module/biomaterial/5.2.1/familial_relationship"
      },
      "user_friendly": "Familial relationship"
    },
    "gestational_age": {
      "description": "Gestational age in Gestational age unit. Measured since fertilization.",
      "pattern": "^[0-9]+\\.?[0-9]*-?[0-9]*\\.?[0-9]*$",
      "type": "string",
      "user_friendly": "Gestational age",
      "example": "5-7"
    },
    "gestational_age_unit": {
      "description": "The unit in which Gestational age is expressed. Must be one of hour, day, week, month, or year.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/ontology/5.3.0/time_unit_ontology",
      "user_friendly": "Gestational age unit",
      "example": "week"
    },
    "height": {
      "description": "Height of organism in Height unit.",
      "pattern": "^[0-9]+\\.?[0-9]*-?[0-9]*\\.?[0-9]*$",
      "type": "string",
      "user_friendly": "Height",
      "example": "160"
    },
    "height_unit": {
      "description": "The unit in which height is expressed.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/ontology/5.3.0/length_unit_ontology",
      "user_friendly": "Height unit",
      "example": "centimeter"
    },
    "is_living": {
      "description": "Yes if organism is alive at time of biomaterial collection. No if dead. Unknown if not known.",
      "type": "string",
      "enum": [
        "yes",
        "no",
        "unknown"
      ],
      "user_friendly": "Is living?",
      "example": "Should be one of: yes, no, unknown."
    },
    "biological_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."
    },
    "weight": {
      "description": "Weight of organism in Weight unit.",
      "pattern": "^[0-9]+\\.?[0-9]*-?[0-9]*\\.?[0-9]*$",
      "type": "string",
      "user_friendly": "Weight",
      "example": "60"
    },
    "weight_unit": {
      "description": "The unit in which weight is expressed.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/ontology/5.3.0/mass_unit_ontology",
      "user_friendly": "Weight unit",
      "example": "kilogram"
    },
    "normothermic_regional_perfusion": {
      "description": "Yes if body (but not limbs) was perfused with warm oxygenated blood. No otherwise.",
      "type": "string",
      "enum": [
        "yes",
        "no",
        "unknown"
      ],
      "user_friendly": "Normothermic regional perfusion",
      "example": "Should be one of: yes, no, unknown."
    }
  }
}
