<?xml version="1.0" encoding="ISO-8859-15"?>
<VUE name="PMSI000046" label="PMSI. Cancérologie. Activités soumises à seuil" title="= 'Cancérologie. Activités soumises à seuil (' + SELECT.CDC_LABEL + ') (' + SELECT.PERIODE_LABEL + ' à ' + SELECT.TOPERIODE_LABEL + ')'" database="iCTI" swf="*CTI_view1" softCode="iCTI_pmsi" globals="PMSI_globals.XML" componentsFile="PMSI_components.XML" helpDokuWIkiDir="pmsi:qualite:etudes" helpDokuWIkiFile="pmsi000046"  helpFile="iCTI_PMSI_PMSI000046.HTML">
	<VIEWPROPERTIES componentName="PROPERTIES_SELECT_TABTREE" />
	<VIEWPROPERTIES>
		<PROPERTY dataLink="VIEWPROPERTIES" nameField="name" valueField="value" />
		<PROPERTY name="CONSO_FINESS">
			<value><![CDATA[[EVAL 
				
				if ('[ENV.CONSOLIDATION]' == '1') {
					return "(select max(code) from base.t_finess where secondaire = '0')";
				} 
				else {
					return "v_rss_1.finess";
				} 
				
			EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="PERIODE_D">
			<value><![CDATA[[EVAL 
				
				switch ('[TYPE_COMPARAISON]') {
					case 'S' :
						return '[PERIODE_D]';
						break;
					case '2' : 
						return '[VIEW.WPERIODE_D]';
						break;
					case '3' : 
						return '[VIEW.WPERIODE_D]';
						break;
					default :
						return '0001-01-01';
				}
				
			EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="TOPERIODE_D">
			<value><![CDATA[[EVAL 
				
				switch ('[TYPE_COMPARAISON]') {
					case 'S' :
						return '[TOPERIODE_D]';
						break;
					case '2' : 
						return '[VIEW.WTOPERIODE_D]';
						break;
					case '3' : 
						return '[VIEW.WTOPERIODE_D]';
						break;
					default :
						return '0001-01-01';
				}
				
			EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="PERIODE_2D">
			<value><![CDATA[[EVAL 
				
				if ('[TYPE_COMPARAISON]' == '3') {
					return '[VIEW.WPERIODE_2D]';
				}
				else {
					return '0001-01-01';
				}
				
			EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="TOPERIODE_2D">
			<value><![CDATA[[EVAL 
				
				if ('[TYPE_COMPARAISON]' == '3') {
					return '[VIEW.WTOPERIODE_2D]';
				}
				else {
					return '0001-01-01';
				}
				
			EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="LAST_ANNEE">
			<value><![CDATA[[EVAL 

				$annee = substr('[TOPERIODE]',0,4);

				return $annee;
				
			EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="LAST_ANNEE_FORMAT_DEB">
			<value><![CDATA[[EVAL 

				$annee = substr('[TOPERIODE]',0,4);
				$annee_deb = $annee.'-01-01';
				return $annee_deb;
				
			EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="LAST_ANNEE_FORMAT_FIN">
			<value><![CDATA[[EVAL 

				$annee = substr('[TOPERIODE]',0,4);
				$annee_fin = $annee.'-12-31';
				return $annee_fin;
				
			EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="LAST_ANNEE_D">
			<value><![CDATA[[EVAL 

				$annee = intval(substr('[TOPERIODE]',0,4)) - 1;
				return $annee;
				
			EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="LAST_ANNEE_D_FORMAT_DEB">
			<value><![CDATA[[EVAL 

				$annee = intval(substr('[TOPERIODE]',0,4)) - 1;
				$annee_deb = $annee.'-01-01';
				return $annee_deb;
				
			EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="LAST_ANNEE_D_FORMAT_FIN">
			<value><![CDATA[[EVAL 

				$annee = intval(substr('[TOPERIODE]',0,4)) - 1;
				$annee_fin = $annee.'-12-31';
				return $annee_fin;
				
			EVAL]]]></value>
		</PROPERTY>

	</VIEWPROPERTIES>
	<SELECTIONS label="Paramètres de l'analyse" displayText="">
		<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" printable="false" globalListProvider="DATE_DEBUT" />
			<FIELD name="TOPERIODE" label="à" UI="combo" tree="true" width="200" default="2014-12-31" printable="false" globalListProvider="DATE_FIN" />
		</GROUP>
		<GROUP label="Période précédente">
			<FIELD name="TYPE_COMPARAISON" width="250" UI="combo" default="-1" printable="false">
				<OPTION label="Pas de comparaison" data="-1" />
				<OPTION label="Même période sur année précédente" data="2" />
				<OPTION label="Même période sur deux années précédentes" data="3" />
				<OPTION label="Saisie période" data="S" />
			</FIELD>
		</GROUP>
		<GROUP label="">
			<FIELD name="PERIODE_D" label=" " UI="combo" tree="true" width="200" default="2014-01-01" printable="false" globalListProvider="DATE_DEBUT" visible="= SELECT.TYPE_COMPARAISON == 'S'" />
			<FIELD name="TOPERIODE_D" label="à" UI="combo" tree="true" width="200" default="2014-12-31" printable="false" globalListProvider="DATE_FIN" visible="= SELECT.TYPE_COMPARAISON == 'S'" />
		</GROUP>
		<GROUP label="Cahier des charges">
			<FIELD name="CDC" width="150" UI="combo" default="2022" printable="false">
				<OPTION label="CDC Décembre 2017" data="2017" />
				<OPTION label="CDC Avril 2022" data="2022" />
			</FIELD>
		</GROUP>
		<GROUP label="Regroupement1">
			<FIELD name="GROUPBY" label="" width="300" UI="combo" default="SEUIL_CANCERO" tree="true" visible="false">
				<OPTION label="Seuil cancéro" data="SEUIL_CANCERO" treeLevel="1" />
			</FIELD>
		</GROUP>
		<GROUP label="Regroupement">
			<FIELD name="GROUPBY_2" width="250" UI="combo" default="-1" tree="true">
				<OPTION label="Pas de regroupement" data="-1" />
				<OPTION label="Options" data="" globalListProvider="RSS_GROUPBY_OPTIONS" />
			</FIELD>			
            <FIELD name="GROUPBY_3" width="250" UI="combo" default="-1" tree="true">
				<OPTION label="Pas de regroupement" data="-1" />
				<OPTION label="Options" data="" globalListProvider="RSS_GROUPBY_OPTIONS" />
			</FIELD>
			<FIELDx name="GROUPBY_TAB" width="110" label="Présentation" UI="combo" default="AUTO" visible="= SELECT.GROUPBY_2 != '-1' ">
				<OPTION label="Automatique" data="AUTO" />
				<OPTION label="Arbre" data="TREE" />
				<OPTION label="Onglet" data="TAB" />
			</FIELDx>
		</GROUP>
	</SELECTIONS>
	<SELECTIONS componentName="FILTRES_RSS_SOUSSELECTIONS" />
	<SELECTIONS componentName="FILTRES_RSS_SELECTIONS" />
	<QUERIES>
		<QUERY label="">
			<SQL optimizer="V_RSS_X" cacheEnabled="true">
				<select><![CDATA[ 
					CTISELECT_TREE
						GROUPBY1{[VIEW.SELECT_TABTREE_OID_FIELD],, [VIEW.SELECT_TABTREE_COD_FIELD],, [VIEW.SELECT_TABTREE_TXT_FIELD]}
						GROUPBY1MODE{[GROUPBY_TAB]}
						GROUPBY2{[VIEW.SELECT_TABTREE_2_OID_FIELD],, [VIEW.SELECT_TABTREE_2_COD_FIELD],, [VIEW.SELECT_TABTREE_2_TXT_FIELD]}
						GROUPBY3{[VIEW.SELECT_TABTREE_3_OID_FIELD],, [VIEW.SELECT_TABTREE_3_COD_FIELD],, [VIEW.SELECT_TABTREE_3_TXT_FIELD]}
						SIGNIFDATA{[VIEW.SELECT_TABTREE_ACTIVITE_SIGNIFICATIVE_DATA],, [ACTIVITE_SIGNIFICATIVE_MODE],, [ACTIVITE_SIGNIFICATIVE_NUMBER]}
						INDICATORS{
                                round(min(t_etude_6.seuil_ets) * [VIEW.NB_JOURS] / 365::numeric), 
                                round(min(t_etude_6.seuil_ars) * [VIEW.NB_JOURS] / 365::numeric), 
                                round(min((t_etude_6.moy_region) * [VIEW.NB_JOURS] / 365::numeric), 1), 
                                round(min((t_etude_6.moy_nat) * [VIEW.NB_JOURS] / 365::numeric), 1), 
                                COUNT(DISTINCT CASE WHEN date_sortie >= '[PERIODE]' AND date_sortie <='[TOPERIODE]' THEN v_rss_1.rss_id ELSE null END), 
                                COUNT(DISTINCT CASE WHEN v_rss_1.date_sortie >= '[PERIODE]' AND date_sortie <='[TOPERIODE]' THEN patient_id ELSE null END), 
                                COUNT(DISTINCT CASE WHEN date_sortie >= '[VIEW.PERIODE_D]' AND date_sortie <='[VIEW.TOPERIODE_D]' THEN v_rss_1.rss_id ELSE null END), 
                                COUNT(DISTINCT CASE WHEN date_sortie >= '[VIEW.PERIODE_D]' AND date_sortie <='[VIEW.TOPERIODE_D]' THEN patient_id ELSE null END), 
                                COUNT(DISTINCT CASE WHEN date_sortie >= '[VIEW.PERIODE_2D]' AND date_sortie <='[VIEW.TOPERIODE_2D]' THEN v_rss_1.rss_id ELSE null END), 
                                COUNT(DISTINCT CASE WHEN date_sortie >= '[VIEW.PERIODE_2D]' AND date_sortie <='[VIEW.TOPERIODE_2D]' THEN patient_id ELSE null END),
                                base.cti_division(((COUNT(DISTINCT CASE WHEN date_sortie >= '[PERIODE]' AND date_sortie <='[TOPERIODE]' THEN v_rss_1.rss_id ELSE null END)) 
                                                    * (COUNT(DISTINCT CASE WHEN date_sortie >= '[VIEW.LAST_ANNEE_D_FORMAT_DEB]' AND date_sortie <= '[VIEW.LAST_ANNEE_D_FORMAT_FIN]' THEN v_rss_1.rss_id ELSE null END)))
                                                    ,(COUNT(DISTINCT CASE WHEN date_sortie >= '[VIEW.PERIODE_D]' AND date_sortie <='[VIEW.TOPERIODE_D]' THEN v_rss_1.rss_id ELSE null END))),
                                COUNT(DISTINCT CASE WHEN date_sortie >= '[VIEW.LAST_ANNEE_D_FORMAT_DEB]' AND date_sortie <= '[VIEW.LAST_ANNEE_D_FORMAT_FIN]' THEN v_rss_1.rss_id ELSE null END),
                                min(t_etude_6.seuils_annuel)
                        }
                        ORDERBY{indicateurs[2],, DESC}
				FROM
					#V_RSS_X#, 
					base.t_finess, 
					pmsi.t_etude_6
				WHERE 1=1
					AND base.t_finess.code = v_rss_1.finess
					AND t_etude_6.annee = '[CDC]'
					AND v_rss_cancero_1.cancero_code = t_etude_6.code 
					AND v_rss_cancero_1.cdc          = t_etude_6.annee
					AND pmsi.t_etude_6.tersante_id = base.t_finess.territoire_sante_id 
					AND (	date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]' 
							OR 
							date_sortie BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' 
							OR 
							date_sortie BETWEEN '[VIEW.PERIODE_2D]' AND '[VIEW.TOPERIODE_2D]'
							OR
							date_sortie BETWEEN '[VIEW.LAST_ANNEE_FORMAT_DEB]' AND '[VIEW.LAST_ANNEE_FORMAT_FIN]'
							OR
							date_sortie BETWEEN '[VIEW.LAST_ANNEE_D_FORMAT_DEB]' AND '[VIEW.LAST_ANNEE_D_FORMAT_FIN]' 
						) 
					[VIEW.FILTRE_RSS_SELECT]
				
				]]></select>		
				<FIELDS>
					<INSERT name="CTISELECT_TREE_FIELDS"/>
					<FIELD name="SORT" />
					<FIELD name="SEUIL_ETS" />
					<FIELD name="SEUIL_ARS" />
					<FIELD name="MOY_REGION" />
					<FIELD name="MOY_NAT" />
					<FIELD name="NB" />
					<FIELD name="NBPAT" />
					<FIELD name="NBD" />
					<FIELD name="NBPATD" />
					<FIELD name="NB2D" />
					<FIELD name="NBPAT2D" />
					<FIELD name="NBDA" />
					<FIELD name="NBAD" />
					<FIELD name="SEUIL_AR" />
				</FIELDS>
			</SQL>
		</QUERY>
		<QUERY type="propertiesLink" name="VIEWPROPERTIES" forSelections="false">
			<SQL>
				<select><![CDATA[
					
						SELECT 'WPERIODE_D', (date '[PERIODE]' + interval '1 day' - interval '1 year' - interval '1 day')::date
					UNION ALL
						SELECT 'WTOPERIODE_D', (date '[TOPERIODE]' + interval '1 day' - interval '1 year' - interval '1 day')::date
					UNION ALL
						SELECT 'WPERIODE_2D', (date '[PERIODE]' + interval '1 day' - interval '2 year' - interval '1 day')::date
					UNION ALL
						SELECT 'WTOPERIODE_2D', (date '[TOPERIODE]' + interval '1 day' - interval '2 year' - interval '1 day')::date
					
				]]></select>
				<FIELDS>
					<FIELD name="name" />
					<FIELD name="value" />
				</FIELDS>
			</SQL>
			<SQL>
				<select><![CDATA[

						SELECT 
							'PERIODE_LABEL_COURT', 
							CASE WHEN extract(day from p_calendrier.date) > 1 THEN p_calendrier.texte_court ELSE p_calendrier_mois.texte_court END
						FROM 
							base.p_calendrier, base.p_calendrier_mois 
						WHERE 
							p_calendrier.mois = p_calendrier_mois.mois 
							AND p_calendrier.date = '[PERIODE]'
					UNION ALL	
						SELECT 
							'TOPERIODE_LABEL_COURT', 
							CASE WHEN dernier_jour = '1' THEN p_calendrier_mois.texte_court ELSE p_calendrier.texte_court END
						FROM 
							base.p_calendrier, base.p_calendrier_mois 
						WHERE 
							p_calendrier.mois = p_calendrier_mois.mois 
							AND p_calendrier.date = '[TOPERIODE]'
					UNION ALL
						SELECT 
							'PERIODE_D_LABEL', 
							CASE WHEN extract(day from p_calendrier.date) > 1 THEN p_calendrier.texte_court ELSE p_calendrier_mois.texte_court END
						FROM 
							base.p_calendrier, base.p_calendrier_mois 
						WHERE 
							p_calendrier.mois = p_calendrier_mois.mois 
							AND (p_calendrier.date + interval '1 day' + interval '1 year' - interval '1 day')::date = '[PERIODE]'
					UNION ALL
						SELECT 
							'TOPERIODE_D_LABEL', 
							CASE WHEN dernier_jour = '1' THEN p_calendrier_mois.texte_court ELSE p_calendrier.texte_court END
						FROM 
							base.p_calendrier, base.p_calendrier_mois 
						WHERE 
							p_calendrier.mois = p_calendrier_mois.mois 
							AND (p_calendrier.date + interval '1 day' + interval '1 year' - interval '1 day')::date = '[TOPERIODE]'
					UNION ALL
						SELECT 
							'PERIODE_2D_LABEL', 
							CASE WHEN extract(day from p_calendrier.date) > 1 THEN p_calendrier.texte_court ELSE p_calendrier_mois.texte_court END
						FROM 
							base.p_calendrier, base.p_calendrier_mois 
						WHERE 
							p_calendrier.mois = p_calendrier_mois.mois 
							AND (p_calendrier.date + interval '1 day' + interval '2 year' - interval '1 day')::date = '[PERIODE]'
					UNION ALL
						SELECT 
							'TOPERIODE_2D_LABEL', 
							CASE WHEN dernier_jour = '1' THEN p_calendrier_mois.texte_court ELSE p_calendrier.texte_court END
						FROM 
							base.p_calendrier, base.p_calendrier_mois 
						WHERE 
							p_calendrier.mois = p_calendrier_mois.mois 
							AND (p_calendrier.date + interval '1 day' + interval '2 year' - interval '1 day')::date = '[TOPERIODE]'
					
				]]></select>
				<FIELDS>
					<FIELD name="name" />
					<FIELD name="value" />
				</FIELDS>
			</SQL>
			<SQL>
				<select><![CDATA[
					
					SELECT 
						'NB_JOURS', 
						'[TOPERIODE]'::date - '[PERIODE]'::date + 1
					
				]]></select>
				<FIELDS>
					<FIELD name="name" />
					<FIELD name="value" />
				</FIELDS>
			</SQL>
		</QUERY>
	</QUERIES>
	<PRESENTATION>
		<VIEWLINKS>
			<VIEWLINK label="Saisie des seuils" shortLabel="Saisie des seuils" view="PMSI000124.XML" rowContext="false"  option="= SELECT.CDC" />
			<VIEWLINK label="Justificatif par code de Cancérologie soumise à seuil" shortLabel="Justificatif RSS" view="PMSI000047.XML" componentName="RSS_BASE_VIEWLINK">
				<ARG name="PERIODE" value="	if (COLUMN.NAME == 'NB' &amp;&amp; SELECT.TYPE_COMPARAISON == '2') {return VIEW.WPERIODE} 
											if (COLUMN.NAME == 'NB' &amp;&amp; SELECT.TYPE_COMPARAISON == 'S') {return SELECT.PERIODE}
											if (COLUMN.NAME == 'NB' &amp;&amp; SELECT.TYPE_COMPARAISON == '3') {return VIEW.WPERIODE}

											if (COLUMN.NAME == 'NBPAT' &amp;&amp; SELECT.TYPE_COMPARAISON == '2') {return VIEW.WPERIODE}
											if (COLUMN.NAME == 'NBPAT' &amp;&amp; SELECT.TYPE_COMPARAISON == 'S') {return SELECT.PERIODE}
											if (COLUMN.NAME == 'NBPAT' &amp;&amp; SELECT.TYPE_COMPARAISON == '3') {return VIEW.WPERIODE}


											if (COLUMN.NAME == 'NBD' &amp;&amp; SELECT.TYPE_COMPARAISON == '2') {return VIEW.WPERIODE_D}
											if (COLUMN.NAME == 'NBD' &amp;&amp; SELECT.TYPE_COMPARAISON == 'S') {return SELECT.PERIODE_D}
											if (COLUMN.NAME == 'NBD' &amp;&amp; SELECT.TYPE_COMPARAISON == '3') {return VIEW.WPERIODE_D}


											if (COLUMN.NAME == 'NB2D' &amp;&amp; SELECT.TYPE_COMPARAISON == '3') {return VIEW.WPERIODE_2D}
											if (COLUMN.NAME == 'NB2D' &amp;&amp; SELECT.TYPE_COMPARAISON == 'S') {return SELECT.PERIODE_D}


											if (COLUMN.NAME == 'NBPATD' &amp;&amp; SELECT.TYPE_COMPARAISON == '2') {return VIEW.WPERIODE_D}
											if (COLUMN.NAME == 'NBPATD' &amp;&amp; SELECT.TYPE_COMPARAISON == 'S') {return SELECT.PERIODE_D}
											if (COLUMN.NAME == 'NBPATD' &amp;&amp; SELECT.TYPE_COMPARAISON == '3') {return VIEW.WPERIODE_D}


											if (COLUMN.NAME == 'NBPAT2D' &amp;&amp; SELECT.TYPE_COMPARAISON == '3') {return VIEW.WPERIODE_2D}
											if (COLUMN.NAME == 'NBPAT2D' &amp;&amp; SELECT.TYPE_COMPARAISON == 'S') {return SELECT.PERIODE_2D}

											if (COLUMN.NAME == 'NBDA' ) {return VIEW.LAST_ANNEE_FORMAT_DEB}

											if (COLUMN.NAME == 'NBAD' ) {return VIEW.LAST_ANNEE_D_FORMAT_DEB}


											return SELECT.PERIODE" />

				<ARG name="TOPERIODE" value=" if (COLUMN.NAME == 'NB' &amp;&amp; SELECT.TYPE_COMPARAISON == '2') {return VIEW.WTOPERIODE}
											  if (COLUMN.NAME == 'NB' &amp;&amp; SELECT.TYPE_COMPARAISON == 'S') {return SELECT.TOPERIODE}
											  if (COLUMN.NAME == 'NB' &amp;&amp; SELECT.TYPE_COMPARAISON == '3') {return VIEW.WTOPERIODE}

											  if (COLUMN.NAME == 'NBPAT' &amp;&amp; SELECT.TYPE_COMPARAISON == '2') {return VIEW.WTOPERIODE}
											  if (COLUMN.NAME == 'NBPAT' &amp;&amp; SELECT.TYPE_COMPARAISON == 'S') {return SELECT.TOPERIODE}
											  if (COLUMN.NAME == 'NBPAT' &amp;&amp; SELECT.TYPE_COMPARAISON == '3') {return VIEW.WTOPERIODE}

											  if (COLUMN.NAME == 'NBD' &amp;&amp; SELECT.TYPE_COMPARAISON == '2') {return VIEW.WTOPERIODE_D}
											  if (COLUMN.NAME == 'NBD' &amp;&amp; SELECT.TYPE_COMPARAISON == 'S') {return SELECT.TOPERIODE_D}
											  if (COLUMN.NAME == 'NBD' &amp;&amp; SELECT.TYPE_COMPARAISON == '3') {return VIEW.WTOPERIODE_D}

											  if (COLUMN.NAME == 'NBPATD' &amp;&amp; SELECT.TYPE_COMPARAISON == '2') {return VIEW.WTOPERIODE_D}
											  if (COLUMN.NAME == 'NBPATD' &amp;&amp; SELECT.TYPE_COMPARAISON == 'S') {return SELECT.TOPERIODE_D}
											  if (COLUMN.NAME == 'NBPATD' &amp;&amp; SELECT.TYPE_COMPARAISON == '3') {return VIEW.WTOPERIODE_D}
											 
											  if (COLUMN.NAME == 'NB2D' &amp;&amp; SELECT.TYPE_COMPARAISON == '3') {return VIEW.WTOPERIODE_2D}
											  if (COLUMN.NAME == 'NB2D' &amp;&amp; SELECT.TYPE_COMPARAISON == 'S') {return SELECT.TOPERIODE_2D}


											  if (COLUMN.NAME == 'NBPAT2D' &amp;&amp; SELECT.TYPE_COMPARAISON == '3') {return VIEW.WTOPERIODE_2D}
											  if (COLUMN.NAME == 'NBPAT2D' &amp;&amp; SELECT.TYPE_COMPARAISON == 'S') {return SELECT.TOPERIODE_2D}

											  if (COLUMN.NAME == 'NBDA' ) {return VIEW.LAST_ANNEE_FORMAT_FIN}

											  if (COLUMN.NAME == 'NBAD' ) {return VIEW.LAST_ANNEE_D_FORMAT_FIN}


											 return SELECT.TOPERIODE" />
													
				<ARG name="CDC" value="return SELECT.CDC;" />
				<ARG name="SEUIL_CANCERO" value="if(ROW.COD1 !== '') {return 'II' + ROW.COD1;} return '-1'" />
			</VIEWLINK>
			<VIEWREF label="ADAPTATION DE LA METHODOLOGIE DES SEUILS A LA VERSION 2016 DE LA CLASSIFICATION DES GHM" shortLabel="Circulaire Décembre 2017" 
				url="http://www.ctisante.com/references/pmsi/actualisation_methodologie_calcul_seuils_Decembre_2017.pdf" rowContext="false" />
			<VIEWREF label="Méthode de calcul de seuils cancérologie 2022" shortLabel="Méthodologie 2022" 
				url="http://www.ctisante.com/references/pmsi/methodologie_cancero_2022.pdf" rowContext="false" />
		</VIEWLINKS>
		<ONGLET excelLabel="Cancérologie" label="Cancérologie">
			<DATAGRID title="" total="true" showOthers="false" key="COD" headerHeight="55" variableRowHeight="true" sortable="false" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'">
				<INSERT name="DATAGRID_MULTITAB_STYLES"/>
				<COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid">
				</COLUMN>
				<COLUMN dataField="COD" width="70" type="Char" visible="true" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text">
					<INSERT name="COLUMN_COD_MULTITAB_STYLES"/>
				</COLUMN>
				<COLUMN dataField="TXT" type="Char" minWidth="150" headerText="SELECT.GROUPBY_LABEL" headerTextCalc="true" textAlign="left" totalFunction="text" totalComplement="TOTAL" otherFunction="text" otherComplement="Autres">
				</COLUMN>
				<COLUMN dataField="NB2D" width="60" type="Number" outputFormat="#" headerText="'Séjours\n' + VIEW.PERIODE_2D_LABEL + '\n' + VIEW.TOPERIODE_2D_LABEL;" headerTextCalc="true" selectable="true" visibleCondition="SELECT.TYPE_COMPARAISON == '3'" textAlign="right" description="Nombre de séjours sur la période" />
				<COLUMN dataField="NBD" width="60" type="Number" outputFormat="#" headerText="if (SELECT.TYPE_COMPARAISON != 'S') {
									return 'Séjours\n' + VIEW.PERIODE_D_LABEL + '\n' + VIEW.TOPERIODE_D_LABEL;
								}
								else {
									return 'Séjours\n' + SELECT.PERIODE_D_LABEL + '\n' + SELECT.TOPERIODE_D_LABEL;
								}
								" headerTextCalc="true" selectable="true" visibleCondition="SELECT.TYPE_COMPARAISON != '-1'" textAlign="right" description="Nombre de séjours sur la période" />
				<COLUMN dataField="NB" width="60" type="Number" outputFormat="#"  headerText="'Séjours\n' + VIEW.PERIODE_LABEL_COURT + '\n' + VIEW.TOPERIODE_LABEL_COURT;" headerTextCalc="true" selectable="true" textAlign="right" description="Nombre de séjours sur la période d'analyse" />
				<COLUMN dataField="NBPAT2D" width="60" type="Number" outputFormat="#" headerText="'Patients\n' + VIEW.PERIODE_2D_LABEL + '\n' + VIEW.TOPERIODE_2D_LABEL;" headerTextCalc="true" selectable="true" visibleCondition="SELECT.TYPE_COMPARAISON == '3'" textAlign="right" description="Nombre de patients sur la période" />
				<COLUMN dataField="NBPATD" width="60" type="Number" outputFormat="#" headerText="if (SELECT.TYPE_COMPARAISON != 'S') {
									return 'Patients\n' + VIEW.PERIODE_D_LABEL + '\n' + VIEW.TOPERIODE_D_LABEL;
								}
								else {
									return 'Patients\n' + SELECT.PERIODE_D_LABEL + '\n' + SELECT.TOPERIODE_D_LABEL;
								}
								" headerTextCalc="true" selectable="true" visibleCondition="SELECT.TYPE_COMPARAISON != '-1'" textAlign="right" description="Nombre de patients sur la période" />
				<COLUMN dataField="NBPAT" width="60" type="Number" outputFormat="#" selectable="true" headerText="'Patients\n' + VIEW.PERIODE_LABEL_COURT + '\n' + VIEW.TOPERIODE_LABEL_COURT;" headerTextCalc="true" textAlign="right" largeSeparator="true" description="Nombre de patients sur la période d'analyse" />
				<COLUMN dataField="SEUIL_ETS" width="65" type="Number" outputFormat="#" headerTextCalc="true" headerText="'Seuil\nEtab.\n/période'" textAlign="right" description="Seuil annuel de l'établissement au prorata de la durée de la période d'analyse.&#13;Les pathologies sont exprimées en nombre d'interventions et les chimiothérapies en nombre de patients.&#13;Une pastille bleue indique que le seuil établissement défini est atteint, une pastille rouge que la valeur est inférieure au seuil." >
					<CELLSTYLE name="cellIndicator" value="circle, 5, left top, 0xFF0000" condition="ROW.LVL == '1' &amp;&amp; (((ROW.COD).substr(0,4) == '1' &amp;&amp; ROW.NB != '' &amp;&amp; ROW.SEUIL_ETS != '' &amp;&amp; ROW.NB &lt;  ROW.SEUIL_ETS) || ((ROW.COD).substr(0,4) != '1' &amp;&amp; ROW.NBPAT != '' &amp;&amp; ROW.SEUIL_ETS != '' &amp;&amp; ROW.NBPAT &lt;  ROW.SEUIL_ETS))" />
					<CELLSTYLE name="cellIndicator" value="circle, 5, left top, 0x75a0eb" condition="ROW.LVL == '1' &amp;&amp; (((ROW.COD).substr(0,4) == '1' &amp;&amp; ROW.NB != '' &amp;&amp; ROW.SEUIL_ETS != '' &amp;&amp; ROW.NB &gt;= ROW.SEUIL_ETS) || ((ROW.COD).substr(0,4) != '1' &amp;&amp; ROW.NBPAT != '' &amp;&amp; ROW.SEUIL_ETS != '' &amp;&amp; ROW.NBPAT &gt;= ROW.SEUIL_ETS))" />
				</COLUMN>
				<COLUMN dataField="SEUIL_ARS" width="65" type="Number" outputFormat="#" headerTextCalc="true" headerText="'Seuil\nARS\n/période'" textAlign="right" description="Seuil annuel de l'ARS au prorata de la durée de la période d'analyse.&#13;Les pathologies sont exprimées en nombre d'interventions et les chimiothérapies en nombre de patients.&#13;Une pastille bleue indique que le seuil ARS défini est atteint, une pastille rouge que la valeur est inférieure au seuil." >
					<CELLSTYLE name="cellIndicator" value="circle, 5, left top, 0xFF0000" condition="ROW.LVL == '1' &amp;&amp; (((ROW.COD).substr(0,4) == '1' &amp;&amp; ROW.NB != '' &amp;&amp; ROW.SEUIL_ARS != '' &amp;&amp; ROW.NB &lt;  ROW.SEUIL_ARS) || ((ROW.COD).substr(0,4) != '1' &amp;&amp; ROW.NBPAT != '' &amp;&amp; ROW.SEUIL_ARS != '' &amp;&amp; ROW.NBPAT &lt;  ROW.SEUIL_ARS))" />
					<CELLSTYLE name="cellIndicator" value="circle, 5, left top, 0x75a0eb" condition="ROW.LVL == '1' &amp;&amp; (((ROW.COD).substr(0,4) == '1' &amp;&amp; ROW.NB != '' &amp;&amp; ROW.SEUIL_ARS != '' &amp;&amp; ROW.NB &gt;= ROW.SEUIL_ARS) || ((ROW.COD).substr(0,4) != '1' &amp;&amp; ROW.NBPAT != '' &amp;&amp; ROW.SEUIL_ARS != '' &amp;&amp; ROW.NBPAT &gt;= ROW.SEUIL_ARS))" />
				</COLUMN>
				<COLUMN dataField="MOY_NAT" width="65" type="Number" outputFormat="#,0" headerTextCalc="true" headerText="'Moyenne\nNationale\n/période'" textAlign="right" description="Moyenne nationale annuelle au prorata de la durée de la période d'analyse.&#13;Une pastille bleue indique que la moyenne nationale est atteinte, une pastille rouge que la valeur est inférieure au seuil.&#13;Données nationales de 2014. Ne seront pas mises à jour car non publiées.">
					<CELLSTYLE name="cellIndicator" value="circle, 5, left top, 0xFF0000" condition="ROW.LVL == '1' &amp;&amp; (((ROW.COD).substr(0,4) == '1' &amp;&amp; ROW.NB != '' &amp;&amp; ROW.MOY_NAT != '' &amp;&amp; ROW.NB &lt;  ROW.MOY_NAT) || ((ROW.COD).substr(0,4) != '1' &amp;&amp; ROW.NBPAT != '' &amp;&amp; ROW.MOY_NAT != '' &amp;&amp; ROW.NBPAT &lt;  ROW.MOY_NAT))" />
					<CELLSTYLE name="cellIndicator" value="circle, 5, left top, 0x75a0eb" condition="ROW.LVL == '1' &amp;&amp; (((ROW.COD).substr(0,4) == '1' &amp;&amp; ROW.NB != '' &amp;&amp; ROW.MOY_NAT != '' &amp;&amp; ROW.NB &gt;= ROW.MOY_NAT) || ((ROW.COD).substr(0,4) != '1' &amp;&amp; ROW.NBPAT != '' &amp;&amp; ROW.MOY_NAT != '' &amp;&amp; ROW.NBPAT &gt;= ROW.MOY_NAT))" />
				</COLUMN>
				<COLUMN dataField="NBAD" width="60" type="Number" outputFormat="#" headerText="return 'Séjours \n' + [VIEW.LAST_ANNEE_D] + '\n' ;" headerTextCalc="true" selectable="true" visibleCondition="SELECT.TYPE_COMPARAISON != '-1'" textAlign="right" description="Nombre de séjours année précédente" />								
				<COLUMN dataField="NBDA" width="65" type="Number" outputFormat="#" headerText="return 'Séjours \n' + VIEW.LAST_ANNEE + '\n' + 'projection' ;" headerTextCalc="true" selectable="true" visibleCondition="SELECT.TYPE_COMPARAISON != '-1'" textAlign="right" description = "Nombre de séjours (Année courante) = ( NB séjours (Période courante) * NB séjours (Année précédente) ) / NB séjours (Période précédente) "/>
				<COLUMN dataField="SEUIL_AR" width="65" type="Number" outputFormat="#" headerTextCalc="true" headerText="'Seuil\nAnnuel\n'" textAlign="right" description="Seuil annuel de l'établissement saisis dans &quot;Saisie des seuils&quot;.&#13;Une pastille bleue indique que le seuil établissement défini est atteint, une pastille rouge que la valeur est inférieure au seuil." >
					<CELLSTYLE name="cellIndicator" value="circle, 5, left top, 0xFF0000" condition="ROW.LVL == '1' &amp;&amp; (((ROW.COD).substr(0,4) == '1' &amp;&amp; ROW.NB != '' &amp;&amp; ROW.SEUIL_AR != '' &amp;&amp; ROW.NBDA &lt;  ROW.SEUIL_AR) || ((ROW.COD).substr(0,4) != '1' &amp;&amp; ROW.NBPAT != '' &amp;&amp; ROW.SEUIL_AR != '' &amp;&amp; ROW.NBPAT &lt;  ROW.SEUIL_AR))"  />
					<CELLSTYLE name="cellIndicator" value="circle, 5, left top, 0x75a0eb"  condition="ROW.LVL == '1' &amp;&amp; (((ROW.COD).substr(0,4) == '1' &amp;&amp; ROW.NB != '' &amp;&amp; ROW.SEUIL_AR != '' &amp;&amp; ROW.NBDA &gt;= ROW.SEUIL_AR) || ((ROW.COD).substr(0,4) != '1' &amp;&amp; ROW.NBPAT != '' &amp;&amp; ROW.SEUIL_AR != '' &amp;&amp; ROW.NBPAT &gt;= ROW.SEUIL_AR))" />
				</COLUMN>
			</DATAGRID>
		</ONGLET>
	</PRESENTATION>
</VUE>
