Difference between revisions of "scheduleNow"

From MGH Learn Pathology
Line 65: Line 65:
 
<p></p>
 
<p></p>
 
__NOCACHE__<table class="table borderless">
 
__NOCACHE__<table class="table borderless">
<tr><td bgcolor="#f0f0f0" colspan="4"><center>'''{{ColorText|Clinical pathology (LMM)|||4}}'''</center></td></tr>
+
<tr><td bgcolor="#f0f0f0" colspan="5"><center>'''{{ColorText|Clinical pathology (LMM)|||4}}'''</center></td></tr>
 
<tr>
 
<tr>
<td style="width: 25%">
+
<td style="width: 20%">
 
<table class='scheduletable'><tr><td bgcolor="#f5f5f5"><center>{{ColorText|'''Service'''||#000000|}}</center></td></tr></table>
 
<table class='scheduletable'><tr><td bgcolor="#f5f5f5"><center>{{ColorText|'''Service'''||#000000|}}</center></td></tr></table>
 
{{:scheduleDictionaryCP}}
 
{{:scheduleDictionaryCP}}
 
</td>
 
</td>
<td style="width: 25%">
+
<td style="width: 20%">
 
<table class='scheduletable'><tr><td bgcolor="#f5f5f5"><center>'''{{ColorText|{{#tip-text:Resident|Resident}}||#000000|}}'''</center></td></tr></table>
 
<table class='scheduletable'><tr><td bgcolor="#f5f5f5"><center>'''{{ColorText|{{#tip-text:Resident|Resident}}||#000000|}}'''</center></td></tr></table>
 
{{#switch: {{#time: N|{{Timezone}}}}
 
{{#switch: {{#time: N|{{Timezone}}}}
Line 89: Line 89:
 
}}
 
}}
 
</td>
 
</td>
<td style="width: 25%">
+
<td style="width: 20%">
 
<table class='scheduletable'><tr><td bgcolor="#f5f5f5"><center>'''{{ColorText|{{#tip-text:Fellow|Fellow / Elective-Resident}}||#000000|}}'''</center></td></tr></table>
 
<table class='scheduletable'><tr><td bgcolor="#f5f5f5"><center>'''{{ColorText|{{#tip-text:Fellow|Fellow / Elective-Resident}}||#000000|}}'''</center></td></tr></table>
 
{{#switch: {{#time: N|{{Timezone}}}}
 
{{#switch: {{#time: N|{{Timezone}}}}
Line 104: Line 104:
 
}}
 
}}
 
</td>
 
</td>
<td style="width: 25%">
+
<td style="width: 20%">
{{#switch: {{#time: N|{{Timezone}}}}
+
<table class='scheduletable'><tr><td bgcolor="#f5f5f5"><center>'''{{ColorText|{{#tip-text:Attending|Attending}}||#000000|}}'''<sup>[1]</sup></center></td></tr></table>
|6
+
{{#arraymap:{{scheduleDictionaryCP}}|;|TaskAbbreviation|
|7=
+
{{#cargo_query: table=scheduleFACservice
<table class='scheduletable'><tr><td bgcolor="#f5f5f5"><center>'''{{ColorText|{{#tip-text:On call - att.|On call attending}}||#000000|}}'''
+
|fields=GROUP_CONCAT(scheduleFACservice.StaffAbbrev),scheduleFACservice.TaskAbbrev,GROUP_CONCAT(scheduleFACservice.StaffFullName)
 +
|group by=scheduleFACservice.Color
 +
|where=YEAR(Date)={{#time: Y|{{Timezone}}}} AND scheduleFACservice.TaskAbbrev='{{#explode:TaskAbbreviation|,|0}}' AND scheduleFACservice.DayNumber='{{#time:N|now}}' AND scheduleFACservice.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} - 0}}'
 +
|default={{schtableempty|{{#explode:TaskAbbreviation|,|2}}}}|format=template|template=scheduleResidentCPfaculty}}
 +
|}}
 +
</td>
 +
<td style="width: 20%">
 +
<table class='scheduletable'><tr><td bgcolor="#f5f5f5"><center>'''{{ColorText|{{#tip-text:On call - att.|On call}}||#000000|}}'''
 
</center></td></tr></table>
 
</center></td></tr></table>
|1
 
|2
 
|3
 
|4
 
|5=
 
<table class='scheduletable'><tr><td bgcolor="#f5f5f5"><center>'''{{ColorText|{{#tip-text:Attending|Attending}}||#000000|}}'''<sup>[1]</sup></center></td></tr></table>
 
}}
 
 
{{#arraymap:{{scheduleDictionaryCP}}|;|TaskAbbreviation|
 
{{#arraymap:{{scheduleDictionaryCP}}|;|TaskAbbreviation|
 
{{#cargo_query: table=scheduleFACservice  
 
{{#cargo_query: table=scheduleFACservice  

Revision as of 05:59, September 6, 2021