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: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|}}}}{{#arraymap: |
− | |||
− | |||
− | {{#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=' | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{#arraymap: | ||
AUT,Autopsy,859ca0,AUT; BSTalt,Bone and Soft Tissue,c9d8e7,BST; BR1,Breast,ff9a86,BR; BR1,Breast,ff9a86,BR; CV,Cardiovascular,6cad90,CV; RP,Renal,6cad90,RP; CB,Cytology,94c9da,CYT; CB,Cytology,94c9da,CYT; CB,Cytology,94c9da,CYT; | AUT,Autopsy,859ca0,AUT; BSTalt,Bone and Soft Tissue,c9d8e7,BST; BR1,Breast,ff9a86,BR; BR1,Breast,ff9a86,BR; CV,Cardiovascular,6cad90,CV; RP,Renal,6cad90,RP; CB,Cytology,94c9da,CYT; CB,Cytology,94c9da,CYT; CB,Cytology,94c9da,CYT; | ||
− | DPA,Dermatopathology,f8d9e9,DP; DPB,Dermatopathology,f8d9e9,DP; DPB,Dermatopathology,f8d9e9,DP; EYE,Eye,fffbf0,EYE; Frozen Section,Frozen Section,c2e7df,FS; Frozen Section,Frozen Section,c2e7df,FS; | + | DPA,Dermatopathology,f8d9e9,DP; DPB,Dermatopathology,f8d9e9,DP; DPB,Dermatopathology,f8d9e9,DP; EYE,Eye,fffbf0,EYE; Frozen Section,Frozen Section,c2e7df,FS; Frozen Section,Frozen Section,c2e7df,FS; {{#var:GIservice}},Gastrointestinal,ffd966,GI; {{#var:GIservice}},Gastrointestinal,ffd966,GI; {{#var:GIservice}},Gastrointestinal,ffd966,GI; {{#var:GIservice}},Gastrointestinal,ffd966,GI; GULalt,Genitourinary,5d99c2,GU; GUSalt,Genitourinary,5d99c2,GU; GYLalt,Gynecologic,c48fbc,GYN; GYSalt,Gynecologic,c48fbc,GYN; OB,Obstetrical,c48fbc,OB;HN2,Head and Neck,81cdc4,HN; HN2,Head and Neck,81cdc4,HN; HPA,Hematopathology,d3f6d0,HP; HPA,Hematopathology,d3f6d0,HP; NP,Neuropathology,67ba86,NP; PPalt,Pulmonary Pathology,dee58a,PP;RLS,RLS,fff2cc,RLS; AP CHIEF,AP Chief,d1d1d1,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 |