Difference between revisions of "learn:oncallAMP"

From MGH Learn Pathology
Line 1: Line 1:
 +
{{#var:DPservice}}
 +
 
{{#vardefine:DPattending|{{#cargo_query:table=scheduleFACservice|fields=StaffAbbrev|where=YEAR(Date)={{#timel: Y|now }} AND scheduleFACservice.WeekNumber='{{#expr: {{#timel: W|now }} - 0}}' AND scheduleFACservice.DayNumber='3' AND TaskAbbrev='DPC'|format=template|template=text|no html}}}}{{#vardefine:DPservice|{{#cargo_query:table=scheduleFACservice|fields=TaskAbbrev|where=YEAR(Date)={{#timel: Y|now }} AND scheduleFACservice.WeekNumber='{{#expr: {{#timel: W|now }} - 0}}' AND scheduleFACservice.DayNumber='4' AND StaffAbbrev='{{#var:DPattending}}'|format=template|template=text|no html|limit=1|more results text=}}}}{{#vardefine:GIattending|{{#cargo_query:table=scheduleFACservice|fields=StaffAbbrev|where=YEAR(Date)={{#timel: Y|now }} AND scheduleFACservice.WeekNumber='{{#expr: {{#timel: W|now }} - 0}}' AND scheduleFACservice.DayNumber='7' AND TaskAbbrev='GI1'|format=template|template=text|no html}}}}{{#vardefine:GIservice|{{#cargo_query:table=scheduleFACservice|fields=TaskAbbrev|where=YEAR(Date)={{#timel: Y|now }} AND scheduleFACservice.WeekNumber='{{#expr: {{#timel: W|now }} - 0}}' AND scheduleFACservice.DayNumber='5' AND StaffAbbrev='{{#var:GIattending}}'|format=template|template=text|no html|limit=1|more results text=}}}}{{#arraymap:
 
{{#vardefine:DPattending|{{#cargo_query:table=scheduleFACservice|fields=StaffAbbrev|where=YEAR(Date)={{#timel: Y|now }} AND scheduleFACservice.WeekNumber='{{#expr: {{#timel: W|now }} - 0}}' AND scheduleFACservice.DayNumber='3' AND TaskAbbrev='DPC'|format=template|template=text|no html}}}}{{#vardefine:DPservice|{{#cargo_query:table=scheduleFACservice|fields=TaskAbbrev|where=YEAR(Date)={{#timel: Y|now }} AND scheduleFACservice.WeekNumber='{{#expr: {{#timel: W|now }} - 0}}' AND scheduleFACservice.DayNumber='4' AND StaffAbbrev='{{#var:DPattending}}'|format=template|template=text|no html|limit=1|more results text=}}}}{{#vardefine:GIattending|{{#cargo_query:table=scheduleFACservice|fields=StaffAbbrev|where=YEAR(Date)={{#timel: Y|now }} AND scheduleFACservice.WeekNumber='{{#expr: {{#timel: W|now }} - 0}}' AND scheduleFACservice.DayNumber='7' AND TaskAbbrev='GI1'|format=template|template=text|no html}}}}{{#vardefine:GIservice|{{#cargo_query:table=scheduleFACservice|fields=TaskAbbrev|where=YEAR(Date)={{#timel: Y|now }} AND scheduleFACservice.WeekNumber='{{#expr: {{#timel: W|now }} - 0}}' AND scheduleFACservice.DayNumber='5' AND StaffAbbrev='{{#var:GIattending}}'|format=template|template=text|no html|limit=1|more results text=}}}}{{#arraymap:
 
AUT,Autopsy,c8d2d4,AUT; BST,Bone and Soft Tissue,e8edf5,BST; BR1,Breast,ffd1c8,BR; BR1,Breast,ffd1c8,BR; CV,Cardiovascular,a9d8c3,CV; RP,Renal,a9d8c3,RP; CB,Cytology,cfe7ef,CYT; CB,Cytology,cfe7ef,CYT; CB,Cytology,cfe7ef,CYT;  
 
AUT,Autopsy,c8d2d4,AUT; BST,Bone and Soft Tissue,e8edf5,BST; BR1,Breast,ffd1c8,BR; BR1,Breast,ffd1c8,BR; CV,Cardiovascular,a9d8c3,CV; RP,Renal,a9d8c3,RP; CB,Cytology,cfe7ef,CYT; CB,Cytology,cfe7ef,CYT; CB,Cytology,cfe7ef,CYT;  

Revision as of 16:04, November 5, 2021