{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://nmdvcell.com/resource/api/v2/diseases/schema.json",
  "title": "NMD-VCell disease evidence module v2",
  "type": "object",
  "$defs": {
    "evidenceState": {
      "type": "string",
      "enum": [
        "MEASURED",
        "INDUCED",
        "CORRECTED",
        "PERTURBED",
        "PREDICTED",
        "VALIDATED",
        "MISSING"
      ]
    },
    "dataset": {
      "type": "object",
      "required": [
        "dataset_id",
        "accession",
        "state",
        "qualifiers",
        "statistical_unit",
        "contrast",
        "provenance_url"
      ],
      "properties": {
        "dataset_id": {
          "type": "string"
        },
        "accession": {
          "type": "string"
        },
        "state": {
          "$ref": "#/$defs/evidenceState"
        },
        "qualifiers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "statistical_unit": {
          "type": "string"
        },
        "contrast": {
          "type": "string"
        },
        "provenance_url": {
          "type": "string"
        },
        "primary_publication": {
          "type": "object"
        }
      }
    },
    "candidate": {
      "type": "object",
      "required": [
        "candidate_id",
        "disease_id",
        "label",
        "role",
        "state",
        "qualifiers",
        "dataset_accessions",
        "effect",
        "statistical_unit",
        "provenance",
        "next_experiment",
        "claim_ceiling"
      ],
      "properties": {
        "candidate_id": {
          "type": "string"
        },
        "disease_id": {
          "enum": [
            "DMD",
            "FSHD",
            "DM1",
            "SMA"
          ]
        },
        "label": {
          "type": "string"
        },
        "state": {
          "$ref": "#/$defs/evidenceState"
        },
        "qualifiers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "dataset_accessions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "effect": {
          "type": "object"
        },
        "statistical_unit": {
          "type": "string"
        },
        "provenance": {
          "type": "object"
        },
        "next_experiment": {
          "type": "string"
        },
        "claim_ceiling": {
          "type": "string"
        }
      }
    }
  }
}
