Difference between revisions of "EvaluationResAtt"
From MGH Learn Pathology
(15 intermediate revisions by the same user not shown) | |||
Line 19: | Line 19: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td style="vertical-align:top; width: | + | <td style="vertical-align:top; width:38%"> |
{{#cargo_query:tables=scheduleRFA,evaluationResAtt | {{#cargo_query:tables=scheduleRFA,evaluationResAtt | ||
|join on=scheduleRFA.UID=evaluationResAtt.UID | |join on=scheduleRFA.UID=evaluationResAtt.UID | ||
Line 26: | Line 26: | ||
,CONCAT('{{evaluationResAtt-service{{#urldecode:%7C}}',scheduleRFA.TaskAbbrev,'}}')=Service | ,CONCAT('{{evaluationResAtt-service{{#urldecode:%7C}}',scheduleRFA.TaskAbbrev,'}}')=Service | ||
,CONCAT('{{evaluationResAtt-attending{{#urldecode:%7C}}',scheduleRFA.StaffAbbrev,'{{#urldecode:%7C}}',scheduleRFA.TaskAbbrev,'{{#urldecode:%7C}}',scheduleRFA.Date,'{{#urldecode:%7C}}',scheduleRFA.UID,'{{#urldecode:%7C}}',scheduleRFA.WeekNumber,'{{#urldecode:%7C}}',scheduleRFA.ResAbbrev,'}}')=Attending | ,CONCAT('{{evaluationResAtt-attending{{#urldecode:%7C}}',scheduleRFA.StaffAbbrev,'{{#urldecode:%7C}}',scheduleRFA.TaskAbbrev,'{{#urldecode:%7C}}',scheduleRFA.Date,'{{#urldecode:%7C}}',scheduleRFA.UID,'{{#urldecode:%7C}}',scheduleRFA.WeekNumber,'{{#urldecode:%7C}}',scheduleRFA.ResAbbrev,'}}')=Attending | ||
− | |where=YEAR(scheduleRFA.Date)='{{#expr: {{#time: Y|{{Timezone}}}} + 0 }}' AND scheduleRFA.ResAbbrev=' | + | |where=YEAR(scheduleRFA.Date)='{{#expr: {{#time: Y|{{Timezone}}}} + 0 }}' AND scheduleRFA.ResAbbrev='MOR' AND WEEK(scheduleRFA.Date) <= '{{#ifexpr: {{#time: w}} >= 4|{{#expr: {{#time: W|{{Timezone}}}} - 1 }}|{{#expr: {{#time: W|{{Timezone}}}} - 2 }} }}' |
|group by=scheduleRFA.weeknumber,scheduleRFA.TaskAbbrev,scheduleRFA.StaffAbbrev | |group by=scheduleRFA.weeknumber,scheduleRFA.TaskAbbrev,scheduleRFA.StaffAbbrev | ||
|order by=scheduleRFA.Date DESC | |order by=scheduleRFA.Date DESC | ||
Line 35: | Line 35: | ||
| | ||
</td> | </td> | ||
− | <td style="vertical-align:top; width: | + | <td style="vertical-align:top; width:38%"> |
− | {{#cargo_query:tables= | + | {{#cargo_query:tables=scheduleRFA,evaluationResAtt |
− | |join on= | + | |join on=scheduleRFA.UID=evaluationResAtt.UID |
|fields= | |fields= | ||
− | DATE_FORMAT( | + | DATE_FORMAT(scheduleRFA.Date, '%b %e, %Y')=Date |
− | , | + | ,CONCAT('{{evaluationResAtt-service{{#urldecode:%7C}}',scheduleRFA.TaskAbbrev,'}}')=Service |
− | ,CONCAT('{{evaluationResAtt- | + | ,CONCAT('{{evaluationResAtt-attending{{#urldecode:%7C}}',scheduleRFA.StaffAbbrev,'{{#urldecode:%7C}}',scheduleRFA.TaskAbbrev,'{{#urldecode:%7C}}',scheduleRFA.Date,'{{#urldecode:%7C}}',scheduleRFA.UID,'{{#urldecode:%7C}}',scheduleRFA.WeekNumber,'{{#urldecode:%7C}}',scheduleRFA.ResAbbrev,'}}')=Attending |
− | |where=YEAR( | + | |where=(scheduleRFA.TaskAbbrev='COAG' OR TaskAbbrev='Micro' OR TaskAbbrev='BTS' OR TaskAbbrev='HG' OR TaskAbbrev='HPA' OR TaskAbbrev='HPB') AND YEAR(scheduleRFA.Date)='{{#expr: {{#time: Y|{{Timezone}}}} + 0 }}' AND scheduleRFA.ResAbbrev='STE' AND WEEK(scheduleRFA.Date) <= '{{#ifexpr: {{#time: w}} >= 4|{{#expr: {{#time: W|{{Timezone}}}} - 1 }}|{{#expr: {{#time: W|{{Timezone}}}} - 2 }} }}' |
− | |order by= | + | |group by=QUARTER(scheduleRFA.Date),scheduleRFA.TaskAbbrev,scheduleRFA.StaffAbbrev |
+ | |order by=scheduleRFA.Date DESC | ||
|rows per page=50 | |rows per page=50 | ||
− | |||
|format=dynamic table|default=}} | |format=dynamic table|default=}} | ||
</td> | </td> | ||
Line 65: | Line 65: | ||
</tr> | </tr> | ||
</table></center> | </table></center> | ||
+ | <center><p></p>{{helpfooter}}<center> |
Latest revision as of 07:30, September 29, 2020
|
|
|
|
|
|
|