{
  "resourceType": "StructureDefinition",
  "id": "immunization-adverse-event",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Clinical.Summary"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "patient"
    }
  ],
  "url": "https://fhir.devdays.com/R4/devdays-covid19-vaccine/StructureDefinition/immunization-adverse-event",
  "version": "0.1.0-test",
  "name": "ImmunizationAdverseEvent",
  "title": "Immunization Adverse Event Profile",
  "status": "active",
  "description": "Profile of adverse event, specialized for immunizations",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "AdverseEvent",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/AdverseEvent",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "AdverseEvent.extension",
        "path": "AdverseEvent.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "AdverseEvent.extension:grade",
        "path": "AdverseEvent.extension",
        "sliceName": "grade",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.devdays.com/R4/devdays-covid19-vaccine/StructureDefinition/adverse-event-grade"
            ]
          }
        ]
      },
      {
        "id": "AdverseEvent.actuality",
        "path": "AdverseEvent.actuality",
        "patternCode": "actual"
      },
      {
        "id": "AdverseEvent.category",
        "path": "AdverseEvent.category",
        "min": 1,
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "264519003",
              "system": "http://snomed.info/sct"
            }
          ]
        }
      },
      {
        "id": "AdverseEvent.event",
        "path": "AdverseEvent.event",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.devdays.com/R4/devdays-covid19-vaccine/ValueSet/meddra-value-set"
        }
      },
      {
        "id": "AdverseEvent.event.text",
        "path": "AdverseEvent.event.text",
        "min": 1
      },
      {
        "id": "AdverseEvent.subject",
        "path": "AdverseEvent.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "AdverseEvent.seriousness",
        "path": "AdverseEvent.seriousness",
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.devdays.com/R4/devdays-covid19-vaccine/ValueSet/adverse-event-seriousness-value-set"
        }
      },
      {
        "id": "AdverseEvent.severity",
        "path": "AdverseEvent.severity",
        "max": "0"
      },
      {
        "id": "AdverseEvent.suspectEntity.instance",
        "path": "AdverseEvent.suspectEntity.instance",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Immunization"
            ]
          }
        ]
      }
    ]
  }
}