<reportSchema id="1">

<!-- This is a sample xml report definition -->
	<name>example</name>

	<description>
		sample xml report schema
	</description>

<!-- Parameters -->
	<parameters class="java.util.ArrayList">
		<parameter clazz="java.util.Date">
	<name>report.startDate</name>
	<label>When does the report period start?</label>
	</parameter>
		<parameter clazz="java.util.Date">
	<name>report.endDate</name>
	<label>When does the report period end?</label>
	</parameter>
	</parameters>

<!-- Indicators -->
	<dataSets class="java.util.ArrayList">
		<dataSetDefinition class="org.openmrs.report.CohortDataSetDefinition" name="Cohorts">
			<strategies class="java.util.LinkedHashMap">
				<entry>
					<string>male_total</string>
					<cohort class="org.openmrs.reporting.PatientSearch">
						<specification>[male]</specification>
					</cohort>
				</entry>
				<entry>
					<string>female_total</string>
					<cohort class="org.openmrs.reporting.PatientSearch">
						<specification>[male]</specification>
					</cohort>
				</entry>
				<entry>
					<string>adult_total</string>
					<cohort class="org.openmrs.reporting.PatientSearch">
						<specification>[ChildOnDate|effectiveDate=${report.endDate}]</specification>
					</cohort>
				</entry>
				<entry>
					<string>child_total</string>
					<cohort class="org.openmrs.reporting.PatientSearch">
						<specification>[AdultOnDate|effectiveDate=${report.endDate}]</specification>
					</cohort>
				</entry>
				<entry>
					<string>male_child</string>
					<cohort class="org.openmrs.reporting.PatientSearch">
						<specification>[male] and [ChildOnDate|effectiveDate=${report.endDate}]</specification>
					</cohort>
				</entry>
				<entry>
					<string>male_adult</string>
					<cohort class="org.openmrs.reporting.PatientSearch">
						<specification>[male] and [AdultOnDate|effectiveDate=${report.endDate}]</specification>
					</cohort>
				</entry>
				<entry>
					<string>female_child</string>
					<cohort class="org.openmrs.reporting.PatientSearch">
						<specification>[female] and [ChildOnDate|effectiveDate=${report.endDate}]</specification>
					</cohort>
				</entry>
				<entry>
					<string>female_adult</string>
					<cohort class="org.openmrs.reporting.PatientSearch">
						<specification>[female]and [AdultOnDate|effectiveDate=${report.endDate}]</specification>
					</cohort>
				</entry>
			</strategies>
		</dataSetDefinition>
	</dataSets>

</reportSchema>
