<?xml version="1.0" encoding="ISO-8859-1"?>
<VUE name="PMSI000157"
     label="PMSI. Etude cardiologie interventionnelle (Décret 2022)"
     title="= 'Etude cardiologie interventionnelle (Décret 2022) (' + SELECT.PERIODE_LABEL + ' à ' + SELECT.TOPERIODE_LABEL + ')'"
     database="iCTI"
     swf="*CTI_view1"
     softCode="iCTI_pmsi"
     globals="PMSI_globals.XML"
     componentsFile="PMSI_components.XML">

    <VIEWPROPERTIES>

        <PROPERTY name="CHAMP_SELECT">
            <value><![CDATA[[EVAL 
				// <?php
						$toRet = "";
						switch ('[CHAMP]'){
							case 'EX' :
								$toRet =  " AND p_rss.en_cours = '0' ";
								break;
							case 'EXTR' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi IN ('21', '22', '23', '24', '25', '26', '30', '31', '32', '33') ";
								break;
							case 'EXVA' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi IN ('30','31','32','33') ";
								break;
							case 'EXVA30' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi IN ('30') ";
								break;
							case 'EXVA3032' :
                                $select = " AND v_rss_1.en_cours = '0' AND p_rss.traitement_epmsi IN ('30','32') ";
                                break;
							case 'EXVA31' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi IN ('31') ";
								break;
							case 'EXVA32' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi IN ('32') ";
								break;
							case 'EXVA33' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi IN ('33') ";
								break;
							case 'EXNVA' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi IN ('21', '22', '23', '24', '25', '26') ";
								break;
							case 'EXNVA21' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi = '21' ";
								break;
							case 'EXNVA22' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi = '22' ";
								break;
							case 'EXNVA23' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi = '23' ";
								break;
							case 'EXNVA24' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi = '24' ";
								break;
							case 'EXNVA25' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi = '25' ";
								break;
							case 'EXNVA26' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi = '26' ";
								break;
							case 'EXNTR' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi IN ('11', '12', '13', '14', '15') ";
								break;
							case 'EXNTR11' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi = '11' ";
								break;
							case 'EXNTR12' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi = '12' ";
								break;
							case 'EXNTR13' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi = '13' ";
								break;
							case 'EXNTR14' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi = '14' ";
								break;
							case 'EXNTR15' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi = '15' ";
								break;
							case 'EXNTRNVA' :
								$toRet =  " AND p_rss.en_cours = '0' AND p_rss.traitement_epmsi IN ('11', '12', '13', '14', '15', '21', '22', '23', '24', '25', '26') ";
								break;

							case 'NEX' :
								$toRet =  " AND p_rss.en_cours <> '0' ";
								break;
							case 'NEXSO' :
								$toRet =  " AND p_rss.en_cours <> '0' AND p_rss.en_cours_etat IN ('S') ";
								break;
							case 'NEXGR' :
								$toRet =  " AND p_rss.en_cours <> '0' AND p_rss.en_cours_etat IN ('G','V','F') ";
								break;
							case 'NEXVA' :
								$toRet =  " AND p_rss.en_cours <> '0' AND p_rss.en_cours_etat IN ('V','F') ";
								break;
							case 'NEXFA' :
								$toRet =  " AND p_rss.en_cours <> '0' AND p_rss.en_cours_etat IN ('F') ";
								break;
							case 'NEXGRNFA' :
								$toRet =  " AND p_rss.en_cours <> '0' AND p_rss.en_cours_etat IN ('G','V') ";
								break;
							case 'NEXNFA' :
								$toRet =  " AND p_rss.en_cours <> '0' AND p_rss.en_cours_etat IN ('S','G','V') ";
								break;


							case 'EXNEX' :
								break;
							case 'EXNEXSO' :
								$toRet =  " AND (p_rss.en_cours = '0' OR p_rss.en_cours <> '0' AND p_rss.en_cours_etat IN ('S')) ";
								break;
							case 'EXNEXGR' :
								$toRet =  " AND (p_rss.en_cours = '0' OR p_rss.en_cours <> '0' AND p_rss.en_cours_etat IN ('G','V','F')) ";
								break;
							case 'EXNEXVA' :
								$toRet =  " AND (p_rss.en_cours = '0' OR p_rss.en_cours <> '0' AND p_rss.en_cours_etat IN ('V','F')) ";
								break;
							case 'EXNEXFA' :
								$toRet =  " AND (p_rss.en_cours = '0' OR p_rss.en_cours <> '0' AND p_rss.en_cours_etat IN ('F')) ";
								break;
							case 'EXNEXGRNFA' :
								$toRet =  " AND (p_rss.en_cours = '0' OR p_rss.en_cours <> '0' AND p_rss.en_cours_etat IN ('G','V')) ";
								break;
							case 'EXNEXNFA' :
								$toRet =  " AND (p_rss.en_cours = '0' OR p_rss.en_cours <> '0' AND p_rss.en_cours_etat IN ('S','G','V')) ";
								break;

							// Anciens codes pour compatibilité
							case 'EXGR' :
								$toRet =  " AND (p_rss.en_cours = '0' OR p_rss.en_cours_etat IN ('G', 'V')) ";
								break;
							case 'EXGV' :
								$toRet =  " AND (p_rss.en_cours = '0' OR p_rss.en_cours_etat = 'V') ";
								break;
							case 'GR' :
								$toRet =  " AND p_rss.en_cours_etat IN ('G', 'V') ";
								break;


							default :
								$toRet =  "";
								break;
						}
						return $toRet ;
				// ?>
			EVAL]]]></value>
        </PROPERTY>

        <PROPERTY name="FINESS_SELECT">
            <value><![CDATA[
                [EVAL 
                    if ('[FINESS]' != '-1') {
                        $mode = substr('[FINESS]',0,2);
                        $oid = '[FINESS]';
                        if ($mode == 'LS') {
                            $section_id = PMSI_get_section_id('[FINESS]');
                            $oid = PMSI_get_classe_oid('[FINESS]');
                        }
                        if ($mode != 'LI' && $mode != 'SL' && $mode != 'LS' ) {
                            $mode = 'FI';
                        }
                        if ($mode == 'LI' || $mode == 'SL') {
                            $oid = substr('[FINESS]',2);
                        }
                        $subselect_select = '';
                
                        if ($mode == 'LI') {$subselect_select = " t_finess.oid IN (SELECT to_id FROM base.t_listes_contenu WHERE liste_id = $oid)";}
                        if ($mode == 'SL') {$subselect_select = " t_finess.oid NOT IN (SELECT to_id FROM base.t_listes_contenu WHERE liste_id = $oid)";}
                        if ($mode == 'LS') {$subselect_select = " t_finess.oid IN (SELECT oid FROM base.t_finess WHERE $section_id = $oid)";}
                        if ($mode == 'FI') {$subselect_select = " t_finess.code = '$oid' ";}
                
                        if ($subselect_select != '') {
                            return " AND $subselect_select ";
                        }
                    }
        EVAL]]]></value>
