Difference between revisions of "learn:oncallAMP"
From MGH Learn Pathology
Line 1: | Line 1: | ||
{{#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: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; | ||
− | + | DPC,Dermatopathology,fceef5,DP; DPC,Dermatopathology,fceef5,DP; DPC,Dermatopathology,fceef5,DP; EYE,Eye,fffef8,EYE; Frozen Sectionalt,Frozen Section,e4f5f1,FS; Frozen Sectionalt,Frozen Section,e4f5f1,FS; {{#var:GIservice}},Gastrointestinal,ffeeba,GI; {{#var:GIservice}},Gastrointestinal,ffeeba,GI; {{#var:GIservice}},Gastrointestinal,ffeeba,GI; {{#var:GIservice}},Gastrointestinal,ffeeba,GI; GUL,Genitourinary,b6d1e4,GU; GUL,Genitourinary,b6d1e4,GU; GYL,Gynecologic,e4cce0,GYN; GYL,Gynecologic,e4cce0,GYN; OB,Obstetrical,e4cce0,OB;HN2,Head and Neck,c6e8e4,HN; HN2,Head and Neck,c6e8e4,HN; HPA,Hematopathology,ebfbea,HP; HPA,Hematopathology,ebfbea,HP; NP,Neuropathology,bbdfc9,NP; PP,Pulmonary Pathology,f0f4ca,PP;RLS,RLS,fff9e8,RLS; AP CHIEF,AP Chief,eaeaea,AP Chief; | |
|;|TaskAbbreviation| | |;|TaskAbbreviation| | ||
{{#cargo_query: table=scheduleFACservice,facultyMGH|join on=scheduleFACservice.StaffAbbrev=facultyMGH.copath_id | {{#cargo_query: table=scheduleFACservice,facultyMGH|join on=scheduleFACservice.StaffAbbrev=facultyMGH.copath_id |