<?xml version="1.0" encoding="iso-8859-1"?>
<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:voc="urn:hl7-org:v3/voc">
	<!-- 
********************************************************
  CDA Header
  
  *** Note that the OID's are not all correct in this document (yet) ***
********************************************************
-->
	<typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
	<templateId root="2.16.840.1.113883.2.18.7.1"/>
	<id extension="1" root="2.16.840.1.113883.2.99.1.3"/>
	<code code="34820-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Pharmacy Dispensing Note"/>
	<title>Dispensing Report</title>
	<effectiveTime value="20080607155217"/>
	<confidentialityCode code="N"/>
	<!-- represents who the document is about - the patient -->
	<recordTarget>
		<patientRole>
			<id extension="PRP1660" root="2.16.840.1.113883.2.18.2" assigningAuthorityName="NHI"/>
			<addr>
				<streetAddressLine>23 Thule St</streetAddressLine>
				<city>Auckland</city>
				<country>New Zealand</country>
			</addr>
			<patient>
				<name>
					<given>david</given>
					<given>ian</given>
					<family>hay</family>
				</name>
				<administrativeGenderCode code="M" codeSystem="2.16.840.1.113883.5.1"/>
				<birthTime value="19551216"/>
			</patient>
		</patientRole>
	</recordTarget>
	<!-- represents the author of the document - the pharmacist -->
	<author>
		<time value="20080607155217"/>
		<assignedAuthor>
			<id extension="SMIJOH" root="2.16.840.1.113883.2.18.9"/>
			<assignedPerson>
				<name>
					<given>Peter</given>
					<family>Smith</family>
				</name>
			</assignedPerson>
		</assignedAuthor>
	</author>
	<!-- represents the custodian of the document - the pharmacy -->
	<custodian>
		<assignedCustodian>  	
			<representedCustodianOrganization>
				<id extension="GHP" root="2.16.840.1.113883.2.18.10"/>
				<name>Good Health Pharmacy</name>
				<telecom use="WP" value="09 665 4476"/>
				<addr>
					<streetAddressLine>45 Pine St</streetAddressLine>
					<city>Auckland</city>
					<country>New Zealand</country>
				</addr>
			</representedCustodianOrganization>
		</assignedCustodian>
	</custodian>
	<!-- 
********************************************************
  CDA Body

