<?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="receituariocontroleespecial" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="3a6df85c-4a70-487b-a0ca-a20d037af2b3">
	<property name="net.sf.jasperreports.awt.ignore.missing.font" value="true"/>
	<subDataset name="DatasetMedicamentos" uuid="1b314689-9530-46cc-883d-5b9cb7c77693">
		<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
		<queryString>
			<![CDATA[]]>
		</queryString>
		<field name="itemNomeProduto" class="java.lang.String"/>
		<field name="itemQuantidade" class="java.lang.Integer"/>
		<field name="itemDescricaoProduto" class="java.lang.String"/>
		<field name="itemRecomendacao" class="java.lang.String"/>
		<field name="itemProduto" class="java.lang.String"/>
		<field name="itemUnidadeMedida" 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="nomeEmitente" class="java.lang.String"/>
	<field name="crm" class="java.lang.String"/>
	<field name="ufEmitente" class="java.lang.String"/>
	<field name="nomePaciente" class="java.lang.String"/>
	<field name="cns" class="java.lang.String"/>
	<field name="enderecoPaciente" class="java.lang.String"/>
	<field name="itens" class="java.util.ArrayList"/>
	<field name="segundaVia" class="java.lang.Boolean"/>
	<field name="codigoDeBarras" class="java.lang.String"/>
	<field name="especialidadeEmitente" class="java.lang.String"/>
	<field name="prontuarioPaciente" class="java.lang.String"/>
	<field name="validade" class="java.util.Date"/>
	<field name="conselhoSigla" class="java.lang.String"/>
	<field name="data" class="java.util.Date"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<pageHeader>
		<band height="150">
			<frame>
				<reportElement mode="Opaque" x="0" y="0" width="395" height="70" backcolor="#FFFFFF" uuid="f6a99a8e-76ba-4ee5-880c-8f683c910a46">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<property name="ShowOutOfBoundContent" value="false"/>
					<printWhenExpression><![CDATA[$F{segundaVia}]]></printWhenExpression>
				</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 isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement mode="Transparent" x="60" y="7" width="331" height="20" forecolor="#000000" uuid="282ec9e7-ec93-42a0-b046-65c7788dba45">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
						<printWhenExpression><![CDATA[$F{segundaVia}]]></printWhenExpression>
					</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="60" y="27" width="331" height="15" forecolor="#000000" uuid="fe3d9b56-349b-4e39-8d22-aacbcaf9007a">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
						<printWhenExpression><![CDATA[$F{segundaVia}]]></printWhenExpression>
					</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="5" y="7" width="55" height="55" backcolor="#FFFFFF" uuid="bdc8e11c-e894-4583-b9a3-e5ed9463e3e8">
						<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="60" y="42" width="331" height="20" forecolor="#000000" uuid="8362c3a2-42f4-478a-ad3e-49c6ebeeb2ef">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
						<printWhenExpression><![CDATA[$F{segundaVia}]]></printWhenExpression>
					</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="395" height="20" forecolor="#FFFFFF" backcolor="#066990" uuid="9d45928d-f2fc-4771-bacb-a69e5500d61c">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<printWhenExpression><![CDATA[$F{segundaVia}]]></printWhenExpression>
				</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>
			<staticText>
				<reportElement positionType="Float" mode="Opaque" x="0" y="90" width="395" height="15" backcolor="#CCCCCC" uuid="18c54111-0116-4c90-b758-b10d07b8d17a">
					<printWhenExpression><![CDATA[$F{segundaVia}]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Center"/>
				<text><![CDATA[Paciente]]></text>
			</staticText>
			<textField isStretchWithOverflow="true">
				<reportElement x="0" y="105" width="395" height="30" uuid="46797a06-7487-444e-9ede-eb08e03a40e6">
					<printWhenExpression><![CDATA[$F{segundaVia}]]></printWhenExpression>
				</reportElement>
				<box>
					<pen lineWidth="0.5" lineColor="#E6E6E6"/>
				</box>
				<textElement markup="html">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA["Nome: "+$F{prontuarioPaciente} + " - " + $F{nomePaciente} + ($F{cns} != null ? " - CNS: "+$F{cns} : "") + "<br/>" +( $F{enderecoPaciente} != null ? ("End: "+$F{enderecoPaciente}) : "Endereço não informado")]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement mode="Opaque" x="0" y="135" width="395" height="15" backcolor="#E6E6E6" uuid="766573e2-8fe0-459d-a2eb-4e7171e8e164">
					<printWhenExpression><![CDATA[$F{segundaVia}]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Center"/>
				<text><![CDATA[Medicamentos]]></text>
			</staticText>
			<staticText>
				<reportElement x="360" y="70" width="31" height="20" forecolor="#FFFFFF" uuid="0e4eb356-2df1-4031-b81d-6be40b94d973">
					<printWhenExpression><![CDATA[$F{segundaVia}]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="9" isBold="true"/>
				</textElement>
				<text><![CDATA[2ª Via]]></text>
			</staticText>
			<frame>
				<reportElement mode="Opaque" x="405" y="0" width="395" height="70" backcolor="#FFFFFF" uuid="076e7d77-20c5-4afe-91a2-0c270c9b9ec0">
					<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 isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement mode="Transparent" x="60" y="7" width="331" height="20" forecolor="#000000" uuid="b8a8e5c5-3bb6-4247-8450-fda5f5f33548">
						<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="60" y="27" width="331" height="15" forecolor="#000000" uuid="df7027c6-67f2-4c9b-901b-c0966b57bce0">
						<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="5" y="7" width="55" height="55" backcolor="#FFFFFF" uuid="5b72e58a-8286-421f-8dd5-3250149d7d53">
						<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="60" y="42" width="331" height="20" forecolor="#000000" uuid="35bf6ebe-1686-4e57-8126-93458876b808">
						<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="405" y="70" width="395" height="20" forecolor="#FFFFFF" backcolor="#066990" uuid="aa76738b-eb88-4634-a795-328509e357bc">
					<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>
			<staticText>
				<reportElement positionType="Float" mode="Opaque" x="405" y="90" width="395" height="15" backcolor="#CCCCCC" uuid="73604dc8-e4b5-4ca3-9669-055a9723a9df"/>
				<textElement textAlignment="Center"/>
				<text><![CDATA[Paciente]]></text>
			</staticText>
			<textField isStretchWithOverflow="true">
				<reportElement x="405" y="105" width="395" height="30" uuid="aeb9d6ec-bfb7-45ab-91d4-1380473852dd"/>
				<box>
					<pen lineWidth="0.5" lineColor="#E6E6E6"/>
				</box>
				<textElement markup="html">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA["Nome: "+$F{prontuarioPaciente} + " - " + $F{nomePaciente} + ($F{cns} != null ? " - CNS: "+$F{cns} : "") + "<br/>" +( $F{enderecoPaciente} != null ? ("End: "+$F{enderecoPaciente}) : "Endereço não informado")]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="765" y="70" width="31" height="20" forecolor="#FFFFFF" uuid="2657234d-3963-41e9-be23-16922468bea6"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="9" isBold="true"/>
				</textElement>
				<text><![CDATA[1ª Via]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="405" y="135" width="395" height="15" backcolor="#E6E6E6" uuid="52bdf18e-d834-49a5-bc2f-50239b8aebaf"/>
				<textElement textAlignment="Center"/>
				<text><![CDATA[Medicamentos]]></text>
			</staticText>
		</band>
	</pageHeader>
	<detail>
		<band height="15">
			<componentElement>
				<reportElement x="0" y="0" width="395" height="15" uuid="7d0f5273-d812-4705-9385-eae6728bd8c0">
					<property name="net.sf.jasperreports.export.headertoolbar.table.name" value=""/>
					<printWhenExpression><![CDATA[$F{segundaVia}]]></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="DatasetMedicamentos" uuid="8faa4aea-0838-4577-a1dd-7097d9edb810">
						<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{itens},false)]]></dataSourceExpression>
					</datasetRun>
					<jr:listContents height="15" width="395">
						<textField isStretchWithOverflow="true">
							<reportElement x="0" y="0" width="300" height="15" uuid="e18ee7ce-17f7-42c8-92eb-038fba9c83bc"/>
							<box>
								<pen lineWidth="0.0" lineColor="#E6E6E6"/>
								<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#E6E6E6"/>
								<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 markup="html">
								<font fontName="SansSerif"/>
							</textElement>
							<textFieldExpression><![CDATA[$V{COLUMN_COUNT}.intValue() + " - " + ($F{itemNomeProduto} != null ? $F{itemNomeProduto}.toUpperCase() : ($F{itemProduto} != null ? $F{itemProduto} : "")) + "<br/>"+ ($F{itemRecomendacao} != null ? $F{itemRecomendacao} : "")]]></textFieldExpression>
						</textField>
						<textField isStretchWithOverflow="true">
							<reportElement x="300" y="0" width="20" height="15" uuid="7018af00-8515-439f-9c70-645fdaefe523"/>
							<box>
								<pen lineWidth="0.0" lineColor="#E6E6E6"/>
								<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#E6E6E6"/>
								<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>
							<textFieldExpression><![CDATA[$F{itemQuantidade}]]></textFieldExpression>
						</textField>
						<textField isStretchWithOverflow="true">
							<reportElement x="320" y="0" width="74" height="15" uuid="66429d15-c89e-44c7-83f2-522175b47031"/>
							<box>
								<pen lineWidth="0.0" lineColor="#E6E6E6"/>
								<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#E6E6E6"/>
								<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>
							<textFieldExpression><![CDATA[$F{itemUnidadeMedida} != null ? $F{itemUnidadeMedida} : ($F{itemDescricaoProduto} != null ? $F{itemDescricaoProduto} : "")]]></textFieldExpression>
						</textField>
					</jr:listContents>
				</jr:list>
			</componentElement>
			<componentElement>
				<reportElement x="405" y="0" width="395" height="15" uuid="e167b80b-2dda-48f6-87d4-4769e55054d3">
					<property name="net.sf.jasperreports.export.headertoolbar.table.name" value=""/>
				</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="DatasetMedicamentos" uuid="a90422fb-c859-422b-b388-6fd89832ff68">
						<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{itens},false)]]></dataSourceExpression>
					</datasetRun>
					<jr:listContents height="15" width="395">
						<textField isStretchWithOverflow="true">
							<reportElement x="0" y="0" width="300" height="15" uuid="31ca59f6-070b-49f7-bd56-dbf5faa22843"/>
							<box>
								<pen lineWidth="0.0" lineColor="#E6E6E6"/>
								<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#E6E6E6"/>
								<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 markup="html"/>
							<textFieldExpression><![CDATA[$V{COLUMN_COUNT}.intValue() + " - " + ($F{itemNomeProduto} != null ? $F{itemNomeProduto}.toUpperCase() : ($F{itemProduto} != null ? $F{itemProduto} : "")) + "<br/>"+ ($F{itemRecomendacao} != null ? $F{itemRecomendacao} : "")]]></textFieldExpression>
						</textField>
						<textField isStretchWithOverflow="true">
							<reportElement x="300" y="0" width="20" height="15" uuid="3f754b37-f7ff-4576-aa78-f6aa557e51e5"/>
							<box>
								<pen lineWidth="0.0" lineColor="#E6E6E6"/>
								<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#E6E6E6"/>
								<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>
							<textFieldExpression><![CDATA[$F{itemQuantidade}]]></textFieldExpression>
						</textField>
						<textField isStretchWithOverflow="true">
							<reportElement x="320" y="0" width="74" height="15" uuid="fa4a478a-b177-48e8-a3cc-ecd6af051529"/>
							<box>
								<pen lineWidth="0.0" lineColor="#E6E6E6"/>
								<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#E6E6E6"/>
								<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>
							<textFieldExpression><![CDATA[$F{itemUnidadeMedida} != null ? $F{itemUnidadeMedida} : ($F{itemDescricaoProduto} != null ? $F{itemDescricaoProduto} : "")]]></textFieldExpression>
						</textField>
					</jr:listContents>
				</jr:list>
			</componentElement>
		</band>
	</detail>
	<pageFooter>
		<band height="95">
			<textField isBlankWhenNull="true">
				<reportElement x="50" y="80" width="300" height="15" isRemoveLineWhenBlank="true" uuid="9f1e7089-f037-4ecb-87bb-6fb561cebed6">
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<printWhenExpression><![CDATA[$F{segundaVia}]]></printWhenExpression>
				</reportElement>
				<box>
					<topPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="6"/>
				</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 pattern="dd/MM/yyyy" isBlankWhenNull="false">
				<reportElement isPrintRepeatedValues="false" x="1" y="80" width="49" height="15" uuid="0d605a33-e9b1-48d3-9d23-6db0dac025d9">
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<printWhenExpression><![CDATA[$F{segundaVia}]]></printWhenExpression>
				</reportElement>
				<box>
					<topPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="350" y="80" width="46" height="15" uuid="e1c7c077-08f3-4794-a206-4c215994783e">
					<printWhenExpression><![CDATA[$F{segundaVia}]]></printWhenExpression>
				</reportElement>
				<box>
					<topPen lineWidth="1.0"/>
				</box>
				<textElement verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA["Pág. "+$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement x="0" y="15" width="265" height="50" uuid="dfdfa53c-c134-4fa1-96ed-d37e52c3f48e">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<printWhenExpression><![CDATA[$F{segundaVia}]]></printWhenExpression>
				</reportElement>
				<box>
					<topPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Top" markup="html">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{nomeEmitente}+" - " + $F{conselhoSigla} + ":" + $F{crm} + " - " + $F{ufEmitente} + "<br/>" + $F{especialidadeEmitente}.trim()]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="455" y="80" width="300" height="15" isRemoveLineWhenBlank="true" uuid="97049889-a48a-403e-bda9-d8b9fb05bb07">
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box>
					<topPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="6"/>
				</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 pattern="dd/MM/yyyy" isBlankWhenNull="false">
				<reportElement isPrintRepeatedValues="false" x="406" y="80" width="49" height="15" uuid="1ccd6143-f74d-4cbf-8510-e9ec38264b18">
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box>
					<topPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="755" y="80" width="46" height="15" uuid="99bd46b2-4257-48bd-9a40-914da4218226"/>
				<box>
					<topPen lineWidth="1.0"/>
				</box>
				<textElement verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA["Pág. "+$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement x="405" y="15" width="265" height="50" uuid="c654de2d-97a2-4034-873d-3a53244aafdb">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box>
					<topPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Top" markup="html">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{nomeEmitente}+" - " + $F{conselhoSigla} + ":" + $F{crm} + " - " + $F{ufEmitente} + "<br/>" + $F{especialidadeEmitente}.trim()]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement x="320" y="26" width="71" height="18" uuid="40cf50b2-da64-456a-9606-d9e8dd3237cf">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<printWhenExpression><![CDATA[$F{segundaVia}]]></printWhenExpression>
				</reportElement>
				<box leftPadding="3">
					<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="Top"/>
				<textFieldExpression><![CDATA[$F{validade}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="286" y="62" width="90" height="14" uuid="199bb7d5-07ca-4226-a144-a3020ac6fd5f">
					<printWhenExpression><![CDATA[$F{segundaVia}]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Top">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{codigoDeBarras}]]></textFieldExpression>
			</textField>
			<componentElement>
				<reportElement x="286" y="44" width="90" height="20" uuid="63bfff37-898b-4ed8-b293-ac7345bfd3cc">
					<printWhenExpression><![CDATA[$F{segundaVia}]]></printWhenExpression>
				</reportElement>
				<jr:barbecue xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" type="UPCA" drawText="false" checksumRequired="false">
					<jr:codeExpression><![CDATA[$F{codigoDeBarras}]]></jr:codeExpression>
					<jr:applicationIdentifierExpression><![CDATA[false]]></jr:applicationIdentifierExpression>
				</jr:barbecue>
			</componentElement>
			<textField>
				<reportElement x="691" y="62" width="90" height="14" uuid="9f549dbd-d4b6-4a3d-b9bd-207817ddcaff"/>
				<textElement textAlignment="Center" verticalAlignment="Top">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{codigoDeBarras}]]></textFieldExpression>
			</textField>
			<componentElement>
				<reportElement x="691" y="44" width="90" height="20" uuid="aa7df9ed-5c23-4a68-a855-f8748cae2e89"/>
				<jr:barbecue xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" type="UPCA" drawText="false" checksumRequired="false">
					<jr:codeExpression><![CDATA[$F{codigoDeBarras}]]></jr:codeExpression>
					<jr:applicationIdentifierExpression><![CDATA[false]]></jr:applicationIdentifierExpression>
				</jr:barbecue>
			</componentElement>
			<staticText>
				<reportElement x="265" y="26" width="55" height="18" uuid="e2148c97-613a-43b6-a537-f6a94bae184f">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<printWhenExpression><![CDATA[$F{segundaVia}]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Right"/>
				<text><![CDATA[Validade:]]></text>
			</staticText>
			<staticText>
				<reportElement x="670" y="26" width="55" height="18" uuid="027689d3-d3de-4ae3-922a-919e5f533083">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
				</reportElement>
				<textElement textAlignment="Right"/>
				<text><![CDATA[Validade:]]></text>
			</staticText>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement x="725" y="26" width="71" height="18" uuid="345816e1-81e6-4fed-924f-95fb50aa37de">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box leftPadding="3">
					<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="Top"/>
				<textFieldExpression><![CDATA[$F{validade}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="265" y="13" width="55" height="19" uuid="b6109721-ea6c-484b-85ab-20cf1068c83b">
					<printWhenExpression><![CDATA[$F{segundaVia}]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Right"/>
				<text><![CDATA[Emissão:]]></text>
			</staticText>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement x="320" y="13" width="71" height="19" uuid="9217b696-ce8b-48f7-a9c9-ca096526cb3e">
					<printWhenExpression><![CDATA[$F{segundaVia}]]></printWhenExpression>
				</reportElement>
				<box leftPadding="3"/>
				<textFieldExpression><![CDATA[$F{data}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="670" y="13" width="55" height="19" uuid="4ee8e8c6-1fa6-4123-baed-df22fe5acdfb"/>
				<textElement textAlignment="Right"/>
				<text><![CDATA[Emissão:]]></text>
			</staticText>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement x="725" y="13" width="71" height="19" uuid="754326a8-5202-4120-a26a-9cf22b317b1f"/>
				<box leftPadding="3"/>
				<textFieldExpression><![CDATA[$F{data}]]></textFieldExpression>
			</textField>
		</band>
	</pageFooter>
</jasperReport>
