<StructureDefinition xmlns="http://hl7.org/fhir">
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">Enter your narrative here</div>
  </text>
  <url value="https://example.org/fhir/StructureDefinition/PatientHealthSummary" />
  <version value="1.0.0" />
  <name value="PatientHealthSummary" />
  <title value="Patient Health Summary - HealthCloud" />
  <status value="draft" />
  <date value="2024-01-25T01:24:56.2169084+00:00" />
  <publisher value="Telstra Health" />
  <description value="This profile represents the constraints applied to the Bundle resource by the Health Cloud Patient Health Summary (IPS) FHIR Implementation Guide." />
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm" />
      <code value="001" />
    </coding>
  </jurisdiction>
  <purpose value="A Patient Health Summary (IPS) bundle is an electronic health record extract containing essential healthcare information about a subject of care, comprising at least the required elements of the IPS dataset. The IPS dataset is minimal and non-exhaustive; specialty-agnostic and condition-independent; but still clinically relevant." />
  <copyright value="Telstra Health" />
  <fhirVersion value="5.0.0" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Bundle" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Bundle" />
  <derivation value="constraint" />
  <differential>
    <element id="Bundle.identifier">
      <path value="Bundle.identifier" />
      <short value="Unique Persistent identifier for the bundle" />
      <requirements value="For Documents the .identifier SHALL be populated such that the .identifier is globally unique." />
      <min value="1" />
      <fixedIdentifier>
        <use value="official" />
        <system value="urn:ietf:rfc:3986" />
      </fixedIdentifier>
      <mustHaveValue value="true" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.type">
      <path value="Bundle.type" />
      <requirements value="Patient health summary is intend to be of type Document to keep the integr" />
      <fixedCode value="document" />
    </element>
    <element id="Bundle.timestamp">
      <path value="Bundle.timestamp" />
      <comment value="For many bundles, the timestamp is equal to .meta.lastUpdated, because they are not stored (e.g. search results). When a bundle is placed in a persistent store, .meta.lastUpdated will be usually be changed by the server. When the bundle is a message, a middleware agent altering the message (even if not stored) SHOULD update .meta.lastUpdated. .timestamp is used to track the original time of the Bundle, and SHOULD be populated.  &#xA;&#xA;Usage:&#xA;&#xA;* document : the date the document was created. Note: the composition may predate the document, or be associated with multiple documents. The date of the composition - the authoring time - may be earlier than the document assembly time&#xA;&#xA;&#xA;The timestamp value should be greater than the lastUpdated and other timestamps in the resources in the bundle, and it should be equal or earlier than the .meta.lastUpdated on the Bundle itself." />
      <min value="1" />
      <mustHaveValue value="true" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry">
      <path value="Bundle.entry" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <discriminator>
          <type value="profile" />
          <path value="$this" />
        </discriminator>
        <description value="An entry resource included in the patient summary document bundle resource." />
        <rules value="open" />
      </slicing>
      <comment value="Must contain the Composition as the first entry (only a single Composition resource instance may be included) and a Patient resource.  Additional constraints are specified in the Composition profile." />
      <min value="2" />
      <mustHaveValue value="true" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:composition">
      <path value="Bundle.entry" />
      <sliceName value="composition" />
      <sliceIsConstraining value="false" />
    </element>
    <element id="Bundle.entry:composition.resource">
      <path value="Bundle.entry.resource" />
      <short value="Patient Summary composition" />
      <definition value="Patient Summary composition. A composition is a set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. \r\nWhile a Composition defines the structure, it does not actually contain the content: rather the full content of a document is contained in a Bundle, of which the Composition is the first resource contained.&quot;, &quot;comment&quot; : &quot;While the focus of this specification is on patient-specific clinical statements, this resource can also apply to other healthcare-related statements such as study protocol designs, healthcare invoices and other activities that are not necessarily patient-specific or clinical" />
      <alias value="composition" />
      <min value="1" />
      <type>
        <code value="Resource" />
        <profile value="http://hl7.org/fhir/StructureDefinition/clinicaldocument" />
      </type>
    </element>
    <element id="Bundle.entry:patient">
      <path value="Bundle.entry" />
      <sliceName value="patient" />
      <sliceIsConstraining value="false" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:patient.resource">
      <path value="Bundle.entry.resource" />
      <short value="Entry in the bundle - will have a resource or information" />
      <definition value="An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only)." />
      <min value="1" />
      <type>
        <code value="Resource" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
    </element>
    <element id="Bundle.entry:allergyintolerance">
      <path value="Bundle.entry" />
      <sliceName value="allergyintolerance" />
    </element>
    <element id="Bundle.entry:allergyintolerance.resource">
      <path value="Bundle.entry.resource" />
      <definition value="Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance." />
      <alias value="Allergy,Intolerance,Adverse Reaction" />
      <min value="1" />
      <type>
        <code value="Resource" />
        <profile value="http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" />
      </type>
    </element>
    <element id="Bundle.entry:condition">
      <path value="Bundle.entry" />
      <sliceName value="condition" />
    </element>
    <element id="Bundle.entry:condition.resource">
      <path value="Bundle.entry.resource" />
      <short value="Documentation of a health problem of the patien" />
      <min value="1" />
      <type>
        <code value="Resource" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Condition" />
      </type>
    </element>
    <element id="Bundle.signature">
      <path value="Bundle.signature" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>