{
  "resourceType": "StructureDefinition",
  "id": "aefi-submission-bundle",
  "text": {
    "status": "extensions"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Foundation.Other"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "not-classified"
    }
  ],
  "url": "http://www.phac-aspc.gc.ca/fhir/StructureDefinition/aefi-submission-bundle",
  "version": "0.0.1",
  "name": "AefiSubmissionBundle",
  "status": "draft",
  "date": "2021-09-15T02:55:31+00:00",
  "description": "Bundle profile for AEFI submissions",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle",
        "path": "Bundle"
      },
      {
        "id": "Bundle.identifier",
        "path": "Bundle.identifier",
        "min": 1
      },
      {
        "id": "Bundle.identifier.system",
        "path": "Bundle.identifier.system",
        "min": 1
      },
      {
        "id": "Bundle.identifier.value",
        "path": "Bundle.identifier.value",
        "short": "AEFI Submission Identifier",
        "min": 1
      },
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "patternCode": "collection"
      },
      {
        "id": "Bundle.timestamp",
        "path": "Bundle.timestamp",
        "min": 1
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resource"
            }
          ],
          "rules": "open"
        },
        "min": 5
      },
      {
        "id": "Bundle.entry:composition",
        "path": "Bundle.entry",
        "sliceName": "composition",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:composition.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Composition",
            "profile": [
              "http://www.phac-aspc.gc.ca/fhir/StructureDefinition/aefi-submission-composition"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:questionnaireResponse",
        "path": "Bundle.entry",
        "sliceName": "questionnaireResponse",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:questionnaireResponse.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "QuestionnaireResponse",
            "profile": [
              "http://www.phac-aspc.gc.ca/fhir/StructureDefinition/aefi-submission-questionnaireresponse"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:patient",
        "path": "Bundle.entry",
        "sliceName": "patient",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:patient.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Patient",
            "profile": [
              "http://www.phac-aspc.gc.ca/fhir/StructureDefinition/aefi-submission-patient"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:immunization",
        "path": "Bundle.entry",
        "sliceName": "immunization",
        "min": 1,
        "max": "*"
      },
      {
        "id": "Bundle.entry:immunization.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Immunization",
            "profile": [
              "http://www.phac-aspc.gc.ca/fhir/StructureDefinition/aefi-submission-immunization"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:practitioner",
        "path": "Bundle.entry",
        "sliceName": "practitioner",
        "min": 1,
        "max": "*"
      },
      {
        "id": "Bundle.entry:practitioner.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Practitioner",
            "profile": [
              "http://www.phac-aspc.gc.ca/fhir/StructureDefinition/aefi-submission-practitioner"
            ]
          }
        ]
      }
    ]
  }
}