<?xml version="1.0" encoding="ISO-8859-1"?>
<VUE name="PMSI000072" 
	label="PMSI. Revalorisation tarifaire 2006 par RSS" 
	title="= 'Justificatif revalorisation tarifaire 2006 par RSS (Oct - Déc 2006) - ' + SELECT.VERSION_GROUPAGE_LABEL" 
	database="iCTI" 
	swf="*CTI_view1" 
	softCode="iCTI_pmsi"
	typeEts="1"
	globals="PMSI_globals.XML"
	componentsFile="PMSI_components.XML">
	
	<VIEWPROPERTIES>
		
		
		
		<PROPERTYx dataLink="VIEWPROPERTIES" nameField="name" valueField="value" />
	</VIEWPROPERTIES>
	
	
		
	<SELECTIONS componentName="FILTRES_RSS_SELECTIONS" />
		

	<QUERIES>
	
		<QUERY label=""> 
			
			<SQL 
				optimizer="V_RSS_X"
				select="
				SELECT v_rss_1.rss_id, v_rss_1.no_rss, v_rss_1.finess, p_identites.nom || ' ' || p_identites.prenom, ghm_code, v_rss_1.ghs_code, 
						date_entree, date_sortie, sexe, age,
						nb_rsa, 
						v_rsf_detail_4.montant_ghs_facture, 
						v_rsf_detail_4.montant_exh_facture, 
						(v_rsf_detail_4.tarif_ghs_afacturer * v_rsf_detail_4.coefficient_ghs_facture * v_rsf_detail_4.coefficient_mco), 
						v_rsf_detail_4.montant_exh_afacturer, 
						(v_rsf_detail_4.tarif_ghs_afacturer * v_rsf_detail_4.coefficient_ghs_facture * v_rsf_detail_4.coefficient_mco) - v_rsf_detail_4.montant_ghs_facture,
						v_rsf_detail_4.montant_exh_afacturer - v_rsf_detail_4.montant_exh_facture, 
						(v_rsf_detail_4.tarif_ghs_afacturer * v_rsf_detail_4.coefficient_ghs_facture * v_rsf_detail_4.coefficient_mco) - v_rsf_detail_4.montant_ghs_facture + v_rsf_detail_4.montant_exh_afacturer - v_rsf_detail_4.montant_exh_facture,
						v_rsf_detail_4.taux_remboursement,
						((v_rsf_detail_4.tarif_ghs_afacturer * v_rsf_detail_4.coefficient_ghs_facture * v_rsf_detail_4.coefficient_mco) - v_rsf_detail_4.montant_ghs_facture + v_rsf_detail_4.montant_exh_afacturer - v_rsf_detail_4.montant_exh_facture) * v_rsf_detail_4.taux_remboursement / 100
						
						
				FROM [VIEW.V_RSS_VIEW_OPTIMIZE], pmsi.v_rsf_detail_4, pmsi.p_identites
				
				WHERE 
					v_rss_1.rss_id = p_identites.rss_id
					AND v_rss_1.rss_id = v_rsf_detail_4.rss_id
					
					[VIEW.FILTRE_RSS_SELECT]
					
					ORDER BY v_rss_1.no_rss
				"
				 >
				<FIELDS>
					<FIELD name="OID" />
					<FIELD name="RSS" />
					<FIELD name="FIN" />
					<FIELD name="NOM" ifHideNames="Non autorisé"/>
					<FIELD name="GHM" />
					<FIELD name="GHS" />
					<FIELD name="DATE" />
					<FIELD name="DATS" />
					<FIELD name="SEX" />
					<FIELD name="AGE" />
					<FIELD name="NB_RSA"/>
					<FIELD name="GHSF"/>
					<FIELD name="EXHF"/>
					<FIELD name="GHSA"/>
					<FIELD name="EXHA"/>
					<FIELD name="GHSR"/>
					<FIELD name="EXHR"/>
					<FIELD name="TOTR"/>
					<FIELD name="TAUX"/>
					<FIELD name="TOTRAM"/>
				</FIELDS>
			</SQL>
			
			
		</QUERY>
		
		
		
	</QUERIES>
	
	<PRESENTATION>
	
		<VIEWLINKS>
			
			<VIEWLINK label="Détail RSS" shortLabel="Détail RSS" view="PMSI000006.XML">
				<ARG name="OID" value="ROW.OID" />
			</VIEWLINK>

		</VIEWLINKS>
	
		<ONGLET excelLabel="Liste RSS" >
				
			<DATAGRID title="" total="true" key="RSS" headerHeight="36" printRatio="0.8">
				<ROWSTYLE name="fontSize" value="11" />
				<FOOTERROWSTYLE name="fontSize" value="11" />
				
				<COLUMN dataField="OID"
					type="Char"
					visible="false">
				</COLUMN>
				<COLUMN dataField="FIN"
					width="60"
					type="Char"
					visible="true"
					headerText="Etablissement" 
					textAlign="left" 
					visibleCondition="ENV.CONSOLIDATION == '1'"
					otherFunction="text"
					totalFunction="text" 
					totalComplement="">
				</COLUMN>
				
				<COLUMN dataField="RSS"
					width="60"
					type="Char"
					visible="true"
					headerText="N° RSS" 
					textAlign="left" 
					otherFunction="text"
					totalFunction="text" 
					totalComplement="TOTAL">
				</COLUMN>
				
				<COLUMN dataField="NOM"
					minWidth="150"
					type="Char"
					visible="true"
					headerText="Nom" 
					textAlign="left" 
					otherFunction="text"
					totalFunction="text">
				</COLUMN>
				
				<COLUMN dataField="DATE"
					width="60"
					type="Date"
					inputFormat="AAAA-MM-JJ"
					outputFormat="DD/MM/YY"
					visible="true"
					headerText="Date entrée" 
					textAlign="left" 
					otherFunction="text"
					totalFunction="text">
				</COLUMN>
				<COLUMN dataField="DATS"
					width="60"
					type="Date"
					inputFormat="AAAA-MM-JJ"
					outputFormat="DD/MM/YY"
					visible="true"
					headerText="Date sortie" 
					textAlign="left" 
					otherFunction="text"
					totalFunction="text">
				</COLUMN>
				
				
				<COLUMN dataField="GHM"
					width="50"
					type="Char"
					visible="true"
					headerText="GHM" 
					textAlign="left" 
					otherFunction="text"
					totalFunction="text">
				</COLUMN>
				<COLUMN dataField="GHS"
					width="40"
					type="Char"
					visible="true"
					headerText="GHS" 
					textAlign="left" 
					otherFunction="text"
					totalFunction="text">
				</COLUMN>
				
				<COLUMN dataField="NB_RSA" 
					width="60"
					type="Number" 
					outputFormat="#" 
					headerText="RSA" 
					textAlign="right" 
					totalFunction="sum"
					otherFunction="sum"
					largeSeparator="true">
				</COLUMN>
				
				<COLUMN dataField="GHSF" 
					width="90"
					type="Number" 
					outputFormat="#E" 
					fixed="false"
					headerText="GHS Facturé" 
					textAlign="right" 
					totalFunction="sum"
					otherFunction="sum">
				</COLUMN>
				<COLUMN dataField="EXHF" 
					width="90"
					type="Number" 
					outputFormat="#E" 
					fixed="false"
					headerText="EXH Facturé" 
					textAlign="right" 
					totalFunction="sum"
					otherFunction="sum">
				</COLUMN>
				
				<COLUMN dataField="GHSA" 
					width="90"
					type="Number" 
					outputFormat="#E" 
					fixed="false"
					headerText="GHS revalorisé" 
					textAlign="right" 
					totalFunction="sum"
					otherFunction="sum">
				</COLUMN>
				<COLUMN dataField="EXHA" 
					width="90"
					type="Number" 
					outputFormat="#E" 
					fixed="false"
					headerText="EXH revalorisé" 
					textAlign="right" 
					totalFunction="sum"
					otherFunction="sum">
				</COLUMN>
				
				
				
				<COLUMN dataField="TOTR" 
					width="90"
					type="Number" 
					outputFormat="#E" 
					fixed="false"
					headerText="Total à régulariser" 
					textAlign="right" 
					totalFunction="sum"
					otherFunction="sum">
				</COLUMN>
				
				<COLUMN dataField="TAUX" 
					width="50"
					type="Number" 
					outputFormat="#%" 
					fixed="false"
					headerText="Taux" 
					textAlign="right" 
					totalFunction="text"
					otherFunction="">
				</COLUMN>
				
				<COLUMN dataField="TOTRAM" 
					width="90"
					type="Number" 
					outputFormat="#E" 
					fixed="false"
					headerText="Total à régulariser AM" 
					textAlign="right" 
					totalFunction="sum"
					otherFunction="sum">
				</COLUMN>
				
				
			</DATAGRID>
		
		</ONGLET>
		
	</PRESENTATION>
	
</VUE>

			
