{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "http://smart.who.int/base/StructureDefinition-IMMZ_D5_Determine_vaccine_s__to_be_administered_based_on_contraindications.schema.json",
  "title": "IMMZ.D5.Determine vaccine(s) to be administered based on contraindications",
  "description": "Data elements for the IMMZ.D5.Determine vaccine(s) to be administered based on contraindications Data Dictionary Activity.",
  "type": "object",
  "properties": {
    "resourceType": {
      "type": "string",
      "const": "IMMZD5",
      "description": "Resource type identifier for IMMZ_D5_Determine_vaccine_s__to_be_administered_based_on_contraindications logical model"
    },
    "@context": {
      "description": "JSON-LD context for this logical model with ValueSet vocabularies",
      "anyOf": [
        {
          "type": "string",
          "format": "uri",
          "description": "URI reference to external JSON-LD context"
        },
        {
          "type": "object",
          "description": "Inline JSON-LD context",
          "properties": {
            "@version": {
              "type": "number",
              "const": 1.1
            },
            "fhir": {
              "type": "string",
              "const": "http://hl7.org/fhir/"
            }
          },
          "additionalProperties": {
            "type": "string",
            "format": "uri"
          }
        },
        {
          "type": "array",
          "description": "Array of JSON-LD context objects/URIs",
          "items": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "object"
              }
            ]
          }
        }
      ]
    },
    "@type": {
      "type": "string",
      "description": "JSON-LD type identifier for IMMZ_D5_Determine_vaccine_s__to_be_administered_based_on_contraindications logical model",
      "examples": [
        "LogicalModel-IMMZ_D5_Determine_vaccine_s__to_be_administered_based_on_contraindications"
      ]
    },
    "IMMZD5": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "FHIR "
      },
      "description": "Data elements for the IMMZ.D5.Determine vaccine(s) to be administered based on contraindications Data Dictionary Activity."
    },
    "patient": {
      "type": "object",
      "description": "The patient."
    },
    "potentialContraindications": {
      "type": "array",
      "items": {
        "$ref": "./ValueSet-IMMZ.D.DE161.schema.json",
        "description": "Coding-shaped {system, code} object from ValueSet IMMZ.D.DE161"
      },
      "minItems": 1,
      "description": "Specific situations or medical conditions for which it is advised or recommended to avoid or delay administering a particular vaccine"
    }
  },
  "required": [
    "resourceType",
    "patient",
    "potentialContraindications"
  ],
  "allOf": [
    {
      "$ref": "./StructureDefinition-FHIRSchemaBase.schema.json"
    },
    {
      "type": "object",
      "properties": {
        "resourceDefinition": {
          "type": "string",
          "format": "uri",
          "const": "http://smart.who.int/immunizations/StructureDefinition/IMMZD5"
        },
        "fhir:parent": {
          "type": "string",
          "const": "http://hl7.org/fhir/StructureDefinition/Base"
        },
        "jsonld:valuesets": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "const": [
            "IMMZ.D.DE161"
          ]
        },
        "jsonld:contextTemplate": {
          "type": "object",
          "const": {
            "@version": 1.1,
            "fhir": "http://hl7.org/fhir/",
            "IMMZ.D.DE161": "http://smart.who.int/base/ValueSet-IMMZ.D.DE161.jsonld"
          }
        }
      }
    }
  ]
}