Difference between revisions of "ScheduleMobile"

From MGH Learn Pathology
Line 1: Line 1:
<div class="desktop">__NOTOC__ __NOCACHE__ <div style="overflow-x:auto">{{#css: a#ui-id-2.ui-tabs-anchor{ padding-top: 7px; padding-right: 0px; padding-bottom: 7px; padding-left: 0px; } }}
+
<div class="mobile_device_480px">
= Today =
+
Hello, {{CURRENTUSERREALNAME}}!<br>
[[learn:features|{{ColorText|'''NEW: '''||red|3|}}{{ColorText|<ins>What can I do on Learn?</ins>||#29425f|3|}}]]
+
You last logged in on {{#timel: l, F j, Y|{{#var:last}}}} at {{#timel: g:i A|{{#var:last}}}}.
<br><p></p>
+
<br>
<table class='table borderless'>
+
<br>
<tr>
+
<br>
<td style="width: 28%">
 
{{ColorText|Hello, {{CURRENTUSERREALNAME}}!|||3|}}<br>
 
{{ColorText|Today is|||4|}} '''{{ColorText|{{#time: l, M j|{{Timezone}}}}||red|4|}}'''<br>
 
{{ColorText|Day number '''{{#time:z|{{{1|}}}}}''' of {{#time: Y|now}}!|||3|}}<br><br>
 
 
{{IfGroup|path,sysop|
 
{{IfGroup|path,sysop|
{{ColorText|Quick links||#30705d|4|}}
+
{{ColorText|'''Quick links'''||#018ab2|6}}
* [[mgh:services|AP & CP Services]]
+
<br>
* [[learn:bulletinboard|Bulletin Board]]
+
[[learn:aboutus|{{fontawesome|s|info-circle}} About us]]<br><p></p>
* [[learn:contacts|Contacts]]
+
[[mgh:services|{{fontawesome|s|microscope}} AP & CP services]]<br><p></p>
* [[GPR|GPR]]
+
[[learn:bulletinboard|{{glyphicon|pushpin}} Bulletin board]]<br><p></p>
* [[Special:RunQuery/MilestonesRunQuery|Milestones]]
+
[[learn:contacts|{{fontawesome|s|user}} Contact list]]<br><p></p>
* [[learn:rp|Resident Portal]]
+
:[[learn:distributionlist|{{fontawesome|s|envelope}} Distribution lists]]<br><p></p>
* [https://learn.mghpathology.org/index.php/learn:schedule Schedules]
+
[[wsi|{{glyphicon|erase}} Digital slides (WSI)]]<br><p></p>
 +
[[GPR|{{glyphicon|camera}} GPR]]<br><p></p>
 +
[[Special:RunQuery/MilestonesRunQuery|{{glyphicon|education}} Milestones]]<br><p></p>
 +
[[learn:rp|{{glyphicon|folder-open}} Resident portal]]<br><p></p>
 +
[[learn:schedule|{{glyphicon|calendar}} Schedules]]<br><p></p>
 +
{{:learn:otherweeks}}
 
|
 
|
{{ColorText|Quick links||#30705d|4|}}
+
{{IfGroup|resmgh|
* [[learn:bulletinboard|Bulletin Board]]
+
{{ColorText|'''Quick links'''||#018ab2|6}}
* [[learn:contacts|Contacts]]
 
* [[GPR|GPR]]
 
* [[Special:RunQuery/ResidentMilestonesRunQuery|Milestones]]
 
* [[learn:rp|Resident Portal]]
 
* [https://learn.mghpathology.org/index.php/learn:schedule Schedules]
 
}}
 
</td>
 
<td style="width: 4%">
 
&nbsp;
 
</td>
 
<td style="width: 15%">
 
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>{{ColorText|'''CONFERENCE'''||#000000|}}</center></td></tr></table>
 
{{#cargo_query: tables=scheduleCallConference,residentMGH
 
    |join on=scheduleCallConference.ResAbbrev=residentMGH.copath_id
 
    |fields=scheduleCallConference.ResAbbrev,scheduleCallConference.Color,residentMGH.full_name,scheduleCallConference.TaskAbbrev
 
    |where=scheduleCallConference.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} - 0 }}' AND scheduleCallConference.DayNumber='{{#expr: {{#time: N|{{Timezone}}}} - 0 }}' AND scheduleCallConference.Type='Conference' AND NOT scheduleCallConference.ResAbbrev='-' AND NOT TaskAbbrev='HP Journal Club'|default={{schedule-emptycell|fffff4|-}}
 
    |format=template|template=schtableconf}}
 
 
<br>
 
<br>
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>{{ColorText|'''CALL'''||#000000|}}</center></td></tr></table>
+
[[learn:aboutus|{{fontawesome|s|info-circle}} About us]]<br><p></p>
{{#switch: {{#time: N|{{Timezone}}}}|6=
+
[[mgh:services|{{glyphicon|menu-hamburger}} AP & CP services]]<br><p></p>
{{#cargo_query: tables= scheduleCallConference,residentMGH
+
[[learn:bulletinboard|{{glyphicon|pushpin}} Bulletin board]]<br><p></p>
    |join on= scheduleCallConference.ResAbbrev=residentMGH.copath_id
+
[[learn:contacts|{{fontawesome|s|user}} Contact list]]<br><p></p>
    |fields= scheduleCallConference.ResAbbrev, scheduleCallConference.Color,residentMGH.full_name, scheduleCallConference.TaskAbbrev=Conf
+
:[[learn:distributionlist|{{fontawesome|s|envelope}} Distribution lists]]<br><p></p>
    |where=scheduleCallConference.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} - 0 }}' AND scheduleCallConference.DayNumber='{{#expr: {{#time: N|{{Timezone}}}} + 0 }}' AND scheduleCallConference.Type='Call' AND NOT scheduleCallConference.ResAbbrev='-' AND NOT scheduleCallConference.TaskAbbrev='Call: Junior CP'|order by= scheduleCallConference.Sort DESC|default={{:schtableempty}}
+
[[wsi|{{glyphicon|erase}} Digital slides (WSI)]]<br><p></p>
    |format=template|template=schtableconf}}
+
[[GPR|{{glyphicon|camera}} GPR]]<br><p></p>
|7=
+
[[Special:RunQuery/ResidentMilestonesRunQuery|{{glyphicon|education}} Milestones]]<br><p></p>
{{#cargo_query: tables= scheduleCallConference,residentMGH
+
[[learn:rp|{{glyphicon|folder-open}} Resident portal]]<br><p></p>
    |join on= scheduleCallConference.ResAbbrev=residentMGH.copath_id
+
[[learn:schedule|{{glyphicon|calendar}} Schedules]]<br><p></p>
    |fields= scheduleCallConference.ResAbbrev, scheduleCallConference.Color,residentMGH.full_name, scheduleCallConference.TaskAbbrev=Conf
+
{{:learn:otherweeks}}
    |where= scheduleCallConference.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} - 0 }}' AND scheduleCallConference.DayNumber='0' AND scheduleCallConference.Type='Call' AND NOT scheduleCallConference.ResAbbrev='-' AND NOT scheduleCallConference.TaskAbbrev='Call: Junior CP' AND NOT scheduleCallConference.TaskAbbrev='Call: Autopsy'|order by= scheduleCallConference.Sort DESC|default={{:schtableempty}}
 
    |format=template|template=schtableconf}}
 
 
|
 
|
{{#cargo_query: tables= scheduleCallConference,residentMGH
+
{{ColorText|'''Quick links'''||#018ab2|6}}
    |join on= scheduleCallConference.ResAbbrev=residentMGH.copath_id
 
    |fields= scheduleCallConference.ResAbbrev, scheduleCallConference.Color,residentMGH.full_name, scheduleCallConference.TaskAbbrev=Conf
 
    |where= scheduleCallConference.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} - 0 }}' AND scheduleCallConference.DayNumber='{{#expr: {{#time: N|{{Timezone}}}} + 0 }}' AND scheduleCallConference.Type='Call' AND NOT scheduleCallConference.ResAbbrev='-' AND NOT scheduleCallConference.TaskAbbrev='Call: Junior CP' AND NOT scheduleCallConference.TaskAbbrev='Call: Autopsy'|order by= scheduleCallConference.Sort DESC|default={{:schtableempty}}
 
    |format=template|template=schtableconf}}
 
}}
 
 
<br>
 
<br>
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>{{ColorText|'''VACATIONS'''||#000000|}}</center></td></tr></table>
+
[[learn:aboutus|{{fontawesome|s|info-circle}} About us]]<br><p></p>
{{#cargo_query: tables=scheduleRESservice,residentMGH
+
[[mgh:services|{{fontawesome|s|microscope}} AP & CP services]]<br><p></p>
|join on=scheduleRESservice.ResAbbrev=residentMGH.copath_id
+
[[learn:contacts|{{fontawesome|s|user}} Contact list]]<br><p></p>
|fields=scheduleRESservice.ResAbbrev,scheduleRESservice.Color,residentMGH.full_name
+
:[[learn:distributionlist|{{fontawesome|s|envelope}} Distribution lists]]<br><p></p>
|where=scheduleRESservice.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} - 0 }}' AND scheduleRESservice.TaskAbbrev='VAC'|group by=scheduleRESservice.WeekNumber,scheduleRESservice.ResAbbrev|default={{schedule-emptycell|fffff4|-}}|format=template|template=schtable}}
+
[[wsi|{{glyphicon|erase}} Digital slides (WSI)]]<br><p></p>
</td>
+
[[learn:rp|{{glyphicon|folder-open}} Resident portal]]<br><p></p>
<td style="width: 4%">
+
[[learn:schedule|{{glyphicon|calendar}} Schedules]]<br><p></p>
&nbsp;
+
{{:learn:otherweeks}}
</td>
 
<td style="width: 10%">
 
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>{{ColorText|'''Service'''||#000000|}}</center></td></tr></table>
 
{{:schtablemobile2}}
 
</td>
 
<td style="width: 13%">
 
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:Resident|Resident}}||#000000|}}'''</center></td></tr></table>
 
{{#switch: {{#time: N|{{Timezone}}}}
 
|6
 
|7=
 
{{:schtablemobile6}}
 
|{{#arraymap: AUT,AEAAAA;BR1,FF7E46;BR2,FF7E46;BST,E2EFDA;CV,7AD062;CA,04AAD1;CB,04AAD1;CC,04AAD1;DPA,EDB1FF;DPB,EDB1FF;DPC,EDB1FF;HN1,04E489;HN2,04E489;GI1,FFC30F;GI2,FFC30F;GI3,FFC30F;GI4,FFC30F;GUL,4FA4FF;GUS,4FA4FF;GYL,CD5EB6;GYS,CD5EB6;HPA,92E2AF;HPB,92E2AF;HG,92E2AF;NP,FCE4D6;OB,CD5EB6;PP,7AD062;RP,FFFF8D;FS-S,CCECFF;FS-J,CCECFF;GR-S,B8A315;AP CHIEF,B39BE9;CP CHIEF,B39BE9;|;|TaskAbbreviation|
 
{{#cargo_query: tables=scheduleRESservice,residentMGH
 
|join on=scheduleRESservice.ResAbbrev=residentMGH.copath_id
 
|fields=
 
GROUP_CONCAT(DISTINCT scheduleRESservice.ResAbbrev)
 
,scheduleRESservice.Color
 
,GROUP_CONCAT(DISTINCT residentMGH.full_name)
 
,pageid
 
|group by=scheduleRESservice.WeekNumber
 
|where=YEAR(Date)={{#time: Y|{{Timezone}}}} AND scheduleRESservice.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} - 0 }}' AND scheduleRESservice.TaskAbbrev='{{#explode:TaskAbbreviation|,|0}}'|default={{schtableempty|{{#explode:TaskAbbreviation|,|1}}}}|format=template|template=schtableres}}
 
|}}
 
 
}}
 
}}
</td>
 
<td style="width: 13%">
 
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:Fellow/Elective|Fellow / Elective-Resident}}||#000000|}}'''</center></td></tr></table>
 
{{#switch: {{#time: N|{{Timezone}}}}
 
|6
 
|7=
 
{{:schtablemobile6}}
 
|{{#arraymap: AUT,AEAAAA;BR1,FF7E46;BR2,FF7E46;BST,E2EFDA;CV,7AD062;CA,04AAD1;CB,04AAD1;CC,04AAD1;DPA,EDB1FF;DPB,EDB1FF;DPC,EDB1FF;HN1,04E489;HN2,04E489;GI1,FFC30F;GI2,FFC30F;GI3,FFC30F;GI4,FFC30F;GUL,4FA4FF;GUS,4FA4FF;GYL,CD5EB6;GYS,CD5EB6;HPA,92E2AF;HPB,92E2AF;HG,92E2AF;NP,FCE4D6;OB,CD5EB6;PP,7AD062;RP,FFFF8D;FS-S,CCECFF;FS-J,CCECFF;|;|TaskAbbreviation|
 
{{#cargo_query: tables=scheduleFELLservice,residentMGH
 
|join on=scheduleFELLservice.FellAbbrev=residentMGH.copath_id
 
|fields=scheduleFELLservice.FellAbbrev,scheduleFELLservice.Color,residentMGH.full_name,residentMGH.pageid
 
|where=YEAR(Date)={{#time: Y|{{Timezone}}}} AND scheduleFELLservice.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} - 0 }}' AND scheduleFELLservice.TaskAbbrev='{{#explode:TaskAbbreviation|,|0}}' |format=template
 
|group by=scheduleFELLservice.WeekNumber|default={{schtableempty|{{#explode:TaskAbbreviation|,|1}}}}|template=schtableres}}
 
|}}
 
 
}}
 
}}
</td>
 
<td style="width: 13%">
 
{{#switch: {{#time: N|{{Timezone}}}}
 
|6
 
|7=
 
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:On-Call ATT|On-Call Attending}}||#000000|}}'''
 
</center></td></tr></table>
 
|1
 
|2
 
|3
 
|4
 
|5=
 
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:Attending|Attending}}||#000000|}}'''</center></td></tr></table>
 
}}
 
{{#arraymap: AUT,AEAAAA;BR1,FF7E46;BR2,FF7E46;BST,E2EFDA;CV,7AD062;CA,04AAD1;CB,04AAD1;CC,04AAD1;DPA,EDB1FF;DPB,EDB1FF;DPC,EDB1FF;HN1,04E489;HN2,04E489;GI1,FFC30F;GI2,FFC30F;GI3,FFC30F;GI4,FFC30F;GUL,4FA4FF;GUS,4FA4FF;GYL,CD5EB6;GYS,CD5EB6;HPA,92E2AF;HPB,92E2AF;HG,92E2AF;NP,FCE4D6;OB,CD5EB6;PP,7AD062;RP,FFFF8D;FROZEN SECTION,CCECFF;FROZEN SECTION,CCECFF;|;|TaskAbbreviation|
 
{{#cargo_query: table=scheduleFACservice
 
|fields=GROUP_CONCAT(scheduleFACservice.StaffAbbrev),scheduleFACservice.Color,GROUP_CONCAT(scheduleFACservice.StaffFullName)
 
|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|,|1}}}}|format=template|template=schtable}}
 
|}}
 
</td>
 
</tr>
 
</table>
 
 
= [[learn:schedule-currentweek|Current Week ({{#time: W|{{Timezone}}}})]] =
 
 
<headertabs/>
 
</div>
 
</div>
 
<div class="mobile_device_480px">
 
{{ColorText|Hello, {{CURRENTUSERREALNAME}}!|||3|}}<br>
 
{{ColorText|Today is|||4|}} '''{{ColorText|{{#time: l, M j|{{Timezone}}}}||red|4|}}'''<br>
 
{{ColorText|Day number '''{{#time:z|{{{1|}}}}}''' of {{#time: Y|now}}!|||3|}}
 
<br><br>
 
{{ColorText|Quick links|||4|}}
 
* [[mgh:services|AP & CP Services]]
 
* [[learn:bulletinboard|Bulletin Board]]
 
* [[learn:contacts|Contacts]]
 
* [[GPR|GPR]]
 
* [[Special:RunQuery/MilestonesRunQuery|Milestones]]
 
* [[learn:rp|Resident Portal]]
 
* [https://learn.mghpathology.org/index.php/learn:schedule Schedules]
 
 
<br>
 
<br>
 
<table class='table borderless'>
 
<table class='table borderless'>
Line 162: Line 60:
 
|7=
 
|7=
 
{{:schtablemobile6}}
 
{{:schtablemobile6}}
|{{#arraymap: AUT,AEAAAA;BR1,FF7E46;BR2,FF7E46;BST,E2EFDA;CV,7AD062;CA,04AAD1;CB,04AAD1;CC,04AAD1;DPA,EDB1FF;DPB,EDB1FF;DPC,EDB1FF;HN1,04E489;HN2,04E489;GI1,FFC30F;GI2,FFC30F;GI3,FFC30F;GI4,FFC30F;GUL,4FA4FF;GUS,4FA4FF;GYL,CD5EB6;GYS,CD5EB6;HPA,92E2AF;HPB,92E2AF;HG,92E2AF;NP,FCE4D6;OB,CD5EB6;PP,7AD062;RP,FFFF8D;FS-S,CCECFF;FS-J,CCECFF;GR-S,B8A315;AP CHIEF,B39BE9;CP CHIEF,B39BE9;|;|TaskAbbreviation|
+
|{{#arraymap: AUT,AEAAAA;BR1,FF7E46;BR2,FF7E46;BST,E2EFDA;CV,7AD062;RP,FFFF8D;CA,04AAD1;CB,04AAD1;CC,04AAD1;DPA,EDB1FF;DPB,EDB1FF;DPC,EDB1FF;HN1,04E489;HN2,04E489;GI1,FFC30F;GI2,FFC30F;GI3,FFC30F;GI4,FFC30F;GUL,4FA4FF;GUS,4FA4FF;GYL,CD5EB6;GYS,CD5EB6;HPA,92E2AF;HPB,92E2AF;HG,92E2AF;NP,FCE4D6;OB,CD5EB6;PP,7AD062;FS-S,CCECFF;FS-J,CCECFF;GR-S,B8A315;AP CHIEF,B39BE9;CP CHIEF,B39BE9;|;|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 181: Line 79:
 
|7=
 
|7=
 
{{:schtablemobile6}}
 
{{:schtablemobile6}}
|{{#arraymap: AUT,AEAAAA;BR1,FF7E46;BR2,FF7E46;BST,E2EFDA;CV,7AD062;CA,04AAD1;CB,04AAD1;CC,04AAD1;DPA,EDB1FF;DPB,EDB1FF;DPC,EDB1FF;HN1,04E489;HN2,04E489;GI1,FFC30F;GI2,FFC30F;GI3,FFC30F;GI4,FFC30F;GUL,4FA4FF;GUS,4FA4FF;GYL,CD5EB6;GYS,CD5EB6;HPA,92E2AF;HPB,92E2AF;HG,92E2AF;NP,FCE4D6;OB,CD5EB6;PP,7AD062;RP,FFFF8D;FS-S,CCECFF;FS-J,CCECFF;|;|TaskAbbreviation|
+
|{{#arraymap: AUT,AEAAAA;BR1,FF7E46;BR2,FF7E46;BST,E2EFDA;CV,7AD062;RP,FFFF8D;CA,04AAD1;CB,04AAD1;CC,04AAD1;DPA,EDB1FF;DPB,EDB1FF;DPC,EDB1FF;HN1,04E489;HN2,04E489;GI1,FFC30F;GI2,FFC30F;GI3,FFC30F;GI4,FFC30F;GUL,4FA4FF;GUS,4FA4FF;GYL,CD5EB6;GYS,CD5EB6;HPA,92E2AF;HPB,92E2AF;HG,92E2AF;NP,FCE4D6;OB,CD5EB6;PP,7AD062;FS-S,CCECFF;FS-J,CCECFF;|;|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 203: Line 101:
 
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:Attending|Attending}}||#000000|}}'''</center></td></tr></table>
 
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:Attending|Attending}}||#000000|}}'''</center></td></tr></table>
 
}}
 
}}
{{#arraymap: AUT,AEAAAA;BR1,FF7E46;BR2,FF7E46;BST,E2EFDA;CV,7AD062;CA,04AAD1;CB,04AAD1;CC,04AAD1;DPA,EDB1FF;DPB,EDB1FF;DPC,EDB1FF;HN1,04E489;HN2,04E489;GI1,FFC30F;GI2,FFC30F;GI3,FFC30F;GI4,FFC30F;GUL,4FA4FF;GUS,4FA4FF;GYL,CD5EB6;GYS,CD5EB6;HPA,92E2AF;HPB,92E2AF;HG,92E2AF;NP,FCE4D6;OB,CD5EB6;PP,7AD062;RP,FFFF8D;FROZEN SECTION,CCECFF;FROZEN SECTION,CCECFF;|;|TaskAbbreviation|
+
{{#arraymap: AUT,AEAAAA;BR1,FF7E46;BR2,FF7E46;BST,E2EFDA;CV,7AD062;RP,FFFF8D;CA,04AAD1;CB,04AAD1;CC,04AAD1;DPA,EDB1FF;DPB,EDB1FF;DPC,EDB1FF;HN1,04E489;HN2,04E489;GI1,FFC30F;GI2,FFC30F;GI3,FFC30F;GI4,FFC30F;GUL,4FA4FF;GUS,4FA4FF;GYL,CD5EB6;GYS,CD5EB6;HPA,92E2AF;HPB,92E2AF;HG,92E2AF;NP,FCE4D6;OB,CD5EB6;PP,7AD062;FROZEN SECTION,CCECFF;FROZEN SECTION,CCECFF;|;|TaskAbbreviation|
 
{{#cargo_query: table=scheduleFACservice  
 
{{#cargo_query: table=scheduleFACservice  
 
|fields=GROUP_CONCAT(scheduleFACservice.StaffAbbrev),scheduleFACservice.Color,GROUP_CONCAT(scheduleFACservice.StaffFullName)
 
|fields=GROUP_CONCAT(scheduleFACservice.StaffAbbrev),scheduleFACservice.Color,GROUP_CONCAT(scheduleFACservice.StaffFullName)

Revision as of 18:46, September 2, 2021