Difference between revisions of "acc-today"
From MGH Learn Pathology
(Created page with "<table class='table borderless'> <tr> <td class='align-bottom' colspan="3"> <center>{{#cargo_query: tables=scheduleFACservice |fields=scheduleFACservice.Date |where=scheduleFA...") |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
<tr> | <tr> | ||
<td colspan="1"> | <td colspan="1"> | ||
− | {{ | + | <table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:Resident|Resident}}||#000000|}}'''</center></td></tr></table> |
− | | | + | {{#arraymap: AUT,BR1,BR2,BST,CV,DPA,DPB,DPC,FZ,HN1,HN2,GI1,GI2,GI3,GUL,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|{{Timezone}}}} - 0 }}' AND scheduleRESservice.TaskAbbrev='TaskAbbreviation'|default={{:schtableempty}}|format=template|template=schtable}} | |
− | + | |}} | |
− | }} | ||
</td> | </td> | ||
<td colspan="1"> | <td colspan="1"> | ||
− | {{ | + | <table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:Fel/Elec|Fellow / Elective-Resident}}||#000000|}}'''</center></td></tr></table> |
− | | | + | {{#arraymap: AUT,BR1,BR2,BST,CV,DPA,DPB,DPC,FS,HN1,HN2,GI1,GI2,GI3,GUL,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|{{Timezone}}}} - 0 }}' AND scheduleFELLservice.TaskAbbrev='TaskAbbreviation' |format=template|template=schtable}} | |
− | + | |}} | |
− | }} | ||
</td> | </td> | ||
<td colspan="1"> | <td colspan="1"> | ||
+ | <table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:A |Attending}}||#000000|}} '''({{#switch: {{#time: N|{{Timezone}}}} | 1|2|3 = {{acc-FACdatetoday|+|0|+|2|}} | 4 = {{acc-FACdatetoday|+|1|-|3|}} | 5 = {{acc-FACdatetoday|+|1|-|3|}} | 6 = {{acc-FACdatetoday|+|0|+|0|}} | 7 = {{acc-FACdatetoday|+|1|-|6|}} | <center>{{ColorText|''Something went wrong!|yellow|red||}}<br>Please check <htmltag tagname="a" href="https://app.qgenda.com/Link/view?linkKey=9a12a547-f1b4-4998-bdca-acf3204a120e&landingPageId=40221bd9-4ac1-4a0b-8a00-da4f05d88f2e" target="_blank">QGenda.</htmltag>''<br><span style="color:red" class="glyphicon glyphicon-warning-sign" aria-hidden="true"></center> }})</center></td></tr></table> | ||
{{#switch: {{#time: N|{{Timezone}}}} | {{#switch: {{#time: N|{{Timezone}}}} | ||
− | | 1|2|3 = {{acc- | + | | 1|2|3 = {{acc-FACtoday|+|0|+|2|}} |
− | | 4 = {{acc- | + | | 4 = {{acc-FACtoday|+|1|-|3|}} |
− | | 5 = {{acc- | + | | 5 = {{acc-FACtoday|+|1|-|3|}} |
− | | 6 = {{acc- | + | | 6 = {{acc-FACtoday|+|0|+|0|}} |
− | | 7 = {{acc- | + | | 7 = {{acc-FACtoday|+|1|-|6|}} |
| <center>{{ColorText|''Something went wrong!|yellow|red||}}<br>Please check <htmltag tagname="a" href="https://app.qgenda.com/Link/view?linkKey=9a12a547-f1b4-4998-bdca-acf3204a120e&landingPageId=40221bd9-4ac1-4a0b-8a00-da4f05d88f2e" target="_blank">QGenda.</htmltag>''<br><span style="color:red" class="glyphicon glyphicon-warning-sign" aria-hidden="true"></center> | | <center>{{ColorText|''Something went wrong!|yellow|red||}}<br>Please check <htmltag tagname="a" href="https://app.qgenda.com/Link/view?linkKey=9a12a547-f1b4-4998-bdca-acf3204a120e&landingPageId=40221bd9-4ac1-4a0b-8a00-da4f05d88f2e" target="_blank">QGenda.</htmltag>''<br><span style="color:red" class="glyphicon glyphicon-warning-sign" aria-hidden="true"></center> | ||
}} | }} |