********************************************************
-->
	<component>
		<structuredBody>
			<component>
				<!-- section containing displayable Medications-->
				<section>
					<templateId root="2.16.840.1.113883.2.18.7.1.1"/>
					<title>Displayable Medications</title>
					<text>
						<list>
							<item>Aspirin (Cartia) 10mg tablet, 2 tablets twice a day PO. 100 tablets dispensed on Jan 1, 2008.</item>
							<item>Clopidogrel (Plavix) 75mg tablet, 1 tablet a day PO. 100 tablets dispensed on Jan 1, 2008.</item>
							<item>Ventolin inhaler, 2 puffs 4 hourly as required </item>
							<item>my very special mixture (paracetamol,codeine) </item>
						</list>
					</text>
					<confidentialityCode code="N"/>
					<!-- The coded details for the first drug-->
					<entry>
						<substanceAdministration classCode="SBADM" moodCode="EVN">
							<effectiveTime/>
							<effectiveTime xsi:type="PIVL_TS">
								<!-- How often to take the medication-->
								<period value="12" unit="h"/>
							</effectiveTime>
							<routeCode code="PO" codeSystem="2.16.840.1.113883.5.112" displayName="oral"/>
							<doseQuantity value="2" unit="tablet"/>
							<!-- how many to take in each administration-->
							<consumable>
								<manufacturedProduct>
									<manufacturedMaterial>
										<code code="101326" codeSystem="2.16.840.1.113883.2.18.4" codeSystemName="NZ Pharmac" displayName="Aspirin 10mg">
											<!-- from the pharmacode-->
											<originalText>Aspirin</originalText>
											<!-- generic name-->
										</code>
										<name>Cartia</name>
										<!-- brand name -->
									</manufacturedMaterial>
								</manufacturedProduct>
							</consumable>
							<entryRelationship typeCode="REFR">
								<supply classCode="SPLY" moodCode="EVN">
									<effectiveTime value="20080101"/>
									<quantity value="100" unit="tablets"/>
								</supply>
							</entryRelationship>
						</substanceAdministration>
					</entry>
					<!-- The coded details for the second drug-->
					<entry>
						<substanceAdministration classCode="SBADM" moodCode="EVN">
							<effectiveTime/>
							<effectiveTime xsi:type="PIVL_TS">
								<!-- How often to take the medication-->
								<period value="12" unit="h"/>
							</effectiveTime>
							<routeCode code="PO" codeSystem="2.16.840.1.113883.5.112" displayName="oral"/>
							<doseQuantity value="2" unit="tablet"/>
							<!-- how many to take in each administration-->
							<consumable>
								<manufacturedProduct>
									<manufacturedMaterial>
										<code code="101326" codeSystem="2.16.840.1.113883.2.18.4" codeSystemName="NZ Pharmac" displayName="Aspirin 10mg">
											<!-- from the pharmacode-->
											<originalText>Aspirin</originalText>
											<!-- generic name-->
										</code>
										<name>Cartia</name>
										<!-- brand name -->
									</manufacturedMaterial>
								</manufacturedProduct>
							</consumable>
							<entryRelationship typeCode="REFR">
								<supply classCode="SPLY" moodCode="EVN">
									<effectiveTime value="20080101"/>
									<quantity value="100" unit="tablets"/>
								</supply>
							</entryRelationship>
						</substanceAdministration>
					</entry>
					<!-- The coded details for the third drug, where the dosage info is only available as a string-->
					<entry>
						<substanceAdministration classCode="SBADM" moodCode="EVN">
							<text>Take 2 puffs up to 4 hourly for wheeze </text>
							<!-- how many to take in each administration-->
							<consumable>
								<manufacturedProduct>
									<manufacturedMaterial>
										<code code="10132" codeSystem="2.16.840.1.113883.2.18.4" codeSystemName="NZ Pharmac" displayName="Ventolin inhaler">
											<!-- from the pharmacode-->
											<originalText>Plavix</originalText>
											<!-- generic name-->
										</code>
										<name>Clopidogrel</name>
										<!-- brand name -->
									</manufacturedMaterial>
								</manufacturedProduct>
							</consumable>
							<entryRelationship typeCode="REFR">
								<supply classCode="SPLY" moodCode="EVN">
									<text>This will be used for dosage if the pharmacy cannot supply granular data</text>
									<effectiveTime value="20080101"/>
									<quantity value="100" unit="tablets"/>
								</supply>
							</entryRelationship>
						</substanceAdministration>
					</entry>
					<!-- The coded details for the mixture-->
					<entry>
						<substanceAdministration classCode="SBADM" moodCode="RQO">
							<effectiveTime/>
							<effectiveTime xsi:type="PIVL_TS">
								<!-- How often to take the medication-->
								<period value="8" unit="h"/>
							</effectiveTime>
							<!-- The coded details for the mixture-->
							<routeCode code="PO" codeSystem="2.16.840.1.113883.5.112" codeSystemName="RouteOfAdministration" displayName="IM"/>
							<doseQuantity value="20" unit="ml"/>
							<consumable>
								<manufacturedProduct>
									<manufacturedMaterial>
										<name>My very special mixture</name>
									</manufacturedMaterial>
								</manufacturedProduct>
							</consumable>
							<entryRelationship typeCode="COMP">
								<substanceAdministration classCode="SBADM" moodCode="RQO">
									<consumable>
										<manufacturedProduct>
											<manufacturedMaterial>
												<code code="19288" codeSystem="2.16.840.1.113883.2.18.4" codeSystemName="NZ Pharmac" displayName="PARACETAMOL"/>
												<name>PARACETAMOL </name>
											</manufacturedMaterial>
										</manufacturedProduct>
									</consumable>
								</substanceAdministration>
							</entryRelationship>
							<entryRelationship typeCode="COMP">
								<substanceAdministration classCode="SBADM" moodCode="RQO">
									<consumable>
										<manufacturedProduct>
											<manufacturedMaterial>
												<code code="19281" codeSystem="2.16.840.1.113883.2.18.4" codeSystemName="NZ Pharmac" displayName="CODEINE"/>
												<name>CODEINE</name>
											</manufacturedMaterial>
										</manufacturedProduct>
									</consumable>
								</substanceAdministration>
							</entryRelationship>
							<entryRelationship typeCode="REFR">
								<supply classCode="SPLY" moodCode="EVN">
									<effectiveTime value="20080101"/>
									<quantity value="100" unit="tablets"/>
								</supply>
							</entryRelationship>
						</substanceAdministration>
					</entry>
				</section>
			</component>
			<component>
				<!-- section containing displayable data-->
				<section>
					<templateId root="2.16.840.1.113883.2.18.7.1.1"/>
					<title>Non-Displayable Medications</title>
					<text>
						<list>
							<item>VPD (Very Private Drug) 10mg tablet, 2 tablets twice a day PO. 100 tablets dispensed on Jan 1, 2008.</item>
						</list>
					</text>
					<confidentialityCode code="V"/>
					<entry>
						<substanceAdministration classCode="SBADM" moodCode="EVN">
							<effectiveTime/>
							<effectiveTime xsi:type="PIVL_TS">
								<!-- How often to take the medication-->
								<period value="12" unit="h"/>
							</effectiveTime>
							<routeCode code="PO" codeSystem="2.16.840.1.113883.5.112" displayName="oral"/>
							<doseQuantity value="2" unit="tablet"/>
							<!-- how many to take in each administration-->
							<consumable>
								<manufacturedProduct>
									<manufacturedMaterial>
										<code code="101326" codeSystem="2.16.840.1.113883.2.18.4" codeSystemName="NZ Pharmac" displayName="VPD 10mg">
											<!-- from the pharmacode-->
											<originalText>VPG</originalText>
											<!-- generic name-->
										</code>
										<name>Very Private Drug</name>
										<!-- brand name -->
									</manufacturedMaterial>
								</manufacturedProduct>
							</consumable>
							<entryRelationship typeCode="REFR">
								<supply classCode="SPLY" moodCode="EVN">
									<effectiveTime value="20080101"/>
									<quantity value="100" unit="tablets"/>
								</supply>
							</entryRelationship>
						</substanceAdministration>
					</entry>
				</section>
			</component>
		</structuredBody>
	</component>
</ClinicalDocument>
