<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.5.1.final using JasperReports Library version 6.5.1  -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="resumoGeral" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="d4a1d5eb-82dd-412f-a620-202e4bdf9dba">
	<property name="template.engine" value="tabular_template"/>
	<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
	<style name="Table">
		<box>
			<pen lineWidth="1.0" lineColor="#000000"/>
			<topPen lineWidth="1.0" lineColor="#000000"/>
			<leftPen lineWidth="1.0" lineColor="#000000"/>
			<bottomPen lineWidth="1.0" lineColor="#000000"/>
			<rightPen lineWidth="1.0" lineColor="#000000"/>
		</box>
	</style>
	<parameter name="FILTRO" class="java.lang.String"/>
	<parameter name="DADOS_BASICOS" class="br.com.elotech.config.DadosBasicos"/>
	<parameter name="LOGO" class="java.lang.Object"/>
	<parameter name="TITULO" class="java.lang.String"/>
	<parameter name="TP_REL" class="java.lang.String"/>
	<parameter name="VERSION" class="java.lang.String"/>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="unidade" class="java.lang.String"/>
	<field name="profissional" class="java.lang.String"/>
	<field name="motivo" class="java.lang.String"/>
	<field name="qtdAtendimentos" class="java.lang.Integer"/>
	<field name="cidadao" class="java.lang.String"/>
	<field name="data" class="java.util.Date"/>
	<field name="tipoAtendimento" class="java.lang.String"/>
	<variable name="total_motivo" class="java.lang.Integer" resetType="Group" resetGroup="gpMotivo" calculation="Sum">
		<variableExpression><![CDATA[$F{qtdAtendimentos}]]></variableExpression>
	</variable>
	<variable name="total_unidade" class="java.lang.Integer" resetType="Group" resetGroup="gpUnidade" calculation="Sum">
		<variableExpression><![CDATA[$F{qtdAtendimentos}]]></variableExpression>
	</variable>
	<variable name="total_tipo" class="java.lang.Integer" resetType="Group" resetGroup="gpTipoAtendimento" calculation="Count">
		<variableExpression><![CDATA[$F{cidadao}]]></variableExpression>
	</variable>
	<variable name="total_geral" class="java.lang.Integer" calculation="Sum">
		<variableExpression><![CDATA[$F{qtdAtendimentos}]]></variableExpression>
	</variable>
	<variable name="total_encontro" class="java.lang.Integer" resetType="Group" resetGroup="gpTipoAtendimento" calculation="Sum">
		<variableExpression><![CDATA[$F{qtdAtendimentos}]]></variableExpression>
	</variable>
	<variable name="total_geral_analitico" class="java.lang.Integer" calculation="Count">
		<variableExpression><![CDATA[$F{cidadao}]]></variableExpression>
	</variable>
	<variable name="total_profissional" class="java.lang.Integer" resetType="Group" resetGroup="gpProfissional" calculation="Count">
		<variableExpression><![CDATA[$F{cidadao}]]></variableExpression>
	</variable>
	<variable name="total_motivo_analitico" class="java.lang.Integer" resetType="Group" resetGroup="gpMotivo" calculation="Count">
		<variableExpression><![CDATA[$F{cidadao}]]></variableExpression>
	</variable>
	<group name="gpUnidade" isReprintHeaderOnEachPage="true">
		<groupExpression><![CDATA[$F{unidade}]]></groupExpression>
		<groupHeader>
			<band height="15">
				<textField>
					<reportElement x="50" y="0" width="505" height="15" uuid="a3c1095a-b1e1-4ad1-9d76-7006423a1926">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box>
						<bottomPen lineWidth="1.0"/>
					</box>
					<textElement verticalAlignment="Middle">
						<font size="8"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{unidade}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement x="0" y="0" width="50" height="15" uuid="dfc1d34f-535d-4ee5-a692-11712f4d4252"/>
					<box leftPadding="2" rightPadding="0">
						<bottomPen lineWidth="1.0"/>
					</box>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font size="8" isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding=""/>
					</textElement>
					<text><![CDATA[Unidade:]]></text>
				</staticText>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="13">
				<printWhenExpression><![CDATA[$P{TP_REL}.equalsIgnoreCase( "SINTETICO" )]]></printWhenExpression>
				<staticText>
					<reportElement x="0" y="0" width="505" height="13" uuid="dd4bed87-bea4-4ec9-b76b-cde7dc98c3ea"/>
					<box rightPadding="2">
						<topPen lineWidth="1.0"/>
					</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Total da Unidade:]]></text>
				</staticText>
				<textField pattern="">
					<reportElement x="505" y="0" width="50" height="13" uuid="49b4aefd-d358-4c48-8127-6e7e876b08f1"/>
					<box leftPadding="2" rightPadding="5">
						<topPen lineWidth="1.0"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="8"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{total_geral}]]></textFieldExpression>
				</textField>
			</band>
			<band height="13">
				<printWhenExpression><![CDATA[$P{TP_REL}.equalsIgnoreCase( "ANALITICO" )]]></printWhenExpression>
				<staticText>
					<reportElement x="30" y="0" width="400" height="13" uuid="d4923673-d5c5-4fd3-a963-90a50c9768c2"/>
					<box rightPadding="2">
						<topPen lineWidth="1.0"/>
					</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Total da Unidade:]]></text>
				</staticText>
				<textField pattern="">
					<reportElement x="430" y="0" width="50" height="13" uuid="055c4bff-690a-4c81-8af0-570a60d71af6"/>
					<box leftPadding="2" rightPadding="5">
						<topPen lineWidth="1.0"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="8"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{total_geral_analitico}]]></textFieldExpression>
				</textField>
			</band>
		</groupFooter>
	</group>
	<group name="gpProfissional" isReprintHeaderOnEachPage="true">
		<groupExpression><![CDATA[$F{profissional}]]></groupExpression>
		<groupHeader>
			<band height="15">
				<printWhenExpression><![CDATA[$P{TP_REL}.equalsIgnoreCase( "ANALITICO" )]]></printWhenExpression>
				<staticText>
					<reportElement x="10" y="0" width="60" height="15" uuid="17a934f0-28f7-4e70-9785-a342197e64df"/>
					<box leftPadding="2" rightPadding="0">
						<bottomPen lineWidth="1.0"/>
					</box>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font size="8" isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding=""/>
					</textElement>
					<text><![CDATA[Profissional:]]></text>
				</staticText>
				<textField>
					<reportElement x="70" y="0" width="485" height="15" uuid="da96aafd-96f3-4314-b79d-07c1d5599caa">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box>
						<bottomPen lineWidth="1.0"/>
					</box>
					<textElement verticalAlignment="Middle">
						<font size="8"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{profissional}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="14">
				<printWhenExpression><![CDATA[$P{TP_REL}.equalsIgnoreCase( "ANALITICO" )]]></printWhenExpression>
				<staticText>
					<reportElement x="0" y="1" width="430" height="13" uuid="02504a19-b457-48f1-b40c-e90a9bf1c781"/>
					<box rightPadding="2">
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Total Por Profissional:]]></text>
				</staticText>
				<textField pattern="">
					<reportElement x="430" y="0" width="50" height="13" uuid="4ec90367-6910-4792-bd36-ded6070ef8d0"/>
					<box leftPadding="2" rightPadding="5">
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="6"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{total_profissional}]]></textFieldExpression>
				</textField>
			</band>
		</groupFooter>
	</group>
	<group name="gpMotivo" isReprintHeaderOnEachPage="true">
		<groupExpression><![CDATA[$F{motivo}]]></groupExpression>
		<groupHeader>
			<band height="28">
				<printWhenExpression><![CDATA[$P{TP_REL}.equalsIgnoreCase( "SINTETICO" )]]></printWhenExpression>
				<staticText>
					<reportElement mode="Opaque" x="20" y="15" width="485" height="13" forecolor="#000000" backcolor="#C4C4C4" uuid="7c1f6e84-9905-487e-aa73-90dd294f6533">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box leftPadding="2"/>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Tipo de Atendimento]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="505" y="15" width="50" height="13" forecolor="#000000" backcolor="#C4C4C4" uuid="e0b9ea89-f6ae-4e38-aab4-85d8bcd5f184">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box leftPadding="2"/>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Quantidade]]></text>
				</staticText>
				<staticText>
					<reportElement x="20" y="0" width="60" height="15" uuid="16462a2f-2731-4d43-b3db-e3fe1ab67a46"/>
					<box leftPadding="2" rightPadding="0">
						<bottomPen lineWidth="1.0"/>
					</box>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font size="8" isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding=""/>
					</textElement>
					<text><![CDATA[Motivo:]]></text>
				</staticText>
				<textField>
					<reportElement x="80" y="0" width="475" height="15" uuid="36442636-3ad9-4c54-b489-a3cd8ca5e013">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box>
						<bottomPen lineWidth="1.0"/>
					</box>
					<textElement verticalAlignment="Middle">
						<font size="8"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{motivo}]]></textFieldExpression>
				</textField>
			</band>
			<band height="15">
				<printWhenExpression><![CDATA[$P{TP_REL}.equalsIgnoreCase( "ANALITICO" )]]></printWhenExpression>
				<staticText>
					<reportElement x="20" y="0" width="60" height="15" uuid="7d48c354-05af-48ef-8d8f-c1e8a48c53fc"/>
					<box leftPadding="2" rightPadding="0">
						<bottomPen lineWidth="1.0"/>
					</box>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font size="8" isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding=""/>
					</textElement>
					<text><![CDATA[Motivo:]]></text>
				</staticText>
				<textField>
					<reportElement x="80" y="0" width="475" height="15" uuid="2a788e04-8a2c-4799-afcd-2524465abf52">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box>
						<bottomPen lineWidth="1.0"/>
					</box>
					<textElement verticalAlignment="Middle">
						<font size="8"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{motivo}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="13">
				<printWhenExpression><![CDATA[$P{TP_REL}.equalsIgnoreCase( "SINTETICO" )]]></printWhenExpression>
				<staticText>
					<reportElement x="0" y="0" width="505" height="13" uuid="d1e096d5-a0ba-464c-9c22-0e94c1256868"/>
					<box rightPadding="2">
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Total Por Motivo:]]></text>
				</staticText>
				<textField pattern="">
					<reportElement x="505" y="0" width="50" height="13" uuid="813f2e9e-fbff-4420-b7ef-82a3893e8c22"/>
					<box leftPadding="2" rightPadding="5">
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="6"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{total_motivo}]]></textFieldExpression>
				</textField>
			</band>
			<band height="13">
				<printWhenExpression><![CDATA[$P{TP_REL}.equalsIgnoreCase( "ANALITICO" )]]></printWhenExpression>
				<staticText>
					<reportElement x="0" y="0" width="430" height="13" uuid="7e627453-56c0-4480-86fa-3c2129c9be08"/>
					<box rightPadding="2">
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Total Por Motivo:]]></text>
				</staticText>
				<textField pattern="">
					<reportElement x="430" y="0" width="50" height="13" uuid="22d02569-7f35-4c19-bbbf-419762fbd828"/>
					<box leftPadding="2" rightPadding="5">
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="6"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{total_motivo_analitico}]]></textFieldExpression>
				</textField>
			</band>
		</groupFooter>
	</group>
	<group name="gpTipoAtendimento" isReprintHeaderOnEachPage="true">
		<groupExpression><![CDATA[$F{tipoAtendimento}]]></groupExpression>
		<groupHeader>
			<band height="28">
				<printWhenExpression><![CDATA[$P{TP_REL}.equalsIgnoreCase( "ANALITICO" )]]></printWhenExpression>
				<staticText>
					<reportElement mode="Opaque" x="30" y="15" width="380" height="13" forecolor="#000000" backcolor="#C4C4C4" uuid="ba941bd9-acb3-42d9-b39f-11a7295840dc">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box leftPadding="2"/>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Cidadão]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="410" y="15" width="70" height="13" forecolor="#000000" backcolor="#C4C4C4" uuid="7e0e7516-8cf2-42f0-b674-3131ca3cf4fb">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box leftPadding="0"/>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Dt. Atendimento]]></text>
				</staticText>
				<staticText>
					<reportElement x="30" y="0" width="100" height="15" uuid="d5ac8849-3e43-4b3d-9763-15c5d7eb275f"/>
					<box leftPadding="2" rightPadding="0">
						<bottomPen lineWidth="1.0"/>
					</box>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font size="8" isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding=""/>
					</textElement>
					<text><![CDATA[Tipo de atendimento:]]></text>
				</staticText>
				<textField>
					<reportElement x="130" y="0" width="350" height="15" uuid="28aabdbd-6bec-4309-a8c0-601b89a2f042">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box>
						<bottomPen lineWidth="1.0"/>
					</box>
					<textElement verticalAlignment="Middle">
						<font size="8"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{tipoAtendimento}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="14">
				<printWhenExpression><![CDATA[$P{TP_REL}.equalsIgnoreCase( "ANALITICO" )]]></printWhenExpression>
				<staticText>
					<reportElement x="0" y="1" width="430" height="13" uuid="0c48cf8f-bc29-451c-9a86-fc06ea530137"/>
					<box rightPadding="2">
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Total Por Tipo de Atendimento:]]></text>
				</staticText>
				<textField pattern="">
					<reportElement x="430" y="0" width="50" height="13" uuid="6fe59bae-9e91-44f5-8e64-20d6d32322a8"/>
					<box leftPadding="2" rightPadding="5">
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="6"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{total_tipo}]]></textFieldExpression>
				</textField>
			</band>
		</groupFooter>
	</group>
	<pageHeader>
		<band height="103" splitType="Stretch">
			<frame>
				<reportElement mode="Opaque" x="0" y="0" width="555" height="70" backcolor="#FFFFFF" uuid="6321f5e3-86eb-444f-acc1-8daaaa0d6c60">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<property name="ShowOutOfBoundContent" value="false"/>
				</reportElement>
				<box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0">
					<pen lineColor="#D18015"/>
					<topPen lineWidth="2.0"/>
					<leftPen lineWidth="2.0"/>
					<rightPen lineWidth="2.0"/>
				</box>
				<textField isBlankWhenNull="true">
					<reportElement mode="Transparent" x="100" y="7" width="455" height="20" forecolor="#000000" uuid="555240c1-0443-419c-8bf0-7a4f388e4155">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box topPadding="0" leftPadding="10" bottomPadding="0" rightPadding="10"/>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font fontName="SansSerif" size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<textFieldExpression><![CDATA[$P{DADOS_BASICOS}.getPrefeitura()]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement mode="Transparent" x="100" y="27" width="455" height="15" forecolor="#000000" uuid="502aeaee-ee33-429f-a820-6d44c1a2501e">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box topPadding="0" leftPadding="10" bottomPadding="0" rightPadding="10"/>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font fontName="SansSerif" size="11" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<textFieldExpression><![CDATA[$P{DADOS_BASICOS}.getSecretaria()]]></textFieldExpression>
				</textField>
				<image hAlign="Center" vAlign="Middle" isUsingCache="true" onErrorType="Blank">
					<reportElement mode="Opaque" x="10" y="7" width="90" height="55" backcolor="#FFFFFF" uuid="5090998c-dbda-4473-beeb-6e51ecea41eb">
						<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box padding="5"/>
					<imageExpression><![CDATA[$P{LOGO}]]></imageExpression>
				</image>
				<textField isBlankWhenNull="true">
					<reportElement mode="Transparent" x="100" y="42" width="455" height="20" forecolor="#000000" uuid="793b703b-ee2c-4fa2-af62-98d51b646058">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box topPadding="0" leftPadding="10" bottomPadding="0" rightPadding="10"/>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font fontName="SansSerif" size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<textFieldExpression><![CDATA[$P{DADOS_BASICOS}.getUnidade()]]></textFieldExpression>
				</textField>
			</frame>
			<staticText>
				<reportElement x="0" y="90" width="40" height="13" uuid="423c9862-62b2-4868-93e3-a5ba1c5289ff">
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
				</reportElement>
				<box leftPadding="2" rightPadding="2">
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="7" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Filtros:]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement mode="Opaque" x="0" y="70" width="555" height="20" forecolor="#FFFFFF" backcolor="#D18015" uuid="27c7256f-d960-4b5c-b965-b9b267c275f8">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box leftPadding="0" rightPadding="0">
					<pen lineColor="#D18015"/>
					<leftPen lineWidth="2.0"/>
					<rightPen lineWidth="2.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement mode="Transparent" x="480" y="90" width="75" height="13" forecolor="#000000" uuid="15f8e6f5-1952-4279-9465-8ddc652962e5">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box padding="2"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font fontName="SansSerif" size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{DADOS_BASICOS}.getUsuario()]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="450" y="90" width="30" height="13" forecolor="#000000" uuid="ab59e678-17c8-4678-96a6-423307baa582"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Usuário:]]></text>
			</staticText>
			<textField>
				<reportElement x="555" y="0" width="8" height="90" uuid="63d1e194-1d1a-49dd-9419-aea03a2bcf77">
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
				</reportElement>
				<textElement rotation="Left">
					<font size="5"/>
				</textElement>
				<textFieldExpression><![CDATA[($P{VERSION} != null && $P{VERSION} != "" ? "v."+$P{VERSION} : "")]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="40" y="90" width="410" height="13" uuid="0b19b8a2-b7b6-4b1a-8726-0ba66c507b08"/>
				<box topPadding="0" bottomPadding="0"/>
				<textElement verticalAlignment="Middle">
					<font size="6" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[($P{FILTRO} != null ? $P{FILTRO} : "Nenhum filtro informado")]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<detail>
		<band height="13">
			<printWhenExpression><![CDATA[$P{TP_REL}.equalsIgnoreCase( "SINTETICO" )]]></printWhenExpression>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="505" y="0" width="50" height="13" uuid="54a2991a-9f40-4c9f-889f-4bdd02bbacd8">
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
				</reportElement>
				<box leftPadding="2" rightPadding="2">
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{qtdAtendimentos}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="20" y="0" width="485" height="13" uuid="4571fb2b-d9b1-4be8-9a77-962fbebb939f">
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
				</reportElement>
				<box leftPadding="2" rightPadding="2">
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{tipoAtendimento}]]></textFieldExpression>
			</textField>
		</band>
		<band height="13">
			<printWhenExpression><![CDATA[$P{TP_REL}.equalsIgnoreCase( "ANALITICO" )]]></printWhenExpression>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="30" y="0" width="380" height="13" uuid="21c32509-f28c-4de4-af0f-3c1bebaa448d">
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
				</reportElement>
				<box leftPadding="2" rightPadding="2">
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{cidadao}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement x="410" y="0" width="70" height="13" uuid="030f1d9c-c086-46a8-aaed-9427fefe2f4e">
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
				</reportElement>
				<box leftPadding="2" rightPadding="2">
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{data}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<pageFooter>
		<band height="13">
			<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
			<textField pattern="dd/MM/yyyy">
				<reportElement mode="Opaque" x="0" y="0" width="60" height="13" backcolor="#FFFFFF" uuid="fc593335-5cbf-4caf-97b3-ff897c676bde"/>
				<box padding="2">
					<topPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Left">
					<font size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy">
				<reportElement mode="Opaque" x="60" y="0" width="420" height="13" backcolor="#FFFFFF" uuid="8c2f09c6-c33b-4843-8073-d7317eb5fec7"/>
				<box topPadding="2" leftPadding="5">
					<topPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Top">
					<font size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[(($P{DADOS_BASICOS}.getUnidade() != "" && $P{DADOS_BASICOS}.getUnidade() != null) ? $P{DADOS_BASICOS}.getUnidade() + " - " : "")
+ 
(($P{DADOS_BASICOS}.getEndereco() != "" && $P{DADOS_BASICOS}.getEndereco() != null) ? $P{DADOS_BASICOS}.getEndereco() : "")]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement mode="Opaque" x="520" y="0" width="34" height="13" backcolor="#FFFFFF" uuid="bd819eec-639a-414b-a2d5-ccc97e6be164">
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
				</reportElement>
				<box topPadding="2" leftPadding="2" rightPadding="5">
					<topPen lineWidth="1.0"/>
				</box>
				<textElement>
					<font size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement mode="Opaque" x="480" y="0" width="40" height="13" backcolor="#FFFFFF" uuid="4552fed5-7891-4cbe-a111-c481f17869a9"/>
				<box topPadding="2">
					<topPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Right">
					<font size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA["Pág. "+$V{PAGE_NUMBER}+" de "]]></textFieldExpression>
			</textField>
		</band>
	</pageFooter>
	<summary>
		<band height="13"/>
	</summary>
</jasperReport>
