|
|
<?xml version="1.0" encoding="ISO-8859-15"?>
|
|
|
<VUE name="PMSI000153" label="PMSI. Justificatif prestations honoraires par RSS"
|
|
|
title="= 'Justificatif prestations honoraires par RSS (' + SELECT.PERIODE_LABEL + ' à ' + SELECT.TOPERIODE_LABEL + ') - ' + SELECT.VERSION_GROUPAGE_LABEL"
|
|
|
database="iCTI"
|
|
|
swf="*CTI_view1"
|
|
|
softCode="iCTI_pmsi"
|
|
|
globals="PMSI_globals.XML"
|
|
|
typeEts="23"
|
|
|
componentsFile="PMSI_components.XML">
|
|
|
|
|
|
<VIEWPROPERTIES componentName="PROPERTIES_PRESTATIONS" />
|
|
|
|
|
|
|
|
|
<SELECTIONS label="Paramètres de l'analyse" displayText="= var display:String = '';
|
|
|
if (SELECT.PRESTATION != '-1') {display = display + '#B#Analyse prestation#/B# : #B#' + SELECT.PRESTATION_LABEL + '#/B#'}
|
|
|
return display;
|
|
|
">
|
|
|
<GROUP label="Période">
|
|
|
<FIELD name="ALIAS_PERIODE" label="" UI="combo" width="220" default="CUM_LAST_MONTH" tree="true" globalListProvider="ALIAS_PERIODE" />
|
|
|
<FIELD name="PERIODE" label="de" UI="combo" tree="true" width="200" default="2014-01-01" printable="false" globalListProvider="DATE_DEBUT">
|
|
|
</FIELD>
|
|
|
<FIELD name="TOPERIODE" label="à" UI="combo" tree="true" width="200" default="2014-12-31" printable="false" globalListProvider="DATE_FIN">
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
<GROUP label="Prestation">
|
|
|
<FIELD name="PRESTATION" label="" UI="combo" tree="true" width="400" default="-1" globalListProvider="PRESTATION" showIfNotDefault="true">
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
</SELECTIONS>
|
|
|
<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.no_sejour_administratif,
|
|
|
v_rss_1.finess,
|
|
|
p_identites.nom || ' ' || p_identites.prenom,
|
|
|
date_debut,
|
|
|
prestation_code,
|
|
|
prestation_texte,
|
|
|
nombre_coefficient,
|
|
|
prix_unitaire,
|
|
|
v_rsf_detail_1.base_remboursement
|
|
|
FROM [VIEW.V_RSS_VIEW_OPTIMIZE], pmsi.v_rsf_detail_6 v_rsf_detail_1, pmsi.p_identites
|
|
|
WHERE
|
|
|
v_rss_1.rss_id = v_rsf_detail_1.rss_id
|
|
|
AND v_rss_1.rss_id = p_identites.rss_id
|
|
|
AND date_sortie >= '[PERIODE]'
|
|
|
AND date_sortie <='[TOPERIODE]'
|
|
|
|
|
|
[VIEW.PRESTATION_SELECT]
|
|
|
[VIEW.FILTRE_RSS_SELECT]
|
|
|
)
|
|
|
|
|
|
UNION ALL
|
|
|
|
|
|
(SELECT
|
|
|
-9999999,
|
|
|
0,
|
|
|
'',
|
|
|
'',
|
|
|
COUNT(DISTINCT v_rss_1.rss_id)::text || ' séjours, ' || COUNT(DISTINCT v_rss_1.patient_id)::text || ' patients' ,
|
|
|
null,
|
|
|
'',
|
|
|
COUNT(DISTINCT v_rsf_detail_1.prestation_id)::text || ' codes',
|
|
|
SUM(nombre_coefficient),
|
|
|
0,
|
|
|
SUM(v_rsf_detail_1.base_remboursement)
|
|
|
FROM [VIEW.V_RSS_VIEW_OPTIMIZE], pmsi.v_rsf_detail_6 v_rsf_detail_1, pmsi.p_identites
|
|
|
WHERE
|
|
|
v_rss_1.rss_id = v_rsf_detail_1.rss_id
|
|
|
AND v_rss_1.rss_id = p_identites.rss_id
|
|
|
AND date_sortie >= '[PERIODE]'
|
|
|
AND date_sortie <='[TOPERIODE]'
|
|
|
|
|
|
[VIEW.PRESTATION_SELECT]
|
|
|
[VIEW.FILTRE_RSS_SELECT]
|
|
|
)
|
|
|
|
|
|
ORDER BY 2
|
|
|
">
|
|
|
<FIELDS>
|
|
|
<FIELD name="OID"/>
|
|
|
<FIELD name="RSS"/>
|
|
|
<FIELD name="SEJ"/>
|
|
|
<FIELD name="FIN"/>
|
|
|
<FIELD name="NOM" ifHideNames="Non autorisé"/>
|
|
|
<FIELD name="DAT"/>
|
|
|
<FIELD name="COD"/>
|
|
|
<FIELD name="TXT"/>
|
|
|
<FIELD name="NB"/>
|
|
|
<FIELD name="PU"/>
|
|
|
<FIELD name="MF"/>
|
|
|
</FIELDS>
|
|
|
</SQL>
|
|
|
</QUERY>
|
|
|
<QUERY type="propertiesLink" name="VIEWPROPERTIES" forSelections="false">
|
|
|
</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="Justificatif par RSS" label="Justificatif par RSS">
|
|
|
<DATAGRID title="" total="true" showOthers="false" key="RSS" headerHeight="20" totalRowInRows="= ROW.OID == '-9999999'">
|
|
|
<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="SEJ" width="90" type="Char" visible="true" outputFormat="#" headerText="N° séjour" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="NOM" minWidth="150" type="Char" visible="true" headerText="Nom" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="*ROW">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="COD" type="Char" visibleCondition="SELECT.PRESTATION == '-1' || SELECT.PRESTATION.toString().substr(0,2) == 'LI'" headerText="Code" width="60" textAlign="left"/>
|
|
|
<COLUMN dataField="TXT" type="Char" visibleCondition="SELECT.PRESTATION == '-1' || SELECT.PRESTATION.toString().substr(0,2) == 'LI'" headerText="Texte prestation" minWidth="100" textAlign="left" totalFunction="text" totalComplement="*ROW"/>
|
|
|
<COLUMN dataField="DAT" type="Date" inputFormat="AAAA-MM-JJ" outputFormat="DD/MM/YY" visible="true" headerText="Date" width="80" textAlign="left"/>
|
|
|
<COLUMN dataField="NB" type="Number" visible="true" outputFormat="#" headerText="Nb" width="60" textAlign="left" totalFunction="sum"/>
|
|
|
<COLUMN dataField="PU" type="Number" visible="true" outputFormat="#,00E" headerText="Prix unitaire" width="80" textAlign="left"/>
|
|
|
<COLUMN dataField="MF" type="Number" visible="true" outputFormat="#,00E" headerText="Montant facturé" width="100" textAlign="left" totalFunction="sum"/>
|
|
|
</DATAGRID>
|
|
|
</ONGLET>
|
|
|
</PRESENTATION>
|
|
|
</VUE>
|