{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "http://smart.who.int/immunizations/ValueSet-IMMZ.Z.DE3.schema.json",
  "title": "IMMZ.Z.DE3 ValueSet for Diphtheria-containing vaccines Schema",
  "description": "JSON Schema for IMMZ.Z.DE3 ValueSet for Diphtheria-containing vaccines ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
  "type": "object",
  "required": [
    "system",
    "code"
  ],
  "additionalProperties": false,
  "properties": {
    "system": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "oneOf": [
    {
      "properties": {
        "system": {
          "const": "http://smart.who.int/immunizations/CodeSystem/IMMZ.Z"
        },
        "code": {
          "enum": [
            "DE3"
          ]
        }
      }
    },
    {
      "properties": {
        "system": {
          "const": "http://id.who.int/icd/release/11/mms"
        },
        "code": {
          "enum": [
            "XM8AW3",
            "XM9744",
            "XM31Q8",
            "XM8AW1",
            "XM09Q7",
            "XM41N3",
            "XM1LX9",
            "XM3G68",
            "XM0LT9",
            "XM7JP3",
            "XM5XP9",
            "XM1G86",
            "XM32Q5",
            "XM2CV8",
            "XM21E6",
            "XM84S1",
            "XM9JP8",
            "XM46V1",
            "XM4039"
          ]
        }
      }
    },
    {
      "properties": {
        "system": {
          "const": "http://snomed.info/sct"
        },
        "code": {
          "enum": [
            "836381006",
            "775641005"
          ]
        }
      }
    },
    {
      "properties": {
        "system": {
          "const": "http://www.whocc.no/atc"
        },
        "code": {
          "enum": [
            "J07AF",
            "J07CA03",
            "J07CA01",
            "J07CA02",
            "J07CA05",
            "J07CA06",
            "J07CA07",
            "J07CA12",
            "J07CA11",
            "J07CA13",
            "J07AM51",
            "J07AF01",
            "J07CA09"
          ]
        }
      }
    },
    {
      "properties": {
        "system": {
          "const": "http://loinc.org"
        },
        "code": {
          "enum": [
            "30936-9"
          ]
        }
      }
    }
  ],
  "narrative": "This schema validates Coding-shaped objects for the IMMZ.Z.DE3 ValueSet for Diphtheria-containing vaccines 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/immunizations/ValueSet-IMMZ.Z.DE3.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/immunizations/ValueSet-IMMZ.Z.DE3.displays.json",
  "fhir:valueSet": "http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE3",
  "fhir:version": "0.2.0",
  "fhir:expansionTimestamp": "2025-06-25T16:39:07.092Z"
}