{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "https://dcc.icgc.org/donor-centric",
    "type": "object",
    "properties": {
        "_donor_id": {
            "id": "https://dcc.icgc.org/donor-centric/_donor_id",
            "type": "string"
        },
        "_project_id": {
            "id": "https://dcc.icgc.org/donor-centric/_project_id",
            "type": "string"
        },
        "_summary": {
            "id": "https://dcc.icgc.org/donor-centric/_summary",
            "type": "object",
            "properties": {
                "_affected_gene_count": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/_affected_gene_count",
                    "type": "integer"
                },
                "_age_at_diagnosis_group": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/_age_at_diagnosis_group",
                    "type": "string"
                },
                "_available_data_type": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/_available_data_type",
                    "type": "array",
                    "items": {
                        "id": "https://dcc.icgc.org/donor-centric/_summary/_available_data_type/0",
                        "type": "string"
                    },
                    "additionalItems": false
                },
                "_cngv_exists": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/_cngv_exists",
                    "type": "boolean"
                },
                "_cnsm_exists": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/_cnsm_exists",
                    "type": "boolean"
                },
                "_exp_array_exists": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/_exp_array_exists",
                    "type": "boolean"
                },
                "_exp_seq_exists": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/_exp_seq_exists",
                    "type": "boolean"
                },
                "_jcn_exists": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/_jcn_exists",
                    "type": "boolean"
                },
                "_meth_array_exists": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/_meth_array_exists",
                    "type": "boolean"
                },
                "_meth_seq_exists": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/_meth_seq_exists",
                    "type": "boolean"
                },
                "_mirna_seq_exists": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/_mirna_seq_exists",
                    "type": "boolean"
                },
                "_pexp_exists": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/_pexp_exists",
                    "type": "boolean"
                },
                "_sgv_exists": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/_sgv_exists",
                    "type": "boolean"
                },
                "_ssm_count": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/_ssm_count",
                    "type": "integer"
                },
                "_state": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/_state",
                    "type": "string"
                },
                "_stgv_exists": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/_stgv_exists",
                    "type": "boolean"
                },
                "_stsm_exists": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/_stsm_exists",
                    "type": "boolean"
                },
                "_studies": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/_studies",
                    "type": "array",
                    "items": {
                        "id": "https://dcc.icgc.org/donor-centric/_summary/_studies/0",
                        "type": "string"
                    },
                    "additionalItems": false
                },
                "experimental_analysis_performed": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/experimental_analysis_performed",
                    "type": "array",
                    "items": {
                        "id": "https://dcc.icgc.org/donor-centric/_summary/experimental_analysis_performed/0",
                        "type": "string"
                    },
                    "additionalItems": false
                },
                "experimental_analysis_performed_sample_count": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/experimental_analysis_performed_sample_count",
                    "type": "object",
                    "description": "Each field of the object has name of experimental analysis performed and it's count. E.g. WGA:10",
                    "patternProperties": {
                        "^\\w+(-\\w+)+$": {
                            "type": "integer"
                        }
                    },
                    "additionalProperties": false
                },
                "repository": {
                    "id": "https://dcc.icgc.org/donor-centric/_summary/repository",
                    "type": "array",
                    "items": {
                        "id": "https://dcc.icgc.org/donor-centric/_summary/repository/0",
                        "type": "string"
                    },
                    "additionalItems": false
                }
            },
            "additionalProperties": false
        },
        "disease_status_last_followup": {
            "id": "https://dcc.icgc.org/donor-centric/disease_status_last_followup",
            "type": "string"
        },
        "donor_age_at_diagnosis": {
            "id": "https://dcc.icgc.org/donor-centric/donor_age_at_diagnosis",
            "type": "integer"
        },
        "donor_relapse_type": {
            "id": "https://dcc.icgc.org/donor-centric/donor_relapse_type",
            "type": "string"
        },
        "donor_sex": {
            "id": "https://dcc.icgc.org/donor-centric/donor_sex",
            "type": "string"
        },
        "donor_survival_time": {
            "id": "https://dcc.icgc.org/donor-centric/donor_survival_time",
            "type": "integer"
        },
        "donor_tumour_stage_at_diagnosis": {
            "id": "https://dcc.icgc.org/donor-centric/donor_tumour_stage_at_diagnosis",
            "type": "string"
        },
        "donor_vital_status": {
            "id": "https://dcc.icgc.org/donor-centric/donor_vital_status",
            "type": "string"
        },
        "gene": {
            "id": "https://dcc.icgc.org/donor-centric/gene",
            "type": "array",
            "items": {
                "id": "https://dcc.icgc.org/donor-centric/gene/1",
                "type": "object",
                "properties": {
                    "_gene_id": {
                        "id": "https://dcc.icgc.org/donor-centric/gene/1/_gene_id",
                        "type": "string"
                    },
                    "biotype": {
                        "id": "https://dcc.icgc.org/donor-centric/gene/1/biotype",
                        "type": "string"
                    },
                    "chromosome": {
                        "id": "https://dcc.icgc.org/donor-centric/gene/1/chromosome",
                        "type": "string"
                    },
                    "curated_set": {
                        "id": "https://dcc.icgc.org/donor-centric/gene/0/curated_set",
                        "type": "array",
                        "items": {
                            "id": "https://dcc.icgc.org/donor-centric/gene/0/curated_set/0",
                            "type": "string"
                        },
                        "additionalItems": false
                    },
                    "drug": {
                        "id": "https://dcc.icgc.org/donor-centric/gene/0/drug",
                        "type": "array",
                        "items": {
                            "id": "https://dcc.icgc.org/donor-centric/gene/0/drug/0",
                            "type": "string"
                        },
                        "additionalItems": false
                    },
                    "end": {
                        "id": "https://dcc.icgc.org/donor-centric/gene/1/end",
                        "type": "integer"
                    },
                    "fake": {
                        "id": "https://dcc.icgc.org/donor-centric/gene/1/fake",
                        "description": "This is present only when the value is 'true'",
                        "type": "boolean"
                    },
                    "go_term": {
                        "id": "https://dcc.icgc.org/donor-centric/gene/0/go_term",
                        "type": "object",
                        "properties": {
                            "biological_process": {
                                "id": "https://dcc.icgc.org/donor-centric/gene/0/go_term/biological_process",
                                "type": "array",
                                "items": {
                                    "id": "https://dcc.icgc.org/donor-centric/gene/0/go_term/biological_process/52",
                                    "type": "string"
                                },
                                "additionalItems": false
                            },
                            "cellular_component": {
                                "id": "https://dcc.icgc.org/donor-centric/gene/0/go_term/cellular_component",
                                "type": "array",
                                "items": {
                                    "id": "https://dcc.icgc.org/donor-centric/gene/0/go_term/cellular_component/39",
                                    "type": "string"
                                },
                                "additionalItems": false
                            },
                            "molecular_function": {
                                "id": "https://dcc.icgc.org/donor-centric/gene/0/go_term/molecular_function",
                                "type": "array",
                                "items": {
                                    "id": "https://dcc.icgc.org/donor-centric/gene/0/go_term/molecular_function/10",
                                    "type": "string"
                                },
                                "additionalItems": false
                            }
                        },
                        "additionalProperties": false
                    },
                    "pathway": {
                        "id": "https://dcc.icgc.org/donor-centric/gene/0/pathway",
                        "type": "array",
                        "items": {
                            "id": "https://dcc.icgc.org/donor-centric/gene/0/pathway/4",
                            "type": "string"
                        },
                        "additionalItems": false
                    },
                    "ssm": {
                        "id": "https://dcc.icgc.org/donor-centric/gene/1/ssm",
                        "type": "array",
                        "items": {
                            "id": "https://dcc.icgc.org/donor-centric/gene/1/ssm/0",
                            "type": "object",
                            "properties": {
                                "_mutation_id": {
                                    "id": "https://dcc.icgc.org/donor-centric/gene/1/ssm/0/_mutation_id",
                                    "type": "string"
                                },
                                "_type": {
                                    "id": "https://dcc.icgc.org/donor-centric/gene/1/ssm/0/_type",
                                    "type": "string"
                                },
                                "chromosome": {
                                    "id": "https://dcc.icgc.org/donor-centric/gene/1/ssm/0/chromosome",
                                    "type": "string"
                                },
                                "chromosome_end": {
                                    "id": "https://dcc.icgc.org/donor-centric/gene/1/ssm/0/chromosome_end",
                                    "type": "integer"
                                },
                                "chromosome_start": {
                                    "id": "https://dcc.icgc.org/donor-centric/gene/1/ssm/0/chromosome_start",
                                    "type": "integer"
                                },
                                "consequence": {
                                    "id": "https://dcc.icgc.org/donor-centric/gene/1/ssm/0/consequence",
                                    "type": "array",
                                    "items": {
                                        "id": "https://dcc.icgc.org/donor-centric/gene/1/ssm/0/consequence/0",
                                        "type": "object",
                                        "properties": {
                                            "consequence_type": {
                                                "id": "https://dcc.icgc.org/donor-centric/gene/1/ssm/0/consequence/0/consequence_type",
                                                "type": "string"
                                            },
                                            "functional_impact_prediction_summary": {
                                                "id": "https://dcc.icgc.org/donor-centric/gene/1/ssm/0/consequence/0/functional_impact_prediction_summary",
                                                "type": "string"
                                            }
                                        },
                                        "additionalProperties": false
                                    },
                                    "additionalItems": false
                                },
                                "mutation_type": {
                                    "id": "https://dcc.icgc.org/donor-centric/gene/1/ssm/0/mutation_type",
                                    "type": "string"
                                },
                                "observation": {
                                    "id": "https://dcc.icgc.org/donor-centric/gene/1/ssm/0/observation",
                                    "type": "array",
                                    "items": {
                                        "id": "https://dcc.icgc.org/donor-centric/gene/1/ssm/0/observation/0",
                                        "type": "object",
                                        "properties": {
                                            "verification_status": {
                                                "id": "https://dcc.icgc.org/donor-centric/gene/1/ssm/0/observation/0/verification_status",
                                                "type": "string"
                                            },
                                            "platform": {
                                                "id": "https://dcc.icgc.org/donor-centric/gene/1/ssm/0/observation/0/platform",
                                                "type": "string"
                                            },
                                            "sequencing_strategy": {
                                                "id": "https://dcc.icgc.org/donor-centric/gene/1/ssm/0/observation/0/sequencing_strategy",
                                                "type": "string"
                                            }
                                        },
                                        "additionalProperties": false
                                    },
                                    "additionalItems": false
                                }
                            },
                            "additionalProperties": false
                        },
                        "additionalItems": false
                    },
                    "start": {
                        "id": "https://dcc.icgc.org/donor-centric/gene/1/start",
                        "type": "integer"
                    },
                    "symbol": {
                        "id": "https://dcc.icgc.org/donor-centric/gene/1/symbol",
                        "type": "string"
                    }
                },
                "additionalProperties": false
            },
            "additionalItems": false
        },
        "project": {
            "id": "https://dcc.icgc.org/donor-centric/project",
            "type": "object",
            "properties": {
                "_project_id": {
                    "id": "https://dcc.icgc.org/donor-centric/project/_project_id",
                    "type": "string"
                },
                "primary_site": {
                    "id": "https://dcc.icgc.org/donor-centric/project/primary_site",
                    "type": "string"
                }
            },
            "additionalProperties": false
        }
    },
    "additionalProperties": false,
    "required": [
        "_donor_id"
    ]
}