Difference between revisions of "learn:oncallAMP"

From MGH Learn Pathology
(Replaced content with "{{onCallAMP}}")
(Tag: Replaced)
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#arraymap:{{scheduleDictionaryAPfaculty}}|;|TaskAbbreviation|
+
{{onCallAMP}}
{{#cargo_query: table=scheduleFACservice,facultyMGH|join on=scheduleFACservice.StaffAbbrev=facultyMGH.copath_id
 
|fields=GROUP_CONCAT(scheduleFACservice.StaffAbbrev),scheduleFACservice.TaskAbbrev,GROUP_CONCAT(scheduleFACservice.StaffFullName),facultyMGH.pageid
 
|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}}
 
|}
 

Latest revision as of 09:10, November 6, 2021