<?xml version="1.0" encoding="ISO-8859-15"?>
<VUE name="ACTI000061" label="Activité. Facturation" title="= SELECT.QUELMONTANT2 + ' par ' +  SELECT.GROUPBY_LABEL + ' (' + SELECT.QUELLEDATE_LABEL + ' : ' +  SELECT.PERIODE_LABEL + ' à ' + SELECT.TOPERIODE_LABEL + ')'" database="iCTI" swf="*CTI_view1" softCode="iCTI_activite" globals="ACTI_globals.XML" componentsFile="ACTI_components.XML" helpFile="iCTI_ACTI_ACTI000061.HTML">
	<VIEWPROPERTIES componentName="PROPERTIES_PRESTATIONS"/>
	<VIEWPROPERTIES>
	</VIEWPROPERTIES>
	<SELECTIONS label="Paramètres de l'analyse">
		<GROUP label="Période">
			<FIELD name="QUELLEDATE" label="" UI="combo" default="1" default2="date_fin">
				<OPTION label="Date activité" data="1" data2="v_factures_lignes_c_4.date_fin"/>
				<OPTION label="Date sortie" data="2" data2="v_factures_lignes_c_4.date_fin_facture"/>
				<OPTION label="Date facture" data="3" data2="v_factures_lignes_c_4.date_facture"/>
				<OPTION label="Date vente" data="4" data2="v_factures_lignes_c_4.date_vente"/>
			</FIELD>
			<FIELD name="ALIAS_PERIODE" label="" UI="combo" width="220" default="CUM_LAST_MONTH" tree="true" globalListProvider="ALIAS_PERIODE" />
            <FIELD name="PERIODE" label="de" UI="combo" tree="true" width="200" default="2009-01-01" globalListProvider="DATE_DEBUT" >
			</FIELD>
			<FIELD name="TOPERIODE" label="à" UI="combo" tree="true" width="200" default="2009-01-31" globalListProvider="DATE_FIN" >
			</FIELD>
		</GROUP>
		<GROUP>
			<FIELD name="GROUPBY" label="Regroupement" UI="combo" default="SER" width="200" tree="true">
				<OPTION label="PRESTATIONS_GROUPBY" data="" globalListProvider="PRESTATIONS_GROUPBY"/>
				<OPTION label="Mois d'activité" data="MOIA"/>
				<OPTION label="Mois de sortie" data="MOIS"/>
				<OPTION label="Mois de ventes" data="MOIV"/>
			</FIELD>
			<FIELD name="GROUPBY_TAB" 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" label="" UI="combo" default="-1" width="200" tree="true">
				<OPTION label="" data="-1"/>
				<OPTION label="PRESTATIONS_GROUPBY" data="" globalListProvider="PRESTATIONS_GROUPBY"/>
				<OPTION label="Mois d'activité" data="MOIA"/>
				<OPTION label="Mois de sortie" data="MOIS"/>
				<OPTION label="Mois de ventes" data="MOIV"/>
			</FIELD>
		</GROUP>
		<GROUP label="">
			<FIELD name="GROUPBY_3" label="" UI="combo" default="-1" width="200" tree="true">
				<OPTION label="" data="-1"/>
				<OPTION label="PRESTATIONS_GROUPBY" data="" globalListProvider="PRESTATIONS_GROUPBY"/>
				<OPTION label="Mois d'activité" data="MOIA"/>
				<OPTION label="Mois de sortie" data="MOIS"/>
				<OPTION label="Mois de ventes" data="MOIV"/>
			</FIELD>
		</GROUP>
		<GROUP label="Données">
			<FIELD name="QUELMONTANT" label="" UI="combo" default="1" width="300">
				<OPTION label="Montant facturé" data="1" data2="Facturation"/>
				<OPTION label="Montant comptabilisé" data="2" data2="Comptabilisation"/>
				<OPTION label="Comparaison Facturé / Budget global" data="FACVSBG" data2="Comparaison Facturation / Budget global" condition="ENV.TYPEETS != '1'"/>
				<OPTION label="Montant valorisé des dossiers sortis non facturés" data="ENF" data2="Valorisation dossiers sortis non facturés"/>
				<OPTION label="Montant facturé et valorisé des dossiers sortis non facturés" data="MF-ENF" data2="Facturation et Valorisation dossiers sortis non facturés"/>
				<OPTION label="Montant comptabilisé et valorisé des dossiers sortis non facturés" data="MC-ENF" data2="Comptabilisation et Valorisation dossiers sortis non facturés"/>
			</FIELD>
		</GROUP>
	</SELECTIONS>
	<SELECTIONS componentName="FILTRES_PRESTATIONS_SOUSSELECTIONS"/>
	<SELECTIONS componentName="FILTRES_PRESTATIONS_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_SEJOURS_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_PASSAGES_SELECTIONS" />
	<QUERIES>
		<QUERY label="">
			<SQL optimizer="V_SEJOURS_X" optimizer2="V_FACTURES_LIGNES_C_X">
				<select><![CDATA[		
					CTISELECT_TREE
					WORKTABLE{ACTI000061}
					GROUPBY1{[VIEW.GROUPBY_OID_FIELD],, [VIEW.GROUPBY_COD_FIELD],, [VIEW.GROUPBY_TXT_FIELD]}
					GROUPBY1MODE{[GROUPBY_TAB]}
					GROUPBY2{[VIEW.GROUPBY_2_OID_FIELD],, [VIEW.GROUPBY_2_COD_FIELD],, [VIEW.GROUPBY_2_TXT_FIELD]}
					GROUPBY3{[VIEW.GROUPBY_3_OID_FIELD],, [VIEW.GROUPBY_3_COD_FIELD],, [VIEW.GROUPBY_3_TXT_FIELD]}
					SIGNIFDATA{[VIEW.ACTIVITE_SIGNIFICATIVE_DATA],, [ACTIVITE_SIGNIFICATIVE_MODE],, [ACTIVITE_SIGNIFICATIVE_NUMBER]}
					INDICATORS{
						COUNT(DISTINCT v_sejours_1.no_sejour),,
						[QUELMONTANT==1::
						SUM(montant_facture),,
						SUM(montant_facture_1),,
						SUM(montant_facture_2 + montant_facture_22),,
						SUM(montant_facture_0),,
						COUNT(DISTINCT CASE WHEN montant_facture_1 <> 0 THEN v_sejours_1.no_sejour ELSE null END),,
						COUNT(DISTINCT CASE WHEN montant_facture_2 + montant_facture_22 <> 0 THEN v_sejours_1.no_sejour ELSE null END),,
						COUNT(DISTINCT CASE WHEN montant_facture_0 <> 0 THEN v_sejours_1.no_sejour ELSE null END),,
						SUM(CASE WHEN origine_facturation_id = 3 THEN montant_facture_actes_inclus_dans_sejour ELSE 0 END),,
						SUM(CASE WHEN COALESCE(origine_facturation_id,0) <= 1 THEN montant_facture ELSE 0 END),,
						SUM(CASE WHEN COALESCE(origine_facturation_id,0) = 2 THEN montant_facture ELSE 0 END),,
						0
						]
						[QUELMONTANT==2::
						SUM(montant_comptabilise + COALESCE(montant_comptabilise_budget_global_1,0)),,
						SUM(montant_comptabilise_1),,
						SUM(montant_comptabilise_2 + montant_comptabilise_22),,
						SUM(montant_comptabilise_0),,
						COUNT(DISTINCT CASE WHEN montant_comptabilise_1 <> 0 OR COALESCE(montant_comptabilise_budget_global_1,0) <> 0 THEN v_sejours_1.no_sejour ELSE null END),,
						COUNT(DISTINCT CASE WHEN montant_comptabilise_2 + montant_comptabilise_22 <> 0 THEN v_sejours_1.no_sejour ELSE null END),,
						COUNT(DISTINCT CASE WHEN montant_comptabilise_0 <> 0 THEN v_sejours_1.no_sejour ELSE null END),,
						SUM(CASE WHEN origine_facturation_id = 3 THEN montant_facture_actes_inclus_dans_sejour ELSE 0 END),,
						0,,
						0,,
						SUM(COALESCE(montant_comptabilise_budget_global_1,0))
						]
						[QUELMONTANT==FACVSBG::
						0,
						SUM(montant_facture_1),,
						SUM(COALESCE(montant_comptabilise_budget_global_1,0)),,
						SUM(montant_facture_1 - COALESCE(montant_comptabilise_budget_global_1,0)),,
						SUM(CASE WHEN montant_facture_1 <> 0 THEN nb_prestation * coefficient ELSE 0 END),,
						SUM(CASE WHEN COALESCE(montant_comptabilise_budget_global_1,0) <> 0 THEN nb_prestation * coefficient ELSE 0 END),,
						SUM(CASE WHEN montant_facture_1 <> 0 THEN nb_prestation * coefficient ELSE 0 END) 
							- SUM(CASE WHEN COALESCE(montant_comptabilise_budget_global_1,0) <> 0 THEN nb_prestation * coefficient ELSE 0 END),,
						0,,
						0,,
						0,,
						0
						]
						[QUELMONTANT==ENF::
						SUM(montant_encours),,
						SUM(CASE WHEN code_sorti = '1' AND nb_non_groupe = 0 AND est_ligne_encours = '1' THEN montant_encours ELSE 0 END),,
						SUM(CASE WHEN code_sorti = '1' AND nb_non_groupe <> 0 AND est_ligne_encours = '1' THEN montant_encours ELSE 0 END),,
						SUM(CASE WHEN code_sorti <> '1' AND est_ligne_encours = '1' THEN montant_encours ELSE 0 END),,
						COUNT(DISTINCT CASE WHEN code_sorti = '1' AND nb_non_groupe = 0 AND est_ligne_encours = '1' THEN v_sejours_1.no_sejour ELSE null END),,
						COUNT(DISTINCT CASE WHEN code_sorti = '1' AND nb_non_groupe <> 0 AND est_ligne_encours = '1' THEN v_sejours_1.no_sejour ELSE null END),,
						COUNT(DISTINCT CASE WHEN code_sorti <> '1' AND est_ligne_encours = '1' THEN v_sejours_1.no_sejour ELSE null END),,
						0,,
						0,,
						0,,
						0
						]
						[QUELMONTANT==MF-ENF::
						SUM(montant_facture + montant_encours),,
						SUM(montant_facture),,
						SUM(montant_encours),,
						0,,
						COUNT(DISTINCT CASE WHEN est_ligne_facturee = '1' THEN v_sejours_1.no_sejour ELSE null END),,
						COUNT(DISTINCT CASE WHEN est_ligne_encours = '1' THEN v_sejours_1.no_sejour ELSE null END),,
						0,,
						0,,
						0,,
						0,,
						0
						]
						[QUELMONTANT==MC-ENF::
						SUM(montant_comptabilise + montant_encours),,
						SUM(montant_comptabilise),,
						SUM(montant_encours),,
						0,,
						COUNT(DISTINCT CASE WHEN est_ligne_facturee = '1' THEN v_sejours_1.no_sejour ELSE null END),,
						COUNT(DISTINCT CASE WHEN est_ligne_encours = '1' THEN v_sejours_1.no_sejour ELSE null END),,
						0,,
						0,,
						0,,
						0,,
						0
						]
						,,
						SUM(nb_rubrique * coefficient),,
						SUM(nb_prestation * coefficient),,
					}
					FROM #V_FACTURES_LIGNES_C_X#
						JOIN #V_SEJOURS_X# ON v_sejours_1.no_sejour = v_factures_lignes_c_4.no_sejour
					WHERE 
						v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'
						[QUELMONTANT==1::
							AND est_ligne_facturee = '1' 
						]
						[QUELMONTANT==2::
							AND est_ligne_comptabilisee = '1' 
						]
						[QUELMONTANT==FACVSBG::
							AND v_sejours_1.est_budget_global = 1 AND COALESCE(v_sejours_1.montant_comptabilise_budget_global_c,0) <> 0 AND (montant_facture_1 <> 0 OR COALESCE(montant_comptabilise_budget_global_1,0) <> 0)
						]
						[QUELMONTANT==ENF::
							AND est_ligne_encours = '1'
						]
						[QUELMONTANT==MF-ENF::
							AND (est_ligne_facturee = '1'  OR est_ligne_encours = '1')
						]
						[QUELMONTANT==MC-ENF::
							AND (est_ligne_facturee = '1'  OR est_ligne_encours = '1')
						]
						[VIEW.SEJOURS_SELECT]
						[VIEW.PRESTATIONS_SELECT]
						[VIEW.PASSAGES_SELECT]
				
				
				]]></select>
				<FIELDS>
					<INSERT name="CTISELECT_TREE_FIELDS"/>
					<FIELD name="NBS"/>
					<FIELD name="MT"/>
					<FIELD name="M1"/>
					<FIELD name="M2"/>
					<FIELD name="M3"/>
					<FIELD name="N1"/>
					<FIELD name="N2"/>
					<FIELD name="N3"/>
					<FIELD name="MTAS"/>
					<FIELD name="MTC"/>
					<FIELD name="MTH"/>
					<FIELD name="MTBG"/>
					<FIELD name="NR"/>
					<FIELD name="NP"/>
				</FIELDS>
			</SQL>
		</QUERY>
		<QUERY type="propertiesLink" name="VIEWPROPERTIES" forRows="false">
		</QUERY>
	</QUERIES>
	<PRESENTATION>
		
		<VIEWLINKS>
			<VIEWLINK label="Comparatif" shortLabel="Comparatif"  view="ACTI000063.XML" rowContext="false" enabled="true" buttonType="COMPARATIF" visible="= SELECT.GROUPBY != 'JOUR'">
					<ARG name="PERIODE" value="return VIEW.COMP_PERIODE;" />
					<ARG name="PERIODE_D" value="return VIEW.COMP_PERIODE_D;" />
					<ARG name="TOPERIODE_D" value="return VIEW.COMP_TOPERIODE_D;" />
					<ARG name="DATA1" value="'MTFAC'" />
					<ARG name="DATA2" value="'0'" />
					<ARG name="DATA3" value="'0'" />
					<ARG name="TYPE_COMPARAISON" value="'2'" />
			</VIEWLINK>
			<VIEWLINK label="Evolution" shortLabel="Evolution"  view="ACTI000062.XML" rowContext="false" enabled="true" buttonType="EVOLUTION" componentName="PERIODICITE_VIEWLINK" visible="= SELECT.GROUPBY != 'JOUR'">
				<ARG name="DATA" value="'MTFAC'"/>
			</VIEWLINK>
			<VIEWLINK label="Analyse croisée" shortLabel="Analyse croisée" view="ACTI000082.XML" enabled="true" rowContext="false" buttonType="ANALYSE_CROISEE" visible="= SELECT.GROUPBY != 'JOUR'">
				<ARG name="PERIODE" value="return VIEW.ANA_CROI_PERIODE;" />
				<ARG name="TOPERIODE" value="return VIEW.ANA_CROI_TOPERIODE;" />
				<ARG name="DATA" value="'MTFAC'" />
				<ARG name="COLUMNBY" value="'ACT'" />
				<ARG name="GROUPBY" value="return SELECT.GROUPBY" />
				<ARG name="GROUPBY_2" value="return SELECT.GROUPBY_2" />
				<ARG name="GROUPBY_TAB" value="'TAB'" />
				<ARG name="COLUMNBYCOUNT" value="'12'" />
			</VIEWLINK>
			<VIEWLINK label="Liste des séjours" shortLabel="Liste séjours" view="ACTI000019.XML" componentName="PRESTATIONS_BASE_VIEWLINK" component3Name="STANDARD_BASE_VIEWLINK">
			</VIEWLINK>
		</VIEWLINKS>
		<ONGLET excelLabel="Facturation" label="Facturation" multiTab="true">
			<CHART title="Décomposition" type="columnChart" subType="stacked" maxItems="20" maxItemsSortOn="MT" maxItemsSortSeq="D" sortField="MT" sortSeq="D" visibleCondition="SELECT.QUELMONTANT != 'FACVSBG' &amp;&amp; SELECT.GROUPBY != 'MOIA' &amp;&amp; SELECT.GROUPBY != 'MOIS' &amp;&amp; SELECT.GROUPBY != 'MOIV'" condition="ROW.LVL == '1'">
				<CATEGORY field="COD" type="Char"/>
				<SERIE field="M1" displayName="if (SELECT.QUELMONTANT == 'MF-ENF') {return 'Facturé'} 
										if (SELECT.QUELMONTANT == 'MC-ENF') {return 'Comptabilisé'} 
									 if (SELECT.QUELMONTANT == 'ENF') {return 'Groupés ou hors PMSI'} 
									 return 'AMO'" displayNameCalc="true"/>
				<SERIE field="M2" displayName="if (SELECT.QUELMONTANT == 'MF-ENF') {return 'Non facturés'} 
										if (SELECT.QUELMONTANT == 'MC-ENF') {return 'Non facturés'} 
									 if (SELECT.QUELMONTANT == 'ENF') {return 'Non groupés'} 
									 return 'AMC'" displayNameCalc="true"/>
				<SERIE field="M3" displayName="if (SELECT.QUELMONTANT == 'MF-ENF') {return ''} 
										if (SELECT.QUELMONTANT == 'MC-ENF') {return ''} 
									 if (SELECT.QUELMONTANT == 'ENF') {return ''} 
									 return 'Patient'" displayNameCalc="true"/>
			</CHART>
			<CHART title="Décomposition" type="columnChart" subType="stacked" maxItems="20" maxItemsSortOn="COD" maxItemsSortSeq="D" sortField="COD" sortSeq="A" visibleCondition="SELECT.QUELMONTANT != 'FACVSBG' &amp;&amp; (SELECT.GROUPBY == 'MOIA' || SELECT.GROUPBY == 'MOIS' || SELECT.GROUPBY == 'MOIV')" condition="ROW.LVL == '1'">
				<CATEGORY field="COD" type="Char"/>
				<SERIE field="M1" displayName="if (SELECT.QUELMONTANT == 'MF-ENF') {return 'Facturé'} 
											if (SELECT.QUELMONTANT == 'MC-ENF') {return 'Comptabilisé'} 
									 if (SELECT.QUELMONTANT == 'ENF') {return 'Groupés ou hors PMSI'} 
									 return 'AMO'" displayNameCalc="true"/>
				<SERIE field="M2" displayName="if (SELECT.QUELMONTANT == 'MF-ENF') {return 'Non facturés'} 
											if (SELECT.QUELMONTANT == 'MC-ENF') {return 'Non facturés'} 
									 if (SELECT.QUELMONTANT == 'ENF') {return 'Non groupés'} 
									 return 'AMC'" displayNameCalc="true"/>
				<SERIE field="M3" displayName="if (SELECT.QUELMONTANT == 'MF-ENF') {return ''} 
										if (SELECT.QUELMONTANT == 'MC-ENF') {return ''} 
									 if (SELECT.QUELMONTANT == 'ENF') {return ''} 
									 return 'Patient'" displayNameCalc="true"/>
			</CHART>
			<DATAGRID title="" total="true" showOthers="true" headerHeight="48" variableRowHeight="true" sortable="= SELECT.GROUPBY_2 == '-1' || SELECT.GROUPBY_TAB == 'TAB'" 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" totalComplement="TOTAL">
					<INSERT name="COLUMN_COD_MULTITAB_STYLES"/>
				</COLUMN>
				<COLUMN dataField="TXT" type="Char" minWidth="150" maxWidth="300" headerText="SELECT.GROUPBY_LABEL" headerTextCalc="true" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="*ROW">
				</COLUMN>
				<COLUMN dataField="NBS" width="70" type="Number" visible="true" outputFormat="#" headerText="Nb Total séjours" textAlign="right" totalFunction="sum" otherFunction="sum">
				</COLUMN>
				<COLUMN dataField="NP" width="70" type="Number" visibleCondition="SELECT.GROUPBY == 'PRF' &amp;&amp; SELECT.QUELMONTANT != 'FACVSBG'" outputFormat="#" headerText="Nombre prestations" textAlign="right" totalFunction="sum" otherFunction="sum">
				</COLUMN>
				<COLUMN dataField="NR" width="70" type="Number" visibleCondition="(SELECT.GROUPBY == 'RUF' || SELECT.GROUPBY == 'RUC') &amp;&amp; SELECT.QUELMONTANT != 'FACVSBG'" outputFormat="#" headerText="Nombre rubriques" textAlign="right" totalFunction="sum" otherFunction="sum">
				</COLUMN>
				<COLUMN dataField="MT" width="90" type="Number" outputFormat="#E" visibleCondition="SELECT.QUELMONTANT != 'MF-ACTES' &amp;&amp; SELECT.QUELMONTANT != 'FACVSBG'" headerText="
								if (SELECT.QUELMONTANT == '1') {return 'Montant Total facturé'}
								if (SELECT.QUELMONTANT == '2') {return 'Montant Total comptabilisé'}
								if (SELECT.QUELMONTANT == 'ENF') {return 'Montant Total Valorisé'}
								if (SELECT.QUELMONTANT == 'MF-ENF') {return 'Montant Total'}
								if (SELECT.QUELMONTANT == 'MC-ENF') {return 'Montant Total'}
					" headerTextCalc="true" textAlign="right" totalFunction="sum" otherFunction="">
				</COLUMN>
				<COLUMN dataField="MFP" type="Number" headerText="% / Total" width="45" visibleCondition="SELECT.QUELMONTANT != 'MF-ACTES' &amp;&amp; SELECT.QUELMONTANT != 'FACVSBG'" outputFormat="0%" textAlign="right" totalFunction="calc" totalComplement="" otherFunction="calc" calc="true">
					<CALC formula="ROW.MT / TOTALROW.MT * 100"/>
				</COLUMN>
				<COLUMN dataField="MTC" width="80" type="Number" visibleCondition="SELECT.QUELMONTANT == '1' &amp;&amp; ENV.TYPEETS != '1'" headerText="if (SELECT.QUELMONTANT == '1') {return 'Montant Séjour'}
								if (SELECT.QUELMONTANT == '2') {return ''}
								if (SELECT.QUELMONTANT == 'ENF') {return ''}
								if (SELECT.QUELMONTANT == 'MF-ENF') {return ''}
								if (SELECT.QUELMONTANT == 'MC-ENF') {return ''}
					" headerTextCalc="true" outputFormat="#E" textAlign="right" totalFunction="sum" otherFunction="">
				</COLUMN>
				<COLUMN dataField="MTAS" width="80" type="Number" visibleCondition="(SELECT.QUELMONTANT == '1' || SELECT.QUELMONTANT == '2') &amp;&amp; ENV.TYPEETS != '1'" headerText="if (SELECT.QUELMONTANT == '1') {return 'Dont actes dans séjour'}
								if (SELECT.QUELMONTANT == '2') {return 'Dont actes dans séjour'}
								if (SELECT.QUELMONTANT == 'ENF') {return ''}
								if (SELECT.QUELMONTANT == 'MF-ENF') {return ''}
								if (SELECT.QUELMONTANT == 'MC-ENF') {return ''}
					" headerTextCalc="true" outputFormat="#E" textAlign="right" totalFunction="sum" otherFunction="">
				</COLUMN>
				<COLUMN dataField="MTH" width="80" type="Number" visibleCondition="SELECT.QUELMONTANT == '1' &amp;&amp; ENV.TYPEETS != '1'" headerText="if (SELECT.QUELMONTANT == '1') {return 'Montant Actes'}
								if (SELECT.QUELMONTANT == '2') {return ''}
								if (SELECT.QUELMONTANT == 'ENF') {return ''}
								if (SELECT.QUELMONTANT == 'MF-ENF') {return ''}
								if (SELECT.QUELMONTANT == 'MC-ENF') {return ''}
					" headerTextCalc="true" outputFormat="#E" textAlign="right" totalFunction="sum" otherFunction="">
				</COLUMN>
				<COLUMN dataField="N1" width="80" type="Number" visibleCondition="SELECT.GROUPBY == 'PRF' || SELECT.QUELMONTANT != 'FACVSBG'" headerText="if (SELECT.QUELMONTANT == '1') {return 'Nb Séjours AMO'}
								if (SELECT.QUELMONTANT == '2') {return 'Nb Séjours AMO'}
								if (SELECT.QUELMONTANT == 'ENF') {return 'Nb Séjours (Groupés ou hors PMSI)'}
								if (SELECT.QUELMONTANT == 'MF-ENF') {return 'Nb Séjours Facturés'}
								if (SELECT.QUELMONTANT == 'MC-ENF') {return 'Nb Séjours Facturés'}
								if (SELECT.QUELMONTANT == 'MF-ACTES') {return 'Nb séjours (actes GHS exclus)'}
								if (SELECT.QUELMONTANT == 'FACVSBG') {return 'Nombre facturé AMO'}
					" headerTextCalc="true" outputFormat="#" textAlign="right" fixed="false" totalFunction="sum" otherFunction="">
				</COLUMN>
				<COLUMN dataField="M1" width="90" type="Number" visible="true" headerText="if (SELECT.QUELMONTANT == '1') {return 'Montant AMO'}
								if (SELECT.QUELMONTANT == '2') {return 'Montant AMO'}
								if (SELECT.QUELMONTANT == 'ENF') {return 'Montant (Groupés ou hors PMSI)'}
								if (SELECT.QUELMONTANT == 'MF-ENF') {return 'Montant Facturé'}	
								if (SELECT.QUELMONTANT == 'MC-ENF') {return 'Montant Comptabilisé'}										
								if (SELECT.QUELMONTANT == 'MF-ACTES') {return 'Montant (actes GHS exclus)'}
								if (SELECT.QUELMONTANT == 'FACVSBG') {return 'Montant facturé AMO'}
					" headerTextCalc="true" outputFormat="#E" textAlign="right" totalFunction="sum" otherFunction="">
				</COLUMN>
				<COLUMN dataField="MTBG" width="90" type="Number" visibleCondition="SELECT.QUELMONTANT == '2' &amp;&amp; ENV.TYPEETS != '1'" headerText="Montant AMO BG" outputFormat="#E" textAlign="right" totalFunction="sum" otherFunction="">
				</COLUMN>
				<COLUMN dataField="N2" width="80" type="Number" visibleCondition="SELECT.GROUPBY == 'PRF' || SELECT.QUELMONTANT != 'FACVSBG'" headerText="if (SELECT.QUELMONTANT == '1') {return 'Nb Séjours AMC'}
								if (SELECT.QUELMONTANT == '2') {return 'Nb Séjours AMC'}
								if (SELECT.QUELMONTANT == 'ENF') {return 'Nb Séjours (Non groupés)'}
								if (SELECT.QUELMONTANT == 'MF-ENF') {return 'Nb Séjours Non facturés Valorisés'}
								if (SELECT.QUELMONTANT == 'MC-ENF') {return 'Nb Séjours Non facturés Valorisés'}
								if (SELECT.QUELMONTANT == 'MF-ACTES') {return 'Nb séjours (actes GHS inclus)'}
								if (SELECT.QUELMONTANT == 'FACVSBG') {return 'Nombre AMO BG'}
					" headerTextCalc="true" outputFormat="#" textAlign="right" totalFunction="sum" otherFunction="">
				</COLUMN>
				<COLUMN dataField="M2" width="90" type="Number" visible="true" headerText="if (SELECT.QUELMONTANT == '1') {return 'Montant AMC'}
								if (SELECT.QUELMONTANT == '2') {return 'Montant AMC'}
								if (SELECT.QUELMONTANT == 'ENF') {return 'Montant (Non groupés)'}
								if (SELECT.QUELMONTANT == 'MF-ENF') {return 'Montant Non facturé Valorisé'}
								if (SELECT.QUELMONTANT == 'MC-ENF') {return 'Montant Non facturé Valorisé'}
								if (SELECT.QUELMONTANT == 'MF-ACTES') {return 'Montant (actes GHS inclus)'}
								if (SELECT.QUELMONTANT == 'FACVSBG') {return 'Montant AMO BG'}
					" headerTextCalc="true" outputFormat="#E" textAlign="right" totalFunction="sum" otherFunction="">
				</COLUMN>
				<COLUMN dataField="N3" width="80" type="Number" visibleCondition="SELECT.QUELMONTANT == '1' || SELECT.QUELMONTANT == '2' || (SELECT.QUELMONTANT == 'FACVSBG' &amp;&amp; SELECT.GROUPBY == 'PRF')" headerText="if (SELECT.QUELMONTANT == '1') {return 'Nb Séjours Patient'}
								if (SELECT.QUELMONTANT == '2') {return 'Nb Séjours Patient'}
								if (SELECT.QUELMONTANT == 'ENF') {return 'Nb Séjours (Présents)'}
								if (SELECT.QUELMONTANT == 'MF-ENF') {return ''}
								if (SELECT.QUELMONTANT == 'MC-ENF') {return ''}
								if (SELECT.QUELMONTANT == 'MF-ACTES') {return 'Nb séjours (actes GHS seuls)'}
								if (SELECT.QUELMONTANT == 'FACVSBG') {return 'Ecart nombre'}
					" headerTextCalc="true" outputFormat="#" textAlign="right" totalFunction="sum" otherFunction="">
				</COLUMN>
				<COLUMN dataField="M3" width="90" type="Number" visibleCondition="SELECT.QUELMONTANT != 'MF-ENF' &amp;&amp; SELECT.QUELMONTANT != 'MC-ENF'" headerText="if (SELECT.QUELMONTANT == '1') {return 'Montant Patient'}
								if (SELECT.QUELMONTANT == '2') {return 'Montant Patient'}
								if (SELECT.QUELMONTANT == 'ENF') {return 'Montant (Présents)'}
								if (SELECT.QUELMONTANT == 'MF-ENF') {return ''}
								if (SELECT.QUELMONTANT == 'MC-ENF') {return ''}
								if (SELECT.QUELMONTANT == 'MF-ACTES') {return 'Montant (actes GHS seuls)'}
								if (SELECT.QUELMONTANT == 'FACVSBG') {return 'Ecart montant'}
					" headerTextCalc="true" outputFormat="#E" textAlign="right" totalFunction="sum" otherFunction="">
				</COLUMN>
			</DATAGRID>
		</ONGLET>
	</PRESENTATION>
</VUE>
