Difference between revisions of "acc-wknd"

From MGH Learn Pathology
Line 1: Line 1:
<table class='table borderless'>
+
{{varScheduleYear}}{{#vardefine:saturdayDate|{{#time: Y-m-d|{{#cargo_query: tables=scheduleFACservice |fields=scheduleFACservice.Date |where=YEAR(Date)='{{#var:Saturday}}' AND scheduleFACservice.DayNumber='6' AND scheduleFACservice.WeekNumber='{{#expr: {{#timel: W|{{Timezone}}}} - 0 }}' AND scheduleFACservice.TaskAbbrev='BR1'|no html|limit=1|more results text=|order by=scheduleFACservice.Date DESC}}}}}}<table class='table borderless'>
 
<tr>
 
<tr>
 
<td class='align-bottom' colspan="1">
 
<td class='align-bottom' colspan="1">
<center>{{#cargo_query: tables=scheduleFACservice |fields=scheduleFACservice.Date |where=YEAR(Date)='{{#expr: {{#timel: Y|}}}}' AND scheduleFACservice.DayNumber='6' AND MONTH(Date)='{{#timel: m|}}' AND scheduleFACservice.WeekNumber='{{#expr: {{#timel: W|}} + 0 }}' AND scheduleFACservice.TaskAbbrev='BR1' |format=template|template=datedisplaycurrent}}<p></p></center>
+
<center>{{#cargo_query: tables=scheduleFACservice |fields=scheduleFACservice.Date |where=Date='{{#var:saturdayDate}}' AND scheduleFACservice.TaskAbbrev='BR1' |format=template|template=datedisplaycurrent}}<p></p></center>
 
</td>
 
</td>
 
<td class='align-bottom' colspan="1">
 
<td class='align-bottom' colspan="1">
Line 15: Line 15:
 
|fields=scheduleFACservice.StaffAbbrev,scheduleFACservice.TaskAbbrev,scheduleFACservice.StaffFullName
 
|fields=scheduleFACservice.StaffAbbrev,scheduleFACservice.TaskAbbrev,scheduleFACservice.StaffFullName
 
|group by=scheduleFACservice.Color
 
|group by=scheduleFACservice.Color
|where=YEAR(Date)='{{#expr: {{#timel: Y|}}}}' AND scheduleFACservice.TaskAbbrev='{{#explode:TaskAbbreviation|,|0}}' AND scheduleFACservice.DayNumber='6' AND MONTH(Date)='{{#timel: m|}}' AND scheduleFACservice.WeekNumber='{{#expr: {{#timel: W|}} + 0}}'
+
|where=Date='{{#var:saturdayDate}}' AND scheduleFACservice.TaskAbbrev='{{#explode:TaskAbbreviation|,|0}}'
 
|default={{schtableempty|{{#explode:TaskAbbreviation|,|2}}}}|format=template|template=scheduleResident}}
 
|default={{schtableempty|{{#explode:TaskAbbreviation|,|2}}}}|format=template|template=scheduleResident}}
 
|}}
 
|}}

Revision as of 17:53, December 28, 2022

Saturday
Jan 18

No results

ATT
REX
HNG
BAY
BAY
BAY
REX
REX
KMC
KMC
KMC
ANA
SGS
SGS
SGS
SGS
KMC
KMC
LHL
LHL
LHL
BAY
BAY
RPH
RPH
MPF
HNG
ATT
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-