source: FOIAVistA/trunk/r/NATIONAL_DRUG_FILE-PSN/PSNAUTO.m@ 1397

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

initial load of FOIAVistA 6/30/08 version

File size: 1.2 KB
Line 
1PSNAUTO ;BIR/WRT-Builds temporary file for matches (for new version 2.0 drugs and any unmatched drugs) ; 10/20/98 12:50
2 ;;4.0; NATIONAL DRUG FILE;; 30 Oct 98
3MESSGE W !,"This option will attempt to automatically match by NDC code, drugs which have",!,"not been"
4 W " matched to the National Drug File. These matches must be verified",!,"and merged.",!
5STWHN W !!,"AUTOMATIC MATCH by NDC Code process will begin. It will attempt to match",!,"all items that are not presently MATCHED to the National Drug File.",!!
6 R "Are you sure you want to continue ? N// ",ANS:DTIME S:'$T ANS="^" S:ANS']"" ANS="N" G:"^Nn"[$E(ANS) KILL
7 I $D(ANS),ANS?.E1C.E K ANS G PSNAUTO
8 I $D(ANS),"?"[$E(ANS) D AUTO^PSNHELP1 G PSNAUTO
9 I $D(ANS),"NnYy^"'[$E(ANS) G PSNAUTO
10 I $D(ANS) D:"Yy"[$E(ANS) ^PSNNDC1 S:$D(XRT0) XRTN=$T(+0) D:$D(XRT0) T1^%ZOSV W:$P(^PS(59.7,1,10),"^",3)=1 !!,"OK, I'm through. Please verify these matches.",! D KILL Q
11KILL K PSNB,PSNDA,PSNSTDA,PSNUNDA,PSNDDA,ANS,DIC,II,MJL,JJ,NBR,PSNCLASS,PSNFL,PSNFLB,PSNFNM,PSNFORM,PSNNAM,PSNNAME,PSNNDA,PSNNDC,PSNNDF,PSNSP,PSNVAR,PSNSIZE,PSNTYPE,PSNSZ,PSNTRFL,PSNTYP,PSNPD
12 K X,Y,KK,PS,PT,STR,UNT,NDP,DOS,PSNP,PSND,PSNDFM,PSNVC,PSNVCL,STOP,VAR,PSNDEA,PSNENT,PSNF,PSNM Q
Note: See TracBrowser for help on using the repository browser.