Difference between revisions of "oneday"

From MGH Learn Pathology
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#cargo_query: tables=scheduleFACservice |fields=scheduleFACservice.Date |where=scheduleFACservice.DayNumber='{{#time: N |now}}' AND scheduleFACservice.WeekNumber='{{#expr: {{#time: W|}} - 0 }}' AND scheduleFACservice.TaskAbbrev='BR1' |format=template|template=datedisplayfac}}
+
<center><div class=calendarbg>
 
+
{{#cargo_compound_query:
 +
tables=conference,residentMGH
 +
;join on=conference.presenter=residentMGH.copath_id
 +
;fields=CONCAT(conference.conference, ' - ', conference.presenter)=name,residentMGH.full_name=description,conference.date=Date
 +
;where=conference='Call: Junior'
 +
;color=#e0ffef
 +
;text color=black
 +
|tables=conference,residentMGH
 +
;join on=conference.presenter=residentMGH.copath_id
 +
;fields=CONCAT(conference.conference, ' - ', conference.presenter)=name,residentMGH.full_name=description,conference.date=Date
 +
;where=conference='Call: Autopsy'
 +
;color=#e0ffef
 +
;text color=black
 +
|tables=conference,residentMGH
 +
;join on=conference.presenter=residentMGH.copath_id
 +
;fields=CONCAT(conference.conference, ' - ', conference.presenter)=name,residentMGH.full_name=description,conference.date=Date
 +
;where=conference='Call: Senior'
 +
;color=#f2e6ff
 +
;text color=black
 +
|tables=scheduleFood
 +
;fields=CONCAT('🥣 - ',presenter)=name,date=Date
 +
;color=#f5f5f5
 +
;text color=black
 +
|tables=conference,residentMGH
 +
;join on=conference.presenter=residentMGH.copath_id
 +
;fields=CONCAT('08:25 AM - ' ,conference.conference, ' - ', conference.presenter)=name,residentMGH.full_name=description,conference.date=Date
 +
;where=conference='GPR'
 +
;color=#ffb973
 +
;text color=black
 +
|tables=conferenceOuts, facultyMGH;join on=conferenceOuts.StaffAbbrev = facultyMGH.copath_id;fields=CONCAT(conferenceOuts.time, ' - ', conferenceOuts.TaskAbbrev, ' - ', conferenceOuts.StaffAbbrev)=name,facultyMGH.name_last=description,conferenceOuts.date=Date;color=#fff673;text color=black
 +
|tables=conference, residentMGH;join on=conference.presenter = residentMGH.copath_id;fields=CONCAT('08:00 AM - ' ,conference.conference, ' - ', conference.presenter)=name,residentMGH.full_name=description,conference.date=Date;where=conference='MPR';color=#7dc4ff;text color=black
 +
|tables=conference, residentMGH;join on=conference.presenter = residentMGH.copath_id;fields=CONCAT(conference.conference, ' - ', conference.presenter)=name,residentMGH.full_name=description,conference.date=Date;where=conference='Thoracic';color=#c2c2c2;text color=black
 +
|tables=conference, residentMGH;join on=conference.presenter = residentMGH.copath_id;fields=CONCAT(conference.conference, ' - ', conference.presenter)=name,residentMGH.full_name=description,conference.date=Date;where=conference='RadPath';color=#66ff96;text color=black
 +
|tables=conference, residentMGH;join on=conference.presenter = residentMGH.copath_id;fields=CONCAT(conference.conference, ' - ', conference.presenter)=name,residentMGH.full_name=description,conference.date=Date;where=conference='Autopsy';color=#faff69;text color=black
 +
|format=calendar|view=day|height=165}}
 +
</div></center>
 +
<p>
 
<table class='table borderless'>
 
<table class='table borderless'>
 
<tr>
 
