|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
<VUE
|
|
|
name="PMSI003601"
|
|
|
label="PMSI. Simulation FG 2223 erreurs et commentaires par RSS"
|
|
|
title="= ' Simulation FG 2223 ' + SELECT.DATA_LABEL + ' (' + SELECT.PERIODE_LABEL + ' à ' + SELECT.TOPERIODE_LABEL + ')'"
|
|
|
database="iCTI"
|
|
|
swf="*CTI_view1"
|
|
|
softCode="iCTI_pmsi"
|
|
|
typeEts=""
|
|
|
globals="PMSI_globals.XML"
|
|
|
componentsFile="PMSI_components.XML"
|
|
|
helpDokuWIkiDir=""
|
|
|
helpDokuWIkiFile="pmsi000133"
|
|
|
helpFile="iCTI_PMSI_PMSI000133.HTML"
|
|
|
>
|
|
|
<VIEWPROPERTIES>
|
|
|
<PROPERTY name="FILTRE_DATA_SELECT" value="[EVAL
|
|
|
$select = '';
|
|
|
if ('[DATA]' == 'NEXP') {
|
|
|
$select = $select. " AND p_simulation_fg2223.est_envoye <> '1' ";
|
|
|
}
|
|
|
if ('[DATA]' == 'ERR') {
|
|
|
$select = $select. " AND p_simulation_fg2223.est_envoye = '1' AND p_simulation_fg2223.erreur <> '' ";
|
|
|
}
|
|
|
if ('[DATA]' == 'COM') {
|
|
|
$select = $select. " AND p_simulation_fg2223.est_envoye = '1' AND p_simulation_fg2223.commentaire <> '' ";
|
|
|
}
|
|
|
return $select;
|
|
|
EVAL]"/>
|
|
|
</VIEWPROPERTIES>
|
|
|
<SELECTIONS label="Paramètres de l'analyse" displayText="">
|
|
|
<GROUP label="Période">
|
|
|
<FIELD name="PERIODE" label="" UI="combo" tree="true" width="200" default="2022-03-01">
|
|
|
<OPTION dataLink="DATE_DEBUT" treeLevelField="lvl" dataField="cod" aliasField="alias" data2Field="mois" labelField="txt" />
|
|
|
</FIELD>
|
|
|
<FIELD name="TOPERIODE" label="à" UI="combo" tree="true" width="200" default="2023-02-28" >
|
|
|
<OPTION dataLink="DATE_FIN" treeLevelField="lvl" dataField="cod" aliasField="alias" data2Field="mois" labelField="txt" />
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
<GROUP label="Données">
|
|
|
<FIELD name="DATA" label="" UI="combo" tree="false" width="400" default="ERR">
|
|
|
<OPTION label="RSS non envoyés pour regroupage" data="NEXP"/>
|
|
|
<OPTION label="RSS non regroupés en FG 2223" data="ERR"/>
|
|
|
<OPTION label="RSS regroupés après translations de codes diagnostics" data="COM"/>
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
</SELECTIONS>
|
|
|
<SELECTIONS componentName="FILTRES_RSS_SELECTIONS"/>
|
|
|
<QUERIES>
|
|
|
<QUERY label="">
|
|
|
<SQL optimizer="V_RSS_X">
|
|
|
<select><![CDATA[
|
|
|
(
|
|
|
SELECT DISTINCT
|
|
|
v_rss_1.rss_id,
|
|
|
v_rss_1.no_rss,
|
|
|
v_rss_1.no_sejour_administratif,
|
|
|
v_rss_1.finess,
|
|
|
identite_nom || ' ' || identite_prenom,
|
|
|
ghm_code,
|
|
|
ghs_code,
|
|
|
ghm_fg1_code,
|
|
|
ghs_fg1_code,
|
|
|
diagnostic_principal_code,
|
|
|
date_sortie,
|
|
|
sexe,
|
|
|
age,
|
|
|
p_simulation_fg2223.erreur,
|
|
|
p_simulation_fg2223.commentaire
|
|
|
FROM
|
|
|
#V_RSS_X#,
|
|
|
pmsi.p_simulation_fg2223
|
|
|
WHERE 1=1
|
|
|
AND v_rss_1.rss_id = pmsi.p_simulation_fg2223.rss_id
|
|
|
AND date_sortie >= '[PERIODE]'
|
|
|
AND date_sortie <= '[TOPERIODE]'
|
|
|
[VIEW.FILTRE_RSS_SELECT]
|
|
|
[VIEW.FILTRE_DATA_SELECT]
|
|
|
)
|
|
|
UNION ALL
|
|
|
(
|
|
|
SELECT
|
|
|
-9999999,
|
|
|
0,
|
|
|
'',
|
|
|
'',
|
|
|
COUNT(*)::text || ' dossiers',
|
|
|
'',
|
|
|
null,
|
|
|
'',
|
|
|
null,
|
|
|
'',
|
|
|
null,
|
|
|
'',
|
|
|
0,
|
|
|
'',
|
|
|
''
|
|
|
FROM
|
|
|
#V_RSS_X#,
|
|
|
pmsi.p_simulation_fg2223
|
|
|
WHERE 1=1
|
|
|
AND v_rss_1.rss_id = p_simulation_fg2223.rss_id
|
|
|
AND date_sortie >= '[PERIODE]'
|
|
|
AND date_sortie <='[TOPERIODE]'
|
|
|
[VIEW.FILTRE_RSS_SELECT]
|
|
|
[VIEW.FILTRE_DATA_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="GHM12"/>
|
|
|
<FIELD name="GHS12"/>
|
|
|
<FIELD name="GHM13"/>
|
|
|
<FIELD name="GHS13"/>
|
|
|
<FIELD name="DIAGP"/>
|
|
|
<FIELD name="DATE"/>
|
|
|
<FIELD name="SEX"/>
|
|
|
<FIELD name="AGE"/>
|
|
|
<FIELD name="ERR"/>
|
|
|
<FIELD name="COM"/>
|
|
|
</FIELDS>
|
|
|
</SQL>
|
|
|
</QUERY>
|
|
|
<QUERY type="comboLink" name="DATE_DEBUT" >
|
|
|
<SQL select="SELECT date, alias, texte, mois, level
|
|
|
FROM pmsi.v_calendrier_1
|
|
|
WHERE date_part('year',date) IN (SELECT annee_sortie FROM pmsi.p_simulation_fg2223 WHERE est_envoye <> '0' GROUP BY 1)" >
|
|
|
<FIELDS>
|
|
|
<FIELD name="cod" />
|
|
|
<FIELD name="alias" />
|
|
|
<FIELD name="txt" />
|
|
|
<FIELD name="mois" />
|
|
|
<FIELD name="lvl" />
|
|
|
</FIELDS>
|
|
|
</SQL>
|
|
|
</QUERY>
|
|
|
<QUERY type="comboLink" name="DATE_FIN" >
|
|
|
<SQL select="SELECT date, alias, texte, mois, level
|
|
|
FROM pmsi.v_calendrier_2
|
|
|
WHERE date_part('year',date) IN (SELECT annee_sortie FROM pmsi.p_simulation_fg2223 WHERE est_envoye <> '0' GROUP BY 1)" >
|
|
|
<FIELDS>
|
|
|
<FIELD name="cod" />
|
|
|
<FIELD name="alias" />
|
|
|
<FIELD name="txt" />
|
|
|
<FIELD name="mois" />
|
|
|
<FIELD name="lvl" />
|
|
|
</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" totalRowInRows="= ROW.OID == '-9999999'">
|
|
|
<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="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="SEX" width="40" type="Char" visible="true" headerText="Sexe" textAlign="right" otherFunction="text" totalFunction="text">
|
|
|
<CELLSTYLE name="cellIndicator" value="femme, 12,left middle , 0xEB76B1" condition="ROW.SEX == '2'" />
|
|
|
<CELLSTYLE name="cellIndicator" value="homme, 12,left middle , 0x75a0eb " condition="ROW.SEX == '1'" />
|
|
|
<CELLSTYLE name="cellIndicator" value="rectangle, 10,left middle , #FF5001 " condition="ROW.SEX == '3'" />
|
|
|
<CELLSTYLE name="cellIndicator" value="rectangle, 10, left middle, 0x666666" condition="ROW.SEX != '2' && ROW.SEX != '1' && ROW.SEX != '3'" />
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="AGE" width="35" type="Number" outputFormat="#" visible="true" headerText="Age" textAlign="right" otherFunction="text" totalFunction="text">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="DATE" 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="NBJ" width="50" visible="true" type="Number" outputFormat="#" headerText="Durée séjour" fixed="false" textAlign="right" totalFunction="sum" otherFunction="sum">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="GHM12" width="50" type="Char" visible="true" headerText="GHM FG 2022" textAlign="left" otherFunction="text" totalFunction="text">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="GHS12" width="50" type="Char" visible="true" headerText="GHS FG 2022" textAlign="left" otherFunction="text" totalFunction="text">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="DIAGP" width="40" type="Char" visible="true" headerText="Diag P" textAlign="left" otherFunction="text" totalFunction="text">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="GHM13" width="50" type="Char" visibleCondition="SELECT.DATA == 'COM'" headerText="GHM FG 2223" textAlign="left" otherFunction="text" totalFunction="text">
|
|
|
<HEADERCELLSTYLE name="color" value="0xff5001"/>
|
|
|
<CELLSTYLE name="color" value="0xff5001"/>
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="GHS13" width="50" type="Char" visibleCondition="SELECT.DATA == 'COM'" headerText="GHS FG 2223" textAlign="left" otherFunction="text" totalFunction="text">
|
|
|
<HEADERCELLSTYLE name="color" value="0xff5001"/>
|
|
|
<CELLSTYLE name="color" value="0xff5001"/>
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="ERR" minWidth="100" type="Char" visibleCondition="SELECT.DATA == 'ERR'" headerText="Erreur" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="COM" minWidth="100" type="Char" visibleCondition="SELECT.DATA == 'COM' || SELECT.DATA == 'NEXP'" headerText="Translations diagnostics avant groupage" textAlign="left" otherFunction="text" totalFunction="text">
|
|
|
</COLUMN>
|
|
|
</DATAGRID>
|
|
|
</ONGLET>
|
|
|
</PRESENTATION>
|
|
|
</VUE>
|