source: FOIAVistA/trunk/r/INTEGRATED_PATIENT_FUNDS-PRPF-PFXIP/PRPFSITE.m@ 1674

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

initial load of FOIAVistA 6/30/08 version

File size: 980 bytes
Line 
1PRPFSITE ;ALTOONA/CTB RETURNS VARIABLES PRPF("QTR"), PRPF("SITE"),PRPF("FY") ;11/22/96 4:45 PM [ 02/13/97 9:46 PM ]
2V ;;3.0;PATIENT FUNDS;**6**;JUNE 1, 1989
3 D DUZ Q:'%
4 I '$D(^PRPFT(470.5,0)) S ^PRPFT(470.5,0)="PATIENT FUNDS TEMPORARY TRANSACTION^470.5"
5 I '$D(DT) D NOW^PRPFQ S DT=X
6OUT S %=1 Q
7 ;
8A ;CREATE SIGNATURE BLOCK NAME
9 S %X=$P(^VA(200,PRPF("PER"),0),"^"),%X=$P(%X,",",2)_" "_$P(%X,",")_$P(%X,",",3),$P(^VA(200,PRPF("PER"),20),"^",2)=%X K %X Q
10DUZ ;LOOKUP AND SET PRPF("PER")=PERSON FILE IRN
11 S %=1 I $D(DUZ)#2,+DUZ>0,$D(^VA(200,DUZ,0)) S PRPF("PER")=DUZ I '$D(^VA(200,PRPF("PER"),0)) K PRPF("PER")
12 I '$D(PRPF("PER")) S %=0 W:'$D(%INT) !,*7,"YOU ARE NOT IN THE 'PERSON' FILE. CONTACT YOUR SITE MANAGER",! K %INT Q
13 I '$D(^VA(200,PRPF("PER"),20)) D A K %INT Q
14 I $P(^VA(200,PRPF("PER"),20),"^",2)="" S %X=$P(^VA(200,PRPF("PER"),0),"^"),%X=$P(%X,",",2)_" "_$P(%X,",")_$P(%X,",",3),$P(^(20),"^",2)=%X K %X
15 S PRPF("NAME")=$P(^VA(200,PRPF("PER"),20),"^",2) K %INT Q
Note: See TracBrowser for help on using the repository browser.