Difference between revisions of "learn:schedule-currentweek"
From MGH Learn Pathology
Line 54: | Line 54: | ||
|join on=scheduleCallConference.ResAbbrev=residentMGH.copath_id | |join on=scheduleCallConference.ResAbbrev=residentMGH.copath_id | ||
|fields=scheduleCallConference.ResAbbrev,scheduleCallConference.Color,residentMGH.full_name,scheduleCallConference.TaskAbbrev,scheduleCallConference.Sort=sort | |fields=scheduleCallConference.ResAbbrev,scheduleCallConference.Color,residentMGH.full_name,scheduleCallConference.TaskAbbrev,scheduleCallConference.Sort=sort | ||
− | |where=YEAR(Date)={{# | + | |where=YEAR(Date)='{{#var:Thursday}}' AND scheduleCallConference.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} - 0 }}' AND scheduleCallConference.DayNumber='4' AND NOT ResAbbrev='-'|default={{:schtableempty}} |
|format=template|order by = sort ASC|template=schtableconfcallLeft}} | |format=template|order by = sort ASC|template=schtableconfcallLeft}} | ||
</td> | </td> | ||
Line 61: | Line 61: | ||
|join on=scheduleCallConference.ResAbbrev=residentMGH.copath_id | |join on=scheduleCallConference.ResAbbrev=residentMGH.copath_id | ||
|fields=scheduleCallConference.ResAbbrev,scheduleCallConference.Color,residentMGH.full_name,scheduleCallConference.TaskAbbrev,scheduleCallConference.Sort=sort | |fields=scheduleCallConference.ResAbbrev,scheduleCallConference.Color,residentMGH.full_name,scheduleCallConference.TaskAbbrev,scheduleCallConference.Sort=sort | ||
− | |where=YEAR(Date)={{# | + | |where=YEAR(Date)='{{#var:Friday}}' AND scheduleCallConference.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} - 0 }}' AND scheduleCallConference.DayNumber='5' AND NOT ResAbbrev='-'|default={{:schtableempty}} |
|format=template|order by = sort ASC|template=schtableconfcallLeft}} | |format=template|order by = sort ASC|template=schtableconfcallLeft}} | ||
</td> | </td> | ||
Line 68: | Line 68: | ||
|join on=scheduleCallConference.ResAbbrev=residentMGH.copath_id | |join on=scheduleCallConference.ResAbbrev=residentMGH.copath_id | ||
|fields=scheduleCallConference.ResAbbrev,scheduleCallConference.Color,residentMGH.full_name,scheduleCallConference.TaskAbbrev,scheduleCallConference.Sort=sort | |fields=scheduleCallConference.ResAbbrev,scheduleCallConference.Color,residentMGH.full_name,scheduleCallConference.TaskAbbrev,scheduleCallConference.Sort=sort | ||
− | |where=YEAR(Date)={{# | + | |where=YEAR(Date)='{{#var:Saturday}}' AND scheduleCallConference.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} - 0 }}' AND scheduleCallConference.DayNumber='6' AND NOT ResAbbrev='-'|default={{:schtableempty}} |
|format=template|order by = sort ASC|template=schtableconfcallLeft}} | |format=template|order by = sort ASC|template=schtableconfcallLeft}} | ||
</td> | </td> | ||
Line 75: | Line 75: | ||
|join on=scheduleCallConference.ResAbbrev=residentMGH.copath_id | |join on=scheduleCallConference.ResAbbrev=residentMGH.copath_id | ||
|fields=scheduleCallConference.ResAbbrev,scheduleCallConference.Color,residentMGH.full_name,scheduleCallConference.TaskAbbrev,scheduleCallConference.Sort=sort | |fields=scheduleCallConference.ResAbbrev,scheduleCallConference.Color,residentMGH.full_name,scheduleCallConference.TaskAbbrev,scheduleCallConference.Sort=sort | ||
− | |where=YEAR(Date)={{# | + | |where=YEAR(Date)='{{#var:Sunday}}' AND scheduleCallConference.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} - 0 }}' AND scheduleCallConference.DayNumber='0' AND NOT ResAbbrev='-'|default={{:schtableempty}} |
|format=template|order by = sort ASC|template=schtableconfcallLeft}} | |format=template|order by = sort ASC|template=schtableconfcallLeft}} | ||
</td> | </td> | ||
Line 105: | Line 105: | ||
</td> | </td> | ||
<td class='align-bottom' colspan="1"> | <td class='align-bottom' colspan="1"> | ||
− | <center>{{#cargo_query: tables=scheduleFACservice |fields=scheduleFACservice.Date |where=YEAR(Date)={{# | + | <center>{{#cargo_query: tables=scheduleFACservice |fields=scheduleFACservice.Date |where=YEAR(Date)='{{#var:Thursday}}' AND scheduleFACservice.DayNumber='4' AND scheduleFACservice.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} + 0 }}' AND scheduleFACservice.TaskAbbrev='BR1' |format=template|template=datedisplaycurrent}}<p></p></center> |
</td> | </td> | ||
<td colspan="1"> | <td colspan="1"> | ||
− | <center>{{#cargo_query: tables=scheduleFACservice |fields=scheduleFACservice.Date |where=YEAR(Date)={{# | + | <center>{{#cargo_query: tables=scheduleFACservice |fields=scheduleFACservice.Date |where=YEAR(Date)='{{#var:Friday}}' AND scheduleFACservice.DayNumber='5' AND scheduleFACservice.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} + 0 }}' AND scheduleFACservice.TaskAbbrev='BR1' |format=template|template=datedisplaycurrent}}<p></p></center> |
</td> | </td> | ||
<td colspan="1"> | <td colspan="1"> | ||
− | <center>{{#cargo_query: tables=scheduleFACservice |fields=scheduleFACservice.Date |where=YEAR(Date)={{# | + | <center>{{#cargo_query: tables=scheduleFACservice |fields=scheduleFACservice.Date |where=YEAR(Date)='{{#var:Saturday}}' AND scheduleFACservice.DayNumber='6' AND scheduleFACservice.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} + 0 }}' AND scheduleFACservice.TaskAbbrev='BR1' |format=template|template=datedisplaycurrent}}<p></p></center> |
</td> | </td> | ||
<td colspan="1"> | <td colspan="1"> | ||
− | <center>{{#cargo_query: tables=scheduleFACservice |fields=scheduleFACservice.Date |where=YEAR(Date)={{# | + | <center>{{#cargo_query: tables=scheduleFACservice |fields=scheduleFACservice.Date |where=YEAR(Date)='{{#var:Sunday}}' AND scheduleFACservice.DayNumber='7' AND scheduleFACservice.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} + 0 }}' AND scheduleFACservice.TaskAbbrev='BR1' |format=template|template=datedisplaycurrent}}<p></p></center> |
</td> | </td> | ||
</tr> | </tr> | ||
Line 189: | Line 189: | ||
|fields=GROUP_CONCAT(scheduleFACservice.StaffAbbrev),scheduleFACservice.Color,GROUP_CONCAT(scheduleFACservice.StaffFullName) | |fields=GROUP_CONCAT(scheduleFACservice.StaffAbbrev),scheduleFACservice.Color,GROUP_CONCAT(scheduleFACservice.StaffFullName) | ||
|group by=scheduleFACservice.Color | |group by=scheduleFACservice.Color | ||
− | |where=YEAR(Date)={{# | + | |where=YEAR(Date)='{{#var:Thursday}}' AND scheduleFACservice.TaskAbbrev='{{#explode:TaskAbbreviation|,|0}}' AND scheduleFACservice.DayNumber='4' AND scheduleFACservice.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} - 0}}' |
|default={{schtableempty|{{#explode:TaskAbbreviation|,|1}}}}|format=template|template=schtable}} | |default={{schtableempty|{{#explode:TaskAbbreviation|,|1}}}}|format=template|template=schtable}} | ||
|}} | |}} | ||
Line 199: | Line 199: | ||
|fields=GROUP_CONCAT(scheduleFACservice.StaffAbbrev),scheduleFACservice.Color,GROUP_CONCAT(scheduleFACservice.StaffFullName) | |fields=GROUP_CONCAT(scheduleFACservice.StaffAbbrev),scheduleFACservice.Color,GROUP_CONCAT(scheduleFACservice.StaffFullName) | ||
|group by=scheduleFACservice.Color | |group by=scheduleFACservice.Color | ||
− | |where=YEAR(Date)={{# | + | |where=YEAR(Date)='{{#var:Friday}}' AND scheduleFACservice.TaskAbbrev='{{#explode:TaskAbbreviation|,|0}}' AND scheduleFACservice.DayNumber='5' AND scheduleFACservice.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} - 0}}' |
|default={{schtableempty|{{#explode:TaskAbbreviation|,|1}}}}|format=template|template=schtable}} | |default={{schtableempty|{{#explode:TaskAbbreviation|,|1}}}}|format=template|template=schtable}} | ||
|}} | |}} | ||
Line 209: | Line 209: | ||
|fields=GROUP_CONCAT(scheduleFACservice.StaffAbbrev),scheduleFACservice.Color,GROUP_CONCAT(scheduleFACservice.StaffFullName) | |fields=GROUP_CONCAT(scheduleFACservice.StaffAbbrev),scheduleFACservice.Color,GROUP_CONCAT(scheduleFACservice.StaffFullName) | ||
|group by=scheduleFACservice.Color | |group by=scheduleFACservice.Color | ||
− | |where=YEAR(Date)={{# | + | |where=YEAR(Date)='{{#var:Saturday}}' AND scheduleFACservice.TaskAbbrev='{{#explode:TaskAbbreviation|,|0}}' AND scheduleFACservice.DayNumber='6' AND scheduleFACservice.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} - 0}}' |
|default={{schtableempty|{{#explode:TaskAbbreviation|,|1}}}}|format=template|template=schtable}} | |default={{schtableempty|{{#explode:TaskAbbreviation|,|1}}}}|format=template|template=schtable}} | ||
|}} | |}} | ||
Line 219: | Line 219: | ||
|fields=GROUP_CONCAT(scheduleFACservice.StaffAbbrev),scheduleFACservice.Color,GROUP_CONCAT(scheduleFACservice.StaffFullName) | |fields=GROUP_CONCAT(scheduleFACservice.StaffAbbrev),scheduleFACservice.Color,GROUP_CONCAT(scheduleFACservice.StaffFullName) | ||
|group by=scheduleFACservice.Color | |group by=scheduleFACservice.Color | ||
− | |where=YEAR(Date)={{# | + | |where=YEAR(Date)='{{#var:Sunday}}' AND scheduleFACservice.TaskAbbrev='{{#explode:TaskAbbreviation|,|0}}' AND scheduleFACservice.DayNumber='7' AND scheduleFACservice.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} - 0}}' |
|default={{schtableempty|{{#explode:TaskAbbreviation|,|1}}}}|format=template|template=schtable}} | |default={{schtableempty|{{#explode:TaskAbbreviation|,|1}}}}|format=template|template=schtable}} | ||
|}} | |}} |
Revision as of 10:37, December 28, 2020
Jan 20 Jan 20 |
Jan 21 Jan 21 |
Jan 22 Jan 22 |
Jan 23 Jan 23 |
Jan 24 Jan 24 |
Jan 25 |
Jan 26 |
||||||||||||||
|
|
|
|
|
|
|
|
|
Friday |
|
Jan 20Monday Jan 20 |
Jan 21Tuesday Jan 21 |
Jan 22Wednesday Jan 22 |
Jan 23Thursday Jan 23 |
Jan 24Friday Jan 24 |
Jan 25 |
Jan 26 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|