|
|
<?xml version="1.0" encoding="ISO-8859-15"?>
|
|
|
<VUE name="PMSI000175" label="PMSI. Justificatif C.A. ventilé par UM" title="= 'Justificatif ventilation C.A. par UM (' + SELECT.PERIODE_LABEL + ' à ' + SELECT.TOPERIODE_LABEL + ') - ' + SELECT.VERSION_GROUPAGE_LABEL" database="iCTI" swf="*CTI_view1" softCode="iCTI_pmsi" globals="PMSI_globals.XML" componentsFile="PMSI_components.XML" helpDokuWIkiDir="pmsi:sejour_analyse_detaillee:rum:chiffre_daffaire_rum" helpDokuWIkiFile="pmsi000160" helpFile="iCTI_PMSI_PMSI000175.HTML">
|
|
|
<VIEWPROPERTIES componentName="PROPERTIES_PRESTATIONS_UM" />
|
|
|
<SELECTIONS label="Paramètres de l'analyse">
|
|
|
<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 name="TOPERIODE" label="à" UI="combo" tree="true" width="200" default="2014-12-31" printable="false" globalListProvider="DATE_FIN" />
|
|
|
</GROUP>
|
|
|
</SELECTIONS>
|
|
|
<SELECTIONS componentName="FILTRES_PRESTATION_RUM_SELECTIONS" />
|
|
|
<SELECTIONS componentName="FILTRES_RSS_SELECTIONS" />
|
|
|
<QUERIES>
|
|
|
<QUERY label="">
|
|
|
<SQL optimizer="V_RSS_X">
|
|
|
<select><![CDATA[
|
|
|
|
|
|
(SELECT
|
|
|
v_rss_1.rss_id,
|
|
|
v_rss_1.no_rss,
|
|
|
v_rss_1.no_sejour_administratif,
|
|
|
v_rss_1.finess,
|
|
|
identite_nom::text || ' '::text || identite_prenom::text,
|
|
|
MIN(date_debut),
|
|
|
prestation_code,
|
|
|
prestation_texte,
|
|
|
unite_medicale_code,
|
|
|
unite_medicale_texte,
|
|
|
base.cti_sum_distinct_on(DISTINCT ARRAY[v_rsf_detail_1.rss_id::text || '-'::text || no_rum::text, v_rsf_detail_1.duree_sejour_rum::text]),
|
|
|
SUM(v_rsf_detail_1.base_remboursement_rum),
|
|
|
SUM(v_rsf_detail_1.base_remboursement_rum_sauf_transition_sauf_ame),
|
|
|
SUM(v_rsf_detail_1.sejour_remboursable_rum)
|
|
|
FROM #V_RSS_X#
|
|
|
JOIN pmsi.v_rsf_detail_rum_1 v_rsf_detail_1 ON v_rss_1.rss_id = v_rsf_detail_1.rss_id
|
|
|
WHERE date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
|
|
|
|
|
|
[VIEW.PRESTATION_SELECT]
|
|
|
[VIEW.FILTRE_RSS_SELECT]
|
|
|
GROUP BY 1,2,3,4,5,7,8,9,10
|
|
|
)
|
|
|
|
|
|
UNION ALL
|
|
|
|
|
|
(SELECT
|
|
|
-9999999,
|
|
|
0,
|
|
|
'',
|
|
|
'',
|
|
|
COUNT(DISTINCT v_rss_1.rss_id)::text || ' séjours, '::text || COUNT(DISTINCT v_rss_1.patient_id)::text || ' patients'::text ,
|
|
|
null,
|
|
|
'',
|
|
|
COUNT(DISTINCT v_rsf_detail_1.prestation_id)::text || ' codes'::text,
|
|
|
'',
|
|
|
'',
|
|
|
base.cti_sum_distinct_on(DISTINCT ARRAY[v_rsf_detail_1.rss_id::text || '-'::text || no_rum::text, v_rsf_detail_1.duree_sejour_rum::text]),
|
|
|
SUM(v_rsf_detail_1.base_remboursement_rum),
|
|
|
SUM(v_rsf_detail_1.base_remboursement_rum_sauf_transition_sauf_ame),
|
|
|
SUM(v_rsf_detail_1.sejour_remboursable_rum)
|
|
|
FROM #V_RSS_X#
|
|
|
JOIN pmsi.v_rsf_detail_rum_1 v_rsf_detail_1 ON v_rss_1.rss_id = v_rsf_detail_1.rss_id
|
|
|
WHERE date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
|
|
|
|
|
|
[VIEW.PRESTATION_SELECT]
|
|
|
[VIEW.FILTRE_RSS_SELECT]
|
|
|
)
|
|
|
|
|
|
ORDER BY 2
|
|
|
|
|
|
]]></select>
|
|
|
<FIELDS>
|
|
|
<FIELD name="OID" />
|
|
|
<FIELD name="RSS" />
|
|
|
<FIELD name="SEJ" />
|
|
|
<FIELD name="FIN" />
|
|
|
<FIELD name="NOM" ifHideNames="Non autorisé" />
|
|
|
<FIELD name="DAT" />
|
|
|
<FIELD name="PRC" />
|
|
|
<FIELD name="PRT" />
|
|
|
<FIELD name="UMC" />
|
|
|
<FIELD name="UMT" />
|
|
|
<FIELD name="NB_JOU" />
|
|
|
<FIELD name="MF" />
|
|
|
<FIELD name="MF_HT_HAME" />
|
|
|
<FIELD name="SR" />
|
|
|
</FIELDS>
|
|
|
</SQL>
|
|
|
</QUERY>
|
|
|
<QUERY type="propertiesLink" name="VIEWPROPERTIES" forRows="false" />
|
|
|
</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 dataField="FIN" width="60" type="Char" visible="true" headerText="Etablissement" textAlign="left" visibleCondition="ENV.CONSOLIDATION == '1'" otherFunction="text" totalFunction="text" totalComplement="" />
|
|
|
<COLUMN dataField="RSS" width="60" type="Char" visible="true" headerText="N° RSS" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL" />
|
|
|
<COLUMN dataField="SEJ" width="90" type="Char" visible="true" outputFormat="#" headerText="N° séjour" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="" />
|
|
|
<COLUMN dataField="NOM" minWidth="150" type="Char" visible="true" headerText="Nom" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="*ROW" />
|
|
|
<COLUMN dataField="UMC" type="Char" headerText="UM" visibleCondition="SELECT.UM == '-1' || SELECT.UM.toString().substr(0,2) == 'LI' || SELECT.UM.toString().substr(0,2) == 'LS'" width="60" textAlign="left" />
|
|
|
<COLUMN dataField="UMT" type="Char" headerText="Texte UM" visibleCondition="SELECT.UM == '-1' || SELECT.UM.toString().substr(0,2) == 'LI' || SELECT.UM.toString().substr(0,2) == 'LS'" minWidth="100" textAlign="left" totalFunction="text" totalComplement="*ROW" />
|
|
|
<COLUMN dataField="PRC" type="Char" visibleCondition="SELECT.PRESTATION == '-1' || SELECT.PRESTATION.toString().substr(0,2) == 'LI' || SELECT.PRESTATION.toString().substr(0,2) == 'LS'" headerText="Code" width="60" textAlign="left" />
|
|
|
<COLUMN dataField="NB_JOU" width="80" type="Number" visible="true" outputFormat="#j" headerText="Durée Séjour" textAlign="right" totalFunction="sum" otherFunction="" />
|
|
|
<COLUMN dataField="PRT" type="Char" visibleCondition="SELECT.PRESTATION == '-1' || SELECT.PRESTATION.toString().substr(0,2) == 'LI' || SELECT.PRESTATION.toString().substr(0,2) == 'LS'" 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="MF" type="Number" visible="true" outputFormat="#,00E" headerText="B.R. ventilée" width="100" textAlign="left" totalFunction="sum" />
|
|
|
<COLUMN dataField="MF_HT_HAME" type="Number" visible="true" outputFormat="#,00E" headerText="B.R. 100% ventilée" width="100" textAlign="left" totalFunction="sum" />
|
|
|
<COLUMN dataField="SR" type="Number" visible="true" outputFormat="#,00E" headerText="Remb. ventilée" width="100" textAlign="left" totalFunction="sum" />
|
|
|
</DATAGRID>
|
|
|
</ONGLET>
|
|
|
</PRESENTATION>
|
|
|
</VUE>
|