<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="pcm-consent-search-bundle" />
  <url value="http://pcm.fhir.health.gov.il/StructureDefinition/pcm-consent-search-bundle" />
  <version value="0.3.2" />
  <name value="PCMConsentSearchBundle" />
  <title value="PCM Consent Search Bundle" />
  <status value="active" />
  <description value="Searchset Bundle returned by an authorized caller-owned Consent search. Included resources remain independently authorized." />
  <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.meta">
      <path value="Bundle.meta" />
      <min value="1" />
    </element>
    <element id="Bundle.meta.profile">
      <path value="Bundle.meta.profile" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <comment value="PCM includes the applicable server-return profile URL; additional compatible profile URLs are allowed." />
      <min value="1" />
    </element>
    <element id="Bundle.meta.profile:pcmProfile">
      <path value="Bundle.meta.profile" />
      <sliceName value="pcmProfile" />
      <min value="1" />
      <max value="1" />
      <fixedCanonical value="http://pcm.fhir.health.gov.il/StructureDefinition/pcm-consent-search-bundle" />
    </element>
    <element id="Bundle.type">
      <path value="Bundle.type" />
      <fixedCode value="searchset" />
    </element>
    <element id="Bundle.entry.resource">
      <path value="Bundle.entry.resource" />
      <type>
        <code value="Consent" />
        <profile value="http://pcm.fhir.health.gov.il/StructureDefinition/pcm-consent" />
      </type>
      <type>
        <code value="Organization" />
        <profile value="http://pcm.fhir.health.gov.il/StructureDefinition/pcm-organization-parent" />
        <profile value="http://pcm.fhir.health.gov.il/StructureDefinition/pcm-organization-service-provider" />
        <profile value="http://pcm.fhir.health.gov.il/StructureDefinition/pcm-organization-source" />
      </type>
      <type>
        <code value="Endpoint" />
        <profile value="http://pcm.fhir.health.gov.il/StructureDefinition/pcm-endpoint" />
        <profile value="http://pcm.fhir.health.gov.il/StructureDefinition/pcm-endpoint-system" />
      </type>
      <type>
        <code value="OperationOutcome" />
      </type>
    </element>
  </differential>
</StructureDefinition>