{
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "id": {
        "type": "string",
        "description": "Unique ID of the clinical trial"
      },
      "status": {
          "type": "string",
          "description": "The status of the clinical trial"
      },
      "registry": {
        "type": "string",
        "description": "Name of the registry"
      },

      "linkout": {
        "type": "string",
        "description": "Link to the detail page of the registry's website"
      },
      "title": {
        "type": "string",
        "description": "Title of the clinical trial"
      },
      "brief_title": {
        "type": [
          "string",
          "null"
        ],
        "description": "Brief title of the clinical trial"
      },
      "acronym": {
        "type": [
          "string",
          "null"
        ],
        "description": "Acronym of the clinical trial"
      },
      "summary": {
        "type": [
          "string",
          "null"
        ],
        "description": "The summary text describing the clinical trial"
      },
      "start_date": {
        "minLength": 4,
        "maxLength": 10,
        "pattern": "^([0-9]{4}|[0-9]{4}-[0-9]{2}|[0-9]{4}-[0-9]{2}-[0-9]{2})$",
        "type": [
          "string",
          "integer",
          "null"
        ],
        "description": "Start of the trial, year-month or just year",
        "examples": [
          "2019-01",
          "2016"
        ]
      },
      "end_date": {
        "minLength": 4,
        "maxLength": 10,
        "pattern": "^([0-9]{4}|[0-9]{4}-[0-9]{2}|[0-9]{4}-[0-9]{2}-[0-9]{2})$",
        "type": [
          "string",
          "integer",
          "null"
        ],
        "description": "End of the trial, year-month or just year",
        "examples": [
          "2009-05",
          "2008"
        ]
      },
      "primary_completion_date": {
        "minLength": 4,
        "maxLength": 10,
        "pattern": "^([0-9]{4}|[0-9]{4}-[0-9]{2}|[0-9]{4}-[0-9]{2}-[0-9]{2})$",
        "type": [
          "string",
          "integer",
          "null"
        ],
        "description": "Primary completion date provided by trial, year-month or just year",
        "examples": [
          "2019-01",
          "2016"
        ]
      },
      "results_first_posted": {
        "type": [
          "string",
          "null"
        ],
        "description": "First time trials results are posted"
      },
      "registration_date": {
        "type": [
          "string",
          "null"
        ],
        "description": "The date the trial is entered onto a publicly accessible register"
      },
      "registration_date_year": {
        "type": [
          "string",
          "null"
        ],
        "description": "The year the trial is entered onto a publicly accessible register"
      },
      "created_in_dimensions": {
        "type": "string",
        "format": "date-time"
      },
      "conditions": {
        "type": "array",
        "description": "List of the medical conditions that are being treated.",
        "items": [
          {
            "type": "string"
          }
        ]
      },
      "conditions_normalized": {
        "type": "array",
        "description": "List of the medical conditions normalized that are being treated.",
        "items": [
          {
            "type": "string"
          }
        ]
      },
      "condition_categories": {
        "type": "array",
        "description": "List of diseases, disorders, syndromes, illnesses, or injuries that are being studied at broad level.",
        "items": [
          {
            "type": "string"
          }
        ]
      },
      "mesh_terms": {
        "type": "array",
        "description": "List of the mesh terms.",
        "items": [
          {
            "type": "string"
          }
        ]
      },
      "keywords": {
        "type": "array",
        "description": "List of keywords.",
        "items": [
          {
            "type": "string"
          }
        ]
      },
      "gender": {
        "type": "string",
        "description": "Gender of participants. Is one of 'All', 'Male' and 'Female'",
        "enum": [
          "All",
          "Male",
          "Female"
        ]
      },
      "phase": {
        "type": [
          "string",
          "null"
        ],
        "description": "Clinical trial phase"
      },
      "organisations": {
        "type": "array",
        "description": "List of names and GRID IDs together with their location information of all types of organisations associated with the trial",
        "items": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "raw_name": {
                "type": "string",
                "description": "The organisation name as collected from the registry"
              },
              "grid_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The GRID ID of the organisation"
              },
              "cities": {
                "type": "array",
                "items": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "title": "The cities identified in the affiliation, as geoname IDs"
              },
              "countries_territories": {
                "type": "array",
                "items": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "title": "The country/territories identified in the affiliation, as ISO-3166 alpha-2 codes"
              },
              "states": {
                "type": "array",
                "items": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "title": "The states/regions identified in the affiliation, as ISO 3166-2 codes"
              },
              "org_type_provided": {
                "type": "string",
                "title": "Type of the organisation involved, provided by the registry"
              },
              "org_type": {
                "type": "string",
                "title": "Type of the organisation involved, provided during enrichment process"
              }
            }
          }
        ]
      },
      "linked_publications": {
        "deprecated": true,
        "type": "array",
        "description": "Dimensions publication ids linked to the clinical trial",
        "items": {
          "type": "string"
        }
      },
      "cited_publications": {
        "type": "array",
        "description": "Dimensions ids of publications cited by the clinical trial",
        "items": {
          "type": "string"
        }
      },
      "resulting_publications": {
        "type": "array",
        "description": "Dimensions ids of publications resulting from clinical trial",
        "items": {
          "type": "string"
        }
      },
      "funding": {
        "$ref": "https://digital-science.github.io/dimensions-data-schemas/schemas/shared/funding/2.schema.json#/definitions/funding"
      },
      "secondary_ids": {
        "type": "array",
        "description": "List of secondary ids",
        "items": [
          {
            "type": "string"
          }
        ]
      },
      "secondary_ids_json": {
        "type": "array",
        "description": "Secondary ids json detail",
        "items": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Secondary id value"
              },
              "type": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Type of the secondary id"
              },
              "domain": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Domain of the secondary id"
              }
            }
          }
        ]
      },
      "investigators": {
        "deprecated": true,
        "type": "array",
        "description": "Researchers involved in the trials",
        "items": [
          {
            "type": "object",
            "properties": {
              "grid_ids": {
                "type": "array",
                "description": "A list of the GRID IDs of their affiliations on the clinical trial",
                "items": [
                  {
                    "type": "string"
                  }
                ]
              },
              "id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Dimensions researcher id"
              },
              "name": {
                "type": "string",
                "description": "Full name of the investigator"
              },
              "role": {
                "type": "string",
                "description": "Role the investigator took in this clinical trial (roles vary between registries)"
              }
            },
            "required": [
              "name",
              "role"
            ]
          }
        ]
      },
      "categories": {
        "$ref": "https://digital-science.github.io/dimensions-data-schemas/schemas/shared/categories/1.schema.json#/definitions/categories"
      },
      "clinical_investigators": {
        "type": "array",
        "items": {
          "$ref": "https://digital-science.github.io/dimensions-data-schemas/schemas/shared/people/1.schema.json#/definitions/clinical_investigator",
          "additionalProperties": false
        }
      },
      "altmetric_id": {
        "type": [
          "integer",
          "null"
        ],
        "description": "The Altmetric unique id of the clinical trial"
      },
      "altmetric": {
        "type": [
          "integer",
          "null"
        ],
        "description": "The Altmetric score of the clinical trial"
      },
      "interventions": {
        "type": [
          "array",
          "null"
        ],
        "description": "List of process or action that is the focus of a clinical study",
        "items": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "arm_group_labels": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Referring to the study arm label"
              }
            }
          }
        ]
      },
      "concepts_scores_v6": {
        "$ref": "https://digital-science.github.io/dimensions-data-schemas/schemas/shared/concepts/1.schema.json#/definitions/concepts_scores"
      },
      "enrollment_amount": {
        "type": [
          "integer",
          "null"
        ],
        "description": "The actual or estimated target number of participants"
      },
      "overall_status": {
        "type": [
          "string",
          "null"
        ],
        "description": "Status of the trial as provided by the registry"
      },
      "minimum_age": {
        "type": [
          "string",
          "null"
        ],
        "description": "Minimum age eligible for study"
      },
      "maximum_age": {
        "type": [
          "string",
          "null"
        ],
        "description": "Maximum age eligible for study"
      },
      "eligibility_criteria": {
        "type": [
          "string",
          "null"
        ],
        "description": "Criteria for participating"
      },
      "inclusion_criteria": {
        "type": [
          "string",
          "null"
        ],
        "description": "Inclusion criteria for participating"
      },
      "exclusion_criteria": {
        "type": [
          "string",
          "null"
        ],
        "description": "Exclusion criteria for participating"
      },
      "study_type": {
        "type": [
          "string",
          "null"
        ],
        "description": "For example: Interventional, Observational, etc."
      },
      "outcome_measures": {
        "type": [
          "array",
          "null"
        ],
        "description": "List of outcome measures",
        "items": [
        {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "measure": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description of the measure"
              },
              "type": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "primary, secondary, etc."
              },
              "time_frame": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description of the timeframe"
              }
            }
          }
        ]
      },
      "study_arms": {
        "type": [
          "array",
          "null"
        ],
        "description": "A group or subgroup of participants that receives a specific intervention/treatment, or no intervention, according to the trial's protocol",
        "items": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "type": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Type of the study arm, eg. Active Comparator, Experimental, No intervention, etc."
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        ]
      },
      "study_designs": {
        "type": [
          "array",
          "null"
        ],
        "items": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "allocation": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "intervention_model": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "primary_purpose": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "masking": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "other_non_interventional": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        ]
      },
      "format": {
        "type": "integer",
        "description": "Version of the schema used",
        "minimum": 10,
        "maximum": 10
      }
    },
    "required": [
      "format",
      "gender",
      "id",
      "status",
      "linkout",
      "registry",
      "title",
      "created_in_dimensions"
    ]
  }
  