|
|
<?xml version="1.0" encoding="ISO-8859-15"?>
|
|
|
<VUE name="PMSI000017" label="PMSI. Justificatif LPP par RSS" title="= 'Justificatif LPP par RSS (' + SELECT.QUELLEDATE_LABEL + ' : ' + 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:lpp" helpDokuWIkiFile="pmsi000016" helpFile="iCTI_PMSI_PMSI000017.HTML">
|
|
|
<VIEWPROPERTIES componentName="PROPERTIES_LPP" />
|
|
|
<SELECTIONS label="Paramètres de l'analyse">
|
|
|
<GROUP label="Période">
|
|
|
<FIELD name="QUELLEDATE" label="" UI="combo" default="1" default2="date_fin" printable="false">
|
|
|
<OPTION label="Date sortie" data="1" data2="date_sortie" />
|
|
|
<OPTION label="Date lpp" data="2" data2="date_lpp" />
|
|
|
</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="2014-01-01" default2="201401" printable="false" globalListProvider="DATE_DEBUT" />
|
|
|
<FIELD name="TOPERIODE" label="à" UI="combo" tree="true" width="200" default="2014-12-31" default2="201412" printable="false" globalListProvider="DATE_FIN" />
|
|
|
</GROUP>
|
|
|
</SELECTIONS>
|
|
|
<SELECTIONS componentName="FILTRES_LPP_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,
|
|
|
v_rss_1.date_naissance,
|
|
|
v_rss_1.date_entree,
|
|
|
v_rss_1.date_sortie,
|
|
|
date_lpp,
|
|
|
lpp_code,
|
|
|
lpp_texte,
|
|
|
nombre,
|
|
|
prix_unitaire,
|
|
|
montant_facture,
|
|
|
montant_tr,
|
|
|
montant_t2a_accorde
|
|
|
|
|
|
FROM #V_RSS_X#
|
|
|
JOIN pmsi.v_rss_lpp_1 ON v_rss_1.rss_id = v_rss_lpp_1.rss_id
|
|
|
WHERE
|
|
|
[VIEW.QUELLEDATE] BETWEEN '[PERIODE]' AND '[TOPERIODE]'
|
|
|
AND type_lpp_code = 'SUS'
|
|
|
[VIEW.LPP_SELECT]
|
|
|
[VIEW.FILTRE_RSS_SELECT]
|
|
|
)
|
|
|
|
|
|
UNION ALL
|
|
|
|
|
|
(SELECT
|
|
|
|
|
|
-9999999,
|
|
|
COUNT(DISTINCT v_rss_1.no_sejour_administratif),
|
|
|
'',
|
|
|
'',
|
|
|
COUNT(DISTINCT v_rss_lpp_1.rss_id)::text || ' séjours, '::text || COUNT(DISTINCT v_rss_1.patient_id)::text || ' patients'::text,
|
|
|
null,
|
|
|
null,
|
|
|
null,
|
|
|
null,
|
|
|
'',
|
|
|
COUNT(DISTINCT v_rss_lpp_1.lpp_id)::text || ' codes'::text,
|
|
|
sum(nombre),
|
|
|
0,
|
|
|
sum(montant_facture),
|
|
|
sum(montant_tr),
|
|
|
sum(montant_t2a_accorde)
|
|
|
|
|
|
FROM #V_RSS_X#
|
|
|
JOIN pmsi.v_rss_lpp_1 ON v_rss_1.rss_id = v_rss_lpp_1.rss_id
|
|
|
WHERE
|
|
|
[VIEW.QUELLEDATE] BETWEEN '[PERIODE]' AND '[TOPERIODE]'
|
|
|
|
|
|
[VIEW.LPP_SELECT]
|
|
|
[VIEW.FILTRE_RSS_SELECT]
|
|
|
)
|
|
|
|
|
|
ORDER BY 2, 5
|
|
|
|
|
|
]]></select>
|
|
|
<FIELDS>
|
|
|
<FIELD name="OID" />
|
|
|
<FIELD name="RSS" />
|
|
|
<FIELD name="SEJ" />
|
|
|
<FIELD name="FIN" />
|
|
|
<FIELD name="NOM" ifHideNames="Non autorisé" />
|
|
|
<FIELD name="DNA"/>
|
|
|
<FIELD name="DEN"/>
|
|
|
<FIELD name="DSO"/>
|
|
|
<FIELD name="DAT" />
|
|
|
<FIELD name="COD" />
|
|
|
<FIELD name="TXT" />
|
|
|
<FIELD name="NB" />
|
|
|
<FIELD name="PU" />
|
|
|
<FIELD name="MF" />
|
|
|
<FIELD name="MTR" />
|
|
|
<FIELD name="MT2A" />
|
|
|
</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 LPP" label="Justificatif LPP">
|
|
|
<DATAGRID title="" total="true" showOthers="false" key="RSS" headerHeight="48" 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="DEN" type="Date" inputFormat="AAAA-MM-JJ" outputFormat="DD/MM/YY" visible="true" headerText="Date
Entrée" width="60" textAlign="left"/>
|
|
|
<COLUMN dataField="DSO" type="Date" inputFormat="AAAA-MM-JJ" outputFormat="DD/MM/YY" visible="true" headerText="Date
Sortie" width="60" textAlign="left"/>
|
|
|
<COLUMN dataField="NOM" minWidth="150" type="Char" visible="true" headerText="Nom" textAlign="left" totalFunction="text" totalComplement="*ROW" />
|
|
|
<COLUMN dataField="DNA" type="Date" inputFormat="AAAA-MM-JJ" outputFormat="DD/MM/YY" visible="true" headerText="Date
Naissance" width="75" textAlign="left"/>
|
|
|
<COLUMN dataField="COD" type="Char" visibleCondition="SELECT.LPP == '-1' || SELECT.LPP.toString().substr(0,2) == 'LI'" headerText="Code
LPP" width="60" textAlign="left" />
|
|
|
<COLUMN dataField="TXT" type="Char" visibleCondition="SELECT.LPP == '-1' || SELECT.LPP.toString().substr(0,2) == 'LI'" headerText="Libellé
LPP" 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
LPP" width="60" textAlign="left" />
|
|
|
<COLUMN dataField="NB" type="Number" visible="true" outputFormat="#" headerText="Nombre
LPP" 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="right" totalFunction="sum" />
|
|
|
<COLUMN dataField="MTR" type="Number" visible="true" outputFormat="#,00E" headerText="Montant
tarif
responsabilité" width="100" textAlign="right" totalFunction="sum" visibleCondition="ENV.TYPEETS == '2' || ENV.TYPEETS == '3'" />
|
|
|
<COLUMN dataField="MT2A" type="Number" visible="true" outputFormat="#,00E" headerText="Montant
T2A
accordé" width="100" textAlign="right" totalFunction="sum" visibleCondition="ENV.TYPEETS == '2' || ENV.TYPEETS == '3'" />
|
|
|
</DATAGRID>
|
|
|
</ONGLET>
|
|
|
</PRESENTATION>
|
|
|
</VUE>
|