<StructureDefinition xmlns="http://hl7.org/fhir">
    <id value="medicationstatement-medication-history-changes-made"/>
    <url value="http://ns.electronichealth.net.au/fhir/v2.0.0/StructureDefinition/medicationstatement-medication-history-changes-made"/>
    <name value="MedicationStatement Medication History Changes Made"/>
    <display value="MedicationStatement Medication History Changes Made"/>
    <status value="active"/>
    <publisher value="My Health Record System"/>
    <contact>
        <name value="My Health Record System project team"/>
        <telecom>
            <system value="email"/>
            <value value="mobile.enablement@health.gov.au"/>
        </telecom>
    </contact>
    <date value="2017-02-14"/>
    <description value="Description of any change made during the health-care encounter where the change is intended to continue after the end of the healthcare encounter."/>
    <fhirVersion value="1.4.0"/>
    <kind value="datatype"/>
    <abstract value="false"/>
    <contextType value="resource"/>
    <context value="MedicationStatement"/>
    <baseType value="Extension"/>
    <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension"/>
    <snapshot>
        <element>
            <path value="Extension"/>
            <short value="Description of any change made during the health-care encounter where the change is intended to continue after the end of the healthcare encounter."/>
            <definition value="My Health Record System extension for MedicationStatement Medication History Changes Made."/>
            <comments value="My Health Record System extension for MedicationStatement Medication History Changes Made."/>
            <min value="0"/>
            <max value="1"/>
            <base>
                <path value="Extension"/>
                <min value="0"/>
                <max value="*"/>
            </base>
            <type>
                <code value="Extension"/>
            </type>
        </element>
        <element>
            <path value="Extension.id"/>
            <short value="xml:id (or equivalent in JSON)"/>
            <definition value="unique id for the element within a resource (for internal references)."/>
            <min value="0"/>
            <max value="1"/>
            <base>
                <path value="Extension.id"/>
                <min value="0"/>
                <max value="1"/>
            </base>
            <type>
                <code value="id"/>
            </type>
        </element>
        <element>
            <path value="Extension.extension"/>
            <name value="extension"/>
            <short value="Extension"/>
            <definition value="An Extension"/>
            <min value="0"/>
            <max value="0"/>
            <base>
                <path value="Extension.extension"/>
                <min value="0"/>
                <max value="*"/>
            </base>
            <type>
                <code value="Extension"/>
            </type>
        </element>
        <element>
            <path value="Extension.url"/>
            <short value="identifies the meaning of the extension"/>
            <definition value="Source of the definition for the extension code - a logical name or a URL."/>
            <comments value="The definition may point directly to a computable or human-readable definition of the
                extensibility codes, or it may be a logical URI as declared in some other specification.
                The definition should be version specific.  This will ideally be the URI for the Resource
                Profile defining the extension, with the code for the extension after a #."/>
            <min value="1"/>
            <max value="1"/>
            <base>
                <path value="Extension.url"/>
                <min value="1"/>
                <max value="1"/>
            </base>
            <type>
                <code value="uri"/>
            </type>
            <fixedUri value="http://ns.electronichealth.net.au/fhir/v2.0.0/StructureDefinition/medicationstatement-medication-history-changes-made"/>
        </element>
        <element>
            <path value="Extension.valueCodeableConcept"/>
            <short value="Value of extension"/>
            <definition value="My Health Record System extension for MedicationStatement Medication History Changes Made."/>
            <min value="1"/>
            <max value="1"/>
            <base>
                <path value="Extension.value[x]"/>
                <min value="0"/>
                <max value="1"/>
            </base>
            <type>
                <code value="CodeableConcept"/>
            </type>
        </element>
    </snapshot>
    <differential>
        <element>
            <path value="Extension"/>
            <short value="References to the MedicationStatement Medication History Changes Made My Health Record System."/>
            <definition value="My Health Record System extension for MedicationStatement Medication History Changes Made."/>
            <max value="1"/>
            <type>
                <code value="Extension"/>
            </type>
        </element>
        <element>
            <path value="Extension.extension"/>
            <name value="extension"/>
            <max value="0"/>
        </element>
        <element>
            <path value="Extension.url"/>
            <type>
                <code value="uri"/>
            </type>
            <fixedUri value="http://ns.electronichealth.net.au/fhir/v2.0.0/StructureDefinition/medicationstatement-change-detail-changes-made"/>
        </element>
        <element>
            <path value="Extension.valueCodeableConcept"/>
            <min value="0"/>
            <max value="1"/>
            <type>
                <code value="CodeableConcept"/>
            </type>
        </element>
    </differential>
</StructureDefinition>