</PROPERTY>


<PROPERTY name="GROUPBYS">
            <value><![CDATA[[EVAL 

                    if('[ENV.CONSOLIDATION]' == '1' && '[PRESENTATION]' == 'BY_FINESS'){
                        return "
                            GROUPBY1{etablissement_id,, etablissement_code,, etablissement_texte}
                            GROUPBY1MODE{[GROUPBY_TAB]}
                            GROUPBY2{t_etude_cardio_familles_actes.liste_id,, t_etude_cardio_mentions.texte_court,, t_etude_cardio_familles_actes.texte}
                            GROUPBY3{acte_id,, acte_code,, acte_texte}
                        ";
                    }

                    return "
                        GROUPBY1{t_etude_cardio_mentions.oid,, t_etude_cardio_mentions.code,, t_etude_cardio_mentions.texte_court}
                        GROUPBY1MODE{[GROUPBY_TAB]}
                        GROUPBY2{t_etude_cardio_familles_actes.liste_id,, t_etude_cardio_familles_actes.code,, t_etude_cardio_familles_actes.texte}
                        GROUPBY3{acte_id,, acte_code,, acte_texte}
                    ";

			EVAL]]]></value>
        </PROPERTY>
        <PROPERTY name="LEFT_JOIN_CONSO">
            <value><![CDATA[[EVAL 
					    if('[ENV.CONSOLIDATION]' == '1' &&  '[PRESENTATION]' == 'BY_FINESS'){
								return "
									FROM pmsi.t_etude_cardio_familles_actes
                                    JOIN pmsi.t_etude_cardio_mentions ON t_etude_cardio_mentions.oid = t_etude_cardio_familles_actes.cardio_mention_id
                                    JOIN W_RSS_CARDIO ON t_etude_cardio_familles_actes.oid = W_RSS_CARDIO.cardio_famille_acte_id
								";                      
						} else {
                            return "	
                              	    FROM pmsi.t_etude_cardio_familles_actes
                                    LEFT JOIN pmsi.t_etude_cardio_mentions ON t_etude_cardio_mentions.oid = t_etude_cardio_familles_actes.cardio_mention_id
                                    LEFT JOIN W_RSS_CARDIO ON t_etude_cardio_familles_actes.oid = W_RSS_CARDIO.cardio_famille_acte_id 
                        ";   
                        }
					EVAL]]]></value>
        </PROPERTY>
        <PROPERTY name="UPDATE_LIBELLE_W_TABLE">
            <value><![CDATA[[EVAL 
					    if('[ENV.CONSOLIDATION]' == '1' &&  '[PRESENTATION]' == 'BY_FINESS'){
								return "
									AFTER{
										UPDATE w_table SET
											indicateurs_text[1] = CASE WHEN level IN (1,3) THEN '' ELSE indicateurs_text[1]  END
									}
								";                      
						} else {
                            return "	
                                AFTER{
                                 UPDATE w_table SET
                                     code = CASE WHEN level IN (1,2) THEN '' ELSE code END,
                                    indicateurs_text[1] = CASE WHEN level IN (1,3) THEN '' ELSE indicateurs_text[1]  END
                           }   
                        ";   
                        }
					EVAL]]]></value>
        </PROPERTY>
    </VIEWPROPERTIES>

    <SELECTIONS label="Paramètres de l'analyse" displayText="= var display:String = '';
		
					display = display + '  Champ e-PMSI : #B#' + SELECT.CHAMP_LABEL + '#/B#';

					if (SELECT.FINESS  != '-1') {
						display = display + '  Etablissement : #B#' + SELECT.FINESS_LABEL + '#/B#';
					}
					return display;
		">

        <GROUP label="Période">
            <FIELD name="ALIAS_PERIODE" label="" UI="combo" width="220" default="CUM_LAST_MONTH" tree="true"
                   globalListProvider="ALIAS_PERIODE"/>
            <FIELD name="PERIODE" label="" UI="combo" tree="true" width="200" default="2014-01-01"
                   globalListProvider="DATE_DEBUT">
            </FIELD>
            <FIELD name="TOPERIODE" label="à" UI="combo" tree="true" width="200" default="2014-12-31"
                   globalListProvider="DATE_FIN">
            </FIELD>
        </GROUP>

        <GROUP label="Champ">
            <FIELD name="CHAMP" label="" UI="combo" tree="true" width="400" default="EX" globalListProvider="CHAMP" showIfNotDefault="true">
            </FIELD>
        </GROUP>

        <GROUP label="Présentation">
            <FIELD name="PRESENTATION" width="170" label="" UI="combo" default="BY_MENTION" visible="= ENV.CONSOLIDATION == '1' ">
                <OPTION label="Par mention" data="BY_MENTION" />
                <OPTION label="Par établissement" data="BY_FINESS" />
            </FIELD>
        </GROUP>
        
        <GROUP label="Etablissement">
            <FIELD name="FINESS" label="" UI="combo" tree="true" width="400" default="-1" showIfNotDefault="true" visible="= ENV.CONSOLIDATION == '1' &amp;&amp; SELECT.PRESENTATION == 'BY_FINESS'" globalListProvider="Etablissement" />
        </GROUP>

    </SELECTIONS>


    <QUERIES>

        <QUERY label="WORK TABLE">
            <SQL cacheEnabled="true">
                <select><![CDATA[

					CREATE TEMP TABLE W_RSS_CARDIO AS (
						SELECT
						rss_id,
						cardio_famille_acte_id,
						acte_id,
						t_actes.code AS acte_code,
						t_actes.texte AS acte_texte,
						en_cours,
						en_cours_etat,
						traitement_epmsi,
						t_finess.oid AS etablissement_id,
						t_finess.code AS etablissement_code,
						t_finess.texte AS etablissement_texte
					FROM pmsi.p_rss_cardio
					JOIN pmsi.t_actes ON p_rss_cardio.acte_id = t_actes.oid
					JOIN pmsi.p_rss ON p_rss_cardio.rss_id = p_rss.oid
				    JOIN base.t_finess ON t_finess.code = p_rss.finess
					WHERE p_rss_cardio.date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
                    [VIEW.CHAMP_SELECT]
                    [VIEW.FINESS_SELECT]
                    
                    )

				]]></select>
            </SQL>
        </QUERY>

        <QUERY label="Interventionnelle">
            <SQL cacheEnabled="true">
                <select><![CDATA[

					CTISELECT_TREE
						[VIEW.GROUPBYS]
						INDICATORS{
							count(DISTINCT rss_id),
							count(acte_id)
						}
                        INDICATORS_TEXT{
							MAX(t_etude_cardio_familles_actes.seuil_annuel)::text
						}

						[VIEW.LEFT_JOIN_CONSO]

                        WHERE
                             t_etude_cardio_familles_actes.code LIKE 'RYTH%'

		                [VIEW.UPDATE_LIBELLE_W_TABLE]  
				

				]]></select>
                <FIELDS>
                    <INSERT name="CTISELECT_TREE_FIELDS"/>
                    <FIELD name="NSEJ"/>
                    <FIELD name="NACTES"/>
                    <FIELD name="SEUIL"/>
                </FIELDS>
            </SQL>
        </QUERY>

        <QUERY label="Congenitale">
            <SQL cacheEnabled="true">
                <select><![CDATA[

		                CTISELECT_TREE
							[VIEW.GROUPBYS]
                            INDICATORS{
                                count(DISTINCT rss_id),
                                count(acte_id)
                            }
                            INDICATORS_TEXT{
                                MAX(t_etude_cardio_familles_actes.seuil_annuel)::text
                            }
    
                            [VIEW.LEFT_JOIN_CONSO]
                            
                            WHERE
                                 t_etude_cardio_familles_actes.code LIKE 'CONG%'
    
                            [VIEW.UPDATE_LIBELLE_W_TABLE]  


				]]></select>
                <FIELDS>
                    <INSERT name="CTISELECT_TREE_FIELDS"/>
                    <FIELD name="NSEJ"/>
                    <FIELD name="NACTES"/>
                    <FIELD name="SEUIL"/>
                </FIELDS>
            </SQL>


        </QUERY>
        <QUERY label="Ischemique">

            <SQL optimizer="V_RSS_X" cacheEnabled="true">
                <select><![CDATA[

		            CTISELECT_TREE
						[VIEW.GROUPBYS]
						INDICATORS{
							count(DISTINCT rss_id),
							count(acte_id)
						}
                        INDICATORS_TEXT{
							MAX(t_etude_cardio_familles_actes.seuil_annuel)::text
						}

						[VIEW.LEFT_JOIN_CONSO]

                        WHERE
                             t_etude_cardio_familles_actes.code LIKE 'ISCH%%'

					 	[VIEW.UPDATE_LIBELLE_W_TABLE]  
				]]></select>
                <FIELDS>
                    <INSERT name="CTISELECT_TREE_FIELDS"/>
                    <FIELD name="NSEJ"/>
                    <FIELD name="NACTES"/>
                    <FIELD name="SEUIL"/>
                </FIELDS>
            </SQL>
        </QUERY>


    </QUERIES>

    <PRESENTATION>

        <VIEWLINKS>
            <VIEWLINK
                    label="Justificatif Actes par RSS" shortLabel="Liste Actes" view="PMSI000030.XML">
                <ARG name="ACTE" value="
                    if(ROW.LVL == '3') {return 'AC' + ROW.OID3;} 
                    if(ROW.LVL == '2') {return 'LI' + ROW.OID2;} 
                    return '-1'"/>  
                <ARG name="FINESS" value="
                    if(ENV.CONSOLIDATION == '1' &amp;&amp;  SELECT.PRESENTATION == 'BY_FINESS'){
                        if(ROW.LVL == '3' || ROW.LVL == '2'){
                            return ROW.COD1;
                        } 
                    }
                    return '-1'"/>
            </VIEWLINK>

            <VIEWREF
                    label="Décret du 16 mars 2022 activité interventionnelle sous imagerie médicale en cardiologie"
                    shortLabel="Décret 2022"
                    url="http://www.ctisante.com/references/pmsi/arrete_seuil_cardio_2022.pdf"
                    rowContext="false"/>

        </VIEWLINKS>
        <ONGLET label="Rythmologie interventionnelle" multiTab="true" queryNumber="1">
            <DATAGRID title="" total="true" showOthers="true" headerHeight="40" variableRowHeight="true"
                      sortable="= SELECT.GROUPBY_2 == '-1' || SELECT.GROUPBY_TAB == 'TAB'"
                      selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'"
                      totalRowInRows="= ROW.OID == '-9999999'">
                <ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1'"/>
                <ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '2'" />

                <INSERT name="DATAGRID_MULTITAB_STYLES"/>
                <COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid">
                </COLUMN>
                <COLUMN dataField="COD" width="80" type="Char" visible="= ROW.LVL == '3'" condition="ROW.LVL == '1'"
                        headerText="Codes" textAlign="left" otherFunction="text" totalFunction="text">

                    <INSERT name="COLUMN_COD_MULTITAB_STYLES"/>
                </COLUMN>
                <COLUMN dataField="TXT" width="350" type="Char" headerText="Actes" textAlign="left" totalFunction="text"
                        otherFunction="text" otherComplement="Autres"/>
                <COLUMN dataField="NSEJ"
                        width="80"
                        type="Number"
                        visible="true"
                        outputFormat="#"
                        headerText="Total séjours"
                        textAlign="right"
                        otherFunction="text"
                        totalFunction="sum"
                        totalComplement="">
                </COLUMN>
                <COLUMN dataField="NACTES"
                        width="80"
                        type="Number"
                        visible="true"
                        outputFormat="#"
                        headerText="Total actes"
                        textAlign="right"
                        otherFunction="text"
                        totalFunction="sum"
                        totalComplement=""
                        largeSeparator="true">
                </COLUMN>
                <COLUMN dataField="SEUIL"
                        width="80"
                        type="Char"
                        headerText="Seuil annuel"
                        textAlign="center"
                        otherFunction="text"
                        totalFunction="text"
                        totalComplement="">
                    <CELLSTYLE name="cellIndicator" value="circle, 5, left top, 0xFF0000"
                               condition="ROW.LVL == '2' &amp;&amp; (ROW.SEUIL &gt;  ROW.NACTES)"/>
                    <CELLSTYLE name="cellIndicator" value="circle, 5, left top, 0x75a0eb"
                               condition="ROW.LVL == '2'&amp;&amp; (ROW.SEUIL &lt;  ROW.NACTES)"/>
                </COLUMN>
            </DATAGRID>
        </ONGLET>

        <ONGLET label="Cardiopathies congénitales hors rythmologie" multiTab="true" queryNumber="2">
            <DATAGRID title="" total="true" showOthers="true" headerHeight="40" variableRowHeight="true"
                      sortable="= SELECT.GROUPBY_2 == '-1' || SELECT.GROUPBY_TAB == 'TAB'"
                      selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'"
                      totalRowInRows="= ROW.OID == '-9999999'">
                <ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1'"/>
                <ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '2'" />

                <INSERT name="DATAGRID_MULTITAB_STYLES"/>
                <COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid">
                </COLUMN>
                <COLUMN dataField="COD" width="80" type="Char" visible="= ROW.LVL == '3'" condition="ROW.LVL == '1'"
                        headerText="Codes" textAlign="left" otherFunction="text" totalFunction="text">
                    <INSERT name="COLUMN_COD_MULTITAB_STYLES"/>
                </COLUMN>
                <COLUMN dataField="TXT" width="350" type="Char" headerText="Actes" textAlign="left" totalFunction="text"
                        otherFunction="text" otherComplement="Autres"/>
                <COLUMN dataField="NSEJ"
                        width="80"
                        type="Number"
                        visible="true"
                        outputFormat="#"
                        headerText="Total séjours"
                        textAlign="right"
                        otherFunction="text"
                        totalFunction="sum"
                        totalComplement="">
                </COLUMN>
                <COLUMN dataField="NACTES"
                        width="80"
                        type="Number"
                        visible="true"
                        outputFormat="#"
                        headerText="Total actes"
                        textAlign="right"
                        otherFunction="text"
                        totalFunction="sum"
                        totalComplement=""
                        largeSeparator="true">
                </COLUMN>
                <COLUMN dataField="SEUIL"
                        width="80"
                        type="Char"
                        headerText="Seuil annuel"
                        textAlign="right"
                        otherFunction="text"
                        totalFunction="text"
                        totalComplement="">
                    <CELLSTYLE name="cellIndicator" value="circle, 5, left top, 0xFF0000"
                               condition="ROW.LVL == '2' &amp;&amp; (ROW.SEUIL &gt;  ROW.NACTES)"/>
                    <CELLSTYLE name="cellIndicator" value="circle, 5, left top, 0x75a0eb"
                               condition="ROW.LVL == '2'&amp;&amp; (ROW.SEUIL &lt;  ROW.NACTES)"/>
                </COLUMN>
            </DATAGRID>
        </ONGLET>
        <ONGLET label="Cardiopathies ischémiques et structurelles de l'adulte" multiTab="true" queryNumber="3">
            <DATAGRID title="" total="true" showOthers="true" headerHeight="40" variableRowHeight="true"
                      sortable="= SELECT.GROUPBY_2 == '-1' || SELECT.GROUPBY_TAB == 'TAB'"
                      selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'"
                      totalRowInRows="= ROW.OID == '-9999999'">
                <ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1'"/>
                <ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '2'" />

                <INSERT name="DATAGRID_MULTITAB_STYLES"/>
                <COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid">
                </COLUMN>
                <COLUMN dataField="COD" width="80" type="Char" visible="= ROW.LVL == '3'" condition="ROW.LVL == '1'"
                        headerText="Codes" textAlign="left" otherFunction="text" totalFunction="text">
                    <INSERT name="COLUMN_COD_MULTITAB_STYLES"/>
                </COLUMN>
                <COLUMN dataField="TXT" width="350" type="Char" headerText="Actes" textAlign="left" totalFunction="text"
                        otherFunction="text" otherComplement="Autres"/>
                <COLUMN dataField="NSEJ"
                        width="80"
                        type="Number"
                        visible="true"
                        outputFormat="#"
                        headerText="Total séjours"
                        textAlign="right"
                        otherFunction="text"
                        totalFunction="sum"
                        totalComplement="">
                </COLUMN>
                <COLUMN dataField="NACTES"
                        width="80"
                        type="Number"
                        visible="true"
                        outputFormat="#"
                        headerText="Total actes"
                        textAlign="right"
                        otherFunction="text"
                        totalFunction="sum"
                        totalComplement=""
                        largeSeparator="true">
                </COLUMN>
                <COLUMN dataField="SEUIL"
                        width="80"
                        type="Char"
                        headerText="Seuil annuel"
                        textAlign="right"
                        otherFunction="text"
                        totalFunction="text"
                        totalComplement="">
                    <CELLSTYLE name="cellIndicator" value="circle, 5, left top, 0xFF0000"
                               condition="ROW.LVL == '2' &amp;&amp; (ROW.SEUIL &gt;  ROW.NACTES)"/>
                    <CELLSTYLE name="cellIndicator" value="circle, 5, left top, 0x75a0eb"
                               condition="ROW.LVL == '2'&amp;&amp; (ROW.SEUIL &lt;  ROW.NACTES)"/>
                </COLUMN>
            </DATAGRID>
        </ONGLET>


    </PRESENTATION>

</VUE>

			
