PSNVFY ;BIR/CCH&WRT-verifies matches allows rematch ; 02/08/00 8:45 ;;4.0; NATIONAL DRUG FILE;**3,22,65**; 30 Oct 98 ; ;Reference to ^DIC(51.5 supported by DBIA #1931 ;Reference to ^PSDRUG supported by DBIA #2352,#221 ; S PSNFL=0,PSNW=0 F PSNB=0:0 S PSNB=$O(^PSNTRAN(PSNB)) Q:'PSNB D CHK I $D(PSNFL) Q:PSNFL DONE W:PSNW=0 !!,?13,"No Data has been generated" K PSNB,PSNFL D KILL Q CHK I $D(PSNFL) Q:PSNFL S PSNP=$G(^PSDRUG(PSNB,"I")) I PSNP,PSNP
" W:'$D(Z9) !,"< Press RETURN to Pass to Next Drug >" R !!!,?10,"Is this a match ? ",ANS:DTIME I '$T S ANS="^" S PSNFL=1 Q I ANS?.E1C.E G RESP I ANS="" K ANS Q W ! I ANS["^" S PSNFL=1 Q I "Nn"[$E(ANS) K ANS D BLDIT^PSNCOMP Q:$P(^PSNTRAN(PSNB,0),"^",2)']"" G CHK I ANS["?" D RES2^PSNHELP K ANS G START I "YyNn"'[$E(ANS) W !," Invalid Response " G RESP S $P(^PSNTRAN(PSNB,0),"^",9)="Y",$P(^PSNTRAN(PSNB,0),"^",10)=DUZ Q KILL K ANS,PSNSIZE,PSNSZ,PSNTYP,PSNTYPE,PSNDA,PSNSTDA,PSNDDA,PSNUNDA,PSNCLASS,PSNDF,PSNFNM,PSNFORM,PSNNDF,DIC,PSNFL,NBR,PSNNEW,PSNOLD,PSNPST,X,Y,PSNCON,STOPIT K PSNFN,PSNNAM,PSNNAME,PSNNL,PSNVAR,PSND,PSNDFM,PSNVC,PSNVCL,RM,SL,ZZ,ZZZ,PSNTPE,PSNSZE,VV,VVV,JJ,MJL,KK,IN,PSNODE,PSNOU,NODE,PSNWRT,PSNVADC,PSNENT,PSNF,PSNM,PSNLOC,^TMP($J,"PSNND"),ASC,PSNRAN,PSNV,PSNWR,PSNX,PSNZ,WRT,BB,END,PSNP,PSNW K CODE,DA,DATE,DIR,EEE,FFF,FL,GGG,IEN,J,K,NO31,NOM31,NOMSYN,DUNCE,PP,PSNARY,PSNIEN,PSNP,PTPS,QQ,RR,ST,TT,TTT,WR,XX,XXX,Y,ZXZX,DDD,LIST,PPQ,PSNTRFL,PSNXZ,STOP,PSNPD,PSNUP,PSNINQ,NFI