{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schema.humancellatlas.org/type/biomaterial/6.3.0/specimen_from_organism",
  "description": "Information about the specimen that was collected from the donor organism.",
  "additionalProperties": false,
  "required": [
    "describedBy",
    "schema_type",
    "biomaterial_core",
    "organ"
  ],
  "title": "specimen_from_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]*?))/specimen_from_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.2/provenance"
    },
    "biomaterial_core": {
      "description": "Core biomaterial-level information.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/core/biomaterial/7.0.2/biomaterial_core"
    },
    "genus_species": {
      "description": "The scientific binomial name for the species of the specimen.",
      "type": "array",
      "example": "Homo sapiens",
      "items": {
        "$ref": "https://schema.humancellatlas.org/module/ontology/5.3.1/species_ontology"
      },
      "user_friendly": "Genus species"
    },
    "organ": {
      "description": "The organ that the biomaterial came from. Blood and connective tissue are considered organs.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/ontology/5.3.2/organ_ontology",
      "example": "blood",
      "comment": "The term organ is very broadly defined here.",
      "user_friendly": "Organ"
    },
    "organ_part": {
      "description": "A term for a specific part of the organ that the biomaterial came from.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/ontology/5.3.1/organ_part_ontology",
      "example": "umbilical cord blood",
      "comment": "The term organ part is very broadly defined here.",
      "user_friendly": "Organ part"
    },
    "diseases": {
      "description": "Short description of known disease(s) of the specimen. Enter normal if no known disease.",
      "type": "array",
      "items": {
        "$ref": "https://schema.humancellatlas.org/module/ontology/5.3.2/disease_ontology"
      },
      "user_friendly": "Known disease(s)",
      "example": "bone squamous cell carcinoma"
    },
    "state_of_specimen": {
      "description": "State of the specimen at the time of collection.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/biomaterial/5.2.5/state_of_specimen",
      "user_friendly": "State of specimen"
    },
    "preservation_storage": {
      "description": "Information about how a specimen was preserved and/or stored over a period of time.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/biomaterial/5.3.2/preservation_storage",
      "user_friendly": "Preservation/Storage"
    },
    "collection_time": {
      "description": "When the biomaterial was collected, in date-time format, yyyy-mm-ddThh:mm:ssZ.",
      "type": "string",
      "format": "date-time",
      "user_friendly": "Time of collection",
      "example": "2017-03-19T07:22:00Z"
    },
    "purchased_specimen": {
      "description": "Information about a purchased specimen.",
      "type": "object",
      "$ref": "https://schema.humancellatlas.org/module/process/6.0.2/purchased_reagents",
      "user_friendly": "Purchased specimen"
    }
  }
}
