{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "http://smart.who.int/base/ValueSet-CDHIv2.1.schema.json",
  "title": "Digital Health Interventions for Persons Schema",
  "description": "JSON Schema for Digital Health Interventions for Persons ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
  "type": "object",
  "required": [
    "system",
    "code"
  ],
  "additionalProperties": false,
  "properties": {
    "system": {
      "type": "string",
      "const": "http://smart.who.int/base/CodeSystem/CDHIv2"
    },
    "code": {
      "type": "string",
      "enum": [
        "1",
        "1.1",
        "1.1.1",
        "1.1.2",
        "1.1.3",
        "1.1.4",
        "1.2",
        "1.2.1",
        "1.2.2",
        "1.3",
        "1.3.1",
        "1.4",
        "1.4.1",
        "1.4.2",
        "1.4.3",
        "1.4.4",
        "1.5",
        "1.5.1",
        "1.5.2",
        "1.6",
        "1.6.1",
        "1.6.2",
        "1.7",
        "1.7.1",
        "1.7.2",
        "1.7.3",
        "1.8",
        "1.8.1"
      ]
    }
  },
  "narrative": "This schema validates Coding-shaped objects for the Digital Health Interventions for Persons ValueSet. Each value must be an object with 'system' (CodeSystem URI) and 'code' (fragment after '#') properties. Display values are available at http://smart.who.int/base/ValueSet-CDHIv2.1.displays.json. The canonical IRI for a code can be reconstructed as system + '#' + code. For a complete listing of all ValueSets, see artifacts.html#terminology-value-sets.",
  "fhir:displays": "http://smart.who.int/base/ValueSet-CDHIv2.1.displays.json",
  "fhir:valueSet": "http://smart.who.int/base/ValueSet/CDHIv2.1",
  "fhir:version": "0.2.0",
  "fhir:expansionTimestamp": "2026-04-01T14:12:12+00:00"
}