Difference between revisions of "mgh:gi-calendar"

From MGH Learn Pathology
Line 1: Line 1:
 
{{:learn:schedule-monthlylegend}}
 
{{:learn:schedule-monthlylegend}}
 
{{#cargo_compound_query:
 
{{#cargo_compound_query:
|tables= scheduleRFA
+
|tables=scheduleFACservice
;fields=CONCAT(TaskAbbrev,' A: ',StaffAbbrev,' F: ',FellAbbrev,' R: ',ResAbbrev)=name
+
;fields=CONCAT(TaskAbbrev,' ATT: ',StaffAbbrev)=name
 +
,StaffFullName=description
 
,Date=Date
 
,Date=Date
;where=TaskAbbrev='GI1';color=#d1d1d1;text color=#000000
+
;where=(TaskAbbrev='GI1' OR TaskAbbrev='GI2' OR TaskAbbrev='GI3' OR TaskAbbrev='GI4') AND NOT StaffAbbrev='OPEN';color=#d1d1d1;text color=#000000
|tables= scheduleRFA
+
|tables=scheduleRESservice,residentMGH
;fields=CONCAT(TaskAbbrev,' A: ',StaffAbbrev,' F: ',FellAbbrev,' R: ',ResAbbrev)=name
+
;join on= scheduleRESservice.ResAbbrev=residentMGH.copath_id
 +
;fields=CONCAT(TaskAbbrev,' RES: ',ResAbbrev)=name
 +
,full_name=description
 
,Date=Date
 
,Date=Date
;where=TaskAbbrev='GI2';color=#d1d1d1;text color=#000000
+
;where=(TaskAbbrev='GI1' OR TaskAbbrev='GI2' OR TaskAbbrev='GI3' OR TaskAbbrev='GI4') AND NOT ResAbbrev IN ('0', '-', 'TBD');color=#1730b0;text color=#FFFFFF
|tables= scheduleRFA
+
|tables=scheduleFELLservice,residentMGH
;fields=CONCAT(TaskAbbrev,' A: ',StaffAbbrev,' F: ',FellAbbrev,' R: ',ResAbbrev)=name
+
;join on= scheduleFELLservice.FellAbbrev=residentMGH.copath_id
 +
;fields=CONCAT(TaskAbbrev,' FELL: ',FellAbbrev)=name
 +
,full_name=description
 
,Date=Date
 
,Date=Date
;where=TaskAbbrev='GI3';color=#d1d1d1;text color=#000000
+
;where=TaskAbbrev IN ('GI1', 'GI2', 'GI3', 'GI4') AND NOT FellAbbrev IN ('0', '-', 'TBD');color=#000000;text color=#FFFFFF
|tables= scheduleRFA
 
;fields=CONCAT(TaskAbbrev,' A: ',StaffAbbrev,' F: ',FellAbbrev,' R: ',ResAbbrev)=name
 
,Date=Date
 
;where=TaskAbbrev='GI4';color=#d1d1d1;text color=#000000
 
 
|tables=scheduleCallConference, facultyMGH;join on=scheduleCallConference.ResAbbrev = facultyMGH._pageName;fields=CONCAT('一',scheduleCallConference.Hour,' ',scheduleCallConference.TaskAbbrev,': ',scheduleCallConference.Notes,' - ', scheduleCallConference.ResAbbrev)=name,facultyMGH.fullname=description,scheduleCallConference.Date=Date;where=TaskAbbrev='Outs' AND NOT ResAbbrev='-';color=#fff673;text color=black;where=scheduleCallConference.Notes='GI'
 
|tables=scheduleCallConference, facultyMGH;join on=scheduleCallConference.ResAbbrev = facultyMGH._pageName;fields=CONCAT('一',scheduleCallConference.Hour,' ',scheduleCallConference.TaskAbbrev,': ',scheduleCallConference.Notes,' - ', scheduleCallConference.ResAbbrev)=name,facultyMGH.fullname=description,scheduleCallConference.Date=Date;where=TaskAbbrev='Outs' AND NOT ResAbbrev='-';color=#fff673;text color=black;where=scheduleCallConference.Notes='GI'
 
|format=calendar|}}
 
|format=calendar|}}

Revision as of 04:41, August 28, 2021

1. Attending 2. Fellow 3. Resident