Changeset 636 for FOIAVistA/tag/r/NATIONAL_DRUG_FILE-PSN
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (15 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
FOIAVistA/tag/r/NATIONAL_DRUG_FILE-PSN/PSNHFRM.m
r628 r636 1 PSNHFRM ;BIR/WRT-Report of Hospital Formulary drugs from DRUG file ; 8/28/07 12:07pm2 ;;4.0; NATIONAL DRUG FILE; **152**;30 Oct 98;Build 51 PSNHFRM ;BIR/WRT-Report of Hospital Formulary drugs from DRUG file ; 10/18/98 17:48 2 ;;4.0; NATIONAL DRUG FILE;; 30 Oct 98 3 3 DVC K IO("Q"),%ZIS,POP,IOP S %ZIS="QM",%ZIS("B")="",%ZIS("A")="DEVICE: " D ^%ZIS G:POP DONE W:$E(IOST)'="P" !!,"This report must be run on a printer.",!! G:$E(IOST)'="P" DVC I POP K IOP,POP,IO("Q") Q 4 4 QUEUE I $D(IO("Q")) K IO("Q") S ZTRTN="ENQ^PSNHFRM" K ZTSAVE,ZTDTH,ZTSK S PSNDEV=ION_";"_IOST_";"_IOM_";"_IOSL,ZTSAVE("SF")="",ZTSAVE("PSNDEV")="",ZTSAVE("PSNANS")="",ZTDESC="Hospital Formulary Report",ZTIO="" … … 22 22 QUEUE1 S IOP=PSNDEV F D ^%ZIS Q:'POP H 20 23 23 Q 24 LOOP F PSNB=0:0 S PSNB=$O(^PSDRUG(PSNB)) Q:'PSNB D 25 .Q:'$D(^PSDRUG(PSNB,0)) 26 .S PSNAME=$P(^PSDRUG(PSNB,0),"^",1) Q:PSNAME="" 27 .S PSNCLSS=$P(^PSDRUG(PSNB,0),"^",2) S:PSNCLSS']"" PSNCLSS="No Class" I $P(^PSDRUG(PSNB,0),"^",9)'=1 D CHECK 24 LOOP F PSNB=0:0 S PSNB=$O(^PSDRUG(PSNB)) Q:'PSNB S PSNAME=$P(^PSDRUG(PSNB,0),"^",1),PSNCLSS=$P(^PSDRUG(PSNB,0),"^",2) S:PSNCLSS']"" PSNCLSS="No Class" I $P(^PSDRUG(PSNB,0),"^",9)'=1 D CHECK 28 25 Q 29 26 GETDATE I '$D(^PSDRUG(PSNB,"I")) D GETNODE,GETPRIC … … 44 41 TRADE1 I $P(^PSDRUG(PSNB,1,PSNUM,0),"^",3)=1 S PSNTRD="ZZXZZXZZX" S PSNAR(3,PSNAME,"ZZXZZXZZX")="" 45 42 Q 46 TRADE2 I $P(^PSDRUG(PSNB,1,PSNUM,0),"^",3)=0 S PSNTRD=$P(^PSDRUG(PSNB,1,PSNUM,0),"^",1) I PSNTRD]""S PSNAR(1,PSNAME,PSNTRD)=""43 TRADE2 I $P(^PSDRUG(PSNB,1,PSNUM,0),"^",3)=0 S PSNTRD=$P(^PSDRUG(PSNB,1,PSNUM,0),"^",1) S PSNAR(1,PSNAME,PSNTRD)="" 47 44 Q 48 45 TRADE3 I $P(^PSDRUG(PSNB,1,PSNUM,0),"^",3)="" S PSNTRD="ZZXZZXZZX" S PSNAR(2,PSNAME,"ZZXZZXZZX")="" -
FOIAVistA/tag/r/NATIONAL_DRUG_FILE-PSN/PSNPPIP.m
r628 r636 1 PSNPPIP ;BIR/DMA-WRT-print a medication instruction sheet ; 12 Apr 2007 8:38 AM2 ;;4.0; NATIONAL DRUG FILE;**3,7,30,62,84 ,141**; 30 Oct 98;Build 31 PSNPPIP ;BIR/DMA-WRT-print a medication instruction sheet ; 02/12/03 16:46 2 ;;4.0; NATIONAL DRUG FILE;**3,7,30,62,84**; 30 Oct 98 3 3 ; 4 4 ; Reference to ^PS(59.7 supported by IA #2613 … … 160 160 I PG>1,$E(IOST,1,2)="C-" S DIR(0)="E" D ^DIR K DIR I 'Y S QUIT=1 Q 161 161 ; W:$Y @IOF W !!,LIN0,$S(PSNTYPE<4:"Medication instructions for ",1:"Informaci"_$C(243)_"n sobre su medicina "),DRUG,?70,$S(PSNTYPE<4:"Page ",1:"P"_$C(225)_"gina "),PG S PG=PG+1 162 W:$Y @IOF W !!,?70,$S(PSNTYPE<4:"Page ",1:"P"_$C( 160)_"gina "),PG,!,LIN0,$S(PSNTYPE<4:"Medication instructions for ",1:"Informaci"_$C(162)_"n sobre su medicin a "),DRUG S PG=PG+1162 W:$Y @IOF W !!,?70,$S(PSNTYPE<4:"Page ",1:"P"_$C(225)_"gina "),PG,!,LIN0,$S(PSNTYPE<4:"Medication instructions for ",1:"Informaci"_$C(243)_"n sobre su medicin a "),DRUG S PG=PG+1 163 163 I $D(NAM) W !!,?2,"Printed for: ",NAM_" ("_VA("BID")_")",?60,$$HTE^XLFDT(+$H),!,?2,"Rx Number: "_$G(PSRX) 164 164 W !!! Q
Note:
See TracChangeset
for help on using the changeset viewer.