[Mpuls-commits] r3244 - in jmd/trunk: . jmdweb/public/xml

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Jul 26 15:35:44 CEST 2010


Author: roland
Date: 2010-07-26 15:35:42 +0200 (Mon, 26 Jul 2010)
New Revision: 3244

Added:
   jmd/trunk/jmdweb/public/xml/eval_analyse.xml
   jmd/trunk/jmdweb/public/xml/eval_cm.xml
Modified:
   jmd/trunk/ChangeLog
Log:
added uncommitted evaluation files

Modified: jmd/trunk/ChangeLog
===================================================================
--- jmd/trunk/ChangeLog	2010-07-26 10:59:14 UTC (rev 3243)
+++ jmd/trunk/ChangeLog	2010-07-26 13:35:42 UTC (rev 3244)
@@ -1,3 +1,8 @@
+2010-07-26  Roland Geider <roland.geider at intevation.de>
+
+	* jmdweb/public/xml/eval_analyse.xml,
+	  jmdweb/public/xml/eval_cm.xml: added uncommitted evaluation files
+
 2010-07-21  Torsten Irländer <torsten.irlaender at intevation.de>
 
 	* jmdstrukturweb/model/appointment.py

Added: jmd/trunk/jmdweb/public/xml/eval_analyse.xml
===================================================================
--- jmd/trunk/jmdweb/public/xml/eval_analyse.xml	2010-07-26 10:59:14 UTC (rev 3243)
+++ jmd/trunk/jmdweb/public/xml/eval_analyse.xml	2010-07-26 13:35:42 UTC (rev 3244)
@@ -0,0 +1,72 @@
+<evaluationset>
+  <id>3</id>
+  <version>1.0</version>
+  <name>Fallaktenanalyse</name>
+  <desc>Analyse der Fallakten nach Phasen und Validität</desc>
+  <evaluation>
+    <id>1</id>
+    <name>Gesamtzahl</name>
+    <desc>Zeigt die Gesamtanzahl der Fälle in der Datenbank an.</desc>
+    <basequery>
+      <table>master_tbl_eval_total_view</table>
+      <template>SELECT id, %(xfield)s, %(yfield)s from %(from)s WHERE %(where)s</template>
+      <where>(TRUE)</where>
+    </basequery>
+    <xdim>
+      <label>Geschlecht</label>
+      <field>geschlecht</field>
+      <table>geschlecht_tbl</table>
+      <join>geschlecht</join>
+    </xdim>
+    <ydim>
+      <label>Gesamtzahl Teilnehmer</label>
+      <field>(select count(id) from master_tbl_eval_total_view) as anzahl</field>
+      <table>(select DISTINCT count(id) as id, 'Gesamt' as value from master_tbl_eval_total_view)</table>
+      <join>anzahl</join>
+    </ydim>
+  </evaluation>
+  <evaluation>
+    <id>2</id>
+    <name>Phase</name>
+    <desc>Zeigt Verteilung von Phasen über die Geschlechter auf.</desc>
+    <basequery>
+      <table>master_tbl_eval_total_view</table>
+      <template>SELECT id, %(xfield)s, %(yfield)s from %(from)s WHERE %(where)s</template>
+      <where>(TRUE)</where>
+    </basequery>
+    <xdim>
+      <label>Geschlecht</label>
+      <field>geschlecht</field>
+      <table>geschlecht_tbl</table>
+      <join>geschlecht</join>
+    </xdim>
+    <ydim>
+      <label>Phase</label>
+      <field>phase</field>
+      <table>( select * from phase_tbl where id in (-1,0,1,2,3,4,5) )</table>
+      <join>phase</join>
+    </ydim>
+  </evaluation>
+  <evaluation>
+    <id>3</id>
+    <name>Validität in Phasen</name>
+    <desc>Zeigt Verteilung der Validitäten in den verschiedenen Phasen auf.</desc>
+    <basequery>
+      <table>(select DISTINCT p.id, p.phase, p.geschlecht, l.tag_id from nm_tags_cases_view l join master_tbl_eval_total_view p on l.case_id = p.id) zzz</table>
+      <template>SELECT id, %(xfield)s, %(yfield)s from %(from)s WHERE %(where)s</template>
+      <where>(TRUE)</where>
+    </basequery>
+    <xdim>
+      <label>Phase</label>
+      <field>phase</field>
+      <table>( select * from phase_tbl where id in (-1,0,1,2,3,4,5) )</table>
+      <join>phase</join>
+    </xdim>
+    <ydim>
+      <label>Validität</label>
+      <field>tag_id</field>
+      <table>(select id, label as value from tags_view where id in (1,2,3,4,0))</table>
+      <join>tag_id</join>
+    </ydim>
+  </evaluation>
+</evaluationset>

