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