<?xml version="1.0" encoding="UTF-8"?>
<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="report name" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA["C:\\Java\\sinan_relatorios\\src\\com\\org\\relatorios\\"]]></defaultValueExpression>
	</parameter>
	<parameter name="TITULO" class="java.lang.String"/>
	<parameter name="CABECALHO1" class="java.lang.String"/>
	<parameter name="CABECALHO2" class="java.lang.String"/>
	<parameter name="RODAPE1" class="java.lang.String"/>
	<parameter name="TOTAL1" class="java.lang.String"/>
	<parameter name="TOTAL2" class="java.lang.String"/>
	<parameter name="TOTAL3" class="java.lang.String"/>
	<parameter name="parDesagregacao" class="java.lang.String"/>
	<parameter name="parDataAvaliacao" class="java.lang.String"/>
	<parameter name="parArquivos" class="java.lang.String"/>
	<parameter name="parAgravo" class="java.lang.String"/>
	<parameter name="parAno" class="java.lang.String"/>
	<parameter name="parSgUf" class="java.lang.String"/>
	<parameter name="parRegiaoSaude" class="java.lang.String"/>
	<parameter name="parAnoPeriodoAvaliacao" class="java.lang.String"/>
	<parameter name="parMunic" class="java.lang.String"/>
	<parameter name="TITULO_COLUNA" class="java.lang.String"/>
	<parameter name="QTDE_REG_MUNIC_AGR" class="java.lang.String"/>
	<parameter name="parPeriodo" class="java.lang.String"/>
	<parameter name="parPeriodo60" class="java.lang.String"/>
	<parameter name="parDescricaoReg" class="java.lang.String"/>
	<parameter name="parNenhum" class="java.lang.Boolean"/>
	<parameter name="parRegionalSaude" class="java.lang.String"/>
	<parameter name="parIsRegiao" class="java.lang.Boolean"/>
	<field name="lista" class="java.util.ArrayList"/>
	<field name="nmAgravo" class="java.lang.String"/>
	<field name="qtdOportuno" class="java.lang.Integer"/>
	<field name="total" class="java.lang.Integer"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="215" splitType="Stretch">
			<rectangle>
				<reportElement x="0" y="50" width="555" height="163"/>
			</rectangle>
			<textField isBlankWhenNull="true">
				<reportElement x="1" y="0" width="306" height="14"/>
				<textElement>
					<font fontName="Arial" size="8" isBold="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{CABECALHO1}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="347" y="0" width="207" height="14"/>
				<textElement>
					<font fontName="Arial" size="8" isBold="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{CABECALHO2}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="2" y="19" width="529" height="14"/>
				<textElement>
					<font fontName="Arial" size="12" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{TITULO}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="5" y="52" width="99" height="14"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<text><![CDATA[Nível de desagregação:]]></text>
			</staticText>
			<staticText>
				<reportElement x="5" y="65" width="100" height="14"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<text><![CDATA[UF de residência:]]></text>
			</staticText>
			<staticText>
				<reportElement x="5" y="90" width="100" height="14"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<text><![CDATA[Município de residência:]]></text>
			</staticText>
			<line>
				<reportElement x="316" y="50" width="1" height="97"/>
			</line>
			<staticText>
				<reportElement x="321" y="63" width="118" height="14"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<text><![CDATA[Data da avaliação:]]></text>
			</staticText>
			<line>
				<reportElement x="0" y="147" width="555" height="1"/>
			</line>
			<staticText>
				<reportElement x="3" y="34" width="550" height="14" forecolor="#666666" backcolor="#666666"/>
				<textElement>
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Proporção de casos de doenças de notificação compulsória imediata (DNCI) encerradas em até 60 dias após notificação]]></text>
			</staticText>
			<staticText>
				<reportElement x="321" y="52" width="100" height="14"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<text><![CDATA[Agravo:]]></text>
			</staticText>
			<staticText>
				<reportElement x="321" y="76" width="118" height="14"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<text><![CDATA[Ano/Período de avaliação:]]></text>
			</staticText>
			<staticText>
				<reportElement x="4" y="147" width="548" height="66" forecolor="#666666"/>
				<textElement textAlignment="Justified">
					<font size="8" isItalic="true" isUnderline="false" isStrikeThrough="false"/>
				</textElement>
				<text><![CDATA[Para este indicador, foram definidas, em virtude de sua magnitude e relevância, os seguintes eventos e doenças de notificação imediata nacional, listados na Portaria de Consolidação nº 4, de 28 de Setembro de 2017, anexo V - capítulo I: Antraz pneumônico, Arenavírus, Botulismo, Cólera, Dengue (óbitos), Ebola, Febre amarela, Febre do Nilo ocidental e outras arboviroses de importância em saúde pública, Febre maculosa e outras riquetisioses, Febre purpúrica brasileira, Hantavirose, Influenza humana produzida por novo subtipo viral, Lassa, Malária na região extra Amazônica, Marburg, Poliomielite por poliovírus selvagem, Peste, Óbito com suspeita de doença pelo vírus Zika, Óbito com suspeita de Febre de Chikungunya, Raiva humana, Rubéola, Sarampo, Síndrome de paralisia flácida aguda, Tularemia, Varíola e outras emergências de saúde pública.]]></text>
			</staticText>
			<textField>
				<reportElement x="106" y="53" width="209" height="15"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{parDesagregacao}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="76" y="66" width="100" height="12"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{parSgUf}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="107" y="78" width="136" height="12"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{parNenhum}?"":$P{parIsRegiao}?$P{parRegiaoSaude}:$P{parRegionalSaude}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="354" y="52" width="192" height="12"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{parAgravo}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="400" y="64" width="100" height="11"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{parDataAvaliacao}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="432" y="77" width="110" height="11"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{parAnoPeriodoAvaliacao}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="105" y="90" width="203" height="11"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{parMunic}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="321" y="89" width="100" height="14"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<text><![CDATA[Período de notificação:]]></text>
			</staticText>
			<textField>
				<reportElement x="418" y="90" width="100" height="14"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{parPeriodo60}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="6" y="77" width="100" height="14"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{parDescricaoReg}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="321" y="104" width="100" height="14"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<text><![CDATA[Arquivos selecionados:]]></text>
			</staticText>
			<textField>
				<reportElement x="321" y="118" width="231" height="29"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{parArquivos}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<detail>
		<band height="89" splitType="Stretch">
			<rectangle radius="10">
				<reportElement x="0" y="0" width="554" height="38"/>
			</rectangle>
			<staticText>
				<reportElement x="462" y="2" width="77" height="14"/>
				<textElement textAlignment="Center">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Oportuno]]></text>
			</staticText>
			<staticText>
				<reportElement x="475" y="14" width="16" height="14"/>
				<textElement>
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[(n)]]></text>
			</staticText>
			<staticText>
				<reportElement x="517" y="14" width="18" height="14"/>
				<textElement>
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[%]]></text>
			</staticText>
			<subreport>
				<reportElement x="0" y="39" width="554" height="50"/>
				<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{lista})]]></dataSourceExpression>
				<subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "oportunidadePQAVSPactuacao_sub.jasper"]]></subreportExpression>
			</subreport>
			<textField isBlankWhenNull="true">
				<reportElement x="16" y="23" width="188" height="15">
					<printWhenExpression><![CDATA[!$F{nmAgravo}.equals("null       null")]]></printWhenExpression>
				</reportElement>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{nmAgravo}.replace(null,"")]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="268" y="26" width="57" height="14"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.Integer"><![CDATA[$F{lista}.size()]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="371" y="2" width="77" height="14"/>
				<textElement textAlignment="Center">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Notificações]]></text>
			</staticText>
			<textField>
				<reportElement x="457" y="26" width="25" height="14"/>
				<textElement textAlignment="Right">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.Integer"><![CDATA[$F{qtdOportuno}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="377" y="26" width="33" height="14"/>
				<textElement textAlignment="Right">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.Integer"><![CDATA[$F{total}]]></textFieldExpression>
			</textField>
			<textField pattern="###0.0;-###0.0">
				<reportElement x="501" y="26" width="27" height="14"/>
				<textElement textAlignment="Right">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.Float"><![CDATA[$F{qtdOportuno} > 0 ? new Float(($F{qtdOportuno}.floatValue()/$F{total}.floatValue())*100) :0]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="14" y="6" width="229" height="20"/>
				<textElement>
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{TITULO_COLUNA}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="254" y="6" width="126" height="20"/>
				<textElement>
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{QTDE_REG_MUNIC_AGR}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<pageFooter>
		<band height="39" splitType="Stretch">
			<textField isBlankWhenNull="true">
				<reportElement x="419" y="20" width="134" height="14"/>
				<textElement textAlignment="Right" verticalAlignment="Bottom">
					<font fontName="Arial" size="8" isBold="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{RODAPE1}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="195" y="21" width="80" height="12"/>
				<textElement textAlignment="Right" verticalAlignment="Bottom">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Pág. "+$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement x="275" y="21" width="40" height="12"/>
				<textElement verticalAlignment="Bottom">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy">
				<reportElement x="78" y="20" width="77" height="14"/>
				<textElement verticalAlignment="Bottom">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="2" y="20" width="76" height="14"/>
				<textElement verticalAlignment="Bottom">
					<font size="8"/>
				</textElement>
				<text><![CDATA[Relatório emitido em:]]></text>
			</staticText>
		</band>
	</pageFooter>
	<summary>
		<band height="53">
			<printWhenExpression><![CDATA[!$P{QTDE_REG_MUNIC_AGR}.equals("Agravos")]]></printWhenExpression>
			<rectangle radius="10">
				<reportElement x="0" y="6" width="554" height="37"/>
			</rectangle>
			<staticText>
				<reportElement x="11" y="20" width="41" height="16"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[TOTAL]]></text>
			</staticText>
			<staticText>
				<reportElement x="462" y="6" width="77" height="14"/>
				<textElement textAlignment="Center">
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Oportuno]]></text>
			</staticText>
			<staticText>
				<reportElement x="514" y="16" width="18" height="14"/>
				<textElement>
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[%]]></text>
			</staticText>
			<staticText>
				<reportElement x="475" y="16" width="16" height="14"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[(n)]]></text>
			</staticText>
			<textField>
				<reportElement x="92" y="25" width="100" height="18"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{TOTAL1}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="371" y="6" width="64" height="14"/>
				<textElement textAlignment="Center">
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Notificações]]></text>
			</staticText>
			<textField>
				<reportElement x="477" y="28" width="34" height="14"/>
				<textElement>
					<font size="10"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{TOTAL2}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="405" y="28" width="44" height="16"/>
				<textElement>
					<font size="10"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{TOTAL3}]]></textFieldExpression>
			</textField>
			<textField pattern="###0.0;-###0.0">
				<reportElement x="517" y="28" width="40" height="20"/>
				<textElement>
					<font size="10"/>
				</textElement>
				<textFieldExpression class="java.lang.Double"><![CDATA[new Double(Double.parseDouble($P{TOTAL2})) > 0 ? (new Double(Double.parseDouble($P{TOTAL2}))/new Double(Double.parseDouble($P{TOTAL3})))*100 : 0]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="81" y="9" width="144" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{QTDE_REG_MUNIC_AGR}]]></textFieldExpression>
			</textField>
		</band>
	</summary>
</jasperReport>
