<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="../../xsl/CDA.xsl"?>
<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:voc="urn:hl7-org:v3/voc"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="urn:hl7-org:v3 ../../schemas/CDA.xsd">
	<!-- 
********************************************************
  CDA Header
********************************************************
	-->
	<typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
	<templateId root="2.16.840.1.113883.3.27.1776"/>
	<id extension="c266" root="2.16.840.1.113883.19.4"/>
	<code code="11488-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"
		displayName="Consultation note"/>
	<title>Contents contains 'rogue' html document, but because of browser sandboxing this should not do anything</title>
	<effectiveTime value="20060407"/>
	<confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>
	<languageCode code="en-US"/>
	<setId extension="BB35" root="2.16.840.1.113883.19.7"/>
	<versionNumber value="2"/>
	<recordTarget>
		<patientRole>
			<id extension="12345" root="2.16.840.1.113883.19.5"/>
			<telecom use="HP" value="tel:+981 555 3472"/>
			<telecom use="WP" value="tel:+981 538 9766"/>
			<patient>
				<name>
					<given>Gregory</given>
					<family>Thumbstone</family>
				</name>
				<administrativeGenderCode  code="M" codeSystem="2.16.840.1.113883.5.1"/>
				<birthTime value="19390924"/>
			</patient>
			<providerOrganization>
				<id root="2.16.840.1.113883.19.5"/>
			</providerOrganization>
		</patientRole>
	</recordTarget>
	<author>
		<time value="2006040714"/>
		<assignedAuthor>
			<id extension="600355" root="2.16.840.1.113883.19.5"/>
			<assignedPerson>
				<name>
					<given>William</given>
					<family>Robertson</family>
					<suffix>MD</suffix>
				</name>
			</assignedPerson>
			<representedOrganization>
				<id root="2.16.840.1.113883.19.5"/>
			</representedOrganization>
		</assignedAuthor>
	</author>
	<custodian>
		<assignedCustodian>
			<representedCustodianOrganization>
				<id root="2.16.840.1.113883.19.5"/>
				<name>Sun Health Hospital</name>
			</representedCustodianOrganization>
		</assignedCustodian>
	</custodian>
	<legalAuthenticator>
		<time value="20060408"/>
		<signatureCode code="S"/>
		<assignedEntity>
			<id extension="600355" root="2.16.840.1.113883.19.5"/>
			<assignedPerson>
				<name>
					<given>William</given>
					<family>Robertson</family>
					<suffix>MD</suffix>
				</name>
			</assignedPerson>
			<representedOrganization>
				<id root="2.16.840.1.113883.19.5"/>
			</representedOrganization>
		</assignedEntity>
	</legalAuthenticator>
	<relatedDocument typeCode="RPLC">
		<parentDocument>
			<id extension="a123" root="2.16.840.1.113883.19.4"/>
			<setId extension="BB35" root="2.16.840.1.113883.19.7"/>
			<versionNumber value="1"/>
		</parentDocument>
	</relatedDocument>
	<componentOf>
		<encompassingEncounter>
			<id extension="KPENC1332" root="2.16.840.1.113883.19.6"/>
			<effectiveTime value="20060407"/>
			<encounterParticipant typeCode="CON">
				<time value="20060407"/>
				<assignedEntity>
					<id extension="600355" root="2.16.840.1.113883.19.5"/>
					<assignedPerson>
						<name>
							<given>William</given>
							<family>Robertson</family>
							<suffix>MD</suffix>
						</name>
					</assignedPerson>
					<representedOrganization>
						<id root="2.16.840.1.113883.19.5"/>
					</representedOrganization>
				</assignedEntity>
			</encounterParticipant>
			<location>
				<healthCareFacility classCode="DSDLOC">
					<code code="GIM" codeSystem="2.16.840.1.113883.5.10588"
						displayName="General internal medicine clinic"/>
				</healthCareFacility>
			</location>
		</encompassingEncounter>
	</componentOf>
	<!-- 
********************************************************
  CDA Body
********************************************************
-->
	<component>
		<structuredBody>
			<component>
				<section>
					<title>SceurityRisk?</title>
					<text>
						<paragraph>Contains a reference to an HTML document that has a (harmless) javascript dialog call on the body that preferebly should not be executed upon load</paragraph>
						<renderMultiMedia referencedObject="object1"/>
					</text>
					<entry>
						<observationMedia classCode="COND" moodCode="EVN" ID="object1">
							<value mediaType="text/html">
								<reference value="SecurityRiskDemo.html"/>
							</value>
						</observationMedia>
					</entry>
				</section>
			</component>
		</structuredBody>
	</component>
</ClinicalDocument>
