IBBAADD ;OAK/ELZ - PFSS FILE INDEXING ;15-MAR-2005
;;2.0;INTEGRATED BILLING;**286**;21-MAR-94
;;Per VHA Directive 10-93-142, this routine should not be modified.
;
SAC(DA) ;set AC xref on file #375
N X1,X2,X3
S X2=+$P($G(^IBBAA(375,DA,"PV1")),U,3)
Q:'X2
S X1=$P(^IBBAA(375,DA,0),U,3)
S X3=$P(^IBBAA(375,DA,"PV1"),U,44)
I X3'="" S ^IBBAA(375,"AC",X1,X3,X2,DA)=""
Q
;
KAC144(DA) ;kill AC xref on file #375
N X1,X2,X3
S X2=+$P($G(^IBBAA(375,DA,"PV1")),U,3)
Q:'X2
S X1=$P(^IBBAA(375,DA,0),U,3)
S X3=$P(^IBBAA(375,DA,"PV1"),U,44)
I X3'="" K ^IBBAA(375,"AC",X1,X3,X2,DA)
Q
;
SAF(DA) ;set AF xref on file #375
N X1,X2,X3
S X2=$G(^IBBAA(375,DA,16))
Q:X2=""
S X1=$P(^IBBAA(375,DA,0),U,3)
S X3=$P($G(^IBBAA(375,DA,"PV1")),U,44)
I X3'="" S ^IBBAA(375,"AF",X1,X3,X2,DA)=""
Q
;
KAF(DA) ;kill AF xref on file #375
N X1,X2,X3
S X2=$G(^IBBAA(375,DA,16))
Q:X2=""
S X1=$P(^IBBAA(375,DA,0),U,3)
S X3=$P($G(^IBBAA(375,DA,"PV1")),U,44)
I X3'="" K ^IBBAA(375,"AC",X1,X3,X2,DA)
Q
;
SAOX(DA,DFN,IBBTEST) ;set AX or OX xref on file #373
N X,X1,X2,X3,X4
;do not set if test patient
I $$TESTPAT^VADPT($G(DFN)) S IBBTEST=1 Q
S X=$G(^IBBAD(373,DA,0))
S X1=$P(X,U,3),X2=$P(X,U,4),X3=$P(X,U,6),X4=$P(X,U,11)
I X4="" D
.I X3=419 S ^IBBAD(373,"AX",X1,X2,DA)=""
.E S ^IBBAD(373,"OX",X1,X2,DA)=""
Q
;
KAOX(DA) ;kill AX or OX xref on file #373
N X,X1,X2,X3,X4
S X=$G(^IBBAD(373,DA,0))
S X1=$P(X,U,3),X2=$P(X,U,4),X3=$P(X,U,6),X4=$P(X,U,11)
I X4 D
.I X3=419 K ^IBBAD(373,"AX",X1,X2,DA)
.E K ^IBBAD(373,"OX",X1,X2,DA)
Q
;
SAA(DA) ;set AA xref on file #374
N XX,X1,X2,X3
S XX=^IBBAS(374,DA(1),1,DA,0),X1=$P(XX,U,1),X2=$P(XX,U,2),X3=$P(XX,U,3)
I X3=1 S ^IBBAS(374,"AA",X1,X2,DA(1),DA)=""
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBBAADD 1774 printed Oct 16, 2024@18:08:58 Page 2
IBBAADD ;OAK/ELZ - PFSS FILE INDEXING ;15-MAR-2005
+1 ;;2.0;INTEGRATED BILLING;**286**;21-MAR-94
+2 ;;Per VHA Directive 10-93-142, this routine should not be modified.
+3 ;
SAC(DA) ;set AC xref on file #375
+1 NEW X1,X2,X3
+2 SET X2=+$PIECE($GET(^IBBAA(375,DA,"PV1")),U,3)
+3 if 'X2
QUIT
+4 SET X1=$PIECE(^IBBAA(375,DA,0),U,3)
+5 SET X3=$PIECE(^IBBAA(375,DA,"PV1"),U,44)
+6 IF X3'=""
SET ^IBBAA(375,"AC",X1,X3,X2,DA)=""
+7 QUIT
+8 ;
KAC144(DA) ;kill AC xref on file #375
+1 NEW X1,X2,X3
+2 SET X2=+$PIECE($GET(^IBBAA(375,DA,"PV1")),U,3)
+3 if 'X2
QUIT
+4 SET X1=$PIECE(^IBBAA(375,DA,0),U,3)
+5 SET X3=$PIECE(^IBBAA(375,DA,"PV1"),U,44)
+6 IF X3'=""
KILL ^IBBAA(375,"AC",X1,X3,X2,DA)
+7 QUIT
+8 ;
SAF(DA) ;set AF xref on file #375
+1 NEW X1,X2,X3
+2 SET X2=$GET(^IBBAA(375,DA,16))
+3 if X2=""
QUIT
+4 SET X1=$PIECE(^IBBAA(375,DA,0),U,3)
+5 SET X3=$PIECE($GET(^IBBAA(375,DA,"PV1")),U,44)
+6 IF X3'=""
SET ^IBBAA(375,"AF",X1,X3,X2,DA)=""
+7 QUIT
+8 ;
KAF(DA) ;kill AF xref on file #375
+1 NEW X1,X2,X3
+2 SET X2=$GET(^IBBAA(375,DA,16))
+3 if X2=""
QUIT
+4 SET X1=$PIECE(^IBBAA(375,DA,0),U,3)
+5 SET X3=$PIECE($GET(^IBBAA(375,DA,"PV1")),U,44)
+6 IF X3'=""
KILL ^IBBAA(375,"AC",X1,X3,X2,DA)
+7 QUIT
+8 ;
SAOX(DA,DFN,IBBTEST) ;set AX or OX xref on file #373
+1 NEW X,X1,X2,X3,X4
+2 ;do not set if test patient
+3 IF $$TESTPAT^VADPT($GET(DFN))
SET IBBTEST=1
QUIT
+4 SET X=$GET(^IBBAD(373,DA,0))
+5 SET X1=$PIECE(X,U,3)
SET X2=$PIECE(X,U,4)
SET X3=$PIECE(X,U,6)
SET X4=$PIECE(X,U,11)
+6 IF X4=""
Begin DoDot:1
+7 IF X3=419
SET ^IBBAD(373,"AX",X1,X2,DA)=""
+8 IF '$TEST
SET ^IBBAD(373,"OX",X1,X2,DA)=""
End DoDot:1
+9 QUIT
+10 ;
KAOX(DA) ;kill AX or OX xref on file #373
+1 NEW X,X1,X2,X3,X4
+2 SET X=$GET(^IBBAD(373,DA,0))
+3 SET X1=$PIECE(X,U,3)
SET X2=$PIECE(X,U,4)
SET X3=$PIECE(X,U,6)
SET X4=$PIECE(X,U,11)
+4 IF X4
Begin DoDot:1
+5 IF X3=419
KILL ^IBBAD(373,"AX",X1,X2,DA)
+6 IF '$TEST
KILL ^IBBAD(373,"OX",X1,X2,DA)
End DoDot:1
+7 QUIT
+8 ;
SAA(DA) ;set AA xref on file #374
+1 NEW XX,X1,X2,X3
+2 SET XX=^IBBAS(374,DA(1),1,DA,0)
SET X1=$PIECE(XX,U,1)
SET X2=$PIECE(XX,U,2)
SET X3=$PIECE(XX,U,3)
+3 IF X3=1
SET ^IBBAS(374,"AA",X1,X2,DA(1),DA)=""
+4 QUIT