<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- edited with XMLSpy v2007 sp1 (http://www.altova.com) by USER USER (CHU DE CHARLEROI) -->
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by André JP Vandenberghe (Dr André Vandenberghe) -->
<!-- edited with XML Spy v4.4 (http://www.xmlspy.com) by André JP Vandenberghe (Dr André Vandenberghe) -->
<!-- 
  Property : Belgian Ministry of Health
  Author   : Dr André Vandenberghe, Dominique Tesse, Department of Medical Information, CHU de Charleroi
  Date     : 17/07/2002
  
  Kmehr-Bis Message
  
  XSchema
 -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:DT="http://www.health.fgov.be/telematics/kmehr/DT" xmlns:CD="http://www.health.fgov.be/telematics/kmehr/CD" xmlns:ID="http://www.health.fgov.be/telematics/kmehr/ID" xmlns="http://www.health.fgov.be/telematics/kmehr/schema" targetNamespace="http://www.health.fgov.be/telematics/kmehr/schema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xsd:import namespace="http://www.health.fgov.be/telematics/kmehr/CD" schemaLocation="cd.xsd"/>
	<xsd:import namespace="http://www.health.fgov.be/telematics/kmehr/ID" schemaLocation="id.xsd"/>
	<xsd:import namespace="http://www.health.fgov.be/telematics/kmehr/DT" schemaLocation="dt.xsd"/>
	<xsd:element name="kmehrmessage">
		<xsd:annotation>
			<xsd:documentation>to  transfer medical information about one or several patients (using one folder per patient).</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="confidentiality" minOccurs="0"/>
				<xsd:element ref="header"/>
				<xsd:element ref="folder" maxOccurs="unbounded"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="confidentiality">
		<xsd:annotation>
			<xsd:documentation>to restrict the list of healthcare parties allowed to access to the content of the parent element</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="hcparty" type="hcpartyType" maxOccurs="unbounded">
					<xsd:annotation>
						<xsd:documentation>to identify a healthcare professional, organisation or medical specialty.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="header">
		<xsd:annotation>
			<xsd:documentation>to specify the routing of the message</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="confidentiality" minOccurs="0"/>
				<xsd:element ref="standard"/>
				<xsd:element name="id" type="ID:ID-KMEHR" maxOccurs="unbounded">
					<xsd:annotation>
						<xsd:documentation>this must be a unique number within the Belgian Telematics Healthcare system . It should result of the concatenation of the first sender hcparty id of the current message, a dot and a unique identifier within the sending system. In addition, it can also specify alternative local numbers.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="date" type="xsd:date">
					<xsd:annotation>
						<xsd:documentation>creation date of the message</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="time" type="xsd:time">
					<xsd:annotation>
						<xsd:documentation>creation time of the message</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element ref="sender"/>
				<xsd:element ref="recipient" maxOccurs="unbounded"/>
				<xsd:element ref="urgency" minOccurs="0"/>
				<xsd:element ref="acknowledgment" minOccurs="0"/>
				<xsd:element name="text" type="DT:textType" minOccurs="0" maxOccurs="unbounded"/>
				<xsd:element name="lnk" type="CD:lnkType" minOccurs="0" maxOccurs="unbounded">
					<xsd:annotation>
						<xsd:documentation>to link the header with another element of the Belgian Healthcare Telematics System</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="standard">
		<xsd:annotation>
			<xsd:documentation>to specify the version of the kmehr specification to which this message complies</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-STANDARD"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="sender">
		<xsd:annotation>
			<xsd:documentation>the sender can be specified by a free combination of hcparty elements (organisation(s), medical specialty(ies), person(s)).</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="hcparty" type="hcpartyType" maxOccurs="unbounded"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="recipient">
		<xsd:annotation>
			<xsd:documentation>The recipient can be specified by a free combination of hcparty elements (organisation(s), medical specialty(ies), person(s)). If no individual person can be identified as recipient, you should specify a medical specialty or, at least the identification of the organisation that receives the message for further distribution (a S3 server for example). </xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="hcparty" type="hcpartyType" maxOccurs="unbounded"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="urgency">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-URGENCY"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="acknowledgment">
		<xsd:annotation>
			<xsd:documentation>to specify the type of acknowledgment that is desired by the sender</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-ACKNOWLEDGMENT"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="folder">
		<xsd:annotation>
			<xsd:documentation>contains the clinical information related to one patient</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="confidentiality" minOccurs="0"/>
				<xsd:element name="id" type="ID:ID-KMEHR" maxOccurs="unbounded">
					<xsd:annotation>
						<xsd:documentation>this must be a sequential number within the parent element. In addition, it can specify alternative local identifier(s).</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="patient" type="personType"/>
				<xsd:element ref="transaction" maxOccurs="unbounded"/>
				<xsd:element name="text" type="DT:textType" minOccurs="0" maxOccurs="unbounded"/>
				<xsd:element name="lnk" type="CD:lnkType" minOccurs="0" maxOccurs="unbounded">
					<xsd:annotation>
						<xsd:documentation>to link the folder with another element of the Belgian Healthcare Telematics System</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:complexType name="personType">
		<xsd:sequence>
			<xsd:element name="id" type="ID:ID-PATIENT" maxOccurs="unbounded"/>
			<xsd:element name="firstname" type="xsd:string" maxOccurs="unbounded"/>
			<xsd:element name="familyname" type="xsd:string"/>
			<xsd:element ref="birthdate" minOccurs="0"/>
			<xsd:element ref="sex"/>
			<xsd:element ref="address" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="telecom" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="usuallanguage" type="xsd:language" minOccurs="0"/>
			<xsd:element name="text" type="DT:textType" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="sex">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-SEX"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="birthdate">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="date" type="xsd:date"/>
				<xsd:element name="time" type="xsd:time" minOccurs="0"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="transaction">
		<xsd:annotation>
			<xsd:documentation>a transaction is a set of medical information validated by one healthcare professional at one given moment.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="confidentiality" minOccurs="0"/>
				<xsd:element name="id" type="ID:ID-KMEHR" maxOccurs="unbounded">
					<xsd:annotation>
						<xsd:documentation>this must be a sequential number within the folder. In addition, it can specify alternative local identifier(s).</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="cd" type="CD:CD-TRANSACTION" maxOccurs="unbounded">
					<xsd:annotation>
						<xsd:documentation>the transaction must contain at least one code from the CD-TRANSACTION scheme. Local codes can be associated.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="date" type="xsd:date">
					<xsd:annotation>
						<xsd:documentation>usually this is the date of reporting. Please refer to detailed specification for particular cases.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="time" type="xsd:time">
					<xsd:annotation>
						<xsd:documentation>usually this is the time of reporting. Please refer to detailed specification for particular cases.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="author" type="authorType">
					<xsd:annotation>
						<xsd:documentation>the author endorses the medical responsibility of the content of the transaction. It must identify at least one physical person. In addition, it can also identify its medical specialty and/or organisation.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="iscomplete" type="xsd:boolean">
					<xsd:annotation>
						<xsd:documentation>to specify if the transaction is partial or complete.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="isvalidated" type="xsd:boolean">
					<xsd:annotation>
						<xsd:documentation>to specify if the content of the transaction has been medically validated.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:choice maxOccurs="unbounded">
					<xsd:element ref="heading"/>
					<xsd:element ref="item"/>
					<xsd:element name="text" type="DT:textType"/>
					<xsd:element name="lnk" type="CD:lnkType">
						<xsd:annotation>
							<xsd:documentation>to link the transaction with another element of the Belgian Healthcare Telematics System</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:choice>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:complexType name="authorType">
		<xsd:annotation>
			<xsd:documentation>the author assumes the medical responsibility of the content of the transaction. It can be specified by a combination of hcparty elements (organisation, medical specialty, person), but it must necessarily contain one hcparty identifying one person. The author is not the transcriptionist that has typed the report. The author is not necessarily the performer of the act that is reported by the transaction. In that case, the author of the transaction can be overwritten at the level of the item</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="hcparty" type="hcpartyType" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="heading">
		<xsd:annotation>
			<xsd:documentation>a heading is used to organise the content of a transaction among chapters or paragraphs.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="confidentiality" minOccurs="0"/>
				<xsd:element name="id" type="ID:ID-KMEHR" maxOccurs="unbounded">
					<xsd:annotation>
						<xsd:documentation>this must be a sequential number within the parent transaction or parent heading. In addition, it can be alternative local identifier(s).</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="cd" type="CD:CD-HEADING" maxOccurs="unbounded">
					<xsd:annotation>
						<xsd:documentation>the heading must contain at least one code from the CDHEADING scheme. Local codes can be associated.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:choice maxOccurs="unbounded">
					<xsd:element ref="heading"/>
					<xsd:element ref="item"/>
					<xsd:element name="text" type="DT:textType"/>
					<xsd:element name="lnk" type="CD:lnkType">
						<xsd:annotation>
							<xsd:documentation>to link the heading with another element of the Belgian Healthcare Telematics System</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:choice>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<!-- ATTRIBUTS LOCAUX DT 21/01/2008 09:30 -->
	<xsd:complexType name="contentlocalitemattributeType">
		<xsd:sequence>
			<xsd:element name="id" type="ID:ID-KMEHR" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="cd" type="CD:CD-CONTENT" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:choice>
				<xsd:element name="decimal" type="xsd:decimal"/>
				<xsd:element name="boolean" type="xsd:boolean"/>
				<xsd:element name="text" type="DT:textType"/>
				<xsd:sequence>
					<xsd:element name="date" type="xsd:date" minOccurs="0"/>
					<xsd:element name="time" type="xsd:time" minOccurs="0"/>
				</xsd:sequence>
				<xsd:element name="hcparty" type="hcpartyType"/>
				<xsd:element name="person" type="personType"/>
				<xsd:element name="lnk" maxOccurs="unbounded"/>
			</xsd:choice>
			<xsd:element ref="unit" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="localitemattributeType">
		<xsd:sequence>
			<xsd:element name="id" type="ID:ID-KMEHR" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="cd" type="CD:LOCAL" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="content" type="contentlocalitemattributeType"/>
		</xsd:sequence>
	</xsd:complexType>
	<!-- FIN ATTRIBUTS LOCAUX -->
	<xsd:element name="item">
		<xsd:annotation>
			<xsd:documentation>the item is used to describe atomic medical information.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="confidentiality" minOccurs="0"/>
				<xsd:element name="id" type="ID:ID-KMEHR" maxOccurs="unbounded">
					<xsd:annotation>
						<xsd:documentation>this must be a sequential number within the transaction. In addition, it can specify alternative local identifier(s).</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="cd" type="CD:CD-ITEM" maxOccurs="unbounded">
					<xsd:annotation>
						<xsd:documentation>the item must contain at least one code from the CD-ITEM scheme. Local codes can be associated.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element ref="content" minOccurs="0" maxOccurs="unbounded">
					<xsd:annotation>
						<xsd:documentation>this is used to specify the content of the item.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="text" type="DT:textType" minOccurs="0" maxOccurs="unbounded">
					<xsd:annotation>
						<xsd:documentation>to comment the content</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="author" type="authorType" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>this can be used to specify the medical responsible of the content of the item when it differs from the transaction 's author.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element ref="beginmoment" minOccurs="0"/>
				<xsd:element ref="endmoment" minOccurs="0"/>
				<xsd:element name="iscomplete" type="xsd:boolean" minOccurs="0"/>
				<xsd:element name="isvalidated" type="xsd:boolean" minOccurs="0"/>
				<xsd:element ref="lifecycle" minOccurs="0"/>
				<xsd:element ref="severity" minOccurs="0"/>
				<xsd:element ref="certainty" minOccurs="0"/>
				<xsd:element ref="temporality" minOccurs="0"/>
				<xsd:element ref="urgency" minOccurs="0"/>
				<xsd:element ref="quantity" minOccurs="0"/>
				<xsd:element ref="frequency" minOccurs="0"/>
				<xsd:element ref="site" minOccurs="0" maxOccurs="unbounded"/>
				<xsd:element ref="cost" minOccurs="0"/>
				<xsd:element ref="dayperiod" minOccurs="0" maxOccurs="unbounded"/>
				<xsd:element ref="duration" minOccurs="0"/>
				<!-- DT ATTRIBUTS LOCAUX 21/01/2008 -->
				<xsd:element name="local" type="localitemattributeType" minOccurs="0" maxOccurs="unbounded"/>
				<!-- FIN DT -->
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="beginmoment">
		<xsd:complexType>
			<xsd:choice>
				<xsd:sequence>
					<xsd:element name="date" type="xsd:date" minOccurs="0"/>
					<xsd:element name="time" type="xsd:time" minOccurs="0"/>
				</xsd:sequence>
				<xsd:element name="text" type="DT:textType"/>
			</xsd:choice>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="endmoment">
		<xsd:complexType>
			<xsd:choice>
				<xsd:sequence>
					<xsd:element name="date" type="xsd:date" minOccurs="0"/>
					<xsd:element name="time" type="xsd:time" minOccurs="0"/>
				</xsd:sequence>
				<xsd:element name="text" type="DT:textType"/>
			</xsd:choice>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="lifecycle">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-LIFECYCLE"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="severity">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-SEVERITY"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="certainty">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-CERTAINTY"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="temporality">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-TEMPORALITY"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="quantity">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="decimal" type="xsd:decimal"/>
				<xsd:element ref="unit" minOccurs="0"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="frequency">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="decimal" type="xsd:decimal"/>
				<xsd:element ref="unit"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="dayperiod">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-DAYPERIOD"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="site">
		<xsd:complexType>
			<xsd:choice>
				<xsd:element name="cd" type="CD:CD-SITE"/>
				<xsd:element name="text" type="DT:textType"/>
			</xsd:choice>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="cost">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="decimal" type="xsd:decimal"/>
				<xsd:element ref="unit"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="duration">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="decimal" type="xsd:decimal"/>
				<xsd:element ref="unit"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="content">
		<xsd:annotation>
			<xsd:documentation>to specify the value of the item</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:choice>
					<xsd:element name="id" type="ID:ID-KMEHR" maxOccurs="unbounded"/>
					<xsd:element name="cd" type="CD:CD-CONTENT" maxOccurs="unbounded"/>
					<xsd:element name="decimal" type="xsd:decimal"/>
					<xsd:element name="boolean" type="xsd:boolean"/>
					<xsd:element name="text" type="DT:textType" maxOccurs="unbounded"/>
					<xsd:sequence>
						<xsd:element name="date" type="xsd:date" minOccurs="0"/>
						<xsd:element name="time" type="xsd:time" minOccurs="0"/>
					</xsd:sequence>
					<xsd:element name="hcparty" type="hcpartyType"/>
					<xsd:element name="person" type="personType"/>
					<xsd:element ref="insurance"/>
					<xsd:element ref="incapacity"/>
					<xsd:element ref="error"/>
					<xsd:element ref="medication"/>
					<xsd:element ref="holter"/>
					<xsd:element ref="ecg"/>
					<xsd:element ref="bacteriology"/>
					<xsd:element name="lnk" type="CD:lnkType" maxOccurs="unbounded"/>
				</xsd:choice>
				<xsd:element ref="unit" minOccurs="0"/>
				<xsd:element ref="minref" minOccurs="0"/>
				<xsd:element ref="maxref" minOccurs="0"/>
				<xsd:element ref="refscope" minOccurs="0" maxOccurs="unbounded"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="maxref">
		<xsd:annotation>
			<xsd:documentation>to specify the maximal range of the content</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:choice>
				<xsd:element name="decimal" type="xsd:decimal"/>
				<xsd:element name="text" type="DT:textType"/>
			</xsd:choice>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="minref">
		<xsd:annotation>
			<xsd:documentation>to specify the minimal range of the content</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:choice>
				<xsd:element name="decimal" type="xsd:decimal"/>
				<xsd:element name="text" type="DT:textType"/>
			</xsd:choice>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="unit">
		<xsd:annotation>
			<xsd:documentation>to specify the unit</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-UNIT"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="refscope">
		<xsd:annotation>
			<xsd:documentation>to specify if the minref and maxref references are adjusted to the patient's age, sex, ..., </xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-REFSCOPE"/>
				<xsd:element name="refvalue" minOccurs="0" maxOccurs="unbounded">
					<xsd:annotation>
						<xsd:documentation>to specify reference values for a given context</xsd:documentation>
					</xsd:annotation>
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element ref="minref" minOccurs="0"/>
							<xsd:element ref="maxref" minOccurs="0"/>
							<xsd:element name="context" type="DT:textType"/>
						</xsd:sequence>
					</xsd:complexType>
				</xsd:element>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="incapacity">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-INCAPACITY" maxOccurs="unbounded"/>
				<xsd:element ref="incapacityreason" minOccurs="0"/>
				<xsd:element name="percentage" type="xsd:decimal" minOccurs="0"/>
				<xsd:element name="outofhomeallowed" type="xsd:boolean" minOccurs="0"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="incapacityreason">
		<xsd:annotation>
			<xsd:documentation>to specify the reason of an incapacity</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-INCAPACITYREASON"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="medication">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:choice>
					<xsd:element name="cd" type="CD:CD-MEDICATION">
						<xsd:annotation>
							<xsd:documentation>to specify a CNK</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="inn" type="DT:textType">
						<xsd:annotation>
							<xsd:documentation>to specify an international non-proprietary name</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="magistral" type="DT:textType">
						<xsd:annotation>
							<xsd:documentation>to describe a magistral prescription as free text, possibly complemented by a  list of CNK</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:choice>
				<xsd:element name="tradename" type="xsd:string" minOccurs="0"/>
				<xsd:element ref="presentation" minOccurs="0"/>
				<xsd:element ref="strength" minOccurs="0"/>
				<xsd:element ref="route" minOccurs="0"/>
				<xsd:element name="batch" type="xsd:string" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>serial number of the product package</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:sequence minOccurs="0">
					<xsd:element name="numberofpackage" type="xsd:decimal"/>
					<xsd:element ref="package" minOccurs="0"/>
					<xsd:element name="quantityperpackage" type="xsd:decimal" minOccurs="0"/>
				</xsd:sequence>
				<xsd:element name="instructionforoverdosing" type="DT:textType" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>to justify voluntary 'overdosing'</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="instructionforpatient" type="DT:textType" minOccurs="0"/>
				<xsd:element name="instructionforreimbursement" type="DT:textType" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation> to indicate the type of reimbursement based on medical justification for treatment </xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="issubstitutionallowed" type="xsd:boolean" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>to specify if the substitution by the pharmacist is allowed</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="presentation">
		<xsd:annotation>
			<xsd:documentation>galenic form</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-DRUG-PRESENTATION"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="strength">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="decimal" type="xsd:decimal"/>
				<xsd:element ref="unit"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="route">
		<xsd:annotation>
			<xsd:documentation>administration route</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-DRUG-ROUTE"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="package">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-UNIT"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:complexType name="hcpartyType">
		<xsd:sequence>
			<xsd:element name="id" type="ID:ID-HCPARTY" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>ideally this should refer to a INAMI/RIZIV number. It can refer to alternative local identifiers. </xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="cd" type="CD:CD-HCPARTY" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>must at least refer to a value of CD-HCPARTY.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:choice minOccurs="0">
				<xsd:element name="name" type="xsd:string"/>
				<xsd:sequence>
					<xsd:element name="firstname" type="xsd:string"/>
					<xsd:element name="familyname" type="xsd:string"/>
				</xsd:sequence>
			</xsd:choice>
			<xsd:element ref="address" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="telecom" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="address">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-ADDRESS" maxOccurs="unbounded">
					<xsd:annotation>
						<xsd:documentation>to specify the type of address (home, work,...)</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:choice>
					<xsd:element name="text" type="DT:textType" maxOccurs="unbounded"/>
					<xsd:sequence>
						<xsd:element ref="country"/>
						<xsd:element name="zip" type="xsd:string"/>
						<xsd:element name="city" type="xsd:string"/>
						<xsd:element name="street" type="xsd:string"/>
						<xsd:element name="housenumber" type="xsd:string"/>
						<xsd:element name="postboxnumber" type="xsd:string" minOccurs="0"/>
						<xsd:element name="text" type="DT:textType" minOccurs="0" maxOccurs="unbounded"/>
					</xsd:sequence>
				</xsd:choice>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="country">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-COUNTRY"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="telecom">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-TELECOM" maxOccurs="2">
					<xsd:annotation>
						<xsd:documentation>the first cd specifies the type of address (home, work,...) 
and
the second cd specifies the type of telecom device (phone, gsm, fax, ...)</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="telecomnumber" type="xsd:string"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="insurance">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="id" type="ID:ID-INSURANCE"/>
				<xsd:element name="membership" type="xsd:string"/>
				<xsd:element name="siscard" type="xsd:string" minOccurs="0"/>
				<xsd:element name="begindate" type="xsd:date" minOccurs="0"/>
				<xsd:element name="enddate" type="xsd:date" minOccurs="0"/>
				<xsd:element name="cg1" type="xsd:string" minOccurs="0"/>
				<xsd:element name="cg2" type="xsd:string" minOccurs="0"/>
				<xsd:element name="socialfranchiseperiod1" type="xsd:string" minOccurs="0"/>
				<xsd:element name="socialfranchiseperiod2" type="xsd:string" minOccurs="0"/>
				<xsd:element name="personalpart" minOccurs="0" maxOccurs="unbounded">
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element name="id" type="ID:ID-KMEHR"/>
							<xsd:element name="cd" type="CD:CD-CARENET-PERSONAL-PART"/>
							<xsd:element name="date" type="xsd:date" minOccurs="0"/>
							<xsd:element name="time" type="xsd:time" minOccurs="0"/>
						</xsd:sequence>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="thirdpayercontract" minOccurs="0">
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element name="cd" type="CD:CD-CARENET-THIRDPAYER-CONTRACT"/>
						</xsd:sequence>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="begindatepayment" type="xsd:date" minOccurs="0"/>
				<xsd:element name="approvalnumber" type="xsd:string" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>Nr goedkeuring betalingsverbintenis van de VI</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="ecg" type="DT:textType"/>
	<xsd:element name="bacteriology" type="DT:textType"/>
	<xsd:element name="holter">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="FCAVG" type="xsd:string" minOccurs="0"/>
				<xsd:element ref="FCMAX" minOccurs="0"/>
				<xsd:element ref="FCMIN" minOccurs="0"/>
				<xsd:element name="FCAVGD" type="xsd:string" minOccurs="0"/>
				<xsd:element name="FCAVGN" type="xsd:string" minOccurs="0"/>
				<xsd:element ref="RRMAX" minOccurs="0"/>
				<xsd:element ref="RRMIN" minOccurs="0"/>
				<xsd:element name="QRSTOT" type="xsd:string" minOccurs="0"/>
				<xsd:element name="BRADY" type="xsd:string" minOccurs="0"/>
				<xsd:element name="PAUSE" type="xsd:string" minOccurs="0"/>
				<xsd:element name="LONG" type="xsd:string" minOccurs="0"/>
				<xsd:element name="ESV" type="xsd:string" minOccurs="0"/>
				<xsd:element name="DBLV" type="xsd:string" minOccurs="0"/>
				<xsd:element name="SALVV" type="xsd:string" minOccurs="0"/>
				<xsd:element name="BGV" type="xsd:string" minOccurs="0"/>
				<xsd:element name="TGV" type="xsd:string" minOccurs="0"/>
				<xsd:element name="TACHY" type="xsd:string" minOccurs="0"/>
				<xsd:element name="ESSV" type="xsd:string" minOccurs="0"/>
				<xsd:element name="DBLSV" type="xsd:string" minOccurs="0"/>
				<xsd:element name="SALVSV" type="xsd:string" minOccurs="0"/>
				<xsd:element name="BGSV" type="xsd:string" minOccurs="0"/>
				<xsd:element name="TGSV" type="xsd:string" minOccurs="0"/>
				<xsd:element name="TACHYSV" type="xsd:string" minOccurs="0"/>
				<xsd:element name="RRINST" type="xsd:string" minOccurs="0"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="FCMAX">
		<xsd:complexType>
			<xsd:simpleContent>
				<xsd:extension base="xsd:string">
					<xsd:attribute name="TIME" type="xsd:string" use="optional"/>
				</xsd:extension>
			</xsd:simpleContent>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="FCMIN">
		<xsd:complexType>
			<xsd:simpleContent>
				<xsd:extension base="xsd:string">
					<xsd:attribute name="TIME" type="xsd:string" use="optional"/>
				</xsd:extension>
			</xsd:simpleContent>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="RRMAX">
		<xsd:complexType>
			<xsd:simpleContent>
				<xsd:extension base="xsd:string">
					<xsd:attribute name="TIME" type="xsd:string" use="optional"/>
				</xsd:extension>
			</xsd:simpleContent>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="RRMIN">
		<xsd:complexType>
			<xsd:simpleContent>
				<xsd:extension base="xsd:string">
					<xsd:attribute name="TIME" type="xsd:string" use="optional"/>
				</xsd:extension>
			</xsd:simpleContent>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="error">
		<xsd:annotation>
			<xsd:documentation>to specify possible errors</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="cd" type="CD:CD-ERROR" maxOccurs="unbounded"/>
				<xsd:element name="description" type="DT:textType"/>
				<xsd:element name="url" type="xsd:string" minOccurs="0"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>