Added: jmd/trunk/jmdweb/public/xml/eval_cm.xml
===================================================================
--- jmd/trunk/jmdweb/public/xml/eval_cm.xml	2010-07-26 10:59:14 UTC (rev 3243)
+++ jmd/trunk/jmdweb/public/xml/eval_cm.xml	2010-07-26 13:35:42 UTC (rev 3244)
@@ -0,0 +1,301 @@
+<evaluationset>
+  <id>2</id>
+  <version>1.0</version>
+  <name>Case Management</name>
+  <desc>CM</desc>
+  <requirement>
+      <phase>2,3,4,5</phase>
+  </requirement>
+  <evaluation>
+      <id>3</id>
+      <name>Kompetenzfeststellung</name>
+      <desc>Kompetenzfeststellung</desc>
+      <basequery>
+          <table>master_tbl_eval_total_view</table>
+          <template>SELECT id, %(xfield)s, %(yfield)s from %(from)s WHERE %(where)s</template>
+          <where>(TRUE)</where>
+      </basequery>
+      <xdim>
+          <label>Geschlecht</label>
+          <field>geschlecht</field>
+          <table>geschlecht_tbl</table>
+          <join>geschlecht</join>
+      </xdim>
+      <ydim>
+          <label>Ja</label>
+          <field>(select count(id) from master_tbl_eval_total_view) as anzahl</field>
+          <table>(select DISTINCT count(id) as id, 'Gesamt' as value from master_tbl_eval_total_view)</table>
+          <join>anzahl</join>
+          <where>(kompetenzfeststellung=1)</where>
+      </ydim>
+      <ydim>
+          <label>Nein</label>
+          <field>(select count(id) from master_tbl_eval_total_view) as anzahl</field>
+          <table>(select DISTINCT count(id) as id, 'Gesamt' as value from master_tbl_eval_total_view)</table>
+          <join>anzahl</join>
+          <where>(kompetenzfeststellung=0)</where>
+      </ydim>
+  </evaluation>
+  <evaluation>
+      <id>4</id>
+      <name>Durchscnittliche Dauer (Tage) des Case Managements</name>
+      <desc>Durchscnittliche Dauer des Case Managements</desc>
+      <basequery>
+          <table>master_tbl_eval_total_view</table>
+          <template>SELECT id, datum_ea_start, datum_cm_ende, %(xfield)s, %(yfield)s from %(from)s WHERE %(where)s</template>
+          <where>(TRUE)</where>
+          <aggregate>trunc(sum(extract(epoch from age(datum_cm_ende, datum_ea_start))/86400))</aggregate>
+      </basequery>
+      <xdim>
+          <label>Geschlecht</label>
+          <field>geschlecht</field>
+          <table>geschlecht_tbl</table>
+          <join>geschlecht</join>
+      </xdim>
+      <ydim>
+          <label>Tage</label>
+          <field>(select DISTINCT 1 from master_tbl_eval_total_view) as anzahl</field>
+          <table>(select DISTINCT 1 as id, 'Gesamt' as value from master_tbl_eval_total_view)</table>
+          <join>anzahl</join>
+      </ydim>
+  </evaluation>
+  <evaluation>
+      <id>5</id>
+      <name>Durchscnittliche Dauer (Monate) des Case Managements</name>
+      <desc>Durchscnittliche Dauer des Case Managements</desc>
+      <basequery>
+          <table>master_tbl_eval_total_view</table>
+          <template>SELECT id, datum_ea_start, datum_cm_ende, %(xfield)s, %(yfield)s from %(from)s WHERE %(where)s</template>
+          <where>(TRUE)</where>
+          <aggregate>trunc(sum(extract(epoch from age(datum_cm_ende, datum_ea_start))/2592000))</aggregate>
+      </basequery>
+      <xdim>
+          <label>Geschlecht</label>
+          <field>geschlecht</field>
+          <table>geschlecht_tbl</table>
+          <join>geschlecht</join>
+      </xdim>
+      <ydim>
+          <label>Monate</label>
+          <field>(select DISTINCT 1 from master_tbl_eval_total_view) as anzahl</field>
+          <table>(select DISTINCT 1 as id, 'Gesamt' as value from master_tbl_eval_total_view)</table>
+          <join>anzahl</join>
+      </ydim>
+  </evaluation>
+  <evaluation>
+      <id>6</id>
+      <name>Beendigung des CM</name>
+      <desc>Beendigung des CM</desc>
+      <basequery>
+          <table>master_tbl_eval_total_view</table>
+          <template>SELECT id, %(xfield)s, %(yfield)s from %(from)s WHERE %(where)s</template>
+          <where>(TRUE)</where>
+      </basequery>
+      <xdim>
+          <label>Geschlecht</label>
+          <field>geschlecht</field>
+          <table>geschlecht_tbl</table>
+          <join>geschlecht</join>
+      </xdim>
+      <ydim>
+          <label>Beendigung</label>
+          <field>art_cm_ende</field>
+          <table>( SELECT * FROM art_cm_ende_tbl WHERE id IN (-3,-1,0,1) )</table>
+          <join>art_cm_ende</join>
+      </ydim>
+  </evaluation>
+  
+  <evaluation>
+      <id>7</id>
+      <name>Abbruch durch</name>
+      <desc>Abbruch durch</desc>
+      <basequery>
+          <table>master_tbl_eval_total_view</table>
+          <template>SELECT id, %(xfield)s, %(yfield)s from %(from)s WHERE %(where)s</template>
+          <where>(TRUE)</where>
+      </basequery>
+      <xdim>
+          <label>Geschlecht</label>
+          <field>geschlecht</field>
+          <table>geschlecht_tbl</table>
+          <join>geschlecht</join>
+      </xdim>
+      <ydim>
+          <label>Beendigung</label>
+          <field>abbruch_durch</field>
+          <table>( SELECT * FROM abbruch_durch_tbl )</table>
+          <join>abbruch_durch</join>
+      </ydim>
+  </evaluation>
+  
+  <evaluation>
+      <id>8</id>
+      <name>Gründe für den Abbruch des CM</name>
+      <desc>Gründe für den Abbruch des CM</desc>
+      <basequery>
+          <table>master_tbl_eval_total_view</table>
+          <template>SELECT id, %(xfield)s, %(yfield)s from %(from)s WHERE %(where)s</template>
+          <where>(TRUE)</where>
+      </basequery>
+      <xdim>
+          <label>Geschlecht</label>
+          <field>geschlecht</field>
+          <table>geschlecht_tbl</table>
+          <join>geschlecht</join>
+      </xdim>
+      <ydim>
+          <label>Beendigung</label>
+          <field>gruende_abbruch_cm</field>
+          <table>( SELECT * FROM gruende_abbruch_cm_tbl )</table>
+          <join>gruende_abbruch_cm</join>
+      </ydim>
+  </evaluation>
+  
+  <evaluation>
+      <id>9</id>
+      <name>Institutionelle Veränderung nach Beendigung des CM</name>
+      <desc>Institutionelle Veränderung nach Beendigung des CM</desc>
+      <basequery>
+          <table>master_tbl_eval_total_view</table>
+          <template>SELECT id, %(xfield)s, %(yfield)s from %(from)s WHERE %(where)s</template>
+          <where>(TRUE)</where>
+      </basequery>
+      <xdim>
+          <label>Geschlecht</label>
+          <field>geschlecht</field>
+          <table>geschlecht_tbl</table>
+          <join>geschlecht</join>
+      </xdim>
+      <ydim>
+          <label>Beendigung</label>
+          <field>veraenderung_inst_einbindung</field>
+          <table>( SELECT * FROM veraenderung_inst_einbindung_tbl )</table>
+          <join>veraenderung_inst_einbindung</join>
+      </ydim>
+  </evaluation>
+  
+  <evaluation>
+      <id>10</id>
+      <name>Institutioneller Verbleib nach nach Beendigung des CM</name>
+      <desc>Institutioneller Verbleib nach nach Beendigung des CM</desc>
+      <basequery>
+          <table>master_tbl_eval_total_view</table>
+          <template>SELECT id, %(xfield)s, %(yfield)s from %(from)s WHERE %(where)s</template>
+          <where>(TRUE)</where>
+      </basequery>
+      <xdim>
+          <label>Geschlecht</label>
+          <field>geschlecht</field>
+          <table>geschlecht_tbl</table>
+          <join>geschlecht</join>
+      </xdim>
+      <ydim>
+          <label>Beendigung</label>
+          <field>ende_inst_einbindung</field>
+          <table>( SELECT * FROM ende_inst_einbindung_tbl )</table>
+          <join>ende_inst_einbindung</join>
+      </ydim>
+  </evaluation>
+  
+  <evaluation>
+      <id>11</id>
+      <name>Zielerreichungsgrad</name>
+      <desc>Zielerreichungsgrad</desc>
+      <basequery>
+          <table>master_tbl_eval_total_view</table>
+          <template>SELECT id, %(xfield)s, %(yfield)s from %(from)s WHERE %(where)s</template>
+          <where>(TRUE)</where>
+      </basequery>
+      <xdim>
+          <label>Geschlecht</label>
+          <field>geschlecht</field>
+          <table>geschlecht_tbl</table>
+          <join>geschlecht</join>
+      </xdim>
+      <ydim>
+          <label>Ziel 1</label>
+          <field>ziel1_erreicht</field>
+          <table>( SELECT * FROM ziel1_erreicht_tbl )</table>
+          <join>ziel1_erreicht</join>
+      </ydim>
+      <ydim>
+          <label>Ziel 2</label>
+          <field>ziel2_erreicht</field>
+          <table>( SELECT * FROM ziel1_erreicht_tbl )</table>
+          <join>ziel2_erreicht</join>
+      </ydim>
+      <ydim>
+          <label>Ziel 3</label>
+          <field>ziel3_erreicht</field>
+          <table>( SELECT * FROM ziel1_erreicht_tbl )</table>
+          <join>ziel3_erreicht</join>
+      </ydim>
+  </evaluation>
+  
+  <evaluation>
+      <id>12</id>
+      <name>Verbleib der Jugendlichen (Datum)</name>
+      <desc>Verbleib der Jugendlichen (Datum)</desc>
+      <basequery>
+          <table>master_tbl_eval_total_view</table>
+          <template>SELECT id, %(xfield)s, %(yfield)s from %(from)s WHERE %(where)s</template>
+          <where>(TRUE)</where>
+      </basequery>
+      <xdim>
+          <label>Geschlecht</label>
+          <field>geschlecht</field>
+          <table>geschlecht_tbl</table>
+          <join>geschlecht</join>
+      </xdim>
+      <ydim>
+          <label>bis zu 3 Monate</label>
+          <field>(select count(id) from master_tbl_eval_total_view) as anzahl</field>
+          <table>(select DISTINCT count(id) as id, 'Gesamt' as value from master_tbl_eval_total_view)</table>
+          <join>anzahl</join>
+          <where>(date_part('month', age(datum_cm_ende, datum_verbleib_feststellung)) &lt;= 3)
+          </where>
+      </ydim>
+      <ydim>
+          <label>von 3 bis 6 Monate</label>
+          <field>(select count(id) from master_tbl_eval_total_view) as anzahl</field>
+          <table>(select DISTINCT count(id) as id, 'Gesamt' as value from master_tbl_eval_total_view)</table>
+          <join>anzahl</join>
+          <where>(date_part('month', age(datum_cm_ende, datum_verbleib_feststellung)) &gt; 3
+              AND date_part('month', age(datum_cm_ende, datum_verbleib_feststellung)) &lt;= 6)
+          </where>
+      </ydim>
+      <ydim>
+          <label>von 6 bis 12 Monate</label>
+          <field>(select count(id) from master_tbl_eval_total_view) as anzahl</field>
+          <table>(select DISTINCT count(id) as id, 'Gesamt' as value from master_tbl_eval_total_view)</table>
+          <join>anzahl</join>
+          <where>(date_part('month', age(datum_cm_ende, datum_verbleib_feststellung)) &gt; 6
+              AND date_part('month', age(datum_cm_ende, datum_verbleib_feststellung)) &lt;= 12)
+          </where>
+      </ydim>
+  </evaluation>
+  
+  <evaluation>
+      <id>13</id>
+      <name>Verbleib der Jugendlichen</name>
+      <desc>Verbleib der Jugendlichen</desc>
+      <basequery>
+          <table>master_tbl_eval_total_view</table>
+          <template>SELECT id, %(xfield)s, %(yfield)s from %(from)s WHERE %(where)s</template>
+          <where>(TRUE)</where>
+      </basequery>
+      <xdim>
+          <label>Geschlecht</label>
+          <field>geschlecht</field>
+          <table>geschlecht_tbl</table>
+          <join>geschlecht</join>
+      </xdim>
+      <ydim>
+          <label>Verbleib</label>
+          <field>verbleib_jugendliche</field>
+          <table>(select * FROM verbleib_jugendliche_tbl)</table>
+          <join>verbleib_jugendliche</join>
+      </ydim>
+  </evaluation>
+  
+</evaluationset>



More information about the Mpuls-commits mailing list