<form method="post" id="edit-form">
<TD class=DokuInnen bgColor=#99ccff vAlign=top align=left>Die Summe wird mit oben beschriebener Aktualisierung automatisch berechnet.<BR><STRONG>Summe gültiger Zeiträume </STRONG><FONT size=2 ><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=SumZeitraumArzt&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&READONLY=NEIN&Anzeige=SumZeitraumArzt" name="SumZeitraumArzt"
> <span ID ="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT SUM(to_number (TEXT, '99999')) AS sumops1 FROM (SELECT Text2 AS TEXT,ART2 AS ART,CODE,OPS FROM (SELECT DISTINCT TEXT2,ART2,ARZT.CODE,ARZT.ART AS OPS FROM (SELECT DISTINCT TEXT AS TEXT2,ART AS ART2 FROM Arzt WHERE ART IN ('Minuten1','Minuten2','Minuten3','Minuten4','Minuten5','Minuten6','Minuten7','Minuten8','Minuten9','Minuten10','Minuten11','Minuten12','Minuten13','Minuten14','Minuten15','Minuten16','Minuten17','Minuten18','Minuten19','Minuten20','Minuten21','Minuten22','Minuten23','Minuten24','Minuten25','Minuten26','Minuten27','Minuten28','Minuten29','Minuten30','Minuten31','Minuten32','Minuten33','Minuten34','Minuten35','Minuten36','Minuten37','Minuten38','Minuten39','Minuten40','Minuten41','Minuten42','Minuten43','Minuten44','Minuten45','Minuten46','Minuten47','Minuten48') AND patnr = '{PATNR}' AND storniert =0 and ref_form_id = '{FORMULAR_ID}'), ARZT WHERE ART IN ('OPS1','OPS2','OPS3','OPS4','OPS5','OPS6','OPS7','OPS8','OPS9','OPS10','OPS11','OPS12','OPS13','OPS14','OPS15','OPS16','OPS17','OPS18','OPS19','OPS20','OPS21','OPS22','OPS23','OPS24','OPS25','OPS26','OPS27','OPS28','OPS29','OPS30','OPS31','OPS32','OPS33','OPS34','OPS35','OPS36','OPS37','OPS38','OPS39','OPS40','OPS41','OPS42','OPS43','OPS44','OPS45','OPS46','OPS47','OPS48') AND CODE = '1' AND patnr = '{PATNR}' AND storniert=0 AND ref_form_id = '{FORMULAR_ID}') WHERE SUBSTR(ART2,8,2) = SUBSTR(OPS,4,2))&Anzeige=SQLszr1" name="SQLszr1"><STRONG>SQLszr1</STRONG></SPAN></SPAN></FONT><STRONG> </STRONG><BR></TD></TR></TBODY></TABLE><BR><STRONG><FONT color=#ff0000>Empfehlung: OPS erst am Folgetag ableiten!</FONT><BR></STRONG><BR>
<TABLE class=Innen cellSpacing=0 cellPadding=2 width="100%">
<input type="submit" id="save-button" value="Speichern"/>
<TD vAlign=top align=left><STRONG><FONT color=#000000></FONT>
<TABLE cellSpacing=0 cellPadding=2 width="100%">
<TBODY>
<TR>
<TR>
<TD class=Grid_Header vAlign=top align=left> Uhrzeit von</TD>
<TD class=Grid_Header vAlign=top align=left> Uhrzeit bis</TD>
<TD class=Grid_Header vAlign=top align=left> Name</TD>
<TD class=Grid_Header vAlign=top align=left> Berufsgruppe</TD>
<TD class=Grid_Header style="vAlign: top" align=left>Verhalten und Symptome </TD>
<TD class=Grid_Header style="vAlign: top" align=left><SPAN class=MCToolTip><SPAN id=Überschrift>Minuten</SPAN>
<DIV id=Inhalt style="DISPLAY: none">Werte werden mit oben beschriebener Aktualisierung automatisch berechnet.</DIV></SPAN></TD>
<TD class=Grid_Header vAlign=top align=left><SPAN class=MCToolTip><SPAN id=Überschrift>Gültig für OPS <IMG border=0 src="Images/info.gif" align=absMiddle></SPAN>
<DIV id=Inhalt style="DISPLAY: none">Nur wenn "Gültig für OPS" angeklickt ist, wird der Minutenwert der Zeilen in den obigen Summen gültiger Zeiträume berücksichtigt.</DIV></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von1&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von1" name="von1"><FONT color=red>von1</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis1&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis1" name="bis1"><FONT color=red>bis1</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name1&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name1" name="Name1"><FONT color=red>Name1</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe1&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe1" name="Berufsgruppe1"><FONT color=red>Berufsgruppe1</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten1&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten1" name="Verhalten1"><FONT color=red>Verhalten1</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten1&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten1" name="Minuten1"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von1' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis1' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM1" name="SQLM1">SQLM1</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS1&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS1" name="OPS1"><FONT color=red>OPS1</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von2&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von2" name="von2"><FONT color=red>von2</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis2&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis2" name="bis2"><FONT color=red>bis2</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name2&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name2" name="Name2"><FONT color=red>Name2</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe2&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe2" name="Berufsgruppe2"><FONT color=red>Berufsgruppe2</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten2&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten2" name="Verhalten2"><FONT color=red>Verhalten2</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten2&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten2" name="Minuten2"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von2' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis2' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM2" name="SQLM2">SQLM2</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS2&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS2" name="OPS2"><FONT color=red>OPS2</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von3&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von3" name="von3"><FONT color=red>von3</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis3&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis3" name="bis3"><FONT color=red>bis3</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name3&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name3" name="Name3"><FONT color=red>Name3</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe3&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe3" name="Berufsgruppe3"><FONT color=red>Berufsgruppe3</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten3&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten3" name="Verhalten3"><FONT color=red>Verhalten3</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten3&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten3" name="Minuten3"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von3' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis3' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM3" name="SQLM3">SQLM3</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS3&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS3" name="OPS3"><FONT color=red>OPS3</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von4&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von4" name="von4"><FONT color=red>von4</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis4&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis4" name="bis4"><FONT color=red>bis4</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name4&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name4" name="Name4"><FONT color=red>Name4</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe4&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe4" name="Berufsgruppe4"><FONT color=red>Berufsgruppe4</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten4&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten4" name="Verhalten4"><FONT color=red>Verhalten4</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten4&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten4" name="Minuten4"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von4' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis4' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM4" name="SQLM4">SQLM4</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS4&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS4" name="OPS4"><FONT color=red>OPS4</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von5&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von5" name="von5"><FONT color=red>von5</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis5&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis5" name="bis5"><FONT color=red>bis5</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name5&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name5" name="Name5"><FONT color=red>Name5</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe5&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe5" name="Berufsgruppe5"><FONT color=red>Berufsgruppe5</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten5&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten5" name="Verhalten5"><FONT color=red>Verhalten5</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten5&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten5" name="Minuten5"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von5' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis5' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM5" name="SQLM5">SQLM5</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS5&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS5" name="OPS5"><FONT color=red>OPS5</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von6&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von6" name="von6"><FONT color=red>von6</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis6&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis6" name="bis6"><FONT color=red>bis6</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name6&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name6" name="Name6"><FONT color=red>Name6</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe6&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe6" name="Berufsgruppe6"><FONT color=red>Berufsgruppe6</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten6&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten6" name="Verhalten6"><FONT color=red>Verhalten6</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten6&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten6" name="Minuten6"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von6' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis6' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM6" name="SQLM6">SQLM6</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS6&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS6" name="OPS6"><FONT color=red>OPS6</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von7&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von7" name="von7"><FONT color=red>von7</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis7&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis7" name="bis7"><FONT color=red>bis7</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name7&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name7" name="Name7"><FONT color=red>Name7</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe7&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe7" name="Berufsgruppe7"><FONT color=red>Berufsgruppe7</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten7&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten7" name="Verhalten7"><FONT color=red>Verhalten7</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten7&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten7" name="Minuten7"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von7' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis7' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM7" name="SQLM7">SQLM7</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS7&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS7" name="OPS7"><FONT color=red>OPS7</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von8&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von8" name="von8"><FONT color=red>von8</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis8&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis8" name="bis8"><FONT color=red>bis8</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name8&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name8" name="Name8"><FONT color=red>Name8</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe8&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe8" name="Berufsgruppe8"><FONT color=red>Berufsgruppe8</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten8&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten8" name="Verhalten8"><FONT color=red>Verhalten8</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten8&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten8" name="Minuten8"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von8' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis8' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM8" name="SQLM8">SQLM8</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS8&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS8" name="OPS8"><FONT color=red>OPS8</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von9&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von9" name="von9"><FONT color=red>von9</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis9&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis9" name="bis9"><FONT color=red>bis9</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name9&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name9" name="Name9"><FONT color=red>Name9</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe9&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe9" name="Berufsgruppe9"><FONT color=red>Berufsgruppe9</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten9&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten9" name="Verhalten9"><FONT color=red>Verhalten9</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten9&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten9" name="Minuten9"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von9' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis9' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM9" name="SQLM9">SQLM9</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS9&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS9" name="OPS9"><FONT color=red>OPS9</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von10&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von10" name="von10"><FONT color=red>von10</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis10&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis10" name="bis10"><FONT color=red>bis10</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name10&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name10" name="Name10"><FONT color=red>Name10</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe10&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe10" name="Berufsgruppe10"><FONT color=red>Berufsgruppe10</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten10&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten10" name="Verhalten10"><FONT color=red>Verhalten10</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten10&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten10" name="Minuten10"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von10' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis10' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM10" name="SQLM10">SQLM10</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS10&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS10" name="OPS10"><FONT color=red>OPS10</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von11&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von11" name="von11"><FONT color=red>von11</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis11&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis11" name="bis11"><FONT color=red>bis11</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name11&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name11" name="Name11"><FONT color=red>Name11</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe11&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe11" name="Berufsgruppe11"><FONT color=red>Berufsgruppe11</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten11&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten11" name="Verhalten11"><FONT color=red>Verhalten11</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten11&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten11" name="Minuten11"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von11' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis11' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM11" name="SQLM11">SQLM11</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS11&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS11" name="OPS11"><FONT color=red>OPS11</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von12&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von12" name="von12"><FONT color=red>von12</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis12&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis12" name="bis12"><FONT color=red>bis12</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name12&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name12" name="Name12"><FONT color=red>Name12</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe12&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe12" name="Berufsgruppe12"><FONT color=red>Berufsgruppe12</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten12&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten12" name="Verhalten12"><FONT color=red>Verhalten12</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten12&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten12" name="Minuten12"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von12' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis12' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM12" name="SQLM12">SQLM12</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS12&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS12" name="OPS12"><FONT color=red>OPS12</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von13&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von13" name="von13"><FONT color=red>von13</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis13&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis13" name="bis13"><FONT color=red>bis13</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name13&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name13" name="Name13"><FONT color=red>Name13</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe13&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe13" name="Berufsgruppe13"><FONT color=red>Berufsgruppe13</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten13&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten13" name="Verhalten13"><FONT color=red>Verhalten13</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten13&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten13" name="Minuten13"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von13' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis13' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM13" name="SQLM13">SQLM13</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS13&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS13" name="OPS13"><FONT color=red>OPS13</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von14&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von14" name="von14"><FONT color=red>von14</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis14&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis14" name="bis14"><FONT color=red>bis14</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name14&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name14" name="Name14"><FONT color=red>Name14</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe14&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe14" name="Berufsgruppe14"><FONT color=red>Berufsgruppe14</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten14&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten14" name="Verhalten14"><FONT color=red>Verhalten14</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten14&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten14" name="Minuten14"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von14' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis14' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM14" name="SQLM14">SQLM14</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS14&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS14" name="OPS14"><FONT color=red>OPS14</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von15&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von15" name="von15"><FONT color=red>von15</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis15&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis15" name="bis15"><FONT color=red>bis15</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name15&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name15" name="Name15"><FONT color=red>Name15</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe15&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe15" name="Berufsgruppe15"><FONT color=red>Berufsgruppe15</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten15&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten15" name="Verhalten15"><FONT color=red>Verhalten15</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten15&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten15" name="Minuten15"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von15' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis15' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM15" name="SQLM15">SQLM15</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS15&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS15" name="OPS15"><FONT color=red>OPS15</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von16&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von16" name="von16"><FONT color=red>von16</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis16&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis16" name="bis16"><FONT color=red>bis16</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name16&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name16" name="Name16"><FONT color=red>Name16</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe16&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe16" name="Berufsgruppe16"><FONT color=red>Berufsgruppe16</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten16&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten16" name="Verhalten16"><FONT color=red>Verhalten16</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten16&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten16" name="Minuten16"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von16' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis16' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM16" name="SQLM16">SQLM16</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS16&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS16" name="OPS16"><FONT color=red>OPS16</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von17&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von17" name="von17"><FONT color=red>von17</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis17&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis17" name="bis17"><FONT color=red>bis17</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name17&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name17" name="Name17"><FONT color=red>Name17</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe17&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe17" name="Berufsgruppe17"><FONT color=red>Berufsgruppe17</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten17&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten17" name="Verhalten17"><FONT color=red>Verhalten17</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten17&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten17" name="Minuten17"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von17' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis17' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM17" name="SQLM17">SQLM17</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS17&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS17" name="OPS17"><FONT color=red>OPS17</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von18&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von18" name="von18"><FONT color=red>von18</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis18&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis18" name="bis18"><FONT color=red>bis18</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name18&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name18" name="Name18"><FONT color=red>Name18</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe18&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe18" name="Berufsgruppe18"><FONT color=red>Berufsgruppe18</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten18&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten18" name="Verhalten18"><FONT color=red>Verhalten18</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten18&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten18" name="Minuten18"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von18' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis18' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM18" name="SQLM18">SQLM18</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS18&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS18" name="OPS18"><FONT color=red>OPS18</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von19&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von19" name="von19"><FONT color=red>von19</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis19&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis19" name="bis19"><FONT color=red>bis19</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name19&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name19" name="Name19"><FONT color=red>Name19</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe19&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe19" name="Berufsgruppe19"><FONT color=red>Berufsgruppe19</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten19&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten19" name="Verhalten19"><FONT color=red>Verhalten19</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten19&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten19" name="Minuten19"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von19' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis19' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM19" name="SQLM19">SQLM19</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS19&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS19" name="OPS19"><FONT color=red>OPS19</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von20&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von20" name="von20"><FONT color=red>von20</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis20&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis20" name="bis20"><FONT color=red>bis20</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name20&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name20" name="Name20"><FONT color=red>Name20</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe20&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe20" name="Berufsgruppe20"><FONT color=red>Berufsgruppe20</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten20&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten20" name="Verhalten20"><FONT color=red>Verhalten20</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten20&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten20" name="Minuten20"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von20' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis20' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM20" name="SQLM20">SQLM20</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS20&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS20" name="OPS20"><FONT color=red>OPS20</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von21&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von21" name="von21"><FONT color=red>von21</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis21&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis21" name="bis21"><FONT color=red>bis21</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name21&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name21" name="Name21"><FONT color=red>Name21</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe21&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe21" name="Berufsgruppe21"><FONT color=red>Berufsgruppe21</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten21&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten21" name="Verhalten21"><FONT color=red>Verhalten21</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten21&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten21" name="Minuten21"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von21' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis21' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM21" name="SQLM21">SQLM21</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS21&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS21" name="OPS21"><FONT color=red>OPS21</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von22&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von22" name="von22"><FONT color=red>von22</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis22&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis22" name="bis22"><FONT color=red>bis22</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name22&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name22" name="Name22"><FONT color=red>Name22</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe22&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe22" name="Berufsgruppe22"><FONT color=red>Berufsgruppe22</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten22&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten22" name="Verhalten22"><FONT color=red>Verhalten22</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten22&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten22" name="Minuten22"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von22' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis22' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM22" name="SQLM22">SQLM22</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS22&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS22" name="OPS22"><FONT color=red>OPS22</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von23&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von23" name="von23"><FONT color=red>von23</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis23&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis23" name="bis23"><FONT color=red>bis23</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name23&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name23" name="Name23"><FONT color=red>Name23</FONT></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe22&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe23" name="Berufsgruppe23"><FONT color=red>Berufsgruppe23</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten23&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten23" name="Verhalten23"><FONT color=red>Verhalten23</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten23&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten23" name="Minuten23"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von23' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis23' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM23" name="SQLM23">SQLM23</SPAN></SPAN></TD>
<TD class=Grid vAlign=top align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS23&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS23" name="OPS23"><FONT color=red>OPS23</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von24&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von24" name="von24"><FONT color=red>von24</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis24&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis24" name="bis24"><FONT color=red>bis24</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name24&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name24" name="Name24"><FONT color=red>Name24</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe23&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe24" name="Berufsgruppe24"><FONT color=red>Berufsgruppe24</FONT></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten24&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten24" name="Verhalten24"><FONT color=red>Verhalten24</FONT></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten24&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten24" name="Minuten24"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von24' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis24' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM24" name="SQLM24">SQLM24</SPAN></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS24&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS24" name="OPS24"><FONT color=red>OPS24</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von25&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von25" name="von25"><FONT color=red>von25</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis25&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis25" name="bis25"><FONT color=red>bis25</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name25&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name25" name="Name25"><FONT color=red>Name25</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe25&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe25" name="Berufsgruppe25"><FONT color=red>Berufsgruppe25</FONT></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten25&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten25" name="Verhalten25"><FONT color=red>Verhalten25</FONT></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten25&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten25" name="Minuten25"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von25' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis25' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM25" name="SQLM25">SQLM25</SPAN></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS25&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS25" name="OPS25"><FONT color=red>OPS25</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von26&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von26" name="von26"><FONT color=red>von26</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis26&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis26" name="bis26"><FONT color=red>bis26</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name26&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name26" name="Name26"><FONT color=red>Name26</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe26&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe26" name="Berufsgruppe26"><FONT color=red>Berufsgruppe26</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten26&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten26" name="Verhalten26"><FONT color=red>Verhalten26</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten26&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten26" name="Minuten26"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von26' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis26' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM26" name="SQLM26">SQLM26</SPAN></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS26&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS26" name="OPS26"><FONT color=red>OPS26</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von27&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von27" name="von27"><FONT color=red>von27</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis27&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis27" name="bis27"><FONT color=red>bis27</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name27&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name27" name="Name27"><FONT color=red>Name27</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe27&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe27" name="Berufsgruppe27"><FONT color=red>Berufsgruppe27</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten27&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten27" name="Verhalten27"><FONT color=red>Verhalten27</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten27&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten27" name="Minuten27"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von27' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis27' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM27" name="SQLM27">SQLM27</SPAN></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS27&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS27" name="OPS27"><FONT color=red>OPS27</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von28&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von28" name="von28"><FONT color=red>von28</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis28&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis28" name="bis28"><FONT color=red>bis28</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name28&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name28" name="Name28"><FONT color=red>Name28</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe28&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe28" name="Berufsgruppe28"><FONT color=red>Berufsgruppe28</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten28&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten28" name="Verhalten28"><FONT color=red>Verhalten28</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten28&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten28" name="Minuten28"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von28' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis28' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM28" name="SQLM28">SQLM28</SPAN></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS28&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS28" name="OPS28"><FONT color=red>OPS28</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von29&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von29" name="von29"><FONT color=red>von29</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis29&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis29" name="bis29"><FONT color=red>bis29</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name29&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name29" name="Name29"><FONT color=red>Name29</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe29&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe29" name="Berufsgruppe29"><FONT color=red>Berufsgruppe29</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten29&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten29" name="Verhalten29"><FONT color=red>Verhalten29</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten29&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten29" name="Minuten29"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von29' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis29' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM29" name="SQLM29">SQLM29</SPAN></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS29&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS29" name="OPS29"><FONT color=red>OPS29</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von30&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von30" name="von30"><FONT color=red>von30</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis30&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis30" name="bis30"><FONT color=red>bis30</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name30&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name30" name="Name30"><FONT color=red>Name30</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe30&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe30" name="Berufsgruppe30"><FONT color=red>Berufsgruppe30</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten30&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten30" name="Verhalten30"><FONT color=red>Verhalten30</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten30&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten30" name="Minuten30"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von30' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis30' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM30" name="SQLM30">SQLM30</SPAN></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS30&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS30" name="OPS30"><FONT color=red>OPS30</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von31&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von31" name="von31"><FONT color=red>von31</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis31&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis31" name="bis31"><FONT color=red>bis31</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name31&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name31" name="Name31"><FONT color=red>Name31</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe31&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe31" name="Berufsgruppe31"><FONT color=red>Berufsgruppe31</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten31&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten31" name="Verhalten31"><FONT color=red>Verhalten31</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten31&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten31" name="Minuten31"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von31' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis31' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM31" name="SQLM31">SQLM31</SPAN></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS31&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS31" name="OPS31"><FONT color=red>OPS31</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von32&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von32" name="von32"><FONT color=red>von32</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis32&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis32" name="bis32"><FONT color=red>bis32</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name32&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name32" name="Name32"><FONT color=red>Name32</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe32&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe32" name="Berufsgruppe32"><FONT color=red>Berufsgruppe32</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten32&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten32" name="Verhalten32"><FONT color=red>Verhalten32</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten32&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten32" name="Minuten32"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von32' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis32' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM32" name="SQLM32">SQLM32</SPAN></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS32&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS32" name="OPS32"><FONT color=red>OPS32</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von33&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von33" name="von33"><FONT color=red>von33</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis33&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis33" name="bis33"><FONT color=red>bis33</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name33&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name33" name="Name33"><FONT color=red>Name33</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe33&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe33" name="Berufsgruppe33"><FONT color=red>Berufsgruppe33</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten33&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten33" name="Verhalten33"><FONT color=red>Verhalten33</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten33&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten33" name="Minuten33"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von33' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis33' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM33" name="SQLM33">SQLM33</SPAN></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS33&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS33" name="OPS33"><FONT color=red>OPS33</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von34&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von34" name="von34"><FONT color=red>von34</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis34&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis34" name="bis34"><FONT color=red>bis34</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name34&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name34" name="Name34"><FONT color=red>Name34</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe34&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe34" name="Berufsgruppe34"><FONT color=red>Berufsgruppe34</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten34&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten34" name="Verhalten34"><FONT color=red>Verhalten34</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten34&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten34" name="Minuten34"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von34' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis34' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM34" name="SQLM34">SQLM34</SPAN></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS34&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS34" name="OPS34"><FONT color=red>OPS34</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von35&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von35" name="von35"><FONT color=red>von35</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis35&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis35" name="bis35"><FONT color=red>bis35</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name35&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name35" name="Name35"><FONT color=red>Name35</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe35&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe35" name="Berufsgruppe35"><FONT color=red>Berufsgruppe35</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten35&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten35" name="Verhalten35"><FONT color=red>Verhalten35</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten35&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten35" name="Minuten35"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von35' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis35' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM35" name="SQLM35">SQLM35</SPAN></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS35&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS35" name="OPS35"><FONT color=red>OPS35</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von36&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von36" name="von36"><FONT color=red>von36</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis36&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis36" name="bis36"><FONT color=red>bis36</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name36&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name36" name="Name36"><FONT color=red>Name36</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe36&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe36" name="Berufsgruppe36"><FONT color=red>Berufsgruppe36</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten36&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten36" name="Verhalten36"><FONT color=red>Verhalten36</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten36&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten36" name="Minuten36"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von36' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis36' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM36" name="SQLM36">SQLM36</SPAN></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS36&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS36" name="OPS36"><FONT color=red>OPS36</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von37&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von37" name="von37"><FONT color=red>von37</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis37&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis37" name="bis37"><FONT color=red>bis37</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name37&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name37" name="Name37"><FONT color=red>Name37</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe37&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe37" name="Berufsgruppe37"><FONT color=red>Berufsgruppe37</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten37&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten37" name="Verhalten37"><FONT color=red>Verhalten37</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten37&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten37" name="Minuten37"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von37' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis37' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM37" name="SQLM37">SQLM37</SPAN></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS37&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS37" name="OPS37"><FONT color=red>OPS37</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von38&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von38" name="von38"><FONT color=red>von38</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis38&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis38" name="bis38"><FONT color=red>bis38</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name38&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name38" name="Name38"><FONT color=red>Name38</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe38&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe38" name="Berufsgruppe38"><FONT color=red>Berufsgruppe38</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten38&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten38" name="Verhalten38"><FONT color=red>Verhalten38</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten38&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten38" name="Minuten38"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von38' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis38' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM38" name="SQLM38">SQLM38</SPAN></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS38&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS38" name="OPS38"><FONT color=red>OPS38</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von39&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von39" name="von39"><FONT color=red>von39</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis39&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis39" name="bis39"><FONT color=red>bis39</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name39&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name39" name="Name39"><FONT color=red>Name39</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe39&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe39" name="Berufsgruppe39"><FONT color=red>Berufsgruppe39</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten39&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten39" name="Verhalten39"><FONT color=red>Verhalten39</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten39&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten39" name="Minuten39"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von39' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis39' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM39" name="SQLM39">SQLM39</SPAN></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS39&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS39" name="OPS39"><FONT color=red>OPS39</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von40&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von40" name="von40"><FONT color=red>von40</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis40&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis40" name="bis40"><FONT color=red>bis40</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name40&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name40" name="Name40"><FONT color=red>Name40</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe40&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe40" name="Berufsgruppe40"><FONT color=red>Berufsgruppe40</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten40&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten40" name="Verhalten40"><FONT color=red>Verhalten40</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten40&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten40" name="Minuten40"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von40' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis40' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM40" name="SQLM40">SQLM40</SPAN></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS40&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS40" name="OPS40"><FONT color=red>OPS40</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von41&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von41" name="von41"><FONT color=red>von41</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis41&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis41" name="bis41"><FONT color=red>bis41</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name41&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name41" name="Name41"><FONT color=red>Name41</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe41&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe41" name="Berufsgruppe41"><FONT color=red>Berufsgruppe41</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten41&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten41" name="Verhalten41"><FONT color=red>Verhalten41</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten41&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten41" name="Minuten41"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von41' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis41' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM41" name="SQLM41">SQLM41</SPAN></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS41&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS41" name="OPS41"><FONT color=red>OPS41</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von42&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von42" name="von42"><FONT color=red>von42</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis42&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis42" name="bis42"><FONT color=red>bis42</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name42&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name42" name="Name42"><FONT color=red>Name42</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe42&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe42" name="Berufsgruppe42"><FONT color=red>Berufsgruppe42</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten42&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten42" name="Verhalten42"><FONT color=red>Verhalten42</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten42&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten42" name="Minuten42"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von42' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis42' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM42" name="SQLM42">SQLM42</SPAN></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS42&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS42" name="OPS42"><FONT color=red>OPS42</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von43&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von43" name="von43"><FONT color=red>von43</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis43&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis43" name="bis43"><FONT color=red>bis43</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name43&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name43" name="Name43"><FONT color=red>Name43</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe43&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe43" name="Berufsgruppe43"><FONT color=red>Berufsgruppe43</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten43&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten43" name="Verhalten43"><FONT color=red>Verhalten43</FONT></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten43&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten43" name="Minuten43"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von43' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis43' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM43" name="SQLM43">SQLM43</SPAN></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS43&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS43" name="OPS43"><FONT color=red>OPS43</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von44&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von44" name="von44"><FONT color=red>von44</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis44&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis44" name="bis44"><FONT color=red>bis44</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name44&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name44" name="Name44"><FONT color=red>Name44</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe44&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe44" name="Berufsgruppe44"><FONT color=red>Berufsgruppe44</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten44&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten44" name="Verhalten44"><FONT color=red>Verhalten44</FONT></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten44&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten44" name="Minuten44"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von44' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis44' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM44" name="SQLM44">SQLM44</SPAN></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS44&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS44" name="OPS44"><FONT color=red>OPS44</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von45&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von45" name="von45"><FONT color=red>von45</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis45&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis45" name="bis45"><FONT color=red>bis45</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name45&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name45" name="Name45"><FONT color=red>Name45</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe45&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe45" name="Berufsgruppe45"><FONT color=red>Berufsgruppe45</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten45&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten45" name="Verhalten45"><FONT color=red>Verhalten45</FONT></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten45&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten45" name="Minuten45"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von45' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis45' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM45" name="SQLM45">SQLM45</SPAN></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS45&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS45" name="OPS45"><FONT color=red>OPS45</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von46&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von46" name="von46"><FONT color=red>von46</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis46&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis46" name="bis46"><FONT color=red>bis46</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name46&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name46" name="Name46"><FONT color=red>Name46</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe46&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe46" name="Berufsgruppe46"><FONT color=red>Berufsgruppe46</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten46&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten46" name="Verhalten46"><FONT color=red>Verhalten46</FONT></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten46&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten46" name="Minuten46"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von46' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis46' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM46" name="SQLM46">SQLM46</SPAN></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS46&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS46" name="OPS46"><FONT color=red>OPS46</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von47&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von47" name="von47"><FONT color=red>von47</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis47&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis47" name="bis47"><FONT color=red>bis47</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name47&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name47" name="Name47"><FONT color=red>Name47</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe47&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe47" name="Berufsgruppe47"><FONT color=red>Berufsgruppe47</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten47&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten47" name="Verhalten47"><FONT color=red>Verhalten47</FONT></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten47&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten47" name="Minuten47"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von47' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis47' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM47" name="SQLM47">SQLM47</SPAN></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS47&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS47" name="OPS47"><FONT color=red>OPS47</FONT></SPAN></TD></TR>
<TR>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=von48&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=von48" name="von48"><FONT color=red>von48</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=bis48&MCTyp=FDate&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&FORMATSTRING=hh:nn&Anzeige=bis48" name="bis48"><FONT color=red>bis48</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Name48&MCTyp=FInput&Breite=200&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Name48" name="Name48"><FONT color=red>Name48</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Berufsgruppe48&MCTyp=FSelect&Breite=100&Hoehe=20&RAHMEN=JA&HEADERS=ärztl./psychol.,spezialth./pflegerisch,sonstige&VALUES=1,3,5&PAKETE=,,&LEEREN=JA&Anzeige=Berufsgruppe48" name="Berufsgruppe48"><FONT color=red>Berufsgruppe48</FONT></SPAN></TD>
<TD class=Grid style="vAlign: top" align=left><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Verhalten48&MCTyp=FInput&Breite=300&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Verhalten48" name="Verhalten48"><FONT color=red>Verhalten48</FONT></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=Minuten48&MCTyp=FInput&Breite=50&Hoehe=20&RAHMEN=JA&LEEREN=JA&Anzeige=Minuten48" name="Minuten48"><SPAN id="mc_kbopdaten.cls_kbopdetails|dummy&Datenfeld=SELECT round(( to_date ( Uhrzeit2, 'HH24:MI') - to_date ( Uhrzeit1, 'HH24:MI'))*24*60,0) as Summe, Uhrzeit1, Uhrzeit2, PATNR, Erfasstwann FROM ( SELECT DISTINCT PATNR , min( CASE WHEN ART = 'von48' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit1 , min(CASE WHEN ART = 'bis48' and UNTERGRUPPE = 'Betreuung und Krisenintervention' THEN TEXT END) AS Uhrzeit2, ERFASSTWANN FROM ARZT where UNTERGRUPPE = 'Betreuung und Krisenintervention' and PATNR = '{PATNR}' and storniert <> 1 and text is not null and ref_form_id = '{FORMULAR_ID}' group by PATNR, ERFASSTWANN) WHERE LENGTH(Uhrzeit1)>2 &Anzeige=SQM48" name="SQLM48">SQLM48</SPAN></SPAN></TD>
<TD class=Grid style="align: left"><SPAN id="FormularElement|&TAB=ARZT&OG=Dokumentation&UG=Betreuung und Krisenintervention&ART=OPS48&MCTyp=FRadio&RAHMEN=NEIN&HEADERS=Gültig für OPS&VALUES=1&AUSRICHTUNG=Vertikal&LEEREN=JA&Anzeige=OPS48" name="OPS48"><FONT color=red>OPS48</FONT></SPAN></TD></TR>
<TR>
</form>