Skip to content

Coding

Dereferenced schema · Source · Referenced version

A code within a coding system, e.g. oncotree:BRCA or ncit:C97660.

Fields

Field Type Required Description
id string matching ^coding:[a-z]+:.+$ yes
code string yes
name string
system string yes
systemVersion string
iris array of string format uri yes

JSON Schema

Full JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://moalmanac.org/schemas/dereferenced/codings.schema.json",
  "title": "Coding",
  "description": "A code within a coding system, e.g. `oncotree:BRCA` or `ncit:C97660`.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^coding:[a-z]+:.+$"
    },
    "code": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "system": {
      "type": "string"
    },
    "systemVersion": {
      "type": "string"
    },
    "iris": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      }
    }
  },
  "required": [
    "id",
    "code",
    "system",
    "iris"
  ],
  "additionalProperties": false
}