<StructureDefinition xmlns="http://hl7.org/fhir">
	<id value="medicationdispense-sequence-number"/>
	<url value="http://ns.electronichealth.net.au/fhir/v1.2.0/StructureDefinition/medicationdispense-sequence-number"/>
	<name value="MedicationDispense Sequence Number"/>
	<display value="MedicationDispense Sequence Number"/>
	<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="2016-05-30"/>
	<description value="A numeric value that represents the dispense number or sequence number that has been reached for a therapeutic good prescribed with repeats. This count includes the first dispense. It has the value 1 when there are no repeats."/>
	<fhirVersion value="1.4.0"/>
	<kind value="datatype"/>
	<abstract value="false"/>
	<contextType value="resource"/>
	<context value="MedicationDispense"/>
	<baseType value="Extension"/>
	<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension"/>
	<snapshot>
		<element>
			<path value="Extension"/>
			<short value="MedicationDispense Sequence Number"/>
			<definition value="A numeric value that represents the dispense number or sequence number that has been reached for a therapeutic good prescribed with repeats. This count includes the first dispense. It has the value 1 when there are no repeats."/>
			<comments value="My Health Record extension to include MedicationDispense sequence number."/>
			<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/v1.2.0/StructureDefinition/medicationdispense-sequence-number"/>
		</element>
		<element>
			<path value="Extension.valueString"/>
			<short value="Value of extension"/>
			<definition value="MedicationDispense sequence number is of string type extension in MedicationDispense resource."/>
			<min value="1"/>
			<max value="1"/>
			<base>
				<path value="Extension.value[x]"/>
				<min value="0"/>
				<max value="1"/>
			</base>
			<type>
				<code value="string"/>
			</type>
		</element>
	</snapshot>
	<differential>
		<element>
			<path value="Extension"/>
			<short value="Number of Medication Dispense"/>
			<definition value="A numeric value that represents the dispense number or sequence number that has been reached for a therapeutic good prescribed with repeats. This count includes the first dispense. It has the value 1 when there are no repeats."/>
			<comments value="My Health Record extension to include number of medication dispense."/>
			<min value="0"/>
			<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/v1.2.0/StructureDefinition/medicationdispense-sequence-number"/>
		</element>
		<element>
			<path value="Extension.value[x]"/>
			<min value="1"/>
			<type>
				<code value="string"/>
			</type>
		</element>
	</differential>
</StructureDefinition>