<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Testproject4-bundle3" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2016-07-26T14:56:33.926+00:00" />
  </meta>
  <url value="https://ehealthontario.on.ca/eConsult/FHIR2/StructureDefinition/bundle" />
  <name value="EHO eConsult Bundle" />
  <status value="draft" />
  <publisher value="eHealth Ontario" />
  <contact>
    <name value="borna jafarpour" />
    <telecom>
      <system value="phone" />
      <value value="4165863777" />
      <use value="work" />
    </telecom>
    <telecom>
      <system value="email" />
      <value value="borna.jafarpour@ehealthontario.on.ca" />
      <use value="work" />
    </telecom>
  </contact>
  <kind value="resource" />
  <constrainedType value="Bundle" />
  <abstract value="false" />
  <base value="http://hl7.org/fhir/StructureDefinition/Bundle" />
  <differential>
    <element>
      <path value="Bundle" />
    </element>
    <element>
      <path value="Bundle.type" />
      <short value="type" />
      <definition value="SHALL contain exactly one [1..1] type (CONF:3248-191)." />
      <min value="1" />
      <max value="1" />
    </element>
    <element>
      <path value="Bundle.total" />
      <short value="total" />
      <definition value="SHALL contain exactly one [1..1] total (CONF:3248-196)." />
      <min value="1" />
      <max value="1" />
    </element>
    <element>
      <path value="Bundle.link" />
      <short value="link" />
      <definition value="SHALL contain exactly one [1..1] link (CONF:3248-270)." />
      <comments value="the url that is used to perform the search that this bundle is returned in response to" />
      <min value="1" />
      <max value="1" />
    </element>
    <element>
      <path value="Bundle.link.relation" />
      <short value="relation" />
      <definition value="This link SHALL contain exactly one [1..1] relation=&quot;self&quot; (CONF:3248-271)." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <fixedString value="self" />
    </element>
    <element>
      <path value="Bundle.link.url" />
      <short value="url" />
      <definition value="This link SHALL contain exactly one [1..1] url (CONF:3248-272)." />
      <comments value="URL that is used to perform this search operation" />
      <min value="1" />
      <max value="1" />
    </element>
    <element>
      <path value="Bundle.entry" />
      <short value="entry" />
      <definition value="MAY contain zero or more [0..*] entry (CONF:3248-190)." />
      <comments value="An entry can either contain a FullURL or actually contain the resource itself. Feel free to implement the version that suits your needs. " />
      <min value="0" />
      <max value="*" />
    </element>
    <element>
      <path value="Bundle.entry.fullUrl" />
      <short value="fullUrl" />
      <definition value="The entry, if present, SHALL contain exactly one [1..1] fullUrl (CONF:3248-193)." />
      <min value="1" />
      <max value="1" />
    </element>
    <element>
      <path value="Bundle.entry.resource" />
      <short value="resource" />
      <definition value="The entry, if present, MAY contain zero or one [0..1] resource (CONF:3248-194)." />
      <min value="0" />
      <max value="1" />
    </element>
  </differential>
</StructureDefinition>