{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "https://dcc.icgc.org/observation-centric",
  "type": "object",
  "properties": {
    "donor": {
      "id": "https://dcc.icgc.org/observation-centric/donor",
      "type": "object",
      "properties": {
        "_donor_id": {
          "id": "https://dcc.icgc.org/observation-centric/donor/_donor_id",
          "type": "string"
        },
        "_summary": {
          "id": "https://dcc.icgc.org/observation-centric/donor/_summary",
          "type": "object",
          "properties": {
            "_age_at_diagnosis_group": {
              "id": "https://dcc.icgc.org/observation-centric/donor/_summary/_age_at_diagnosis_group",
              "type": "string"
            },
            "_available_data_type": {
              "id": "https://dcc.icgc.org/observation-centric/donor/_summary/_available_data_type",
              "type": "array",
              "items": {
                "id": "https://dcc.icgc.org/observation-centric/donor/_summary/_available_data_type/10",
                "type": "string"
              },
              "additionalItems": false
            },
            "_state": {
              "id": "https://dcc.icgc.org/observation-centric/donor/_summary/_state",
              "type": "string"
            },
            "_studies": {
              "id": "https://dcc.icgc.org/observation-centric/donor/_summary/_studies",
              "type": "array",
              "items": {
                "id": "https://dcc.icgc.org/observation-centric/donor/_summary/_studies/1",
                "type": "string"
              },
              "additionalItems": false
            },
            "experimental_analysis_performed": {
              "id": "https://dcc.icgc.org/observation-centric/donor/_summary/experimental_analysis_performed",
              "type": "array",
              "items": {
                "id": "https://dcc.icgc.org/observation-centric/donor/_summary/experimental_analysis_performed/4",
                "type": "string"
              },
              "additionalItems": false
            }
          },
          "additionalProperties": false
        },
        "disease_status_last_followup": {
          "id": "https://dcc.icgc.org/observation-centric/donor/disease_status_last_followup",
          "type": "string"
        },
        "donor_relapse_type": {
          "id": "https://dcc.icgc.org/observation-centric/donor/donor_relapse_type",
          "type": "string"
        },
        "donor_sex": {
          "id": "https://dcc.icgc.org/observation-centric/donor/donor_sex",
          "type": "string"
        },
        "donor_tumour_stage_at_diagnosis": {
          "id": "https://dcc.icgc.org/observation-centric/donor/donor_tumour_stage_at_diagnosis",
          "type": "string"
        },
        "donor_vital_status": {
          "id": "https://dcc.icgc.org/observation-centric/donor/donor_vital_status",
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "project": {
      "id": "https://dcc.icgc.org/observation-centric/project",
      "type": "object",
      "properties": {
        "_project_id": {
          "id": "https://dcc.icgc.org/observation-centric/project/_project_id",
          "type": "string"
        },
        "primary_site": {
          "id": "https://dcc.icgc.org/observation-centric/project/primary_site",
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "ssm": {
      "id": "https://dcc.icgc.org/observation-centric/ssm",
      "type": "object",
      "properties": {
        "_mutation_id": {
          "id": "https://dcc.icgc.org/observation-centric/ssm/_mutation_id",
          "type": "string"
        },
        "_type": {
          "id": "https://dcc.icgc.org/observation-centric/ssm/_type",
          "type": "string"
        },
        "chromosome": {
          "id": "https://dcc.icgc.org/observation-centric/ssm/chromosome",
          "type": "string"
        },
        "chromosome_end": {
          "id": "https://dcc.icgc.org/observation-centric/ssm/chromosome_end",
          "type": "integer"
        },
        "chromosome_start": {
          "id": "https://dcc.icgc.org/observation-centric/ssm/chromosome_start",
          "type": "integer"
        },
        "gene": {
          "id": "https://dcc.icgc.org/observation-centric/ssm/gene",
          "type": "array",
          "items": {
            "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0",
            "type": "object",
            "properties": {
              "fake": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/fake",
                "description": "Present only when the value is 'true'",
                "type": "boolean"
              },
              "_gene_id": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/_gene_id",
                "type": "string"
              },
              "biotype": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/biotype",
                "type": "string"
              },
              "chromosome": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/chromosome",
                "type": "string"
              },
              "end": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/end",
                "type": "integer"
              },
              "drug": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/drug",
                "type": "array",
                "items": {
                  "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/drug/0",
                  "type": "string"
                },
                "additionalItems": false
              },
              "start": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/start",
                "type": "integer"
              },
              "pathway": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/pathway",
                "type": "array",
                "items": {
                  "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/pathway/4",
                  "type": "string"
                },
                "additionalItems": false
              },
              "go_term": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/go_term",
                "type": "object",
                "properties": {
                  "biological_process": {
                    "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/go_term/biological_process",
                    "type": "array",
                    "items": {
                      "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/go_term/biological_process/0",
                      "type": "string"
                    },
                    "additionalItems": false
                  },
                  "cellular_component": {
                    "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/go_term/cellular_component",
                    "type": "array",
                    "items": {
                      "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/go_term/cellular_component/39",
                      "type": "string"
                    },
                    "additionalItems": false
                  },
                  "molecular_function": {
                    "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/go_term/molecular_function",
                    "type": "array",
                    "items": {
                      "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/go_term/molecular_function/10",
                      "type": "string"
                    },
                    "additionalItems": false
                  }
                },
                "additionalProperties": false
              },
              "consequence": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/consequence",
                "type": "array",
                "items": {
                  "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/consequence/0",
                  "type": "object",
                  "properties": {
                    "consequence_type": {
                      "id": "https://dcc.icgc.org/observation-centric/ssm/gene/0/consequence/0/consequence_type",
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "additionalItems": false
              }
            },
            "additionalProperties": false
          },
          "additionalItems": false
        },
        "mutation": {
          "id": "https://dcc.icgc.org/observation-centric/ssm/mutation",
          "type": "string"
        },
        "mutation_type": {
          "id": "https://dcc.icgc.org/observation-centric/ssm/mutation_type",
          "type": "string"
        },
        "observation": {
          "id": "https://dcc.icgc.org/observation-centric/ssm/observation",
          "type": "array",
          "items": {
            "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0",
            "type": "object",
            "properties": {
              "_matched_sample_id": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/_matched_sample_id",
                "type": "string"
              },
              "_sample_id": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/_sample_id",
                "type": "string"
              },
              "_specimen_id": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/_specimen_id",
                "type": "string"
              },
              "alignment_algorithm": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/alignment_algorithm",
                "type": "string"
              },
              "analyzed_sample_id": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/analyzed_sample_id",
                "type": "string"
              },
              "base_calling_algorithm": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/base_calling_algorithm",
                "type": "string"
              },
              "biological_validation_platform": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/biological_validation_platform",
                "type": "string"
              },
              "biological_validation_status": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/biological_validation_status",
                "type": "string"
              },
              "experimental_protocol": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/experimental_protocol",
                "type": "string"
              },
              "matched_sample_id": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/matched_sample_id",
                "type": "string"
              },
              "mutant_allele_read_count": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/mutant_allele_read_count",
                "type": "integer"
              },
              "other_analysis_algorithm": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/other_analysis_algorithm",
                "type": "string"
              },
              "platform": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/platform",
                "type": "string"
              },
              "probability": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/probability",
                "type": "number"
              },
              "raw_data_accession": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/raw_data_accession",
                "type": "string"
              },
              "raw_data_repository": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/raw_data_repository",
                "type": "string"
              },
              "sequencing_strategy": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/sequencing_strategy",
                "type": "string"
              },
              "total_read_count": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/total_read_count",
                "type": "integer"
              },
              "variation_calling_algorithm": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/variation_calling_algorithm",
                "type": "string"
              },
              "verification_status": {
                "id": "https://dcc.icgc.org/observation-centric/ssm/observation/0/verification_status",
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "additionalItems": false
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}