<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="t17-bundle-search-pat" />
  <url value="http://ig.fhir-il-community.org/T17/StructureDefinition/t17-bundle-search-pat" />
  <name value="T17BundleSearchPatient" />
  <title value="T17 Bundle Search Patient" />
  <status value="draft" />
  <description value="תשובת הקופה המוחזרת לביה&quot;ח עם הפרטים והמזהה הלוגי של המטופל בקופה" />
  <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.type">
      <path value="Bundle.type" />
      <patternCode value="searchset" />
    </element>
    <element id="Bundle.entry">
      <path value="Bundle.entry" />
      <max value="1" />
      <constraint>
        <key value="bundle-https" />
        <severity value="error" />
        <human value="Must start with either 'http://' or 'https://'" />
        <expression value="fullUrl.startsWith('http://') or fullUrl.startsWith('https://')" />
        <source value="http://ig.fhir-il-community.org/T17/StructureDefinition/t17-bundle-search-pat" />
      </constraint>
    </element>
    <element id="Bundle.entry.fullUrl">
      <path value="Bundle.entry.fullUrl" />
      <min value="1" />
    </element>
    <element id="Bundle.entry.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Patient" />
        <profile value="http://fhir.health.gov.il/StructureDefinition/il-core-patient" />
      </type>
    </element>
    <element id="Bundle.entry.search">
      <path value="Bundle.entry.search" />
      <min value="1" />
    </element>
    <element id="Bundle.entry.search.mode">
      <path value="Bundle.entry.search.mode" />
      <min value="1" />
      <fixedCode value="match" />
    </element>
  </differential>
</StructureDefinition>