<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.4.0.final using JasperReports Library version 6.4.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="atestadovacina" 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="tableDataset" uuid="4031641a-afc1-4188-9f59-7f3321292adb">
		<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
		<queryString>
			<![CDATA[]]>
		</queryString>
		<field name="medico" class="java.lang.String"/>
		<field name="paciente" class="java.lang.String"/>
		<field name="telefone" class="java.lang.String"/>
		<field name="data" class="java.lang.String"/>
		<field name="hora" class="java.lang.String"/>
	</subDataset>
	<subDataset name="dsVacinasAprazadas" uuid="339e9fc9-83ae-4946-aa06-98cc8aa1b700">
		<queryString>
			<![CDATA[]]>
		</queryString>
		<field name="vacina" class="java.lang.String"/>
		<field name="data" class="java.util.Date"/>
	</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="usuNome" class="java.lang.String"/>
	<field name="usuProntuario" class="java.lang.String"/>
	<field name="usuCartaoSus" class="java.lang.String"/>
	<field name="usuDataNascimento" class="java.util.Date"/>
	<field name="usuIdade" class="java.lang.Integer"/>
	<field name="usuSexo" class="java.lang.String"/>
	<field name="usrLogadoNome" class="java.lang.String"/>
	<field name="usrLogadoConselho" class="java.lang.String"/>
	<field name="usrLogadoEstado" class="java.lang.String"/>
	<field name="usrLogadoNumeroConselho" class="java.lang.String"/>
	<field name="dataValidade" class="java.util.Date"/>
	<field name="vacinasAprazadas" class="java.util.ArrayList"/>
	<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 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">
					<pen 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="430" y="90" width="50" 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[Emitido por: ]]></text>
			</staticText>
			<textField>
				<reportElement x="555" y="0" width="8" height="90" uuid="b1a2ca58-02c7-4db7-a8d1-7418ca190778">
					<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="356">
			<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
			<textField isStretchWithOverflow="true">
				<reportElement x="20" y="81" width="510" height="149" uuid="f136d53a-8cca-4426-9e51-10caaf7881db"/>
				<textElement textAlignment="Justified" markup="none">
					<font size="14"/>
					<paragraph lineSpacing="1_1_2"/>
				</textElement>
				<textFieldExpression><![CDATA["	Atestamos para os devidos fins, que de acordo com o calendário vacinal vigente, o(a) paciente " + $F{usuNome} + ", Nº Prontuário: " + $F{usuProntuario} + ", Data de Nascimento: " + new SimpleDateFormat("dd/MM/yyyy").format($F{usuDataNascimento}) + " (" + $F{usuIdade} + " anos), Sexo: " + $F{usuSexo} + ", CNS: " + $F{usuCartaoSus} + ", está com suas vacinas em dia até " +new SimpleDateFormat("dd/MM/yyyy").format($F{dataValidade}) + "."]]></textFieldExpression>
			</textField>
			<componentElement>
				<reportElement x="20" y="247" width="300" height="15" isRemoveLineWhenBlank="true" uuid="b20b1356-64d2-4a35-8adb-46861877e0df">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<printWhenExpression><![CDATA[$F{vacinasAprazadas}.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">
					<datasetRun subDataset="dsVacinasAprazadas" uuid="c847b222-f31d-4e5a-b661-68339d6c6589">
						<dataSourceExpression><![CDATA[ new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{vacinasAprazadas} ,false)]]></dataSourceExpression>
					</datasetRun>
					<jr:listContents height="15" width="300">
						<textField isStretchWithOverflow="true" isBlankWhenNull="true">
							<reportElement x="0" y="0" width="200" height="15" uuid="89a89622-67ab-4b2e-9d88-29854cbd661c">
								<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
							</reportElement>
							<box leftPadding="5">
								<topPen lineWidth="0.5"/>
								<leftPen lineWidth="0.5"/>
								<bottomPen lineWidth="0.5"/>
								<rightPen lineWidth="0.5"/>
							</box>
							<textElement verticalAlignment="Middle">
								<font size="8"/>
							</textElement>
							<textFieldExpression><![CDATA[$F{vacina}]]></textFieldExpression>
						</textField>
						<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
							<reportElement x="200" y="0" width="100" height="15" uuid="4df4b4f5-5a96-47a2-8bdf-2af40759e553">
								<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
							</reportElement>
							<box>
								<topPen lineWidth="0.5"/>
								<leftPen lineWidth="0.5"/>
								<bottomPen lineWidth="0.5"/>
								<rightPen lineWidth="0.5"/>
							</box>
							<textElement textAlignment="Center" verticalAlignment="Middle">
								<font fontName="SansSerif" size="8"/>
							</textElement>
							<textFieldExpression><![CDATA[$F{data}]]></textFieldExpression>
						</textField>
					</jr:listContents>
				</jr:list>
			</componentElement>
			<staticText>
				<reportElement x="20" y="232" width="200" height="15" uuid="bb2167a4-97f9-47b3-a6b3-2cefacd1a567">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box leftPadding="5">
					<topPen lineWidth="1.0"/>
					<leftPen lineWidth="1.0"/>
					<bottomPen lineWidth="1.0"/>
					<rightPen lineWidth="1.0"/>
				</box>
				<textElement verticalAlignment="Middle">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Vacinas Aprazadas]]></text>
			</staticText>
			<staticText>
				<reportElement x="20" y="247" width="300" height="15" uuid="506b4788-d4df-4e92-b603-7a7f7947272b">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<printWhenExpression><![CDATA[$F{vacinasAprazadas}.size() == 0]]></printWhenExpression>
				</reportElement>
				<box leftPadding="5">
					<topPen lineWidth="0.5"/>
					<leftPen lineWidth="0.5"/>
					<bottomPen lineWidth="0.5"/>
					<rightPen lineWidth="0.5"/>
				</box>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<text><![CDATA[Não há vacinas aprazadas.]]></text>
			</staticText>
			<staticText>
				<reportElement x="220" y="232" width="100" height="15" uuid="5a8a177a-9f5f-42e6-bffd-a29c5feda827">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box>
					<topPen lineWidth="1.0"/>
					<leftPen lineWidth="1.0"/>
					<bottomPen lineWidth="1.0"/>
					<rightPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Data Aprazamento]]></text>
			</staticText>
		</band>
		<band height="123">
			<printWhenExpression><![CDATA[$P{TP_REL}.equalsIgnoreCase( "sintetico" )]]></printWhenExpression>
			<textField>
				<reportElement x="0" y="61" width="555" height="29" uuid="af4d978a-11fd-417a-a3de-22bc4bba6fd0">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Bottom">
					<font fontName="SansSerif" size="14" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{usrLogadoNome}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="0" y="92" width="555" height="31" isRemoveLineWhenBlank="true" uuid="d448a698-9341-4b71-bb6c-8b9fe4824fab">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<printWhenExpression><![CDATA[$F{usrLogadoConselho} != null]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Top">
					<font fontName="SansSerif" size="12" isBold="false" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{usrLogadoConselho} + "/" + $F{usrLogadoEstado} + " - " + $F{usrLogadoNumeroConselho}]]></textFieldExpression>
			</textField>
			<textField pattern="">
				<reportElement x="0" y="0" width="555" height="20" uuid="980dab0b-40b5-43ec-a7d7-a3acd16094a8">
					<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="10" rightPadding="10"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="14"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{DADOS_BASICOS}.getCidade()+", " +(new SimpleDateFormat("dd")).format( new java.util.Date() ) + " de " + (new SimpleDateFormat("MMMM")).format( new java.util.Date() ) + " de " +(new SimpleDateFormat("yyyy.")).format( new java.util.Date() )]]></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="e23172c0-b031-4149-a7c8-2f392fce1b01">
					<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="e0cdfef1-7c64-44ee-8eb7-a5c3e96d98e4"/>
				<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>
</jasperReport>
