{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "http://smart.who.int/base/ValueSet-CDSCv2.schema.json",
  "title": "Services and Application Types Schema",
  "description": "JSON Schema for Services and Application Types 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/CDSCv2"
    },
    "code": {
      "type": "string",
      "enum": [
        "A",
        "A1",
        "A2",
        "A3",
        "A4",
        "A5",
        "A6",
        "A7",
        "A8",
        "A9",
        "B",
        "B1",
        "B2",
        "B3",
        "B4",
        "B5",
        "B6",
        "B7",
        "B8",
        "C",
        "C1",
        "C2",
        "C3",
        "C4",
        "C5",
        "C6",
        "C7",
        "C8",
        "C9",
        "C10",
        "C11",
        "D",
        "D1",
        "D2",
        "D3",
        "D4",
        "D5",
        "D6",
        "D7",
        "D8",
        "E",
        "E1",
        "E2"
      ]
    }
  },
  "narrative": "This schema validates Coding-shaped objects for the Services and Application Types 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-CDSCv2.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-CDSCv2.displays.json",
  "fhir:valueSet": "http://smart.who.int/base/ValueSet/CDSCv2",
  "fhir:version": "0.2.0",
  "fhir:expansionTimestamp": "2026-04-01T14:12:12+00:00"
}