<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="au-composition" />
  <url value="http://hl7.org.au/fhir/StructureDefinition/au-composition" />
  <version value="1.1.0" />
  <name value="AUBaseComposition" />
  <title value="AU Base Composition" />
  <status value="draft" />
  <publisher value="Health Level Seven Australia (Patient Administration WG)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org.au/fhir" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="This profile defines a composition structure that includes core localisation concepts for use in an Australian context." />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Composition" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Composition" />
  <derivation value="constraint" />
  <differential>
    <element id="Composition">
      <path value="Composition" />
      <short value="Composition for the Australian realm" />
    </element>
    <element id="Composition.extension">
      <path value="Composition.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Composition.extension:compositionAuthorRole">
      <path value="Composition.extension" />
      <sliceName value="compositionAuthorRole" />
      <short value="Practitioner role that authored the composition" />
      <definition value="A practitioner role that authored this composition. This is not to be confused with who typed in the information." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org.au/fhir/StructureDefinition/composition-author-role" />
      </type>
    </element>
    <element id="Composition.extension:informationRecipient">
      <path value="Composition.extension" />
      <sliceName value="informationRecipient" />
      <short value="Who and/or what should receive a copy of the composition" />
      <definition value="A recipient who should receive a copy of the composition. A recipient is an entity to whom a copy of the composition is directed at the time of authoring of the composition." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org.au/fhir/StructureDefinition/information-recipient" />
      </type>
    </element>
    <element id="Composition.attester">
      <path value="Composition.attester" />
      <constraint>
        <key value="inv-com-0" />
        <severity value="error" />
        <human value="Related party and party shall not coexist" />
        <expression value="(attester.extension('http://hl7.org.au/fhir/StructureDefinition/attester-related-party').exists() and attester.party.exists()).not()" />
      </constraint>
    </element>
    <element id="Composition.attester.extension">
      <path value="Composition.attester.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Composition.attester.extension:attesterRelatedParty">
      <path value="Composition.attester.extension" />
      <sliceName value="attesterRelatedParty" />
      <short value="Related person that attested the composition" />
      <definition value="A related person that attested this composition." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org.au/fhir/StructureDefinition/attester-related-party" />
      </type>
    </element>
    <element id="Composition.section">
      <path value="Composition.section" />
    </element>
    <element id="Composition.section.extension">
      <path value="Composition.section.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Composition.section.extension:sectionAuthor">
      <path value="Composition.section.extension" />
      <sliceName value="sectionAuthor" />
      <short value="Who and/or what authored the section" />
      <definition value="Identifies who is responsible for the information in this section, not necessarily who typed it in." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org.au/fhir/StructureDefinition/section-author" />
      </type>
    </element>
  </differential>
</StructureDefinition>