<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="au-medlist" />
  <url value="http://hl7.org.au/fhir/StructureDefinition/au-medlist" />
  <version value="1.1.0" />
  <name value="AUMedicineList" />
  <title value="AU Medicine List" />
  <status value="draft" />
  <date value="2018-11-30" />
  <publisher value="Health Level Seven Australia (Medications WG)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org.au/fhir" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="This profile defines a list structure including core localisation concepts for use as a medicines list in an Australian context. This profile is intended to offer a common structure and expectations to record, exchange, and fetch a list of medications associated with a patient in an Australian healthcare context." />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="List" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/List" />
  <derivation value="constraint" />
  <differential>
    <element id="List">
      <path value="List" />
      <short value="A list of medications in an Australian healthcare context" />
    </element>
    <element id="List.extension">
      <path value="List.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="List.extension:sourceRole">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="draft" />
      </extension>
      <path value="List.extension" />
      <sliceName value="sourceRole" />
      <short value="Practitioner role that defined the list contents (aka Author)" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org.au/fhir/StructureDefinition/author-role" />
      </type>
    </element>
    <element id="List.extension:sourceRelatedPerson">
      <path value="List.extension" />
      <sliceName value="sourceRelatedPerson" />
      <short value="Related person that defined the list contents (aka Author)" />
      <definition value="The entity (related person) responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org.au/fhir/StructureDefinition/author-related-person" />
      </type>
    </element>
    <element id="List.entry">
      <path value="List.entry" />
      <short value="Medicine list entry" />
      <definition value="List of medicine type entries" />
    </element>
    <element id="List.entry.extension">
      <path value="List.entry.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="List.entry.extension:changeDescription">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="draft" />
      </extension>
      <path value="List.entry.extension" />
      <sliceName value="changeDescription" />
      <short value="Description of the change to the item" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org.au/fhir/StructureDefinition/change-description" />
      </type>
    </element>
    <element id="List.entry.flag">
      <path value="List.entry.flag" />
      <short value="Medicine item change" />
      <binding>
        <strength value="preferred" />
        <valueSetReference>
          <reference value="http://hl7.org.au/fhir/ValueSet/medicine-item-change" />
        </valueSetReference>
      </binding>
    </element>
    <element id="List.entry.item">
      <path value="List.entry.item" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationStatement" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationDispense" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Immunization" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org.au/fhir/StructureDefinition/au-norelevantfinding" />
      </type>
    </element>
  </differential>
</StructureDefinition>