VistA-WorldVistAEHR/r/NATIONAL_DRUG_FILE-PSN/PSNODDI1.m

12 lines
634 B
Mathematica

PSNODDI1 ;BIR/WRT-REPORT TO DISPLAY DRUG FILE 50 MATCHES TO NDF THAT ARE MARKED AS EXEMPTIONS FOR DDI INTERACTIONS CHECKING IN VA PRODUCT FILE ; 07/02/03 14:37
;;4.0; NATIONAL DRUG FILE;**70**; 30 Oct 98
;Reference to ^PSDRUG supported by DBIA #2192
;
INFO ;
S PSNDRG=$P(^PSDRUG(D0,0),"^"),NDF=$G(^PSDRUG(D0,"ND")) I NDF S VAPN=$P($G(NDF),"^",3),PROD=$P(^PSNDF(50.68,VAPN,0),"^") I $G(^PSNDF(50.68,VAPN,8)) S DFRM=$P(^PSNDF(50.68,VAPN,0),"^",3),FORM=$P(^PS(50.606,DFRM,0),"^") D INFO1
Q
INFO1 S CLPTR=$P($G(^PSNDF(50.68,VAPN,3)),"^"),CLCODE=$P(^PS(50.605,CLPTR,0),"^") D FORMAT
Q
FORMAT W !,PSNDRG,?50,CLCODE,?66,FORM,!,PROD
Q