source: FOIAVistA/trunk/r/PHARMACY_DATA_MANAGEMENT-PSS/PSS0088.m@ 1522

Last change on this file since 1522 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 1.6 KB
Line 
1PSS0088 ;BIR/JLC - CHECK MED ROUTE ABBREVIATIONS ;04/12/2007
2 ;;1.0;PHARMACY DATA MANAGEMENT;**88**;9/30/97;Build 12
3 ;
4 ;
5 Q
6EN K ZTSAVE,ZTSK,ZTDESC,ZTIO,ZTRTN S ZTRTN="ENQN^PSS0088",ZTDESC="PDM - Check Med Route Abbreviations",ZTIO="" D ^%ZTLOAD
7 W !!,"The check for Med Route Abbreviations is",$S($D(ZTSK):"",1:" NOT")," queued",!
8 I $D(ZTSK) D
9 . W " (to start NOW).",!!,"YOU WILL RECEIVE A MAILMAN MESSAGE WHEN TASK #"_ZTSK_" HAS COMPLETED."
10 Q
11ENQN N IEN,MRAB,A K PSS,PSS1
12 S PSS=6,PSS(6,0)="",PSS1=1,PSS1(1,0)="",IEN=0 F S IEN=$O(^PS(51.2,IEN)) Q:'IEN D
13 . S A=$G(^PS(51.2,IEN,0)),MRAB=$P(A,"^",3) I $L(PSS(PSS,0))>55 S PSS=PSS+1,PSS(PSS,0)=""
14 . I MRAB["IV"!(MRAB["IM")!(MRAB["ID")!(MRAB["SC")!(MRAB["SQ") S PSS(PSS,0)=PSS(PSS,0)_MRAB_", "
15 . I $L(PSS1(PSS1,0))>55 S PSS1=PSS1+1,PSS1(PSS1,0)=""
16 . I $P(A,"^")="IV PUSH"!(MRAB="IVP") S PSS1(PSS1,0)=PSS1(PSS1,0)_MRAB_", "
17SENDMSG ;Send mail message when check is complete.
18 N XMDUZ,XMSUB,XMTEXT,XMY,%,Y
19 S XMDUZ="MANAGEMENT,PHARMACY DATA",XMSUB="CHECK FOR MED ROUTE ABBREVIATIONS COMPLETE",XMTEXT="PSS(",XMY(DUZ)="" D NOW^%DTC S Y=% X ^DD("DD")
20 S PSS(1,0)=" The check of Med Route abbreviations completed as of "_Y_"."
21 S PSS(2,0)=" ",PSS(3,0)="The following abbreviations contain IV, ID, IM, SC or SQ. Please update the"
22 S PSS(4,0)="Injection Site prompt if appropriate.",PSS(5,0)=" "
23 S PSS=PSS+1,PSS(PSS,0)="",PSS=PSS+1,PSS(PSS,0)="The following Med Routes may need to be displayed on the IVP/IVPB tab."
24 S PSS=PSS+1,PSS(PSS,0)="Please update the DSPLY ON IVP/IVPB TAB IN BCMA? information appropriately."
25 S PSS=PSS+1,PSS(PSS,0)=""
26 F I=1:1:PSS1 S PSS=PSS+1,PSS(PSS,0)=PSS1(I,0)
27 D ^XMD Q
Note: See TracBrowser for help on using the repository browser.