Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: PRPFSITE

PRPFSITE.m

Go to the documentation of this file.
PRPFSITE ;ALTOONA/CTB  RETURNS VARIABLES PRPF("QTR"), PRPF("SITE"),PRPF("FY") ;11/22/96  4:45 PM [ 02/13/97   9:46 PM ]
V ;;3.0;PATIENT FUNDS;**6**;JUNE 1, 1989
 D DUZ Q:'%
 I '$D(^PRPFT(470.5,0)) S ^PRPFT(470.5,0)="PATIENT FUNDS TEMPORARY TRANSACTION^470.5"
 I '$D(DT) D NOW^PRPFQ S DT=X
OUT S %=1 Q
 ;
A ;CREATE SIGNATURE BLOCK NAME
 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
DUZ ;LOOKUP AND SET PRPF("PER")=PERSON FILE IRN
 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")
 I '$D(PRPF("PER")) S %=0 W:'$D(%INT) !,*7,"YOU ARE NOT IN THE 'PERSON' FILE.  CONTACT YOUR SITE MANAGER",! K %INT Q
 I '$D(^VA(200,PRPF("PER"),20)) D A K %INT Q
 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
 S PRPF("NAME")=$P(^VA(200,PRPF("PER"),20),"^",2) K %INT Q