<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.6.0.final using JasperReports Library version 6.6.0  -->
<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="estratificacafamiliarisintetico" 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>
	<subDataset name="dsMotivos" uuid="4592cd13-d6c4-463b-ae91-c654c4949d44">
		<queryString>
			<![CDATA[]]>
		</queryString>
		<field name="paciente" class="java.lang.String"/>
		<field name="cns" class="java.lang.String"/>
		<field name="dataNascimento" class="java.util.Date"/>
		<field name="prontuario" class="java.lang.String"/>
		<field name="telefone" class="java.lang.String"/>
		<field name="celular" class="java.lang.String"/>
	</subDataset>
	<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="tipoLogradouro" class="java.lang.String"/>
	<field name="rua" class="java.lang.String"/>
	<field name="bairro" class="java.lang.String"/>
	<field name="numero" class="java.lang.Integer"/>
	<field name="equipe" class="java.lang.String"/>
	<field name="ine" class="java.lang.String"/>
	<field name="participantes" class="java.util.ArrayList"/>
	<field name="responsavel" class="java.lang.String"/>
	<field name="codigo" class="java.lang.Integer"/>
	<field name="qtdPacientes" class="java.lang.Integer"/>
	<variable name="total_profissional" class="java.lang.Integer" resetType="Group" resetGroup="grupo_profissional" calculation="Count">
		<variableExpression><![CDATA[$F{responsavel}]]></variableExpression>
		<initialValueExpression><![CDATA[0]]></initialValueExpression>
	</variable>
	<variable name="total_unidade" class="java.lang.Integer" resetType="Group" resetGroup="grupo_unidade" calculation="Count">
		<variableExpression><![CDATA[$F{responsavel}]]></variableExpression>
		<initialValueExpression><![CDATA[0]]></initialValueExpression>
	</variable>
	<variable name="total_domicilio_geral" class="java.lang.Integer" calculation="Count">
		<variableExpression><![CDATA[$F{responsavel}]]></variableExpression>
		<initialValueExpression><![CDATA[0]]></initialValueExpression>
	</variable>
	<variable name="total_desfecho" class="java.lang.Integer" resetType="Group" resetGroup="grupo_equipe" calculation="Count">
		<variableExpression><![CDATA[$F{responsavel}]]></variableExpression>
	</variable>
	<variable name="total_participantes" class="java.lang.Integer" resetType="Group" resetGroup="grupo_profissional" calculation="Sum">
		<variableExpression><![CDATA[$F{qtdPacientes}]]></variableExpression>
		<initialValueExpression><![CDATA[0]]></initialValueExpression>
	</variable>
	<variable name="total_pacientes_unidade" class="java.lang.Integer" resetType="Group" resetGroup="grupo_unidade" calculation="Sum">
		<variableExpression><![CDATA[$F{qtdPacientes}]]></variableExpression>
	</variable>
	<variable name="total_pacientes_geral" class="java.lang.Integer" calculation="Sum">
		<variableExpression><![CDATA[$F{qtdPacientes}]]></variableExpression>
	</variable>
	<variable name="qtd_unidades" class="java.lang.Integer" calculation="DistinctCount">
		<variableExpression><![CDATA[$F{unidade}]]></variableExpression>
	</variable>
	<variable name="total_pacientes_equipe" class="java.lang.Integer" resetType="Group" resetGroup="grupo_equipe" calculation="Sum">
		<variableExpression><![CDATA[$F{qtdPacientes}]]></variableExpression>
	</variable>
	<group name="grupo_unidade" isReprintHeaderOnEachPage="true">
		<groupExpression><![CDATA[$F{unidade}]]></groupExpression>
		<groupHeader>
			<band height="20">
				<staticText>
					<reportElement x="0" y="5" width="50" height="15" uuid="28834ddb-329e-4120-b513-46fba254123e">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
						<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
					</reportElement>
					<box leftPadding="5"/>
					<textElement verticalAlignment="Middle">
						<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Unidade:]]></text>
				</staticText>
				<textField>
					<reportElement x="50" y="5" width="504" height="15" uuid="2d4125ff-196c-4b7a-a07b-bdac6638d0e6">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<textElement verticalAlignment="Middle">
						<font size="8"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{unidade}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="30">
				<staticText>
					<reportElement x="10" y="0" width="470" height="15" uuid="56550f44-6c83-4474-86e2-d45e6fdb0a32">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box>
						<topPen lineWidth="1.0"/>
					</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="7" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Domicílios do Estabelecimento:]]></text>
				</staticText>
				<textField>
					<reportElement x="480" y="0" width="75" height="15" uuid="197d1b37-2bfa-4d89-9cbc-9b965f3f7dce">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box rightPadding="5">
						<topPen lineWidth="1.0"/>
					</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="7" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{total_unidade}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement x="10" y="15" width="470" height="15" uuid="92dbed54-46dd-455d-8e1c-aa136cd128a2">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box>
						<topPen lineWidth="0.0"/>
					</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="7" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Pacientes do Estabelecimento:]]></text>
				</staticText>
				<textField>
					<reportElement x="480" y="15" width="75" height="15" uuid="c39a6a5d-56b9-4726-88ed-e5ea2fd1bdaf">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box rightPadding="5">
						<topPen lineWidth="0.0"/>
					</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="7" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{total_pacientes_unidade}]]></textFieldExpression>
				</textField>
			</band>
		</groupFooter>
	</group>
	<group name="grupo_equipe" isReprintHeaderOnEachPage="true">
		<groupExpression><![CDATA[$F{equipe}]]></groupExpression>
		<groupHeader>
			<band height="15">
				<staticText>
					<reportElement x="10" y="0" width="40" height="15" uuid="17ce41fa-4d34-40a9-a9c5-589f7fb47abb">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
						<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
						<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					</reportElement>
					<box leftPadding="5"/>
					<textElement verticalAlignment="Middle">
						<font fontName="SansSerif" size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Equipe:]]></text>
				</staticText>
				<textField>
					<reportElement x="50" y="0" width="505" height="15" uuid="b5d27f4d-221f-448b-ae8f-a2413086e92b">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
						<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					</reportElement>
					<textElement verticalAlignment="Middle">
						<font size="8"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{ine}+" - "+$F{equipe}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="30">
				<staticText>
					<reportElement x="12" y="0" width="468" height="15" uuid="7c11a254-e9b3-4cd9-8c08-b6a57e4f609d">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box>
						<topPen lineWidth="1.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[Domicílios da Equipe:]]></text>
				</staticText>
				<textField>
					<reportElement x="480" y="0" width="75" height="15" uuid="dc3ab430-802d-4604-b797-80a58221a3fb">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box rightPadding="5">
						<topPen lineWidth="1.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>
					<textFieldExpression><![CDATA[$V{total_desfecho}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement x="12" y="15" width="468" height="15" uuid="f018fc76-4bee-4e38-ab24-c28c2b1f2204">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box>
						<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[Pacientes da Equipe:]]></text>
				</staticText>
				<textField>
					<reportElement x="480" y="15" width="75" height="15" uuid="df87353e-7995-4670-a694-42fc9c78c0ae">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box 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="Right" verticalAlignment="Middle">
						<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{total_pacientes_equipe}]]></textFieldExpression>
				</textField>
			</band>
		</groupFooter>
	</group>
	<group name="grupo_profissional" isReprintHeaderOnEachPage="true">
		<groupExpression><![CDATA[$F{profissional}]]></groupExpression>
		<groupHeader>
			<band height="15">
				<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				<textField>
					<reportElement x="70" y="0" width="485" height="15" uuid="56cec539-38d0-4e12-b33f-c2277974d703">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
						<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					</reportElement>
					<textElement verticalAlignment="Middle">
						<font size="8"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{profissional}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement x="10" y="0" width="60" height="15" uuid="1e8aa757-b77a-4efd-bca1-d2413ccee120">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
						<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
						<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					</reportElement>
					<box leftPadding="5"/>
					<textElement verticalAlignment="Middle">
						<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Profissional:]]></text>
				</staticText>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="26">
				<staticText>
					<reportElement x="12" y="0" width="468" height="13" uuid="7c959260-30ee-4c2b-a360-1f5b2c61ebee">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box>
						<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[Domicílios do Profissional:]]></text>
				</staticText>
				<textField>
					<reportElement x="480" y="0" width="75" height="13" uuid="89b905fa-bf85-4846-9483-0d742c8f743b">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box 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="Right" verticalAlignment="Middle">
						<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{total_profissional}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement x="12" y="13" width="468" height="13" uuid="3d097be5-5fcb-4a4c-abc1-c5f3847ee839">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box>
						<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[Pacientes do Profissional:]]></text>
				</staticText>
				<textField>
					<reportElement x="480" y="13" width="75" height="13" uuid="25cc5c44-0fc9-424d-a585-419e5618694e">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box 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="Right" verticalAlignment="Middle">
						<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{total_participantes}]]></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">
					<topPen lineWidth="2.0" lineColor="#066990"/>
					<leftPen lineWidth="2.0" lineColor="#066990"/>
					<rightPen lineWidth="2.0" lineColor="#066990"/>
				</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>
			<textField isStretchWithOverflow="true" isBlankWhenNull="false">
				<reportElement x="32" y="90" width="418" height="13" uuid="f0949da5-5f04-4ec0-9fd5-7cc56c1bf05f">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box leftPadding="0" 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 verticalAlignment="Middle">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[($P{FILTRO} != null ? $P{FILTRO} : "Nenhum filtro informado")]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="0" y="90" width="32" height="13" uuid="423c9862-62b2-4868-93e3-a5ba1c5289ff">
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
				</reportElement>
				<box leftPadding="5" 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="#066990" uuid="27c7256f-d960-4b5c-b965-b9b267c275f8">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box leftPadding="0" rightPadding="0">
					<topPen lineWidth="0.0"/>
					<leftPen lineWidth="2.0" lineColor="#066990"/>
					<bottomPen lineWidth="0.0"/>
					<rightPen lineWidth="2.0" lineColor="#066990"/>
				</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="778395f0-f7e4-42b3-bdc0-9f4726e373d2">
					<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>
		</band>
	</pageHeader>
	<detail>
		<band height="26">
			<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="50" y="0" width="60" height="13" uuid="c1c7a210-241b-4e9c-a2ad-e0e38e892f68">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
				</reportElement>
				<box leftPadding="0">
					<topPen lineWidth="1.0" lineColor="#C4C4C4"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{codigo}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="10" y="13" width="50" height="13" uuid="b051329c-8592-4a1e-8a42-24b7044ce002">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
				</reportElement>
				<box leftPadding="5"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Responsável:]]></text>
			</staticText>
			<staticText>
				<reportElement x="10" y="0" width="40" height="13" uuid="b0df29e5-cd30-4ec0-a4b0-6aed0591a56c">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
				</reportElement>
				<box leftPadding="5">
					<topPen lineWidth="1.0" lineColor="#C4C4C4"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Código:]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="60" y="13" width="495" height="13" uuid="db84af9f-bd09-4dc2-9f8c-90940ed4bf3d">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
				</reportElement>
				<box leftPadding="2"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{responsavel}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="110" y="0" width="40" height="13" uuid="94e554eb-fc01-4cfc-9f02-6222bce5b7c3">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
				</reportElement>
				<box leftPadding="0">
					<topPen lineWidth="1.0" lineColor="#C4C4C4"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Endereço:]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="150" y="0" width="250" height="13" uuid="037aa246-8570-4832-98cf-6faa998c5e8c">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
				</reportElement>
				<box leftPadding="0">
					<topPen lineWidth="1.0" lineColor="#C4C4C4"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{tipoLogradouro}+" "+$F{rua}+", "+$F{numero}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="400" y="0" width="30" height="13" uuid="88113aed-2feb-4b05-abf0-b4d7079b6040">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
				</reportElement>
				<box leftPadding="2">
					<topPen lineWidth="1.0" lineColor="#C4C4C4"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Bairro:]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="430" y="0" width="124" height="13" uuid="a4f248e2-f48a-4939-8784-d20028eb80da">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
				</reportElement>
				<box leftPadding="0">
					<topPen lineWidth="1.0" lineColor="#C4C4C4"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{bairro}]]></textFieldExpression>
			</textField>
		</band>
		<band height="28">
			<printWhenExpression><![CDATA[$F{participantes}.size()>0]]></printWhenExpression>
			<staticText>
				<reportElement mode="Opaque" x="15" y="2" width="195" height="13" isRemoveLineWhenBlank="true" backcolor="#C4C4C4" uuid="144319e4-9018-46c5-8ea7-484266c58520">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					<printWhenExpression><![CDATA[$F{participantes}.size()>0]]></printWhenExpression>
				</reportElement>
				<box leftPadding="5"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Paciente]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="210" y="2" width="55" height="13" isRemoveLineWhenBlank="true" backcolor="#C4C4C4" uuid="11d7a3c2-0c2c-43cd-bac5-7bbcd234dade">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					<printWhenExpression><![CDATA[$F{participantes}.size()>0]]></printWhenExpression>
				</reportElement>
				<box leftPadding="0"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Prontuário]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="265" y="2" width="60" height="13" isRemoveLineWhenBlank="true" backcolor="#C4C4C4" uuid="9114328a-4883-44d1-a255-d6988b85ac87">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					<printWhenExpression><![CDATA[$F{participantes}.size()>0]]></printWhenExpression>
				</reportElement>
				<box leftPadding="0"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[CNS]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="325" y="2" width="65" height="13" isRemoveLineWhenBlank="true" backcolor="#C4C4C4" uuid="c453c559-f9cc-46b1-be4c-fc577606ea2b">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					<printWhenExpression><![CDATA[$F{participantes}.size()>0]]></printWhenExpression>
				</reportElement>
				<box leftPadding="0"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Data Nasc.]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="390" y="2" width="140" height="13" isRemoveLineWhenBlank="true" backcolor="#C4C4C4" uuid="195ab20a-b383-476f-961c-76a70774492d">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					<printWhenExpression><![CDATA[$F{participantes}.size()>0]]></printWhenExpression>
				</reportElement>
				<box leftPadding="5"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Telefone(s)]]></text>
			</staticText>
			<componentElement>
				<reportElement x="15" y="15" width="515" height="13" isRemoveLineWhenBlank="true" uuid="22ce1d72-3774-4268-96e5-0b99edb265ae">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
					<printWhenExpression><![CDATA[$F{participantes}.size()>0]]></printWhenExpression>
				</reportElement>
				<jr:list xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" printOrder="Vertical">
					<datasetRun subDataset="dsMotivos" uuid="8a3390e8-c19c-447e-8319-62bec0723899">
						<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{participantes},false)]]></dataSourceExpression>
					</datasetRun>
					<jr:listContents height="13" width="515">
						<textField isStretchWithOverflow="true" isBlankWhenNull="true">
							<reportElement x="0" y="0" width="195" height="13" uuid="69e7258c-0ae8-44b8-93be-e702b7c1749e">
								<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
							</reportElement>
							<box leftPadding="5"/>
							<textElement textAlignment="Left" verticalAlignment="Middle">
								<font size="6"/>
							</textElement>
							<textFieldExpression><![CDATA[$F{paciente}]]></textFieldExpression>
						</textField>
						<textField isStretchWithOverflow="true" isBlankWhenNull="true">
							<reportElement x="195" y="0" width="55" height="13" uuid="99440240-212a-4c86-8016-970d796af2c6">
								<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
							</reportElement>
							<box leftPadding="0"/>
							<textElement textAlignment="Center" verticalAlignment="Middle">
								<font size="6"/>
							</textElement>
							<textFieldExpression><![CDATA[$F{prontuario}]]></textFieldExpression>
						</textField>
						<textField isStretchWithOverflow="true" isBlankWhenNull="true">
							<reportElement x="250" y="0" width="60" height="13" uuid="676510f6-1e81-4083-9a85-2bd2a1d110ac">
								<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
							</reportElement>
							<box leftPadding="0"/>
							<textElement textAlignment="Center" verticalAlignment="Middle">
								<font size="6"/>
							</textElement>
							<textFieldExpression><![CDATA[$F{cns}]]></textFieldExpression>
						</textField>
						<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
							<reportElement x="310" y="0" width="65" height="13" uuid="5f6cbe3c-e8bf-49ad-b3b4-5a72c965624d">
								<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
							</reportElement>
							<box leftPadding="0"/>
							<textElement textAlignment="Center" verticalAlignment="Middle">
								<font size="6"/>
							</textElement>
							<textFieldExpression><![CDATA[$F{dataNascimento}]]></textFieldExpression>
						</textField>
						<textField isStretchWithOverflow="true" isBlankWhenNull="true">
							<reportElement x="375" y="0" width="140" height="13" uuid="0c2f7f73-1962-4b07-a522-2544ad6aca48">
								<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
							</reportElement>
							<box leftPadding="2"/>
							<textElement textAlignment="Left" verticalAlignment="Middle">
								<font size="6"/>
							</textElement>
							<textFieldExpression><![CDATA[($F{telefone}!=null ? $F{telefone}: "")+"  "+($F{celular}!=null ? $F{celular}:"")]]></textFieldExpression>
						</textField>
					</jr:listContents>
				</jr:list>
			</componentElement>
		</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="8aae1748-d4b0-440d-84c0-595d5869b5bb">
					<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="34798f39-f8e4-4619-b75a-69f3dc404652"/>
				<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="30">
			<printWhenExpression><![CDATA[$V{qtd_unidades} > 1]]></printWhenExpression>
			<staticText>
				<reportElement x="0" y="0" width="480" height="15" isRemoveLineWhenBlank="true" uuid="552139af-0780-404f-b70f-9795b79365ed">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box>
					<topPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Total de Domicílios:]]></text>
			</staticText>
			<textField>
				<reportElement x="480" y="0" width="75" height="15" uuid="f7a3dac1-e8e4-4bca-a0f0-8e5dbcef5f00">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box>
					<topPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{total_domicilio_geral}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="0" y="15" width="480" height="15" isRemoveLineWhenBlank="true" uuid="33950f5e-787b-4223-9d28-9dd678285965">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box>
					<topPen lineWidth="0.0"/>
				</box>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Total de Pacientes]]></text>
			</staticText>
			<textField>
				<reportElement x="480" y="15" width="75" height="15" uuid="a2bc672e-5a98-46fb-86ec-97fe059623c9">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box>
					<topPen lineWidth="0.0"/>
				</box>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{total_pacientes_geral}]]></textFieldExpression>
			</textField>
		</band>
	</summary>
</jasperReport>