<tr>
<td style="width: 8%">
+
<td style="width: 6%">
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>{{ColorText|'''SERVICE'''||#000000|}}</center></td></tr></table>
+
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>{{ColorText|'''S'''||#000000|}}</center></td></tr></table>
{{:schtablemobile}}
+
{{:schtablemobileoneday1}}
 +
</td>     
 +
<td style="width: 9%">
 +
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:R|Resident}}||#000000|}}'''</center></td></tr></table>
 +
{{#arraymap: AUT,BR1,BR2,BST,CV,CA,CB,CC,DPA|,|TaskAbbreviation|
 +
{{#cargo_query: tables=scheduleRESservice,residentMGH
 +
|join on=scheduleRESservice.ResAbbrev=residentMGH.copath_id
 +
|fields=scheduleRESservice.ResAbbrev,scheduleRESservice.Color,residentMGH.full_name
 +
|where=scheduleRESservice.WeekNumber='{{#expr: {{#time: W|}} - 0 }}' AND scheduleRESservice.TaskAbbrev='TaskAbbreviation'|default={{:schtableempty}}|format=template|template=schtable}}
 +
|}}
 +
</td>
 +
<td style="width: 9%">
 +
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:F|Fellow}}||#000000|}}'''</center></td></tr></table>
 +
{{#arraymap: AUT,BR1,BR2,BST,CV,CA,CB,CC,DPA|,|TaskAbbreviation|
 +
{{#cargo_query: tables=scheduleFELLservice,residentMGH
 +
|join on=scheduleFELLservice.FellAbbrev=residentMGH.copath_id
 +
|fields=scheduleFELLservice.FellAbbrev,scheduleFELLservice.Color,residentMGH.full_name
 +
|where=scheduleFELLservice.WeekNumber='{{#expr: {{#time: W|}} - 0 }}' AND scheduleFELLservice.TaskAbbrev='TaskAbbreviation' |format=template|template=schtable}}
 +
|}}
 +
</td>
 +
<td style="width: 9%">
 +
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:A|Attending}}||#000000|}}'''</center></td></tr></table>
 +
{{#arraymap: AUT,BR1,BR2,BST,CV,CA,CB,CC,DPA|,|TaskAbbreviation|
 +
{{#cargo_query: table=scheduleFACservice
 +
|fields=scheduleFACservice.StaffAbbrev,scheduleFACservice.Color,scheduleFACservice.StaffFullName
 +
|where=scheduleFACservice.TaskAbbrev='TaskAbbreviation' AND scheduleFACservice.DayNumber='{{#time: N |now}}' AND scheduleFACservice.WeekNumber='{{#expr: {{#time: W|}} - 0}}'
 +
|default={{:schtableempty}}|format=template|template=schtable}}
 +
|}}
 +
</td>
 +
 
 +
