Difference between revisions of "acc-today"

From MGH Learn Pathology
Line 7: Line 7:
 
<tr>
 
<tr>
 
<td colspan="1">
 
<td colspan="1">
{{#switch: {{#time: N|{{Timezone}}}}  
+
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:Resident|Resident}}||#000000|}}'''</center></td></tr></table>
| 1|2|3 = {{acc-FACtoday|+|0|+|0|+|0|+|2|}}  
+
{{#arraymap: AUT,BR1,BR2,BST,CV,CA,CB,CC,DPA,DPB,DPC,FZ,HN1,HN2,GI1,GI2,GI3,GUL,GUS,GYL,GYS,HPA,HPB,NP,OB,PP,RP,AP CHIEF,FZ-S,FZ-J,GR-S|,|TaskAbbreviation|
| 4 = {{acc-FACtoday|+|0|+|0|+|1|-|3|}}
+
{{#cargo_query: tables=scheduleRESservice,residentMGH
| 5 = {{acc-FACtoday|+|0|+|0|+|1|-|3|}}
+
|join on=scheduleRESservice.ResAbbrev=residentMGH.copath_id
| 6 = {{acc-FACtoday|+|0|+|0|+|0|+|0|}}  
+
|fields=scheduleRESservice.ResAbbrev,scheduleRESservice.Color,residentMGH.full_name
| 7 = {{acc-FACtoday|+|0|+|0|+|1|-|6|}}  
+
|where=scheduleRESservice.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} - 0 }}' AND scheduleRESservice.TaskAbbrev='TaskAbbreviation'|default={{:schtableempty}}|format=template|template=schtable}}
| <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>
+
|}}
}}
 
 
</td>
 
</td>
 
<td colspan="1">
 
<td colspan="1">

Revision as of 06:22, September 24, 2019