Difference between revisions of "scheduleNow"
From MGH Learn Pathology
| Line 1: | Line 1: | ||
__NOCACHE__<table class="table borderless"> | __NOCACHE__<table class="table borderless"> | ||
| − | <tr><td bgcolor="#f0f0f0" colspan="4"><center>'''{{ColorText|Anatomic pathology (AMP)|||4}}'''</center></td></tr> | + | <tr><td bgcolor="#f0f0f0" colspan="4"><p></p><center>'''{{ColorText|Anatomic pathology (AMP)|||4}}'''</center><p></p></td></tr> |
<tr> | <tr> | ||
<td style="width: 25%"> | <td style="width: 25%"> | ||
| Line 54: | Line 54: | ||
}} | }} | ||
{{#arraymap:{{scheduleDictionaryAPfaculty}}|;|TaskAbbreviation| | {{#arraymap:{{scheduleDictionaryAPfaculty}}|;|TaskAbbreviation| | ||
| + | {{#cargo_query: table=scheduleFACservice | ||
| + | |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=scheduleFaculty}} | ||
| + | |}} | ||
| + | </td> | ||
| + | </tr> | ||
| + | </table> | ||
| + | |||
| + | <br> | ||
| + | |||
| + | __NOCACHE__<table class="table borderless"> | ||
| + | <tr><td bgcolor="#f0f0f0" colspan="4"><p></p><center>'''{{ColorText|Clinical pathology (LMM)|||4}}'''</center><p></p></td></tr> | ||
| + | <tr> | ||
| + | <td style="width: 25%"> | ||
| + | <table class='scheduletable'><tr><td bgcolor="#f5f5f5"><center>{{ColorText|'''Service'''||#000000|}}</center></td></tr></table> | ||
| + | {{:scheduleDictionaryCP}} | ||
| + | </td> | ||
| + | <td style="width: 25%"> | ||
| + | <table class='scheduletable'><tr><td bgcolor="#f5f5f5"><center>'''{{ColorText|{{#tip-text:Resident|Resident}}||#000000|}}'''</center></td></tr></table> | ||
| + | {{#switch: {{#time: N|{{Timezone}}}} | ||
| + | |6 | ||
| + | |7= | ||
| + | {{:scheduleDictionaryCP}} | ||
| + | |{{#arraymap:{{scheduleDictionaryCP}}|;|TaskAbbreviation| | ||
| + | {{#cargo_query: tables=scheduleRESservice,residentMGH | ||
| + | |join on=scheduleRESservice.ResAbbrev=residentMGH.copath_id | ||
| + | |fields= | ||
| + | GROUP_CONCAT(DISTINCT scheduleRESservice.ResAbbrev) | ||
| + | ,scheduleRESservice.TaskAbbrev | ||
| + | ,GROUP_CONCAT(DISTINCT residentMGH.full_name) | ||
| + | ,pageid | ||
| + | |group by=scheduleRESservice.WeekNumber | ||
| + | |where=YEAR(Date)={{#time: Y|{{Timezone}}}} AND scheduleRESservice.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} - 0 }}' AND scheduleRESservice.TaskAbbrev='{{#explode:TaskAbbreviation|,|0}}'|default={{schtableempty|{{#explode:TaskAbbreviation|,|2}}}}|format=template|template=scheduleResident}} | ||
| + | |}} | ||
| + | }} | ||
| + | </td> | ||
| + | <td style="width: 25%"> | ||
| + | <table class='scheduletable'><tr><td bgcolor="#f5f5f5"><center>'''{{ColorText|{{#tip-text:Fellow|Fellow / Elective-Resident}}||#000000|}}'''</center></td></tr></table> | ||
| + | {{#switch: {{#time: N|{{Timezone}}}} | ||
| + | |6 | ||
| + | |7= | ||
| + | {{:scheduleDictionaryCP}} | ||
| + | |{{#arraymap:{{scheduleDictionaryCP}}|;|TaskAbbreviation| | ||
| + | {{#cargo_query: tables=scheduleFELLservice,residentMGH | ||
| + | |join on=scheduleFELLservice.FellAbbrev=residentMGH.copath_id | ||
| + | |fields=scheduleFELLservice.FellAbbrev,scheduleFELLservice.TaskAbbrev,residentMGH.full_name,residentMGH.pageid | ||
| + | |where=YEAR(Date)={{#time: Y|{{Timezone}}}} AND scheduleFELLservice.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} - 0 }}' AND scheduleFELLservice.TaskAbbrev='{{#explode:TaskAbbreviation|,|0}}' |format=template | ||
| + | |group by=scheduleFELLservice.WeekNumber|default={{schtableempty|{{#explode:TaskAbbreviation|,|2}}}}|template=scheduleResident}} | ||
| + | |}} | ||
| + | }} | ||
| + | </td> | ||
| + | <td style="width: 25%"> | ||
| + | {{#switch: {{#time: N|{{Timezone}}}} | ||
| + | |6 | ||
| + | |7= | ||
| + | <table class='scheduletable'><tr><td bgcolor="#f5f5f5"><center>'''{{ColorText|{{#tip-text:On call - att.|On call attending}}||#000000|}}''' | ||
| + | </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| | ||
{{#cargo_query: table=scheduleFACservice | {{#cargo_query: table=scheduleFACservice | ||
|fields=GROUP_CONCAT(scheduleFACservice.StaffAbbrev),scheduleFACservice.TaskAbbrev,GROUP_CONCAT(scheduleFACservice.StaffFullName) | |fields=GROUP_CONCAT(scheduleFACservice.StaffAbbrev),scheduleFACservice.TaskAbbrev,GROUP_CONCAT(scheduleFACservice.StaffFullName) | ||
Revision as of 23:27, September 5, 2021
|
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
[1]Faculty schedule displayed using the QGenda API. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||