<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?>
<html xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:xforms="http://www.w3.org/2002/xforms" 
	xmlns:ev="http://www.w3.org/2001/xml-events" 
	xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
		
	<head>
		<title>XForm automatically generated from ODM Study Definition</title>
		<!--link rel="stylesheet" href="formsplayer.css" type="text/css"/-->
		<!--xforms:model id="F_BASELINE" schema="#my-schema"-->
		<xforms:model id="F_BASELINE">
			<xforms:submission action="http://www.XML4PharmaServer.com:8080/XML4PharmaServer/ecrf2odm.do" method="post" id="submit" replace="all" omit-xml-declaration="false"/>
			<xforms:instance>
				<CRF xml:lang="en" xmlns="" xmlns:myxsd="http://www.w3.org/2001/XMLSchema" xmlns:myxsi="http://www.w3.org/2001/XMLSchema-instance">
					<FormFile>file:///c:/apache_tomcat/jakarta-tomcat-5.0.19/webapps/XML4PharmaServer/temp/xform200641322916.3591.html</FormFile>
					<FormID Label="Baseline">F_BASELINE</FormID>
					<SubjectID/>
					<StudyEventID>system-generated</StudyEventID>
					<IG_COMMON Label="Common">
						<I_SITE Label="Site number"/>
						<!--I_SUBJECTID Label="Subject ID"/-->
						<I_VISIT Label="Visit Date"/>
					</IG_COMMON>
					<IG_DM Label="Demographics">
						<I_BRTHDT Label="Date of Birth"/>
						<I_SEX Label="Sex" CodeListOID="CL_SEX">M</I_SEX>
						<I_RACE Label="Race" CodeListOID="CL_RACE">CAUCASIAN</I_RACE>
					</IG_DM>
					<IG_SH Label="Smoking History">
						<!--I_SMOKING Label="Is the subject a smoker" CodeListOID="CL_NOYES">0</I_SMOKING-->
						<!-- Notice that we also need to have the boolean type declaration on the instance data itself in Firefox -->
						<I_SMOKING Label="Is the subject a smoker" CodeListOID="CL_NOYES" myxsi:type="myxsd:boolean">false</I_SMOKING>
						<I_NR_CIGARETTES Label="Number of cigarettes per day" CodeListOID="CL_SMOKING"/>
					</IG_SH>
					<IG_DH Label="Drinking history">
						<I_DRINKING Label="Number of alcoholic drinks per day" CodeListOID="CL_DRINKING">LT1</I_DRINKING>
					</IG_DH>
					<IG_PE_BASE Label="Physical examination: Base">
						<I_HEIGHT Label="Height"/>
						<I_WEIGHT Label="Weight"/>
						<I_SYSBP Label="Systolic BP" myxsi:nill="true"/>
						<I_DIABP Label="Diastolic BP"/>
						<I_DIZZY Label="Does the subject feel dizzy when standing up from a sitting position" CodeListOID="CL_NOYES">0</I_DIZZY>
					</IG_PE_BASE>
					<IG_SMOKING_COMPLAINTS Label="Complaints related to smoking">
						<I_BREATHING Label="Breathing" CodeListOID="CL_NOYES"/>
						<I_COUGHING Label="Coughing" CodeListOID="CL_NOYES"/>
						<I_HEART_COMPLAINTS Label="Heart" CodeListOID="CL_NOYES"/>
						<I_ILNESS_DAYS_LAST_YEAR Label="No. of illness days last year"/>
						<I_BRONCHITS Label="Number of bronchitis cases during the last year"/>
						<I_PNEUMONIA Label="Number of pneumonia cases last year"/>
					</IG_SMOKING_COMPLAINTS>
					<CodeLists>
						<CodeList OID="CL_SEX">
							<CodeListItem CodedValue="M" Decode="Male"/>
							<CodeListItem CodedValue="F" Decode="Female"/>
						</CodeList>
						<CodeList OID="CL_RACE">
							<CodeListItem CodedValue="CAUCASIAN" Decode="Caucasian"/>
							<CodeListItem CodedValue="BLACK" Decode="Black"/>
							<CodeListItem CodedValue="ASIAN" Decode="Asian"/>
							<CodeListItem CodedValue="OTHER" Decode="Other"/>
						</CodeList>
						<CodeList OID="CL_NOYES">
							<CodeListItem CodedValue="0" Decode="No"/>
							<CodeListItem CodedValue="1" Decode="Yes"/>
						</CodeList>
						<CodeList OID="CL_SMOKING">
							<CodeListItem CodedValue="LT10" Decode="Less Than 10 cigarettes per day"/>
							<CodeListItem CodedValue="10TO20" Decode="10 to 20 cigarettes per day"/>
							<CodeListItem CodedValue="GT20" Decode="Greater Than 20 cigarettes per day"/>
						</CodeList>
						<CodeList OID="CL_DRINKING">
							<CodeListItem CodedValue="LT1" Decode="Less Than 1 drink per day"/>
							<CodeListItem CodedValue="1TO2" Decode="1 to 2 drinks per day"/>
							<CodeListItem CodedValue="GT2" Decode="Greater Than 2 drinks per day"/>
						</CodeList>
						<CodeList OID="CL_NOYES">
							<CodeListItem CodedValue="0" Decode="No"/>
							<CodeListItem CodedValue="1" Decode="Yes"/>
						</CodeList>
						<CodeList OID="CL_NOYES">
							<CodeListItem CodedValue="0" Decode="No"/>
							<CodeListItem CodedValue="1" Decode="Yes"/>
						</CodeList>
						<CodeList OID="CL_NOYES">
							<CodeListItem CodedValue="0" Decode="No"/>
							<CodeListItem CodedValue="1" Decode="Yes"/>
						</CodeList>
						<CodeList OID="CL_NOYES">
							<CodeListItem CodedValue="0" Decode="No"/>
							<CodeListItem CodedValue="1" Decode="Yes"/>
						</CodeList>
					</CodeLists>
				</CRF>
			</xforms:instance>
			<xforms:bind nodeset="/CRF/SubjectID" required="true()"/>
			<xforms:bind nodeset="/CRF/StudyEventID" readonly="true()"/>
			<xforms:bind nodeset="/CRF/IG_COMMON/I_SITE" required="true()" type="xsd:integer" constraint="(. &lt; 100)"/>
			<!--xforms:bind nodeset="/CRF/IG_COMMON/I_SUBJECTID" required="true()"/-->
			<xforms:bind nodeset="/CRF/IG_COMMON/I_VISIT" required="true()" type="xsd:date"/>
			<xforms:bind nodeset="/CRF/IG_DM/I_BRTHDT" required="true()" type="xsd:date"/>
			<xforms:bind nodeset="/CRF/IG_DM/I_SEX" required="true()"/>
			<xforms:bind nodeset="/CRF/IG_DM/I_RACE" required="true()"/>
			<!--xforms:bind nodeset="/CRF/IG_SH/I_SMOKING" required="true()" constraint="(. &lt; 10)"/-->
			<!--xforms:bind nodeset="/CRF/IG_SH/I_SMOKING" required="true()" constraint="(. &lt; 10)"/-->
			<xforms:bind nodeset="/CRF/IG_SH/I_SMOKING" xsi:type="xsd:boolean"/>
			<!--xforms:bind nodeset="/CRF/IG_SH/I_NR_CIGARETTES" relevant="/CRF/IG_SH/I_SMOKING !=0 "/-->
			<xforms:bind nodeset="/CRF/IG_SH/I_NR_CIGARETTES" relevant="/CRF/IG_SH/I_SMOKING = 'true' "/>
			<!--xforms:bind nodeset="/CRF/IG_SH/I_NR_CIGARETTES/@xsi:nil" calculate=".. = ''"/-->
			<xforms:bind nodeset="/CRF/IG_DH/I_DRINKING" required="true()"/>
			<xforms:bind nodeset="/CRF/IG_PE_BASE/I_HEIGHT" required="true()" type="xsd:integer" constraint="(. &lt; 1000) and (.&lt;220)"/>
			<xforms:bind nodeset="/CRF/IG_PE_BASE/I_WEIGHT" required="true()" type="xsd:integer" constraint="(. &lt; 1000) and (.&lt;150)"/>
			<!--xforms:bind nodeset="/CRF/IG_PE_BASE/I_SYSBP" required="true()" constraint="(. &lt; 1000) and (.&lt;180)"/-->
			<!--xforms:bind nodeset="/CRF/IG_PE_BASE/I_SYSBP" type="xsd:integer" required="false()" constraint="(. &lt; 1000) and (.&lt;180)"/-->
			<xforms:bind nodeset="/CRF/IG_PE_BASE/I_SYSBP" type="xsd:integer" required="false()" constraint="((. &lt; 1000) and (.&lt;180)) or (. = '')"/>
			<xforms:bind nodeset="/CRF/IG_PE_BASE/I_DIABP" type="xsd:integer" required="true()" constraint="(. &lt; 1000) and (.&lt;120) "/>
			<xforms:bind nodeset="/CRF/IG_PE_BASE/I_DIZZY" required="true()" constraint="(. &lt; 10)" relevant="/CRF/IG_PE_BASE/I_DIABP &lt;= 70"/>
			<xforms:bind nodeset="/CRF/IG_SMOKING_COMPLAINTS" relevant="/CRF/IG_SH/I_SMOKING = 'true'"/>
			<xforms:bind nodeset="/CRF/IG_SMOKING_COMPLAINTS/I_BREATHING" constraint="(. &lt; 10) or (. = '')"/>
			<xforms:bind nodeset="/CRF/IG_SMOKING_COMPLAINTS/I_COUGHING" constraint="(. &lt; 10) or (. = '')"/>
			<xforms:bind nodeset="/CRF/IG_SMOKING_COMPLAINTS/I_HEART_COMPLAINTS" constraint="(. &lt; 10) or (. = '')"/>
			<xforms:bind nodeset="/CRF/IG_SMOKING_COMPLAINTS/I_ILNESS_DAYS_LAST_YEAR" type="xsd:integer" constraint="(. &lt; 1000) or (. = '')"/>
			<xforms:bind nodeset="/CRF/IG_SMOKING_COMPLAINTS/I_BRONCHITS" type="xsd:integer" constraint="(. &lt; 100) or (. = '')"/>
			<xforms:bind nodeset="/CRF/IG_SMOKING_COMPLAINTS/I_PNEUMONIA" type="xsd:integer" constraint="(. &lt; 100) or (. = '')"/>
	
			<!-- 30.4.2006: working with the schema does not work correctly yet -->
			<!-- NOTE THAT SCHEMA IS NOT AT ALL REQUIRED FOR FIREFOX IMPLEMENTATION -->
			<!--
			<xsd:schema id="my-schema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.xml4pharma.com/schema/ns/xforms_firefox"
				targetnamespace="http://www.xml4pharma.com/schema/ns/xforms_firefox"
				elementFormDefault="qualified" attributeFormDefault="qualified" version="1">
				<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
				<xsd:element name="CRF">
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element name="FormFile" type="xsd:string"/>
							<xsd:element ref="FormID"/>
							<xsd:element name="SubjectID" type="xsd:string"/>
							<xsd:element name="StudyEventID" type="xsd:string"/>
							<xsd:element ref="IG_COMMON" minOccurs="0"/>
							<xsd:element ref="IG_DM" minOccurs="0"/>
							<xsd:element ref="IG_SH" minOccurs="0"/>
							<xsd:element ref="IG_DH" minOccurs="0"/>
							<xsd:element ref="IG_PE_BASE" minOccurs="0"/>
							<xsd:element ref="IG_SMOKING_COMPLAINTS" minOccurs="0"/>
							<xsd:element ref="CodeLists"/>
						</xsd:sequence>
						<xsd:attribute ref="xml:lang"/>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="FormID">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:string">
								<xsd:attribute name="Label"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="IG_COMMON">
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element ref="I_SITE" minOccurs="0"/>
							<xsd:element ref="I_VISIT" minOccurs="0"/>
						</xsd:sequence>
						<xsd:attribute name="Label"/>
						<xsd:attribute name="RepeatKey" type="xsd:integer"/>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="IG_DM">
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element ref="I_BRTHDT" minOccurs="0"/>
							<xsd:element ref="I_SEX" minOccurs="0"/>
							<xsd:element ref="I_RACE" minOccurs="0"/>
						</xsd:sequence>
						<xsd:attribute name="Label"/>
						<xsd:attribute name="RepeatKey" type="xsd:integer"/>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="IG_SH">
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element ref="I_SMOKING" minOccurs="0"/>
							<xsd:element ref="I_NR_CIGARETTES" minOccurs="0"/>
						</xsd:sequence>
						<xsd:attribute name="Label"/>
						<xsd:attribute name="RepeatKey" type="xsd:integer"/>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="IG_DH">
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element ref="I_DRINKING" minOccurs="0"/>
						</xsd:sequence>
						<xsd:attribute name="Label"/>
						<xsd:attribute name="RepeatKey" type="xsd:integer"/>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="IG_PE_BASE">
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element ref="I_HEIGHT" minOccurs="0"/>
							<xsd:element ref="I_WEIGHT" minOccurs="0"/>
							<xsd:element ref="I_SYSBP" minOccurs="0"/>
							<xsd:element ref="I_DIABP" minOccurs="0"/>
							<xsd:element ref="I_DIZZY" minOccurs="0"/>
						</xsd:sequence>
						<xsd:attribute name="Label"/>
						<xsd:attribute name="RepeatKey" type="xsd:integer"/>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="IG_SMOKING_COMPLAINTS">
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element ref="I_BREATHING" minOccurs="0"/>
							<xsd:element ref="I_COUGHING" minOccurs="0"/>
							<xsd:element ref="I_HEART_COMPLAINTS" minOccurs="0"/>
							<xsd:element ref="I_ILNESS_DAYS_LAST_YEAR" minOccurs="0"/>
							<xsd:element ref="I_BRONCHITS" minOccurs="0"/>
							<xsd:element ref="I_PNEUMONIA" minOccurs="0"/>
						</xsd:sequence>
						<xsd:attribute name="Label"/>
						<xsd:attribute name="RepeatKey" type="xsd:integer"/>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="CodeLists">
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element ref="CodeList" minOccurs="0" maxOccurs="unbounded"/>
						</xsd:sequence>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="CodeList">
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element ref="CodeListItem" maxOccurs="unbounded"/>
						</xsd:sequence>
						<xsd:attribute name="OID"/>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="CodeListItem">
					<xsd:complexType>
						<xsd:attribute name="CodedValue"/>
						<xsd:attribute name="Decode"/>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_SITE">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:integer">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_SUBJECTID">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:string">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_VISIT">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:date">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_BRTHDT">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:date">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_SEX">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:string">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_RACE">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:string">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_SMOKING">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:integer">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_NR_CIGARETTES" nillable="true">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:string">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_DRINKING">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:string">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_SYSBP">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:integer">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_DIABP">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:integer">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_HEIGHT">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:integer">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_WEIGHT">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:integer">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_BREATHING" nillable="true">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:integer">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_COUGHING" nillable="true">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:integer">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_BRONCHITS" nillable="true">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:integer">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_PNEUMONIA" nillable="true">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:integer">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_HEART_COMPLAINTS" nillable="true">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:integer">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_ILNESS_DAYS_LAST_YEAR" nillable="true">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:integer">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="I_DIZZY">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="xsd:integer">
								<xsd:attribute name="Label"/>
								<xsd:attribute name="CodeListOID"/>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
			</xsd:schema>
			-->
		</xforms:model>
	</head>
	<body bgcolor="Silver">
		<h3>
			<center>
				<font color="red">eCRF XForms example <br/>Courtesy of<br/>
				<a href="http://www.XML4Pharma.com/">XML4Pharma</a></font>
				<p>
					<font color="blue">Form: Baseline</font>
				</p>
			</center>
		</h3>
		<!--
		<p>
		This form demonstrates a dynamic form automatically created from a CDISC ODM file (version 1.3) with a study definition.<br/>
		It is used for a cancer study and contains questions about smoking and drinking habits in combination with demographic information.
		</p>
		<p>Required fields have a blue label, fields for which there are constraints have a red label.</p>
		<p>Try out what happens when you:</p>
		<ul>
		<li>Try to submit the form when one or more required fields are not filled (well, you can't submit the form)</li>
		<li>Enter a non-numeric value for the Site Number</li>
		<li>Indicate that the subject is a smoker (also have a look what happens near the bottom of the form)</li>
		<li>Fill in a diastolic blood pressure lower than 70</li>
		</ul>
		<p>When you finished filling the form, and all values are valid and in range, you will see how the submitted data are transformed into 
		CDISC ODM format again (ClinicalData section), and you will obtain a PDF representation of the submitted form.</p>
		-->
		<xforms:group>
			<p class="example">
				<xforms:input model="F_BASELINE" ref="/CRF/SubjectID" class="nameAndAddress">
					<xforms:label>Subject ID :</xforms:label>
					<xforms:alert>Subject ID</xforms:alert>
				</xforms:input>
			</p>
			<p class="example">
				<xforms:input model="F_BASELINE" ref="/CRF/StudyEventID">
					<xforms:label>Study Event ID</xforms:label>
				</xforms:input>
			</p>
		</xforms:group>
		<xforms:group>
			<br/>
			<h4>Group: Common</h4>
			<p class="example">
				<xforms:input model="F_BASELINE" ref="/CRF/IG_COMMON/I_SITE">
					<xforms:label>Site number</xforms:label>
					<xforms:alert>Must be an integer.Value must be lower than 100</xforms:alert>
				</xforms:input>
			</p>
			<!--p class="example">
				<xforms:input model="F_BASELINE" ref="/CRF/IG_COMMON/I_SUBJECTID">
					<xforms:label>Subject ID</xforms:label>
					<xforms:alert>The ID of the subject</xforms:alert>
				</xforms:input>
			</p-->
			<p class="example">
				<xforms:input model="F_BASELINE" ref="/CRF/IG_COMMON/I_VISIT">
					<xforms:label>Visit Date</xforms:label>
					<xforms:alert>Must be a valid date. Correct format is: yyyy-mm-dd</xforms:alert>
				</xforms:input>
			</p>
		</xforms:group>
		<xforms:group>
			<br/>
			<h4>Group: Demographics</h4>
			<p class="example">
				<xforms:input model="F_BASELINE" ref="/CRF/IG_DM/I_BRTHDT">
					<xforms:label>Date of Birth</xforms:label>
					<xforms:alert>Must be a valid date. Correct format is: yyyy-mm-dd</xforms:alert>
				</xforms:input>
			</p>
			<p class="example">
				<xforms:select1 model="F_BASELINE" ref="/CRF/IG_DM/I_SEX">
					<xforms:label>Sex</xforms:label>
					<xforms:item>
						<xforms:label>Male</xforms:label>
						<xforms:value>M</xforms:value>
					</xforms:item>
					<xforms:item>
						<xforms:label>Female</xforms:label>
						<xforms:value>F</xforms:value>
					</xforms:item>
				</xforms:select1>
			</p>
			<p class="example">
				<xforms:select1 model="F_BASELINE" ref="/CRF/IG_DM/I_RACE">
					<xforms:label>Race</xforms:label>
					<xforms:item>
						<xforms:label>Caucasian</xforms:label>
						<xforms:value>CAUCASIAN</xforms:value>
					</xforms:item>
					<xforms:item>
						<xforms:label>Black</xforms:label>
						<xforms:value>BLACK</xforms:value>
					</xforms:item>
					<xforms:item>
						<xforms:label>Asian</xforms:label>
						<xforms:value>ASIAN</xforms:value>
					</xforms:item>
					<xforms:item>
						<xforms:label>Other</xforms:label>
						<xforms:value>OTHER</xforms:value>
					</xforms:item>
				</xforms:select1>
			</p>
		</xforms:group>
		<xforms:group>
			<br/>
			<h4>Group: Smoking History</h4>
			<!--p class="example">
				<xforms:select1 model="F_BASELINE" ref="/CRF/IG_SH/I_SMOKING">
					<xforms:label>Is the subject a smoker</xforms:label>
					<xforms:item>
						<xforms:label>No</xforms:label>
						<xforms:value>0</xforms:value>
					</xforms:item>
					<xforms:item>
						<xforms:label>Yes</xforms:label>
						<xforms:value>1</xforms:value>
					</xforms:item>
				</xforms:select1>
			</p-->
			<p class="example">
				<xforms:input model="F_BASELINE" ref="/CRF/IG_SH/I_SMOKING" appearance="minimal">
					<xforms:label>Is the subject a smoker</xforms:label>
				</xforms:input>
			</p>
			<p class="example">
				<xforms:select1 model="F_BASELINE" ref="/CRF/IG_SH/I_NR_CIGARETTES">
					<xforms:label>Number of cigarettes per day</xforms:label>
					<xforms:item>
						<xforms:label>Less Than 10 cigarettes per day</xforms:label>
						<xforms:value>LT10</xforms:value>
					</xforms:item>
					<xforms:item>
						<xforms:label>10 to 20 cigarettes per day</xforms:label>
						<xforms:value>10TO20</xforms:value>
					</xforms:item>
					<xforms:item>
						<xforms:label>Greater Than 20 cigarettes per day</xforms:label>
						<xforms:value>GT20</xforms:value>
					</xforms:item>
				</xforms:select1>
			</p>
		</xforms:group>
		<xforms:group>
			<br/>
			<h4>Group: Drinking history</h4>
			<p class="example">
				<xforms:select1 model="F_BASELINE" ref="/CRF/IG_DH/I_DRINKING">
					<xforms:label>Number of alcoholic drinks per day</xforms:label>
					<xforms:item>
						<xforms:label>Less Than 1 drink per day</xforms:label>
						<xforms:value>LT1</xforms:value>
					</xforms:item>
					<xforms:item>
						<xforms:label>1 to 2 drinks per day</xforms:label>
						<xforms:value>1TO2</xforms:value>
					</xforms:item>
					<xforms:item>
						<xforms:label>Greater Than 2 drinks per day</xforms:label>
						<xforms:value>GT2</xforms:value>
					</xforms:item>
				</xforms:select1>
			</p>
		</xforms:group>
		<xforms:group>
			<br/>
			<h4>Group: Physical examination: Baseline</h4>
			<p class="example">
				<xforms:input model="F_BASELINE" ref="/CRF/IG_PE_BASE/I_HEIGHT">
					<xforms:label>Height (cm)</xforms:label>
					<xforms:alert>The height value should be below 220 cm</xforms:alert>
				</xforms:input>
			</p>
			<p class="example">
				<xforms:input model="F_BASELINE" ref="/CRF/IG_PE_BASE/I_WEIGHT">
					<xforms:label>Weight (kg)</xforms:label>
					<xforms:alert>The weight value should be below 150 kg</xforms:alert>
				</xforms:input>
			</p>
			<p class="example">
				<xforms:input model="F_BASELINE" ref="/CRF/IG_PE_BASE/I_SYSBP">
					<xforms:label>Systolic BP (mm Hg)</xforms:label>
					<xforms:alert>The value should be below 180</xforms:alert>
				</xforms:input>
			</p>
			<p class="example">
				<xforms:input model="F_BASELINE" ref="/CRF/IG_PE_BASE/I_DIABP">
					<xforms:label>Diastolic BP (mm Hg)</xforms:label>
					<xforms:alert>The value should be below 120</xforms:alert>
				</xforms:input>
			</p>
			<p class="example">
				<xforms:select1 model="F_BASELINE" ref="/CRF/IG_PE_BASE/I_DIZZY">
					<xforms:label>Does the subject feel dizzy when standing up from a sitting position</xforms:label>
					<xforms:item>
						<xforms:label>No</xforms:label>
						<xforms:value>0</xforms:value>
					</xforms:item>
					<xforms:item>
						<xforms:label>Yes</xforms:label>
						<xforms:value>1</xforms:value>
					</xforms:item>
				</xforms:select1>
			</p>
		</xforms:group>
		<xforms:group>
			<br/>
			<h4>Group: Complaints related to smoking</h4>
			<p class="example">
				<xforms:select1 model="F_BASELINE" ref="/CRF/IG_SMOKING_COMPLAINTS/I_BREATHING">
					<xforms:label>Breathing</xforms:label>
					<xforms:item>
						<xforms:label>No</xforms:label>
						<xforms:value>0</xforms:value>
					</xforms:item>
					<xforms:item>
						<xforms:label>Yes</xforms:label>
						<xforms:value>1</xforms:value>
					</xforms:item>
				</xforms:select1>
			</p>
			<p class="example">
				<xforms:select1 model="F_BASELINE" ref="/CRF/IG_SMOKING_COMPLAINTS/I_COUGHING">
					<xforms:label>Coughing</xforms:label>
					<xforms:item>
						<xforms:label>No</xforms:label>
						<xforms:value>0</xforms:value>
					</xforms:item>
					<xforms:item>
						<xforms:label>Yes</xforms:label>
						<xforms:value>1</xforms:value>
					</xforms:item>
				</xforms:select1>
			</p>
			<p class="example">
				<xforms:select1 model="F_BASELINE" ref="/CRF/IG_SMOKING_COMPLAINTS/I_HEART_COMPLAINTS">
					<xforms:label>Heart</xforms:label>
					<xforms:item>
						<xforms:label>No</xforms:label>
						<xforms:value>0</xforms:value>
					</xforms:item>
					<xforms:item>
						<xforms:label>Yes</xforms:label>
						<xforms:value>1</xforms:value>
					</xforms:item>
				</xforms:select1>
			</p>
			<p class="example">
				<xforms:input model="F_BASELINE" ref="/CRF/IG_SMOKING_COMPLAINTS/I_ILNESS_DAYS_LAST_YEAR">
					<xforms:label>No. of illness days last year</xforms:label>
					<xforms:alert>Must be an integer.Value must be lower than 1000</xforms:alert>
				</xforms:input>
			</p>
			<p class="example">
				<xforms:input model="F_BASELINE" ref="/CRF/IG_SMOKING_COMPLAINTS/I_BRONCHITS">
					<xforms:label>Number of bronchitis cases during the last year</xforms:label>
					<xforms:alert>Must be an integer.Value must be lower than 100</xforms:alert>
				</xforms:input>
			</p>
			<p class="example">
				<xforms:input model="F_BASELINE" ref="/CRF/IG_SMOKING_COMPLAINTS/I_PNEUMONIA">
					<xforms:label>Number of pneumonia cases last year</xforms:label>
					<xforms:alert>Must be an integer.Value must be lower than 100</xforms:alert>
				</xforms:input>
			</p>
		</xforms:group>
		<p/>
		
		<xforms:group>
			<!--xforms:submit id="submit"-->
			<xforms:submit submission="submit">
				<xforms:label>Submit Data</xforms:label>
			</xforms:submit>
		</xforms:group>
		
		<h4>
			<center>Copyright XML4Pharma 2004-2007</center>
		</h4>
		<h3>
			<center>
				<font color="red">
					<a href="mailto:info@XML4Pharma.com">Yes, I want to know more about this technology!</a>
				</font>
			</center>
		</h3>
	</body>
</html>
