<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="notifications-bundle" />
  <url value="http://hl7.org/fhir/us/davinci-alerts/StructureDefinition/notifications-bundle" />
  <version value="0.2.1" />
  <name value="NotificationsBundle" />
  <title value="Da Vinci Notifications Bundle Profile" />
  <status value="active" />
  <experimental value="false" />
  <date value="2019-11-15T00:00:00+00:00" />
  <publisher value="Health eData Inc" />
  <description value="The Da Vinci Notifications Bundle Profile constrains the FHIR [Bundle](http://hl7.org/fhir/R4/bundle.html) resource to the Da Vinci notification messaging framework." />
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166" />
      <code value="US" />
      <display value="United States of America" />
    </coding>
  </jurisdiction>
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Bundle" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Bundle" />
  <derivation value="constraint" />
  <differential>
    <element id="Bundle">
      <path value="Bundle" />
      <mustSupport value="false" />
    </element>
    <element id="Bundle.id">
      <path value="Bundle.id" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.type">
      <path value="Bundle.type" />
      <type>
        <code value="code" />
      </type>
      <fixedCode value="message" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.timestamp">
      <path value="Bundle.timestamp" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.total">
      <path value="Bundle.total" />
      <comment value="This element is constrained to min = 0 because of the invariant `bdl-1`" />
      <min value="0" />
      <max value="0" />
      <mustSupport value="false" />
    </element>
    <element id="Bundle.entry">
      <path value="Bundle.entry" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="resource" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="2" />
      <max value="*" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry.search">
      <path value="Bundle.entry.search" />
      <comment value="This element is constrained to min = 0 because of the invariant `bdl-2`" />
      <min value="0" />
      <max value="0" />
      <mustSupport value="false" />
    </element>
    <element id="Bundle.entry.request">
      <path value="Bundle.entry.request" />
      <comment value="This element is constrained to min = 0 because of the invariant `bdl-3`" />
      <min value="0" />
      <max value="0" />
      <mustSupport value="false" />
    </element>
    <element id="Bundle.entry.response">
      <path value="Bundle.entry.response" />
      <comment value="This element is constrained to min = 0 because of the invariant `bdl-4`" />
      <min value="0" />
      <max value="0" />
      <mustSupport value="false" />
    </element>
    <element id="Bundle.entry:messageheader">
      <path value="Bundle.entry" />
      <sliceName value="messageheader" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:messageheader.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="MessageHeader" />
        <profile value="http://hl7.org/fhir/us/davinci-alerts/StructureDefinition/notifications-messageheader" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>