<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-bundle-collection-patientChart" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2022-08-12T16:39:18.671218+00:00" />
  </meta>
  <url value="http://telus.com/fhir/patientChart/StructureDefinition/profile-bundle-collection" />
  <name value="BundlePatientChart" />
  <title value="Bundle-PatientChart" />
  <status value="draft" />
  <date value="2021-03-01T20:08:28.7858355+00:00" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="cda" />
    <uri value="http://hl7.org/v3/cda" />
    <name value="CDA (R2)" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <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="true" />
    </element>
    <element id="Bundle.id">
      <path value="Bundle.id" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.meta">
      <path value="Bundle.meta" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.meta.source">
      <path value="Bundle.meta.source" />
      <min value="1" />
    </element>
    <element id="Bundle.meta.profile">
      <path value="Bundle.meta.profile" />
      <min value="1" />
      <max value="1" />
      <fixedCanonical value="http://telus.com/fhir/StructureDefinition/profile-bundle-patient-chart" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.meta.tag">
      <path value="Bundle.meta.tag" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.meta.tag:Version">
      <path value="Bundle.meta.tag" />
      <sliceName value="Version" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://telus.com/fhir/ValueSet/telus-version" />
      </binding>
    </element>
    <element id="Bundle.meta.tag:Version.system">
      <path value="Bundle.meta.tag.system" />
      <min value="1" />
      <fixedUri value="http://telus.com/fhir/CodeSystem/telus-version" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.meta.tag:Version.code">
      <path value="Bundle.meta.tag.code" />
      <min value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://telus.com/fhir/ValueSet/telus-version" />
      </binding>
    </element>
    <element id="Bundle.identifier">
      <path value="Bundle.identifier" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.type">
      <path value="Bundle.type" />
      <comment value="Usage Note:   This will vary based on the use case.    &#xD;&#xA;Alignment:    PS-ON has a fixed value of document.&#xD;&#xA;&#xD;&#xA;It's possible to use a bundle for other purposes (e.g. a document can be accepted as a transaction). This is primarily defined so that there can be specific rules for some of the bundle types." />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.timestamp">
      <path value="Bundle.timestamp" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry">
      <path value="Bundle.entry" />
      <comment value="Conformance Rule:  In the context of sharing a Patient Chart, this bundle will be a collection of resources such as AllergyIntolerence, MedicationStatment, Immunizations, etc.   The bundle may also contain DocumentReference as a reference to human readable attachments such as a PDF or text or a Bundle of type Document, where a document such as a Discharge Summary may be specified." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry.link">
      <path value="Bundle.entry.link" />
      <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link" />
    </element>
    <element id="Bundle.entry.fullUrl">
      <path value="Bundle.entry.fullUrl" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry.resource">
      <path value="Bundle.entry.resource" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>