DGRRPSAC() ; ALB/SGG rtnDGRR PatientServices Address Confidential ; 09/30/03 ; Compiled October 2, 2003 12:40:53
;;5.3;Registration;**557**;Aug 13, 1993
;
DOC ;"
DO ACCAC
SET CNT=$G(CNT)+1,PSARRAY(CNT)=""_"^^^1"
QUIT
;
ACSTRE1() ;
QUIT $P(GLOB(.141),"^",1)
;
ACSTRE2() ;
QUIT $P(GLOB(.141),"^",2)
;
ACSTRE3() ;
QUIT $P(GLOB(.141),"^",3)
;
ACCITY() ;
QUIT $P(GLOB(.141),"^",4)
;
ACSTATE() ;
NEW DATA
SET DATA=$P(GLOB(.141),"^",5)
QUIT $S(DATA="":"",1:$P($G(^DIC(5,DATA,0)),"^",2))
;
ACZIP() ;
QUIT $P(GLOB(.141),"^",6)
;
ACCOUNTY() ;
N DATA,STATE
SET STATE=$P(GLOB(.141),"^",5)
SET DATA=$P(GLOB(.141),"^",11)
IF DATA'="",STATE'="" SET DATA=$P($G(^DIC(5,STATE,1,DATA,0)),"^",1)
QUIT DATA
;
ACSTDATE() ;
QUIT $P(GLOB(.141),"^",7)
;
ACENDATE() ;
QUIT $P(GLOB(.141),"^",8)
;
ACCAC ;
NEW CACCNT,ROWCNT,CAC,CACACT,DATA
SET CACCNT=0,ROWCNT=0
FOR SET CACCNT=$O(GLOB(.14,CACCNT)) QUIT:'+CACCNT DO
.SET DATA=$P($G(GLOB(.14,CACCNT,0)),"^",1)
.SET CAC=$S(DATA=1:"ELIGIBILITY/ENROLLMENT",DATA=2:"APPOINTMENT/SCHEDULING",DATA=3:"COPAYMENTS/VETERAN BILLING",DATA=4:"MEDICAL RECORDS",DATA=5:"ALL OTHERS",1:"")
.SET CACACT=$S($P($G(GLOB(.14,CACCNT,0)),"^",2)="Y":"TRUE",$P($G(GLOB(.14,CACCNT,0)),"^",2)="N":"FALSE",1:"")
.SET ROWCNT=ROWCNT+1
.SET CNT=$G(CNT)+1,PSARRAY(CNT)=""
IF ROWCNT=0 DO
.SET CNT=$G(CNT)+1,PSARRAY(CNT)=""
QUIT