Difference between revisions of "scheduleNow"
From MGH Learn Pathology
| Line 13: | Line 13: | ||
{{:scheduleDictionaryAPempty}} | {{:scheduleDictionaryAPempty}} | ||
|{{#arraymap:{{scheduleDictionaryAPresident}}|;|TaskAbbreviation| | |{{#arraymap:{{scheduleDictionaryAPresident}}|;|TaskAbbreviation| | ||
| − | {{#cargo_query: tables=scheduleRESservice,residentMGH | + | {{#cargo_query: tables=scheduleRESservice,residentMGH,scheduleRESserviceElective_view |
| − | |join on=scheduleRESservice.ResAbbrev=residentMGH.copath_id | + | |join on=scheduleRESservice.ResAbbrev=residentMGH.copath_id,scheduleRESservice.UID=scheduleRESserviceElective_view.UID |
|fields= | |fields= | ||
GROUP_CONCAT(DISTINCT scheduleRESservice.ResAbbrev) | GROUP_CONCAT(DISTINCT scheduleRESservice.ResAbbrev) | ||
| − | , | + | ,scheduleRESserviceElective_view.TaskAbbrev |
,GROUP_CONCAT(DISTINCT residentMGH.full_name) | ,GROUP_CONCAT(DISTINCT residentMGH.full_name) | ||
| − | ,pageid | + | ,pageid,scheduleRESserviceElective_view.Elective |
|group by=scheduleRESservice.WeekNumber | |group by=scheduleRESservice.WeekNumber | ||
| − | |where=YEAR(Date)={{#timel: Y|{{Timezone}}}} AND scheduleRESservice.WeekNumber='{{#expr: {{#timel: W|{{Timezone}}}} - 0 }}' AND | + | |where=YEAR(Date)={{#timel: Y|{{Timezone}}}} AND scheduleRESservice.WeekNumber='{{#expr: {{#timel: W|{{Timezone}}}} - 0 }}' AND scheduleRESserviceElective_view.TaskAbbrev='{{#explode:TaskAbbreviation|,|0}}'|default={{schtableempty|{{#explode:TaskAbbreviation|,|2}}}}|format=template|template=scheduleResident}} |
|}} | |}} | ||
}} | }} | ||
Revision as of 15:26, February 1, 2024
|
|
|
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[1]Faculty schedule displayed using the QGenda API.