source: FOIAVistA/trunk/r/CMOP-PSX/PSXDENT.m@ 1765

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

initial load of FOIAVistA 6/30/08 version

File size: 437 bytes
Line 
1PSXDENT ;BIR/WRT-Set Xref for ID ;[ 10/19/98 7:13 AM ]
2 ;;2.0;CMOP;**18,19**;11 Apr 97
3 D START K PSXB,PSXID,PSXNDF,PSXVAPN
4 Q
5START F PSXB=0:0 S PSXB=$O(^PSDRUG("AQ",PSXB)) Q:'PSXB I $P(^PSDRUG(PSXB,3),"^",1)=1 S PSXNDF=$P(^PSDRUG(PSXB,"ND"),"^",1),PSXVAPN=$P(^PSDRUG(PSXB,"ND"),"^",3),ZX=$$PROD2^PSNAPIS(PSXNDF,PSXVAPN),PSXID=$P($G(ZX),"^",2) K ZX D SETT
6 Q
7SETT S $P(^PSDRUG(PSXB,"ND"),"^",10)=PSXID,^PSDRUG("AQ1",PSXID,PSXB)=""
8 Q
Note: See TracBrowser for help on using the repository browser.