<?xml version="1.0" encoding="ISO-8859-1"?>
<VUE name="PMSI000141" label="PMSI. Analyse sévérités" title="= 'Analyse sévérités par ' +  SELECT.GROUPBY_LABEL + ' (' + SELECT.PERIODE_LABEL + ' à ' + SELECT.TOPERIODE_LABEL + ')' " database="iCTI" swf="*CTI_view1" softCode="iCTI_pmsi" typeEts="" globals="PMSI_globals.XML" componentsFile="PMSI_components.XML" helpDokuWIkiDir="pmsi:sejours_analyse_globale:severites" helpDokuWIkiFile="pmsi000141"  helpFile="iCTI_PMSI_PMSI000141.HTML">
	<VIEWPROPERTIES componentName="PROPERTIES_RSS" />
	<VIEWPROPERTIES componentName="PROPERTIES_SELECT_TABTREE" />
	<VIEWPROPERTIES>
		<PROPERTY dataLink="VIEWPROPERTIES" nameField="name" valueField="value"/>
	</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" globalListProvider="DATE_DEBUT" />
			<FIELD name="TOPERIODE" label="à" UI="combo" tree="true" width="200" default="2014-12-31" globalListProvider="DATE_FIN" />
		</GROUP>
		<GROUP label="Regroupements">
			<FIELD name="GROUPBY" width="220" label="" UI="combo" default="GHM5" tree="true">
				<OPTION label="Options" data="" globalListProvider="RSS_GROUPBY_OPTIONS" />
			</FIELD>
			<FIELD name="GROUPBY_TAB" width="100" 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" />
			</FIELD>
		</GROUP>
		<GROUP label="">
			<FIELD name="GROUPBY_2" width="220" label="" UI="combo" default="-1" tree="true">
				<OPTION label="Pas de second niveau" data="-1" treeLevel="1" />
				<OPTION label="Options" data="" globalListProvider="RSS_GROUPBY_OPTIONS" />
			</FIELD>
		</GROUP>		
        <GROUP label="">
			<FIELD name="GROUPBY_3" width="220" label="" UI="combo" default="-1" tree="true">
				<OPTION label="Pas de troisième niveau" data="-1" treeLevel="1" />
				<OPTION label="Options" data="" globalListProvider="RSS_GROUPBY_OPTIONS" />
			</FIELD>
		</GROUP>
	</SELECTIONS>
	<SELECTIONS componentName="FILTRES_RSS_SOUSSELECTIONS" />
	<SELECTIONS componentName="FILTRES_RSS_SELECTIONS" />
	<QUERIES>
		<QUERY label="">
			<SQL optimizer="V_RSS_X">
				<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{
					
						SUM(CASE WHEN v_rss_1.ghm_id > 0 THEN v_rss_1.nb_rsa ELSE null END),
						
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'E' THEN v_rss_1.nb_rsa ELSE null END),
						100.0 * base.cti_division(SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'E' THEN v_rss_1.nb_rsa ELSE null END), SUM(CASE WHEN v_rss_1.ghm_id > 0 THEN v_rss_1.nb_rsa ELSE null END)),
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'J' THEN v_rss_1.nb_rsa ELSE null END),
						100.0 * base.cti_division(SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'J' THEN v_rss_1.nb_rsa ELSE null END), SUM(CASE WHEN v_rss_1.ghm_id > 0 THEN v_rss_1.nb_rsa ELSE null END)),
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'T' THEN v_rss_1.nb_rsa ELSE null END),
						100.0 * base.cti_division(SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'T' THEN v_rss_1.nb_rsa ELSE null END), SUM(CASE WHEN v_rss_1.ghm_id > 0 THEN v_rss_1.nb_rsa ELSE null END)),
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = '1' THEN v_rss_1.nb_rsa ELSE null END),
						100.0 * base.cti_division(SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = '1' THEN v_rss_1.nb_rsa ELSE null END), SUM(CASE WHEN v_rss_1.ghm_id > 0 THEN v_rss_1.nb_rsa ELSE null END)),
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = '2' THEN v_rss_1.nb_rsa ELSE null END),
						100.0 * base.cti_division(SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = '2' THEN v_rss_1.nb_rsa ELSE null END), SUM(CASE WHEN v_rss_1.ghm_id > 0 THEN v_rss_1.nb_rsa ELSE null END)),
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = '3' THEN v_rss_1.nb_rsa ELSE null END),
						100.0 * base.cti_division(SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = '3' THEN v_rss_1.nb_rsa ELSE null END), SUM(CASE WHEN v_rss_1.ghm_id > 0 THEN v_rss_1.nb_rsa ELSE null END)),
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = '4' THEN v_rss_1.nb_rsa ELSE null END),
						100.0 * base.cti_division(SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = '4' THEN v_rss_1.nb_rsa ELSE null END), SUM(CASE WHEN v_rss_1.ghm_id > 0 THEN v_rss_1.nb_rsa ELSE null END)),
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = ANY (array['A', 'B', 'C', 'D']) THEN v_rss_1.nb_rsa ELSE null END),
						100.0 * base.cti_division(SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = ANY (array['A', 'B', 'C', 'D']) THEN v_rss_1.nb_rsa ELSE null END), SUM(CASE WHEN v_rss_1.ghm_id > 0 THEN v_rss_1.nb_rsa ELSE null END)),
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'Z' AND cmd_code <> '28' THEN v_rss_1.nb_rsa ELSE null END),
						100.0 * base.cti_division(SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'Z' AND cmd_code <> '28' THEN v_rss_1.nb_rsa ELSE null END), SUM(CASE WHEN v_rss_1.ghm_id > 0 THEN v_rss_1.nb_rsa ELSE null END)),
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND severite_ghm_code != ALL (array['J', 'T', '1', '2', '3', '4', 'A', 'B', 'C', 'D', 'Z']) THEN v_rss_1.nb_rsa ELSE null END),
						100.0 * base.cti_division(SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND severite_ghm_code != ALL (array['J', 'T', '1', '2', '3', '4', 'A', 'B', 'C', 'D', 'Z']) THEN v_rss_1.nb_rsa ELSE null END), SUM(CASE WHEN v_rss_1.ghm_id > 0 THEN v_rss_1.nb_rsa ELSE null END)),
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code = '28' THEN v_rss_1.nb_rsa ELSE null END),
						100.0 * base.cti_division(SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code = '28' THEN v_rss_1.nb_rsa ELSE null END), SUM(CASE WHEN v_rss_1.ghm_id > 0 THEN v_rss_1.nb_rsa ELSE null END)),
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code = '28' THEN 1 ELSE null END),
						100.0 * base.cti_division(SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code = '28' THEN 1 ELSE null END), SUM(CASE WHEN v_rss_1.ghm_id > 0 THEN 1 ELSE null END)),
						
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND severite_ghm_code != ALL (array['A', 'B', 'C', 'D']) AND duree_sejour <= 2 THEN v_rss_1.nb_rsa ELSE null END),
						
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND duree_sejour <= 2 AND severite_ghm_code = 'J' THEN v_rss_1.nb_rsa ELSE null END),
						CASE WHEN SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND severite_ghm_code != ALL (array['A', 'B', 'C', 'D']) AND duree_sejour <= 2 THEN v_rss_1.nb_rsa ELSE null END) > 0 THEN
							SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND duree_sejour <= 2 AND severite_ghm_code = 'J' THEN v_rss_1.nb_rsa ELSE null END) / SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND severite_ghm_code != ALL (array['A', 'B', 'C', 'D']) AND duree_sejour <= 2 THEN v_rss_1.nb_rsa ELSE null END) * 100
						ELSE
							0
						END,
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND duree_sejour <= 2 AND severite_ghm_code = 'T' THEN v_rss_1.nb_rsa ELSE null END),
						CASE WHEN SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND severite_ghm_code != ALL (array['A', 'B', 'C', 'D']) AND duree_sejour <= 2 THEN v_rss_1.nb_rsa ELSE null END) > 0 THEN
							SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND duree_sejour <= 2 AND severite_ghm_code = 'T' THEN v_rss_1.nb_rsa ELSE null END) / SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND severite_ghm_code != ALL (array['A', 'B', 'C', 'D']) AND duree_sejour <= 2 THEN v_rss_1.nb_rsa ELSE null END) * 100
						ELSE
							0
						END,
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND duree_sejour <= 2 AND severite_ghm_code = '1' THEN v_rss_1.nb_rsa ELSE null END),
						CASE WHEN SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND severite_ghm_code != ALL (array['A', 'B', 'C', 'D']) AND duree_sejour <= 2 THEN v_rss_1.nb_rsa ELSE null END) > 0 THEN
							SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND duree_sejour <= 2 AND severite_ghm_code = '1' THEN v_rss_1.nb_rsa ELSE null END) / SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND severite_ghm_code != ALL (array['A', 'B', 'C', 'D']) AND duree_sejour <= 2 THEN v_rss_1.nb_rsa ELSE null END) * 100
						ELSE
							0
						END,
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND duree_sejour <= 2 AND severite_ghm_code != ALL (array['J', 'T', '1', 'A', 'B', 'C', 'D']) THEN v_rss_1.nb_rsa ELSE null END),
						
						
						
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND severite_ghm_code != ALL (array['A', 'B', 'C', 'D']) AND duree_sejour > 2 THEN v_rss_1.nb_rsa ELSE null END),
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND duree_sejour > 2 AND severite_ghm_code = '1' THEN v_rss_1.nb_rsa ELSE null END),
						CASE WHEN SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND severite_ghm_code != ALL (array['A', 'B', 'C', 'D']) AND duree_sejour > 2 THEN v_rss_1.nb_rsa ELSE null END) > 0 THEN
							SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND duree_sejour > 2 AND severite_ghm_code = '1' THEN v_rss_1.nb_rsa ELSE null END) / SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND severite_ghm_code != ALL (array['A', 'B', 'C', 'D']) AND duree_sejour > 2 THEN v_rss_1.nb_rsa ELSE null END) * 100
						ELSE
							0
						END,
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND duree_sejour > 2 AND severite_ghm_code = '2' THEN v_rss_1.nb_rsa ELSE null END),
						CASE WHEN SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND severite_ghm_code != ALL (array['A', 'B', 'C', 'D']) AND duree_sejour > 2 THEN v_rss_1.nb_rsa ELSE null END) > 0 THEN
							SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND duree_sejour > 2 AND severite_ghm_code = '2' THEN v_rss_1.nb_rsa ELSE null END) / SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND severite_ghm_code != ALL (array['A', 'B', 'C', 'D']) AND duree_sejour > 2 THEN v_rss_1.nb_rsa ELSE null END) * 100
						ELSE
							0
						END,
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND duree_sejour > 2 AND severite_ghm_code = '3' THEN v_rss_1.nb_rsa ELSE null END),
						CASE WHEN SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND severite_ghm_code != ALL (array['A', 'B', 'C', 'D']) AND duree_sejour > 2 THEN v_rss_1.nb_rsa ELSE null END) > 0 THEN
							SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND duree_sejour > 2 AND severite_ghm_code = '3' THEN v_rss_1.nb_rsa ELSE null END) / SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND severite_ghm_code != ALL (array['A', 'B', 'C', 'D']) AND duree_sejour > 2 THEN v_rss_1.nb_rsa ELSE null END) * 100
						ELSE
							0
						END,
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND duree_sejour > 2 AND severite_ghm_code = '4' THEN v_rss_1.nb_rsa ELSE null END),
						CASE WHEN SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND severite_ghm_code != ALL (array['A', 'B', 'C', 'D']) AND duree_sejour > 2 THEN v_rss_1.nb_rsa ELSE null END) > 0 THEN
							SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND duree_sejour > 2 AND severite_ghm_code = '4' THEN v_rss_1.nb_rsa ELSE null END) / SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND severite_ghm_code != ALL (array['A', 'B', 'C', 'D']) AND duree_sejour > 2 THEN v_rss_1.nb_rsa ELSE null END) * 100
						ELSE
							0
						END,
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code <> '28' AND duree_sejour > 2 AND severite_ghm_code != ALL (array['1', '2', '3', '4', 'A', 'B', 'C', 'D']) THEN v_rss_1.nb_rsa ELSE null END),

						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND cmd_code = '28' THEN v_rss_1.nb_rsa ELSE null END),
						
						
						
						
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = ANY (array['A', 'B', 'C', 'D']) THEN v_rss_1.nb_rsa ELSE null END),
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'A' THEN v_rss_1.nb_rsa ELSE null END),
						CASE WHEN SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = ANY (array['A', 'B', 'C', 'D']) THEN v_rss_1.nb_rsa ELSE null END) > 0 THEN
							SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'A' THEN v_rss_1.nb_rsa ELSE null END) / SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = ANY (array['A', 'B', 'C', 'D']) THEN v_rss_1.nb_rsa ELSE null END) * 100
						ELSE
							0
						END,
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'B' THEN v_rss_1.nb_rsa ELSE null END),
						CASE WHEN SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = ANY (array['A', 'B', 'C', 'D']) THEN v_rss_1.nb_rsa ELSE null END) > 0 THEN
							SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'B' THEN v_rss_1.nb_rsa ELSE null END) / SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = ANY (array['A', 'B', 'C', 'D']) THEN v_rss_1.nb_rsa ELSE null END) * 100
						ELSE
							0
						END,
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'C' THEN v_rss_1.nb_rsa ELSE null END),
						CASE WHEN SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = ANY (array['A', 'B', 'C', 'D']) THEN v_rss_1.nb_rsa ELSE null END) > 0 THEN
							SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'C' THEN v_rss_1.nb_rsa ELSE null END) / SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = ANY (array['A', 'B', 'C', 'D']) THEN v_rss_1.nb_rsa ELSE null END) * 100
						ELSE
							0
						END,
						SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'D' THEN v_rss_1.nb_rsa ELSE null END),
						CASE WHEN SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = ANY (array['A', 'B', 'C', 'D']) THEN v_rss_1.nb_rsa ELSE null END) > 0 THEN
							SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'D' THEN v_rss_1.nb_rsa ELSE null END) / SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = ANY (array['A', 'B', 'C', 'D']) THEN v_rss_1.nb_rsa ELSE null END) * 100
						ELSE
							0
						END,
						100.0 * base.cti_division(sum(ghm_nat.nb_sev_j_prive) + sum(ghm_nat.nb_sev_t_prive), sum(ghm_nat.nb_rsa_prive)),
						100.0 * base.cti_division(sum(ghm_nat.nb_sev_j_public) + sum(ghm_nat.nb_sev_t_public), sum(ghm_nat.nb_rsa_public)),
						100.0 * base.cti_division(sum(ghm_nat.nb_sev_1_prive) + sum(ghm_nat.nb_sev_a_prive), sum(ghm_nat.nb_rsa_prive)),
						100.0 * base.cti_division(sum(ghm_nat.nb_sev_1_public) + sum(ghm_nat.nb_sev_a_public), sum(ghm_nat.nb_rsa_public)),
						100.0 * base.cti_division(sum(ghm_nat.nb_sev_2_prive) + sum(ghm_nat.nb_sev_b_prive), sum(ghm_nat.nb_rsa_prive)),
						100.0 * base.cti_division(sum(ghm_nat.nb_sev_2_public) + sum(ghm_nat.nb_sev_b_public), sum(ghm_nat.nb_rsa_public)),
						100.0 * base.cti_division(sum(ghm_nat.nb_sev_3_prive) + sum(ghm_nat.nb_sev_c_prive), sum(ghm_nat.nb_rsa_prive)),
						100.0 * base.cti_division(sum(ghm_nat.nb_sev_3_public) + sum(ghm_nat.nb_sev_c_public), sum(ghm_nat.nb_rsa_public)),
						100.0 * base.cti_division(sum(ghm_nat.nb_sev_4_prive) + sum(ghm_nat.nb_sev_d_prive), sum(ghm_nat.nb_rsa_prive)),
						100.0 * base.cti_division(sum(ghm_nat.nb_sev_4_public) + sum(ghm_nat.nb_sev_d_public), sum(ghm_nat.nb_rsa_public)),
						100.0 * base.cti_division(sum(ghm_nat.nb_sev_zs_prive), sum(ghm_nat.nb_rsa_prive)),
						100.0 * base.cti_division(sum(ghm_nat.nb_sev_zs_public), sum(ghm_nat.nb_rsa_public)),
						100.0 * base.cti_division(sum(ghm_nat.nb_sev_e_prive), sum(ghm_nat.nb_rsa_prive)),
						100.0 * base.cti_division(sum(ghm_nat.nb_sev_e_public), sum(ghm_nat.nb_rsa_public)),
						100.0 * base.cti_division(sum(ghm_nat.nb_seances_prive), sum(ghm_nat.nb_rsa_prive)),
						100.0 * base.cti_division(sum(ghm_nat.nb_seances_public), sum(ghm_nat.nb_rsa_public)) ,
						CASE WHEN SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = ANY (array['A', 'B', 'C', 'D']) THEN v_rss_1.nb_rsa ELSE null END) > 0 THEN
							SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'A' THEN v_rss_1.nb_rsa ELSE null END) / SUM(CASE WHEN v_rss_1.ghm_id > 0  THEN v_rss_1.nb_rsa ELSE null END) * 100
						ELSE
							0
						END,
						CASE WHEN SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = ANY (array['A', 'B', 'C', 'D']) THEN v_rss_1.nb_rsa ELSE null END) > 0 THEN
							SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'B' THEN v_rss_1.nb_rsa ELSE null END) / SUM(CASE WHEN v_rss_1.ghm_id > 0  THEN v_rss_1.nb_rsa ELSE null END) * 100
						ELSE
							0
						END,
						CASE WHEN SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = ANY (array['A', 'B', 'C', 'D']) THEN v_rss_1.nb_rsa ELSE null END) > 0 THEN
							SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'C' THEN v_rss_1.nb_rsa ELSE null END) / SUM(CASE WHEN v_rss_1.ghm_id > 0  THEN v_rss_1.nb_rsa ELSE null END) * 100
						ELSE
							0
						END,
						CASE WHEN SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = ANY (array['A', 'B', 'C', 'D']) THEN v_rss_1.nb_rsa ELSE null END) > 0 THEN
							SUM(CASE WHEN v_rss_1.ghm_id > 0 AND severite_ghm_code = 'D' THEN v_rss_1.nb_rsa ELSE null END) / SUM(CASE WHEN v_rss_1.ghm_id > 0  THEN v_rss_1.nb_rsa ELSE null END) * 100
						ELSE
							0
						END
					}	
					FROM 
						 #V_RSS_X#
                         
					WHERE date_sortie >= '[PERIODE]'	AND date_sortie <='[TOPERIODE]'
						[VIEW.FILTRE_RSS_SELECT]
					
				]]></select>
				<FIELDS>
					<INSERT name="CTISELECT_TREE_FIELDS"/>
					<FIELD name="SEJ" />
					<FIELD name="SEJTE" />
					<FIELD name="SEJTEP" />
					<FIELD name="SEJTJ" />
					<FIELD name="SEJTJP" />
					<FIELD name="SEJTT" />
					<FIELD name="SEJTTP" />
					<FIELD name="SEJT1" />
					<FIELD name="SEJT1P" />
					<FIELD name="SEJT2" />
					<FIELD name="SEJT2P" />
					<FIELD name="SEJT3" />
					<FIELD name="SEJT3P" />
					<FIELD name="SEJT4" />
					<FIELD name="SEJT4P" />
					<FIELD name="SEJTM" />
					<FIELD name="SEJTMP" />
					<FIELD name="SEJTZ" />
					<FIELD name="SEJTZP" />
					<FIELD name="SEJTX" />
					<FIELD name="SEJTXP" />
					<FIELD name="SEJTZS" />
					<FIELD name="SEJTZSP" />
					<FIELD name="SEJT28" />
					<FIELD name="SEJT28P" />
					<FIELD name="SEJ2" />
					<FIELD name="SEJ2J" />
					<FIELD name="SEJ2JP" />
					<FIELD name="SEJ2T" />
					<FIELD name="SEJ2TP" />
					<FIELD name="SEJ21" />
					<FIELD name="SEJ21P" />
					<FIELD name="SEJ2X" />
					<FIELD name="SEJX" />
					<FIELD name="SEJX1" />
					<FIELD name="SEJX1P" />
					<FIELD name="SEJX2" />
					<FIELD name="SEJX2P" />
					<FIELD name="SEJX3" />
					<FIELD name="SEJX3P" />
					<FIELD name="SEJX4" />
					<FIELD name="SEJX4P" />
					<FIELD name="SEJXX" />
					<FIELD name="SEJS" />
					<FIELD name="SEJM" />
					<FIELD name="SEJMA" />
					<FIELD name="SEJMAP" />
					<FIELD name="SEJMB" />
					<FIELD name="SEJMBP" />
					<FIELD name="SEJMC" />
					<FIELD name="SEJMCP" />
					<FIELD name="SEJMD" />
					<FIELD name="SEJMDP" />
					<FIELD name="TX_SEV_JT_PRIVE" />
					<FIELD name="TX_SEV_JT_PUBLIC" />
					<FIELD name="TX_SEV_1A_PRIVE" />
					<FIELD name="TX_SEV_1A_PUBLIC" />
					<FIELD name="TX_SEV_2B_PRIVE" />
					<FIELD name="TX_SEV_2B_PUBLIC" />
					<FIELD name="TX_SEV_3C_PRIVE" />
					<FIELD name="TX_SEV_3C_PUBLIC" />
					<FIELD name="TX_SEV_4D_PRIVE" />
					<FIELD name="TX_SEV_4D_PUBLIC" />
					<FIELD name="TX_SEV_ZS_PRIVE" />
					<FIELD name="TX_SEV_ZS_PUBLIC" />
					<FIELD name="TX_SEV_E_PRIVE" />
					<FIELD name="TX_SEV_E_PUBLIC" />
					<FIELD name="TX_SEANCES_PRIVE" />
					<FIELD name="TX_SEANCES_PUBLIC" />
					<FIELD name="SEJMAP2" />
					<FIELD name="SEJMBP2" />
					<FIELD name="SEJMCP2" />
					<FIELD name="SEJMDP2" />
				</FIELDS>
			</SQL>
		</QUERY>
		<QUERY type="propertiesLink" name="VIEWPROPERTIES" forSelections="false">
			<SQL>
				<select><![CDATA[
						SELECT 'X_PERIODE_D', greatest(to_date(to_char('[PERIODE]'::date - INTERVAL  '1 year', 'YYYY-MM-DD'), 'YYYY-MM-DD'), (SELECT min(date_debut) FROM pmsi.p_imports))::text
					UNION ALL
						SELECT 'X_TOPERIODE_D', greatest(to_date(to_char('[TOPERIODE]'::date - INTERVAL  '1 year', 'YYYY-MM-DD'), 'YYYY-MM-DD'), (SELECT min(date_debut) FROM pmsi.p_imports))::text
					UNION ALL
						SELECT 'X_PERIODE', greatest(to_date(to_char('[PERIODE]'::date - INTERVAL  '3 year', 'YYYY-MM-DD'), 'YYYY-MM-DD'), (SELECT min(date_debut) FROM pmsi.p_imports))::text
					UNION ALL
						SELECT 'BASE_NAT_YEAR', extract('year' FROM max(date_reference))::text FROM pmsi.t_indicateurs_atih where periode_type <> 'NOW'
				]]></select>
				<FIELDS>
					<FIELD name="name"/>
					<FIELD name="value"/>
				</FIELDS>
			</SQL>
		</QUERY>
	</QUERIES>
	<PRESENTATION>
		<VIEWLINKS>
			<VIEWLINK label="Comparatif" shortLabel="Comparatif" view="PMSI000226.XML" enabled="true" rowContext="false" buttonType="COMPARATIF">
				<ARG name="PERIODE_D" value="return VIEW.X_PERIODE_D;" />
				<ARG name="TOPERIODE_D" value="return VIEW.X_TOPERIODE_D;" />
				<ARG name="DATA1" value="'SVJ0'" />
				<ARG name="DATA2" value="'SVT0'" />
				<ARG name="DATA3" value="'SVZ0'" />
			</VIEWLINK>
			<VIEWLINK label="Evolution" shortLabel="Evolution" view="PMSI000176.XML" enabled="true" rowContext="false" componentName="PERIODICITE_VIEWLINK" buttonType="EVOLUTION">
				<ARG name="DATA" value="'SVT0'" />
			</VIEWLINK>
			<VIEWLINK label="Analyse croisée" shortLabel="Analyse croisée" view="PMSI000224.XML" enabled="true" rowContext="false" buttonType="ANALYSE_CROISEE">
				<ARG name="ALIAS_PERIODE" value="'-1'" />
                <ARG name="PERIODE" value="return VIEW.X_PERIODE;" />
				<ARG name="DATA" value="'SVT0'" />
				<ARG name="COLUMNBY" value="'MSOR'" />
				<ARG name="GROUPBY" value="'ASOR'" />
				<ARG name="GROUPBY_2" value="if (SELECT.GROUPBY == 'ASOR') {return 'GHM';} else {return SELECT.GROUPBY;}" />
				<ARG name="GROUPBY_TAB" value="TAB" />
				<ARG name="COLUMNBYCOUNT" value="'12'" />
			</VIEWLINK>
			<VIEWLINK label="Liste des RSS" shortLabel="Liste RSS" view="PMSI000005.XML" componentName="RSS_BASE_VIEWLINK" />
		</VIEWLINKS>
		<ONGLET excelLabel="Sévérités" label="Sévérités" multiTab="true" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
			<CHART title="Décomposition des plus fréquents (Nb Séjours)" type="columnChart" subType="stacked" maxItems="10" maxItemsSortOn="SEJ" sortField="SEJ" sortSeq="D" visibleCondition="SELECT.GROUPBY != 'AMSOR' &amp;&amp; SELECT.GROUPBY != 'MSOR' &amp;&amp; SELECT.GROUPBY != 'ATRIMSOR'" condition="ROW.LVL == '1'">
				<CATEGORY field="COD" type="Char" />
				<SERIE field="SEJTJ" displayName="Sévérité J" />
				<SERIE field="SEJTT" displayName="Sévérité T" />
				<SERIE field="SEJT1" displayName="Sévérité 1" />
				<SERIE field="SEJT2" displayName="Sévérité 2" />
				<SERIE field="SEJT3" displayName="Sévérité 3" />
				<SERIE field="SEJT4" displayName="Sévérité 4" />
				<SERIE field="SEJTM" displayName="Sévérités ABCD" />
				<SERIE field="SEJTZ" displayName="Sévérité Z (hors séances)" />
				<SERIE field="SEJTX" displayName="Autres sévérités" />
				<SERIE field="SEJTZS" displayName="Séances" />
			</CHART>
			<CHART title="Evolution" type="lineChart" maxItems="36" maxItemsSortOn="COD" maxItemsSortSeq="D" sortField="COD" sortSeq="A" visibleCondition="SELECT.GROUPBY == 'AMSOR' || SELECT.GROUPBY == 'MSOR' || SELECT.GROUPBY == 'ATRIMSOR'" condition="ROW.LVL == '1'">
				<CATEGORY field="COD" type="Char" />
				<SERIE field="SEJTJ" displayName="Sévérité J" />
				<SERIE field="SEJTT" displayName="Sévérité T" />
				<SERIE field="SEJT1" displayName="Sévérité 1" />
				<SERIE field="SEJT2" displayName="Sévérité 2" />
				<SERIE field="SEJT3" displayName="Sévérité 3" />
				<SERIE field="SEJT4" displayName="Sévérité 4" />
				<SERIE field="SEJTM" displayName="Sévérités ABCD" />
				<SERIE field="SEJTZ" displayName="Sévérité Z (hors séances)" />
				<SERIE field="SEJTX" displayName="Autres sévérités" />
				<SERIE field="SEJTZS" displayName="Séances" />
			</CHART>
			<!-- Si vous aimez les choses artistiques, décommentez ce graphique ;-)
			<CHART title="Répartition" type="areaChart" subType="stacked" form="curve" maxItems="10" maxItemsSortOn="SEJ" maxItemsSortSeq="D" sortField="SEJ" sortSeq="D" condition="ROW.LVL == '1'">
				<CATEGORY field="COD" type="Char" />
				<SERIE field="SEJTJP" displayName="% Sev J" />
				<SERIE field="SEJTTP" displayName="% Sev T" />
				<SERIE field="SEJT1P" displayName="% Sev 1" />
				<SERIE field="SEJT2P" displayName="% Sev 2" />
				<SERIE field="SEJT3P" displayName="% Sev 3" />
				<SERIE field="SEJT4P" displayName="% Sev 4" />
				<SERIE field="SEJTMP" displayName="% Sev ABCD" />
				<SERIE field="SEJTZP" displayName="% Sev Z" />
				<SERIE field="SEJTXP" displayName="% Sev Autres" />
				<SERIE field="SEJTZSP" displayName="% Séances" />
			</CHART>
			-->

			<DATAGRID title="" total="true" showOthers="true" key="COD" keySeq="A" headerHeight="54" variableRowHeight="true" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'"
				sortable="= SELECT.GROUPBY_3 == '-1' &amp;&amp; (SELECT.GROUPBY_2 == '-1' || SELECT.GROUPBY_TAB == 'TAB')">
				<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="SEJ" width="90" type="Number" outputFormat="#" headerText="Séjours PMSI" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Nombre de séjours avec GHM. Pour les séjours de la CMD 28, nombre de séances" />
				<COLUMNx dataField="SEJ2" width="70" type="Number" outputFormat="#" headerText="Dont &lt;= 2 nuits" textAlign="right" totalFunction="sum" otherFunction="sum" />
				<COLUMNx dataField="SEJX" width="70" type="Number" outputFormat="#" headerText="Dont &gt; 2 nuits" textAlign="right" totalFunction="sum" otherFunction="sum" />
				<COLUMNx dataField="SEJS" width="70" type="Number" outputFormat="#" headerText="Dont Séances" textAlign="right" largeSeparator="true" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="SEJTJ" width="70" type="Number" outputFormat="#" headerText="Sévérité J" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="Nombre de séjours en sévérité J" />
				<COLUMN dataField="SEJTJP" width="40" type="Number" outputFormat="#%" headerText="% Sév J" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="Pourcentage de séjours en sévérité J"/>
				<COLUMN dataField="SEJTT" width="70" type="Number" outputFormat="#" headerText="Sévérité T" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Nombre de séjours en sévérité T" />
				<COLUMN dataField="SEJTTP" width="40" type="Number" outputFormat="#%" headerText="% Sév T" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="Pourcentage de séjours en sévérité T"/>
				<COLUMN dataField="SEJT1" width="70" type="Number" outputFormat="#" headerText="Sévérité 1" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Nombre de séjours en sévérité 1" />
				<COLUMN dataField="SEJT1P" width="40" type="Number" outputFormat="#%" headerText="% Sév 1" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="Pourcentage de séjours en sévérité 1"/>
				<COLUMN dataField="SEJT2" width="70" type="Number" outputFormat="#" headerText="Sévérité 2" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Nombre de séjours en sévérité 2" />
				<COLUMN dataField="SEJT2P" width="40" type="Number" outputFormat="#%" headerText="% Sév 2" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="Pourcentage de séjours en sévérité 2"/>
				<COLUMN dataField="SEJT3" width="70" type="Number" outputFormat="#" headerText="Sévérité 3" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Nombre de séjours en sévérité 3" />
				<COLUMN dataField="SEJT3P" width="40" type="Number" outputFormat="#%" headerText="% Sév 3" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="Pourcentage de séjours en sévérité 3"/>
				<COLUMN dataField="SEJT4" width="70" type="Number" outputFormat="#" headerText="Sévérité 4" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Nombre de séjours en sévérité 4" />
				<COLUMN dataField="SEJT4P" width="40" type="Number" outputFormat="#%" headerText="% Sév 4" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="Pourcentage de séjours en sévérité 4"/>
				<COLUMN dataField="SEJTM" width="70" type="Number" outputFormat="#" headerText="Sévérités ABCD" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Nombre de séjours en sévérité A, B, C ou D" />
				<COLUMN dataField="SEJTMP" width="40" type="Number" outputFormat="#%" headerText="% Sév ABCD" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="Pourcentage de séjours en sévérité A, B, C ou D" />
				<COLUMN dataField="SEJTZ" width="70" type="Number" outputFormat="#" headerText="Sévérité Z (hors séances)" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Nombre de séjours en sévérité Z, hors séances" />
				<COLUMN dataField="SEJTZP" width="40" type="Number" outputFormat="#%" headerText="% Sév Z" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="Pourcentage de séjours en sévérité Z, hors séances" />
				<COLUMN dataField="SEJTX" width="70" type="Number" outputFormat="#" headerText="Autres sévérités" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Nombre de séjours hors séances avec une autre sévérité que J, T, 1, 2, 3, 4, A, B, C, D ou Z" />
				<COLUMN dataField="SEJTXP" width="40" type="Number" outputFormat="#%" headerText="% Sév Aut" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="Pourcentage de séjours hors séances avec une autre sévérité que J, T, 1, 2, 3, 4, A, B, C, D ou Z" />
				<COLUMN dataField="SEJTZS" width="70" type="Number" outputFormat="#" headerText="Séances" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Nombre de séances" />
				<COLUMN dataField="SEJTZSP" width="40" type="Number" outputFormat="#%" headerText="% Séan" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="Pourcentage du nombre de séances" />
			</DATAGRID>
		</ONGLET>
		<ONGLET excelLabel="Durée inf ou égale à 2 nuits (sauf ABCD)" label="Inf. 2 nuits" multiTab="true" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
			<INPUTSELECTION condition="ROW.SEJ2 != 0" />
			<CHART title="Décomposition des plus fréquents (Nb Séjours &lt;= 2 nuits)" type="columnChart" subType="stacked" maxItems="10" maxItemsSortOn="SEJ2" sortField="SEJ2" sortSeq="D" visibleCondition="SELECT.GROUPBY != 'AMSOR' &amp;&amp; SELECT.GROUPBY != 'MSOR' &amp;&amp; SELECT.GROUPBY != 'ATRIMSOR'" condition="ROW.LVL == '1'">
				<CATEGORY field="COD" type="Char" />
				<SERIE field="SEJ2J" displayName="Sévérité J" />
				<SERIE field="SEJ2T" displayName="Sévérité T" />
				<SERIE field="SEJ21" displayName="Sévérité 1" />
				<SERIE field="SEJ2X" displayName="Sévérité Z et autres" />
			</CHART>
			<CHART title="Evolution" type="lineChart" maxItems="36" maxItemsSortOn="COD" maxItemsSortSeq="D" sortField="COD" sortSeq="A" visibleCondition="SELECT.GROUPBY == 'AMSOR' || SELECT.GROUPBY == 'MSOR' || SELECT.GROUPBY == 'ATRIMSOR'" condition="ROW.LVL == '1'">
				<CATEGORY field="COD" type="Char" />
				<SERIE field="SEJ2J" displayName="Sévérité J" />
				<SERIE field="SEJ2T" displayName="Sévérité T" />
				<SERIE field="SEJ21" displayName="Sévérité 1" />
				<SERIE field="SEJ2X" displayName="Sévérité Z et autres" />
			</CHART>
			<DATAGRID title="" total="true" showOthers="true" key="COD" keySeq="A" headerHeight="54" variableRowHeight="true" 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="SEJ2" width="70" type="Number" outputFormat="#" headerText="Séjours &lt;= 2 nuits" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Séjours avec GHM hors sévérités A, B, C, D et hors CMD 28 (séances) dont la durée de séjour est de 2 nuits ou moins" />
				<COLUMN dataField="SEJ2J" width="70" type="Number" outputFormat="#" headerText="Sévérité J" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Séjours de 2 nuits ou moins hors CMD 28 (séances) avec GHM de sévérité J" />
				<COLUMN dataField="SEJ2JP" width="70" type="Number" outputFormat="#%" headerText="% Sévérité J" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Pourcentage de séjours de 2 nuits ou moins hors CMD 28 (séances) avec GHM en sévérité J" />
				<COLUMN dataField="SEJ2T" width="70" type="Number" outputFormat="#" headerText="Sévérité T" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Séjours de 2 nuits ou moins hors CMD 28 (séances) avec GHM de sévérité T" />
				<COLUMN dataField="SEJ2TP" width="70" type="Number" outputFormat="#%" headerText="% Sévérité T" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Pourcentage de séjours de 2 nuits ou moins hors CMD 28 (séances) avec GHM en sévérité T" />
				<COLUMN dataField="SEJ21" width="70" type="Number" outputFormat="#" headerText="Sévérité 1" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Séjours de 2 nuits ou moins hors CMD 28 (séances) avec GHM de sévérité 1" />
				<COLUMN dataField="SEJ21P" width="70" type="Number" outputFormat="#%" headerText="% Sévérité 1" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Pourcentage de séjours de 2 nuits ou moins hors CMD 28 (séances) avec GHM en sévérité 1" />
				<COLUMN dataField="SEJ2X" width="70" type="Number" outputFormat="#" headerText="Sévérité Z et autres" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Séjours de 2 nuits ou moins hors CMD 28 (séances) avec GHM de sévérité différente de 1, A, B, C, D, J ou T" />
			</DATAGRID>
		</ONGLET>
		<ONGLET excelLabel="Durée sup à 2 nuits (sauf ABCD)" label="Sup. 2 nuits" multiTab="true" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
			<INPUTSELECTION condition="ROW.SEJX != 0" />
			<CHART title="Décomposition des plus fréquents (Nb Séjours &gt; 2 nuits)" type="columnChart" subType="stacked" maxItems="10" maxItemsSortOn="SEJX" sortField="SEJX" sortSeq="D" visibleCondition="SELECT.GROUPBY != 'AMSOR' &amp;&amp; SELECT.GROUPBY != 'MSOR' &amp;&amp; SELECT.GROUPBY != 'ATRIMSOR'" condition="ROW.LVL == '1'">
				<CATEGORY field="COD" type="Char" />
				<SERIE field="SEJX1" displayName="Sévérité 1" />
				<SERIE field="SEJX2" displayName="Sévérité 2" />
				<SERIE field="SEJX3" displayName="Sévérité 3" />
				<SERIE field="SEJX4" displayName="Sévérité 4" />
				<SERIE field="SEJXX" displayName="Sévérité Z et autres" />
			</CHART>
			<CHART title="Evolution" type="lineChart" maxItems="36" maxItemsSortOn="COD" maxItemsSortSeq="D" sortField="COD" sortSeq="A" visibleCondition="SELECT.GROUPBY == 'AMSOR' || SELECT.GROUPBY == 'MSOR' || SELECT.GROUPBY == 'ATRIMSOR'" condition="ROW.LVL == '1'">
				<CATEGORY field="COD" type="Char" />
				<SERIE field="SEJX1" displayName="Sévérité 1" />
				<SERIE field="SEJX2" displayName="Sévérité 2" />
				<SERIE field="SEJX3" displayName="Sévérité 3" />
				<SERIE field="SEJX4" displayName="Sévérité 4" />
				<SERIE field="SEJXX" displayName="Sévérité Z et autres" />
			</CHART>
			<DATAGRID title="" total="true" showOthers="true" key="COD" keySeq="A" headerHeight="54" variableRowHeight="true" 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="SEJX" width="70" type="Number" outputFormat="#" headerText="Séjours &gt; 2 nuits" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Séjours avec GHM hors sévérités A, B, C, D et hors CMD 28 (séances) dont la durée de séjour est de plus de 2 nuits" />
				<COLUMN dataField="SEJX1" width="70" type="Number" outputFormat="#" headerText="Sévérité 1" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Séjours de plus de 2 nuits hors CMD 28 (séances) avec GHM de sévérité 1" />
				<COLUMN dataField="SEJX1P" width="70" type="Number" outputFormat="#%" headerText="% Sévérité 1" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Pourcentage de séjours de plus de 2 nuits hors CMD 28 (séances) avec GHM en sévérité 1" />
				<COLUMN dataField="SEJX2" width="70" type="Number" outputFormat="#" headerText="Sévérité 2" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Séjours de plus de 2 nuits hors CMD 28 (séances) avec GHM de sévérité 2" />
				<COLUMN dataField="SEJX2P" width="70" type="Number" outputFormat="#%" headerText="% Sévérité 2" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Pourcentage de séjours de plus de 2 nuits hors CMD 28 (séances) avec GHM en sévérité 2" />
				<COLUMN dataField="SEJX3" width="70" type="Number" outputFormat="#" headerText="Sévérité 3" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Séjours de plus de 2 nuits hors CMD 28 (séances) avec GHM de sévérité 3" />
				<COLUMN dataField="SEJX3P" width="70" type="Number" outputFormat="#%" headerText="% Sévérité 3" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Pourcentage de séjours de plus de 2 nuits hors CMD 28 (séances) avec GHM en sévérité 3" />
				<COLUMN dataField="SEJX4" width="70" type="Number" outputFormat="#" headerText="Sévérité 4" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Séjours de plus de 2 nuits hors CMD 28 (séances) avec GHM de sévérité 4" />
				<COLUMN dataField="SEJX4P" width="70" type="Number" outputFormat="#%" headerText="% Sévérité 4" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Pourcentage de séjours de plus de 2 nuits hors CMD 28 (séances) avec GHM en sévérité 4" />
				<COLUMN dataField="SEJXX" width="70" type="Number" outputFormat="#" headerText="Sévérité Z et autres" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Séjours de plus de 2 nuits hors CMD 28 (séances) avec GHM de sévérité différente de 1, 2, 3, 4, A, B, C ou D"/>
			</DATAGRID>
		</ONGLET>
		<ONGLET excelLabel="Sévérités ABCD" label="Sévérités ABCD">
			<INPUTSELECTION condition="ROW.SEJM != 0" />
			<CHART title="Décomposition des plus fréquents (Nb Séjours &gt; 2 nuits)" type="columnChart" subType="stacked" maxItems="10" maxItemsSortOn="SEJM" sortField="SEJM" sortSeq="D" visibleCondition="SELECT.GROUPBY != 'AMSOR' &amp;&amp; SELECT.GROUPBY != 'MSOR' &amp;&amp; SELECT.GROUPBY != 'ATRIMSOR'" condition="ROW.LVL == '1'">
				<CATEGORY field="COD" type="Char" />
				<SERIE field="SEJMA" displayName="Sévérité A" />
				<SERIE field="SEJMB" displayName="Sévérité B" />
				<SERIE field="SEJMC" displayName="Sévérité C" />
				<SERIE field="SEJMD" displayName="Sévérité D" />
			</CHART>
			<CHART title="Evolution" type="lineChart" maxItems="36" maxItemsSortOn="COD" maxItemsSortSeq="D" sortField="COD" sortSeq="A" visibleCondition="SELECT.GROUPBY == 'AMSOR' || SELECT.GROUPBY == 'MSOR' || SELECT.GROUPBY == 'ATRIMSOR'" condition="ROW.LVL == '1'">
				<CATEGORY field="COD" type="Char" />
				<SERIE field="SEJMA" displayName="Sévérité A" />
				<SERIE field="SEJMB" displayName="Sévérité B" />
				<SERIE field="SEJMC" displayName="Sévérité C" />
				<SERIE field="SEJMD" displayName="Sévérité D" />
			</CHART>
			<DATAGRID title="" total="true" showOthers="true" key="COD" keySeq="A" headerHeight="54" 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="SEJM" width="70" type="Number" outputFormat="#" headerText="Sévérités ABCD" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Séjours avec GHM en sévérité A, B, C ou D" />
				<COLUMN dataField="SEJMA" width="70" type="Number" outputFormat="#" headerText="Sévérité A" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Nombre de séjours avec GHM en sévérité A" />
				<COLUMN dataField="SEJMAP" width="70" type="Number" outputFormat="#%" headerText="% Sévérité A" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Part de séjours avec GHM en sévérité A : rapport (en pourcentage) entre les colonnes &lt;b&gt;Sévérité A&lt;/b&gt; et &lt;b&gt;Sévérités ABCD&lt;/b&gt;" />
				<COLUMN dataField="SEJMB" width="70" type="Number" outputFormat="#" headerText="Sévérité B" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Nombre de séjours avec GHM en sévérité B" />
				<COLUMN dataField="SEJMBP" width="70" type="Number" outputFormat="#%" headerText="% Sévérité B" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Part de séjours avec GHM en sévérité B : rapport (en pourcentage) entre les colonnes &lt;b&gt;Sévérité B&lt;/b&gt; et &lt;b&gt;Sévérités ABCD&lt;/b&gt;" />
				<COLUMN dataField="SEJMC" width="70" type="Number" outputFormat="#" headerText="Sévérité C" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Nombre de séjours avec GHM en sévérité C" />
				<COLUMN dataField="SEJMCP" width="70" type="Number" outputFormat="#%" headerText="% Sévérité C" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Part de séjours avec GHM en sévérité C : rapport (en pourcentage) entre les colonnes &lt;b&gt;Sévérité C&lt;/b&gt; et &lt;b&gt;Sévérités ABCD&lt;/b&gt;" />
				<COLUMN dataField="SEJMD" width="70" type="Number" outputFormat="#" headerText="Sévérité D" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Nombre de séjours avec GHM en sévérité D" />
				<COLUMN dataField="SEJMDP" width="70" type="Number" outputFormat="#%" headerText="% Sévérité D" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Part de séjours avec GHM en sévérité D : rapport (en pourcentage) entre les colonnes &lt;b&gt;Sévérité D&lt;/b&gt; et &lt;b&gt;Sévérités ABCD&lt;/b&gt;" />
			</DATAGRID>
		</ONGLET>
		<ONGLET excelLabel="Sévérités MAHOS" label="Sév. MAHOS" multiTab="true" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
			<CHART title="" type="group" subType="h" percentHeight="100" fromTotal="true">
				<CHART title="% Sévérité J-T" type="columnChart" serieIsCategory="true" fromTotal="true" maxVal="100">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="TX_SEV_JT" displayName="Ets" />
					<SERIE field="TX_SEV_JT_PRIVE" displayName="privé" />
					<SERIE field="TX_SEV_JT_PUBLIC" displayName="public" />
				</CHART>
				<CHART title="% Sévérité 1-A" type="columnChart" serieIsCategory="true" fromTotal="true" maxVal="100">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="TX_SEV_1A" displayName="Ets" />
					<SERIE field="TX_SEV_1A_PRIVE" displayName="privé" />
					<SERIE field="TX_SEV_1A_PUBLIC" displayName="public" />
				</CHART>
				<CHART title="% Sévérité 2-B" type="columnChart" serieIsCategory="true" fromTotal="true" maxVal="100">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="TX_SEV_2B" displayName="Ets" />
					<SERIE field="TX_SEV_2B_PRIVE" displayName="privé" />
					<SERIE field="TX_SEV_2B_PUBLIC" displayName="public" />
				</CHART>
				<CHART title="% Sévérité 3-C" type="columnChart" serieIsCategory="true" fromTotal="true" maxVal="100">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="TX_SEV_3C" displayName="Ets" />
					<SERIE field="TX_SEV_3C_PRIVE" displayName="privé" />
					<SERIE field="TX_SEV_3C_PUBLIC" displayName="public" />
				</CHART>
				<CHART title="% Sévérité 4-D" type="columnChart" serieIsCategory="true" fromTotal="true" maxVal="100">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="TX_SEV_4D" displayName="Ets" />
					<SERIE field="TX_SEV_4D_PRIVE" displayName="privé" />
					<SERIE field="TX_SEV_4D_PUBLIC" displayName="public" />
				</CHART>
				<CHART title="% Sévérité Z" type="columnChart" serieIsCategory="true" fromTotal="true" maxVal="100">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="SEJTZP" displayName="Ets" />
					<SERIE field="TX_SEV_ZS_PRIVE" displayName="privé" />
					<SERIE field="TX_SEV_ZS_PUBLIC" displayName="public" />
				</CHART>
				<CHART title="% Sévérité E" type="columnChart" serieIsCategory="true" fromTotal="true" maxVal="100">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="SEJTXP" displayName="Ets" />
					<SERIE field="TX_SEV_E_PRIVE" displayName="privé" />
					<SERIE field="TX_SEV_E_PUBLIC" displayName="public" />
				</CHART>
				<CHART title="Séances" type="columnChart" serieIsCategory="true" fromTotal="true">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="SEJTZSP" displayName="Ets" />
					<SERIE field="TX_SEANCES_PRIVE" displayName="privé" />
					<SERIE field="TX_SEANCES_PUBLIC" displayName="public" />
				</CHART>
			</CHART>
			<CHART title="Comparaison % Etablissement/Privé/Public" type="areaChart" form="segment" serieIsCategory="true" fromTotal="true">
				<CATEGORY field="TXT" type="Char" displayName="Etablissement" displayName2="Privé" displayName3="Public"/>
				<SERIE field="TX_SEV_JT" field2="TX_SEV_JT_PRIVE" field3="TX_SEV_JT_PUBLIC" displayName="Sévérités J et T"/>
				<SERIE field="TX_SEV_1A" field2="TX_SEV_1A_PRIVE" field3="TX_SEV_1A_PUBLIC" displayName="Sévérités 1 et A"/>
				<SERIE field="TX_SEV_2B" field2="TX_SEV_2B_PRIVE" field3="TX_SEV_2B_PUBLIC" displayName="Sévérités 2 et B"/>
				<SERIE field="TX_SEV_3C" field2="TX_SEV_3C_PRIVE" field3="TX_SEV_3C_PUBLIC" displayName="Sévérités 3 et C"/>
				<SERIE field="TX_SEV_4D" field2="TX_SEV_4D_PRIVE" field3="TX_SEV_4D_PUBLIC" displayName="Sévérités 4 et D"/>
				<SERIE field="SEJTZP" field2="TX_SEV_ZS_PRIVE" field3="TX_SEV_ZS_PUBLIC" displayName="Sévérité Z (hors séances)"/>
				<SERIE field="SEJTXP" field2="TX_SEV_E_PRIVE" field3="TX_SEV_E_PUBLIC" displayName="Sévérité E"/>
				<SERIE field="SEJTZSP" field2="TX_SEANCES_PRIVE" field3="TX_SEANCES_PUBLIC" displayName="Séances"/>
			</CHART>
			<DATAGRID title="" total="true" showOthers="true" key="COD" keySeq="A" headerHeight="54" variableRowHeight="true" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'"
				sortable="= SELECT.GROUPBY_3 == '-1' &amp;&amp; (SELECT.GROUPBY_2 == '-1' || SELECT.GROUPBY_TAB == 'TAB')">
				<ROWSTYLE name="fontSize" value="11" />
				<FOOTERROWSTYLE name="fontSize" value="11" />
				<ROWSTYLE name="rowHeight" value="20" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'" />
				<ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'" />
				<ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'" />
				<ROWSTYLE name="borderSides" value="top bottom" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'" />
				<ROWSTYLE name="borderStyle" value="solid" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'" />
				<ROWSTYLE name="borderThickness" value="2" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'" />
				<COLUMN dataField="LVL" width="50" type="Char" visible="false" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" />
				<COLUMN dataField="OID1" width="60" type="Char" visible="false" headerText="Oid" />
				<COLUMN dataField="COD1" width="60" type="Char" visible="false" headerText="Oid" />
				<COLUMN dataField="OID2" width="60" type="Char" visible="false" headerText="Oid" />
				<COLUMN dataField="COD2" width="60" type="Char" visible="false" headerText="Oid" />
				<COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid" />
				<COLUMN dataField="COD" width="70" type="Char" visible="true" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
					<CELLSTYLE name="fontSize" value="11" />
					<CELLSTYLE name="paddingLeft" value="15" condition="ROW.LVL == '2' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'" />
				</COLUMN>
				<COLUMN dataField="TXT" type="Char" minWidth="200" headerText="Texte" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="Autres">
					<CELLSTYLE name="fontSize" value="11" />
				</COLUMN>
				<COLUMN dataField="SEJ" width="90" type="Number" outputFormat="#" headerText="Séjours PMSI" textAlign="right" totalFunction="sum" otherFunction="sum"
					description="Nombre de séjours avec GHM. Pöur les séjours de la CMD 28 (séances), nombre de séances" />
				
				<COLUMN dataField="TX_SEV_JT" width="45" type="Number" outputFormat="#%" headerText="% JT" textAlign="right" fixed="false" totalFunction="calc" totalComplement="" otherFunction="calc" calc="true"
					description="Pourcentage de séjours avec GHM en sévérité J ou T">
					<CALC formula="ROW.SEJTJP + ROW.SEJTTP" />
				</COLUMN>
				<COLUMN dataField="TX_SEV_JT_PRIVE" width="45" type="Number" outputFormat="#%" headerText="% JT privé" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="= return &quot;Pourcentage de RSA avec GHM en sévérité J ou T relevé sur la base nationale MCO &quot; + String(VIEW.BASE_NAT_YEAR) + &quot; des établissements privés&quot;" />
				<COLUMN dataField="TX_SEV_JT_PUBLIC" width="45" type="Number" outputFormat="#%" headerText="% JT public" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="= return &quot;Pourcentage de RSA avec GHM en sévérité J ou T relevé sur la base nationale MCO &quot; + String(VIEW.BASE_NAT_YEAR) + &quot; des établissements publics&quot;" />
				
				<COLUMN dataField="TX_SEV_1A" width="45" type="Number" outputFormat="#%" headerText="% 1A" textAlign="right" fixed="false" totalFunction="calc" totalComplement="" otherFunction="calc" calc="true"
					description="Pourcentage de séjours avec GHM en sévérité 1 ou A">
					<CALC formula="ROW.SEJMAP2 + ROW.SEJT1P" />
				</COLUMN>
				<COLUMN dataField="TX_SEV_1A_PRIVE" width="45" type="Number" outputFormat="#%" headerText="% 1A privé" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="= return &quot;Pourcentage de RSA avec GHM en sévérité 1 ou A relevé sur la base nationale MCO &quot; + String(VIEW.BASE_NAT_YEAR) + &quot; des établissements privés&quot;" />
				<COLUMN dataField="TX_SEV_1A_PUBLIC" width="45" type="Number" outputFormat="#%" headerText="% 1A public" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="= return &quot;Pourcentage de RSA avec GHM en sévérité 1 ou A relevé sur la base nationale MCO &quot; + String(VIEW.BASE_NAT_YEAR) + &quot; des établissements publics&quot;" />
				
				<COLUMN dataField="TX_SEV_2B" width="45" type="Number" outputFormat="#%" headerText="% 2B" textAlign="right" fixed="false" totalFunction="calc" totalComplement="" otherFunction="calc" calc="true"
					description="Pourcentage de séjours avec GHM en sévérité 2 ou B">
					<CALC formula="ROW.SEJMBP2 + ROW.SEJT2P" />
				</COLUMN>
				<COLUMN dataField="TX_SEV_2B_PRIVE" width="45" type="Number" outputFormat="#%" headerText="% 2B privé" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="= return &quot;Pourcentage de RSA avec GHM en sévérité 2 ou B relevé sur la base nationale MCO &quot; + String(VIEW.BASE_NAT_YEAR) + &quot; des établissements privés&quot;" />
				<COLUMN dataField="TX_SEV_2B_PUBLIC" width="45" type="Number" outputFormat="#%" headerText="% 2B public" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="= return &quot;Pourcentage de RSA avec GHM en sévérité 2 ou B relevé sur la base nationale MCO &quot; + String(VIEW.BASE_NAT_YEAR) + &quot; des établissements publics&quot;" />
				
				<COLUMN dataField="TX_SEV_3C" width="45" type="Number" outputFormat="#%" headerText="% 3C" textAlign="right" fixed="false" totalFunction="calc" totalComplement="" otherFunction="calc" calc="true"
					description="Pourcentage de séjours avec GHM en sévérité 3 ou C">
					<CALC formula="ROW.SEJMCP2 + ROW.SEJT3P" />
				</COLUMN>
				<COLUMN dataField="TX_SEV_3C_PRIVE" width="45" type="Number" outputFormat="#%" headerText="% 3C privé" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="= return &quot;Pourcentage de RSA avec GHM en sévérité 3 ou C relevé sur la base nationale MCO &quot; + String(VIEW.BASE_NAT_YEAR) + &quot; des établissements privés&quot;" />
				<COLUMN dataField="TX_SEV_3C_PUBLIC" width="45" type="Number" outputFormat="#%" headerText="% 3C public" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="= return &quot;Pourcentage de RSA avec GHM en sévérité 3 ou C relevé sur la base nationale MCO &quot; + String(VIEW.BASE_NAT_YEAR) + &quot; des établissements publics&quot;" />
			
				<COLUMN dataField="TX_SEV_4D" width="45" type="Number" outputFormat="#%" headerText="% 4D" textAlign="right" fixed="false" totalFunction="calc" totalComplement="" otherFunction="calc" calc="true"
					description="Pourcentage de séjours avec GHM en sévérité 4 ou D">
					<CALC formula="ROW.SEJMDP2 + ROW.SEJT4P" />
				</COLUMN>
				<COLUMN dataField="TX_SEV_4D_PRIVE" width="45" type="Number" outputFormat="#%" headerText="% 4D privé" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="= return &quot;Pourcentage de RSA avec GHM en sévérité 4 ou D relevé sur la base nationale MCO &quot; + String(VIEW.BASE_NAT_YEAR) + &quot; des établissements privés&quot;" />
				<COLUMN dataField="TX_SEV_4D_PUBLIC" width="45" type="Number" outputFormat="#%" headerText="% 4D public" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="= return &quot;Pourcentage de RSA avec GHM en sévérité 4 ou D relevé sur la base nationale MCO &quot; + String(VIEW.BASE_NAT_YEAR) + &quot; des établissements publics&quot;" />
				
				<COLUMN dataField="SEJTZP" width="45" type="Number" outputFormat="#%" headerText="% Z" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="Pourcentage de séjours en sévérité Z, hors séances" />
				<COLUMN dataField="TX_SEV_ZS_PRIVE" width="45" type="Number" outputFormat="#%" headerText="% Z privé" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="= return &quot;Pourcentage de RSA avec GHM en sévérité Z, hors séances, relevé sur la base nationale MCO &quot; + String(VIEW.BASE_NAT_YEAR) + &quot; des établissements privés&quot;" />
				<COLUMN dataField="TX_SEV_ZS_PUBLIC" width="45" type="Number" outputFormat="#%" headerText="% Z public" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="= return &quot;Pourcentage de RSA avec GHM en sévérité Z, hors séances, relevé sur la base nationale MCO &quot; + String(VIEW.BASE_NAT_YEAR) + &quot; des établissements publics&quot;" />
				
				<COLUMN dataField="SEJTEP" width="45" type="Number" outputFormat="#%" headerText="% E" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="Pourcentage de séjours en sévérité E" />
				<COLUMN dataField="TX_SEV_E_PRIVE" width="45" type="Number" outputFormat="#%" headerText="% E privé" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="= return &quot;Pourcentage de RSA avec GHM en sévérité E relevé sur la base nationale MCO &quot; + String(VIEW.BASE_NAT_YEAR) + &quot; des établissements privés&quot;" />
				<COLUMN dataField="TX_SEV_E_PUBLIC" width="45" type="Number" outputFormat="#%" headerText="% E public" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="= return &quot;Pourcentage de RSA avec GHM en sévérité E relevé sur la base nationale MCO &quot; + String(VIEW.BASE_NAT_YEAR) + &quot; des établissements publics&quot;" />
				
				<COLUMN dataField="SEJT28P" width="40" type="Number" outputFormat="#%" headerText="% S" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="Pourcentage du nombre de séjours avec GHM de CMD 28 (séances)" />
				<COLUMN dataField="TX_SEANCES_PRIVE" width="50" type="Number" outputFormat="#%" headerText="% S privé" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="= return &quot;Pourcentage de RSA avec GHM de CMD 28 relevé sur la base nationale MCO &quot; + String(VIEW.BASE_NAT_YEAR) + &quot; des établissements publics&quot;" />
				<COLUMN dataField="TX_SEANCES_PUBLIC" width="50" type="Number" outputFormat="#%" headerText="% S public" textAlign="right" totalFunction="sum" otherFunction="sum" fixed="false"
					description="= return &quot;Pourcentage de RSA avec GHM de CMD 28 relevé sur la base nationale MCO &quot; + String(VIEW.BASE_NAT_YEAR) + &quot; des établissements publics&quot;" />	
			</DATAGRID>
		</ONGLET>
	</PRESENTATION>
</VUE>