{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "http://smart.who.int/immunizations/ValueSet-IMMZ.Z.DE12.schema.json",
  "title": "IMMZ.Z.DE12 ValueSet for Pertussis-containing vaccines Schema",
  "description": "JSON Schema for IMMZ.Z.DE12 ValueSet for Pertussis-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": [
            "DE12"
          ]
        }
      }
    },
    {
      "properties": {
        "system": {
          "const": "http://id.who.int/icd/release/11/mms"
        },
        "code": {
          "enum": [
            "XM43M9",
            "XM45L8",
            "XM62J1",
            "XM2TK2",
            "XM4082",
            "XM2CV8",
            "XM1LX9",
            "XM7JP3",
            "XM41N3",
            "XM09Q7",
            "XM0LT9",
            "XM5XP9",
            "XM31Q8",
            "XM46V1",
            "XM21E6",
            "XM84S1",
            "XM9JP8"
          ]
        }
      }
    },
    {
      "properties": {
        "system": {
          "const": "http://www.whocc.no/atc"
        },
        "code": {
          "enum": [
            "J07AJ",
            "J07AJ01",
            "J07AJ02",
            "J07AJ51",
            "J07AJ52",
            "J07CA06",
            "J07CA11",
            "J07CA05",
            "J07CA02",
            "J07CA12",
            "J07CA13",
            "J07CA09",
            "J07AG52"
          ]
        }
      }
    },
    {
      "properties": {
        "system": {
          "const": "http://snomed.info/sct"
        },
        "code": {
          "enum": [
            "871875004",
            "871889009"
          ]
        }
      }
    }
  ],
  "narrative": "This schema validates Coding-shaped objects for the IMMZ.Z.DE12 ValueSet for Pertussis-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.DE12.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.DE12.displays.json",
  "fhir:valueSet": "http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE12",
  "fhir:version": "0.2.0",
  "fhir:expansionTimestamp": "2025-06-25T16:39:07.092Z"
}