Skip to content

Proposition

Dereferenced schema · Source · Referenced version

A VariantTherapeuticResponseProposition. Because Cat-VRS does not yet support sets of categorical variants, subjectVariant is a placeholder and the biomarker criteria are held in the biomarkers extension.

Fields

Field Type Required Description
id string matching ^prop:vtxr:\d+$ yes
type always VariantTherapeuticResponseProposition yes
predicate one of predictsSensitivityTo, predictsResistanceTo yes
subjectVariant object yes
subjectVariant.type always CategoricalVariant yes
subjectVariant.description string yes
conditionQualifier Disease yes
objectTherapeutic Therapy or TherapyGroup yes
extensions array of extensions (see Extensions) yes

Extensions

Each extension is an object with a name, a value, and an optional description (see Extension).

Name Value Required
biomarkers array of BiomarkerCriterion (at least 1 item) yes

JSON Schema

Full JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://moalmanac.org/schemas/dereferenced/propositions.schema.json",
  "title": "Proposition",
  "description": "A VariantTherapeuticResponseProposition. Because Cat-VRS does not yet support sets of categorical variants, `subjectVariant` is a placeholder and the biomarker criteria are held in the `biomarkers` extension.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^prop:vtxr:\\d+$"
    },
    "type": {
      "const": "VariantTherapeuticResponseProposition"
    },
    "predicate": {
      "enum": [
        "predictsSensitivityTo",
        "predictsResistanceTo"
      ]
    },
    "subjectVariant": {
      "type": "object",
      "properties": {
        "type": {
          "const": "CategoricalVariant"
        },
        "description": {
          "type": "string"
        }
      },
      "required": [
        "type",
        "description"
      ],
      "additionalProperties": false
    },
    "conditionQualifier": {
      "$ref": "diseases.schema.json"
    },
    "objectTherapeutic": {
      "oneOf": [
        {
          "$ref": "therapies.schema.json"
        },
        {
          "$ref": "therapy_groups.schema.json"
        }
      ]
    },
    "extensions": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "$ref": "extension.schema.json",
            "properties": {
              "name": {
                "const": "biomarkers"
              },
              "value": {
                "type": "array",
                "items": {
                  "$ref": "biomarker_criteria.schema.json"
                },
                "minItems": 1
              }
            }
          }
        ]
      },
      "allOf": [
        {
          "contains": {
            "$ref": "extension.schema.json",
            "properties": {
              "name": {
                "const": "biomarkers"
              },
              "value": {
                "type": "array",
                "items": {
                  "$ref": "biomarker_criteria.schema.json"
                },
                "minItems": 1
              }
            }
          }
        }
      ]
    }
  },
  "required": [
    "id",
    "type",
    "predicate",
    "subjectVariant",
    "conditionQualifier",
    "objectTherapeutic",
    "extensions"
  ],
  "additionalProperties": false
}