<td style="width: 7%">
 +
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>{{ColorText|'''S'''||#000000|}}</center></td></tr></table>
 +
{{:schtablemobileoneday2}}
 
</td>       
 
</td>       
<td style="width: 5%">
+
<td style="width: 9%">
 
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:R|Resident}}||#000000|}}'''</center></td></tr></table>
 
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:R|Resident}}||#000000|}}'''</center></td></tr></table>
{{#arraymap: AUT,BR1,BR2,BST,CV,CA,CB,CC,DPA,DPB,DPC,FS,HN1,HN2,GI1,GI2,GI3,GUL,GUS,GYL,GYS,HPA,HPB,NP,OB,PP,RP|,|TaskAbbreviation|
+
{{#arraymap: DPB,DPC,FS,HN1,HN2,GI1,GI2,GI3,GUL|,|TaskAbbreviation|
 
{{#cargo_query: tables=scheduleRESservice,residentMGH  
 
{{#cargo_query: tables=scheduleRESservice,residentMGH  
 
|join on=scheduleRESservice.ResAbbrev=residentMGH.copath_id
 
|join on=scheduleRESservice.ResAbbrev=residentMGH.copath_id
Line 16: Line 84:
 
|}}
 
|}}
 
</td>
 
</td>
<td style="width: 5%">
+
<td style="width: 9%">
 
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:F|Fellow}}||#000000|}}'''</center></td></tr></table>
 
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:F|Fellow}}||#000000|}}'''</center></td></tr></table>
{{#arraymap: AUT,BR1,BR2,BST,CV,CA,CB,CC,DPA,DPB,DPC,FS,HN1,HN2,GI1,GI2,GI3,GUL,GUS,GYL,GYS,HPA,HPB,NP,OB,PP,RP|,|TaskAbbreviation|
+
{{#arraymap: DPB,DPC,FS,HN1,HN2,GI1,GI2,GI3,GUL|,|TaskAbbreviation|
 
{{#cargo_query: tables=scheduleFELLservice,residentMGH  
 
{{#cargo_query: tables=scheduleFELLservice,residentMGH  
 
|join on=scheduleFELLservice.FellAbbrev=residentMGH.copath_id
 
|join on=scheduleFELLservice.FellAbbrev=residentMGH.copath_id
Line 25: Line 93:
 
|}}
 
|}}
 
</td>
 
</td>
<td style="width: 8%">
+
<td style="width: 9%">
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:A|Attending}}||#000000|}}'''<ref>The faculty service schedule is displayed on this page using the QGenda API. To view the full schedule <htmltag tagname="a" href="https://app.qgenda.com/Link/view?linkKey=9a12a547-f1b4-4998-bdca-acf3204a120e&landingPageId=40221bd9-4ac1-4a0b-8a00-da4f05d88f2e" target="_blank">click here.</htmltag> <span class="glyphicon glyphicon-calendar" aria-hidden="true"></span></ref></center></td></tr></table>
+
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:A|Attending}}||#000000|}}'''</center></td></tr></table>
{{#arraymap: AUT,BR1,BR2,BST,CV,CA,CB,CC,DPA,DPB,DPC,Frozen Section,HN1,HN2,GI1,GI2,GI3,GUL,GUS,GYL,GYS,HPA,HPB,NP,OB,PP,RP|,|TaskAbbreviation|
+
{{#arraymap: DPB,DPC,Frozen Section,HN1,HN2,GI1,GI2,GI3,GUL|,|TaskAbbreviation|
 
{{#cargo_query: table=scheduleFACservice  
 
{{#cargo_query: table=scheduleFACservice  
 
|fields=scheduleFACservice.StaffAbbrev,scheduleFACservice.Color,scheduleFACservice.StaffFullName
 
|fields=scheduleFACservice.StaffAbbrev,scheduleFACservice.Color,scheduleFACservice.StaffFullName
Line 34: Line 102:
 
|}}
 
|}}
 
</td>
 
</td>
 +
 +
 +
<td style="width: 6%">
 +
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>{{ColorText|'''S'''||#000000|}}</center></td></tr></table>
 +
{{:schtablemobileoneday3}}
 +
</td>     
 +
<td style="width: 9%">
 +
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:R|Resident}}||#000000|}}'''</center></td></tr></table>
 +
{{#arraymap: GUS,GYL,GYS,HPA,HPB,NP,OB,PP,RP|,|TaskAbbreviation|
 +
{{#cargo_query: tables=scheduleRESservice,residentMGH
 +
|join on=scheduleRESservice.ResAbbrev=residentMGH.copath_id
 +
|fields=scheduleRESservice.ResAbbrev,scheduleRESservice.Color,residentMGH.full_name
 +
|where=scheduleRESservice.WeekNumber='{{#expr: {{#time: W|}} - 0 }}' AND scheduleRESservice.TaskAbbrev='TaskAbbreviation'|default={{:schtableempty}}|format=template|template=schtable}}
 +
|}}
 +
</td>
 +
<td style="width: 9%">
 +
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:F|Fellow}}||#000000|}}'''</center></td></tr></table>
 +
{{#arraymap: GUS,GYL,GYS,HPA,HPB,NP,OB,PP,RP|,|TaskAbbreviation|
 +
{{#cargo_query: tables=scheduleFELLservice,residentMGH
 +
|join on=scheduleFELLservice.FellAbbrev=residentMGH.copath_id
 +
|fields=scheduleFELLservice.FellAbbrev,scheduleFELLservice.Color,residentMGH.full_name
 +
|where=scheduleFELLservice.WeekNumber='{{#expr: {{#time: W|}} - 0 }}' AND scheduleFELLservice.TaskAbbrev='TaskAbbreviation' |format=template|template=schtable}}
 +
|}}
 +
</td>
 +
<td style="width: 9%">
 +
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:A|Attending}}||#000000|}}'''</center></td></tr></table>
 +
{{#arraymap: GUS,GYL,GYS,HPA,HPB,NP,OB,PP,RP|,|TaskAbbreviation|
 +
{{#cargo_query: table=scheduleFACservice
 +
|fields=scheduleFACservice.StaffAbbrev,scheduleFACservice.Color,scheduleFACservice.StaffFullName
 +
|where=scheduleFACservice.TaskAbbrev='TaskAbbreviation' AND scheduleFACservice.DayNumber='{{#time: N |now}}' AND scheduleFACservice.WeekNumber='{{#expr: {{#time: W|}} - 0}}'
 +
|default={{:schtableempty}}|format=template|template=schtable}}
 +
|}}
 +
</td>
 +
 
</tr>
 
</tr>
 
</table>
 
</table>
 +
</p>

Latest revision as of 22:01, August 30, 2019