<?xml version="1.0" encoding="UTF-8"?>
<report-definition 
	xmlns="http://services.softec.sk/reporting/itext" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xsi:schemaLocation="http://services.softec.sk/reporting/itext report-definition.xsd ">
    <frame-style name="default" height="16" width="16">
    	<font name="arial" size="9"/>
    </frame-style>
    
  <page number="1"> 

     <!--  Modul 00  --> 
     <text-field expression="value('ROK_SPRAC')" type="frame" x="161" y="694" width="16" /> 
     <text-field expression="value('MESIAC_SPRAC')" type="frame" x="342" y="694" width="16" />
     <text-field expression="value('NAZOV')" type="columnText" x="325" y="678" width="200" height="10" align="left"/>
     <text-field expression="value('OSET_LEK_PRIEZV')" type="columnText" x="325" y="661" width="200" height="10" align="left"/>
     <text-field expression="value('KODPZS')" type="frame" x="214" y="625" width="22" />  
     <text-field expression="value('ICO')" type="frame" x="214" y="642" width="21" />  
     <text-field expression="format(value('PACDATVYK'), 'dd')" type="frame" x="349" y="609" width="16" />                                               
     <text-field expression="format(value('PACDATVYK'), 'MM')" type="frame" x="396" y="609" width="16" /> 
     <text-field expression="format(value('PACDATVYK'), 'yyyy')" type="frame" x="443" y="609" width="19" /> 
     
     <!--  Modul 01  -->  
     <text-field expression="value('PACMENO')" type="columnText" x="118" y="594" width="120" height="10" align="left"/>
     <text-field expression="value('PACPRIEZVISKO')" type="columnText" x="304" y="595" width="200" height="10" align="left"/>
     <text-field expression="format(value('PACDATNAR'), 'dd')" type="frame" x="132" y="570" width="16" />                                               
     <text-field expression="format(value('PACDATNAR'), 'MM')" type="frame" x="178" y="570" width="16" /> 
     <text-field expression="format(value('PACDATNAR'), 'yyyy')" type="frame" x="220" y="570" width="19" />
     <text-field expression="substring(value('PACRC'),0,6) " type="frame" x="353" y="571" width="18"/>   
     <text-field expression="substring(value('PACRC'),6) " type="frame" x="468" y="571" width="18"/>
     <text-field expression="value('PAC_ADRESA')" type="columnText" x="185" y="552" width="150" height="10" align="left"/>
     <text-field expression="enumDesc(item('PACOBEC_ST'))"	type="columnText" x="410" y="546" width="120" height="16" align="left"/> 
     <text-field expression="value('PACPOHLAVIE')" type="frame" x="213" y="529.5" width="16" />
     <text-field expression="value('PACVEK')" type="frame" x="407" y="530" width="16" />
     
     <!--  Modul 02  -->  
     <text-field expression="value('ROK_PRVE_PRIZNAKY')" type="frame" x="215" y="511" width="21" />      
     <text-field expression="value('ROK_STANOVENIE_DG')" type="frame" x="215" y="496" width="21" />      
     <text-field expression="value('POZNAMKA')" type="columnText" x="153" y="474" width="370" height="10" align="left"/>
     
     <!--  Modul 03  -->
     <text-field expression="_if(value('SPECI_MKCH') == 'G4730', '1')" type="frame" x="512" y="419"/>
     <text-field expression="_if(value('SPECI_MKCH') == 'G4731', '2')" type="frame" x="512" y="419"/> 
     <text-field expression="_if(value('SPECI_MKCH') == 'G4732', '3')" type="frame" x="512" y="419"/> 
     <text-field expression="_if(value('SPECI_MKCH') == 'G4738', '4')" type="frame" x="512" y="419"/> 
     <text-field expression="_if(value('SPECI_MKCH') == 'G4739', '5')" type="frame" x="512" y="419"/>  
     <text-field expression="value('SPECI_TEXT')" type="columnText" x="431" y="407" width="100" height="10" align="left"/>

<!--  Modul 04  -->
<text-field expression="value('POLYSOMNOGRAFIA_V')" type="frame" x="248" y="373" width="16" />
<text-field expression="value('POLYGRAFIA_V')" type="frame" x="248" y="359" width="16" />
<text-field expression="value('PULZOXIMETRIA_V')" type="frame" x="405" y="373" width="16" />
<text-field expression="value('VYSETRENIE_INE')" type="columnText" x="377" y="360" width="150" height="10" align="left"/>

<!--  Modul 05  -->
<text-field expression="_if(value('LIECBA_KOZERVATIVNA') == 1, 'X')" type="frame" x="475" y="328"/>
<text-field expression="_if(value('LIECBA_ORL') == 1, 'X')" type="frame" x="146" y="312.5"/>
<text-field expression="_if(value('LIECBA_CPAP') == 1, 'X')" type="frame" x="146" y="299.5"/>
<text-field expression="_if(value('LIECBA_BIPAP') == 1, 'X')" type="frame" x="146" y="287"/>
<text-field expression="_if(value('LIECBA_INA_NIPPV') == 1, 'X')" type="frame" x="475" y="313"/>
<text-field expression="_if(value('LIECBA_ORTO_POMOC') == 1, 'X')" type="frame" x="475" y="300"/>
<text-field expression="_if(value('LIECBA_INE') == 1, 'X')" type="frame" x="475" y="287.5"/>

<!--  Modul 06  -->  
<text-field expression="_if(value('MOCH_DM') == 1, 'X')" type="frame" x="146" y="240"/>
<text-field expression="_if(value('MOCH_MS') == 1, 'X')" type="frame" x="308" y="240"/>
<text-field expression="value('MOCH_INE')" type="columnText" x="351" y="229" width="160" height="10" align="left"/>

<text-field expression="_if(value('KOCH_CMP') == 1, 'X')" type="frame" x="212" y="196"/>
<text-field expression="_if(value('KOCH_INFARKT') == 1, 'X')" type="frame" x="212" y="180"/>
<text-field expression="_if(value('KOCH_ARYTMIA') == 1, 'X')" type="frame" x="212" y="165"/>
<text-field expression="_if(value('KOCH_A_HYPER') == 1, 'X')" type="frame" x="436" y="196"/>
<text-field expression="_if(value('KOCH_P_HYPER') == 1, 'X')" type="frame" x="436" y="180"/>
<text-field expression="_if(value('KOCH_INE') == 1, 'X')" type="frame" x="436" y="164"/>

<text-field expression="_if(value('INE_MIKROSPANOK') == 1, 'X')" type="frame" x="276" y="138"/>
<text-field expression="_if(value('INE_OVERLAP') == 1, 'X')" type="frame" x="436" y="138"/>
<text-field expression="_if(value('INE_NASLEDKY_SPD') == 1, 'X')" type="frame" x="276" y="125"/>
<text-field expression="value('INE_INE')" type="columnText" x="370" y="128" width="160" height="10" align="left"/>


<!--  Modul 07 -->  
<text-field expression="value('POZNAMKA_3000')" type="columnText" x="90" y="98" width="450" height="20" align="left"/>
      
         
  </page>
</report-definition>