source: FOIAVistA/trunk/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXX14.m@ 794

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

initial load of FOIAVistA 6/30/08 version

File size: 651 bytes
Line 
1DGPTXX14 ; COMPILED XREF FOR FILE #45.06 ; 12/12/07
2 ;
3 S DA=0
4A1 ;
5 I $D(DISET) K DIKLM S:DIKM1=1 DIKLM=1 G @DIKM1
60 ;
7A S DA=$O(^DGPT(DA(1),"C",DA)) I DA'>0 S DA=0 G END
81 ;
9 S DIKZ(0)=$G(^DGPT(DA(1),"C",DA,0))
10 S X=$P(DIKZ(0),U,1)
11 I X'="" S ^DGPT(DA(1),"C","B",$E(X,1,30),DA)=""
12 S X=$P(DIKZ(0),U,6)
13 I X'="" D ADD^AUPNVSIT
14CR1 S DIXR=624
15 K X
16 S X(1)=$P(DIKZ(0),U,1)
17 S X(2)=$P(DIKZ(0),U,7)
18 S X(3)=$P(DIKZ(0),U,9)
19 S X=$G(X(1))
20 D
21 . K X1,X2 M X1=X,X2=X
22 . N DIKXARR M DIKXARR=X S DIKCOND=1
23 . S X='X2(2)&'X2(3)&X2(1)
24 . S DIKCOND=$G(X) K X M X=DIKXARR
25 . Q:'DIKCOND
26 . S ^DGPT("AB",X2(1),DA(1),DA)=""
27CR2 K X
28 G:'$D(DIKLM) A Q:$D(DISET)
29END Q
Note: See TracBrowser for help on using the repository browser.