Skip to content

Therapy

Referenced schema · Source · Dereferenced version

A therapeutic agent concept.

Fields

Field Type Required Description
id string matching ^tx:ncit:C\d+$ yes
conceptType always Therapy yes
name string yes
primary_coding_id string matching ^coding:[a-z]+:.+$ yes Foreign key to codings.id.
mappings array of string matching ^map:.+::.+$ yes
therapy_strategy array of string yes
therapy_type string yes

JSON Schema

Full JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://moalmanac.org/schemas/referenced/therapies.schema.json",
  "title": "Therapy",
  "description": "A therapeutic agent concept.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^tx:ncit:C\\d+$"
    },
    "conceptType": {
      "const": "Therapy"
    },
    "name": {
      "type": "string"
    },
    "primary_coding_id": {
      "type": "string",
      "pattern": "^coding:[a-z]+:.+$",
      "description": "Foreign key to `codings.id`."
    },
    "mappings": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^map:.+::.+$",
        "description": "Foreign key to `mappings.id`."
      }
    },
    "therapy_strategy": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "therapy_type": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "conceptType",
    "name",
    "primary_coding_id",
    "mappings",
    "therapy_strategy",
    "therapy_type"
  ],
  "additionalProperties": false
}