FBXIP155 ;ALB/BJR-PATCH INSTALL ROUTINE ; 10/8/14 11:22am
;;3.5;FEE BASIS;**155**;JAN 30, 1995;Build 2
;;Per VA Directive 6402, this routine should not be modified.
Q
;
UPDPOV ; Update Selected Purpose of Visits (POV)
N FBCODE,FBDA,FBFDA,FBI,FBNAME,FBPROG,FBX,X,Y,FBCCODE
D BMES^XPDUTL(" Updating selected POVs in the FEE BASIS PURPOSE OF VISIT (161.82) file...")
; verify IEN of OUTPATIENT program in FEE BASIS PROGRAM file
I $P($G(^FBAA(161.8,2,0)),U)'="OUTPATIENT" D Q
. D MES^XPDUTL(" ERROR: Fee Program with IEN 2 is not OUTPATIENT.")
. D MES^XPDUTL(" Purpose of Visits could not be updated.")
. D MES^XPDUTL(" Please contact your IRM for assistance.")
F FBI=1:1 S FBX=$P($T(POV+FBI),";;",2) Q:FBX="END" D
. S FBCODE=$P(FBX,U)
. S FBNAME=$P(FBX,U,2)
. S FBPROG=$P(FBX,U,3)
. N DA,DD,DIC,DINUM,DLAYGO,DO,X
. S FBCCODE=$O(^FBAA(161.82,"B",FBNAME,"")) I FBCCODE,$P(^FBAA(161.82,FBCCODE,0),U,3)=FBCODE D MES^XPDUTL("POV WITH CODE "_FBCODE_" ALREADY EXISTS AND HAS NOT BEEN ADDED") Q
. S DIC="^FBAA(161.82,",DIC(0)="L",DLAYGO=161.82
. S X=FBNAME
. S DIC("DR")="2///^S X=FBPROG;3///^S X=FBCODE"
. I +FBCODE,'$D(^FBAA(161.82,+FBCODE,0)) S DINUM=+FBCODE
. D FILE^DICN
. I Y<0 D MES^XPDUTL("ERROR ADDING POV WITH CODE "_FBCODE) Q
. D MES^XPDUTL("POV WITH CODE "_FBCODE_" HAS BEEN ADDED")
D BMES^XPDUTL("Post Install Completed.")
Q
;
POV ;austin code^name^fee program for Purpose of Visit (POV) code(s)
;;25^NON-VA MEDICAL CARE, CAREGIVER OVERSIGHT VISITS^2
;;26^PROGRAM OF ALL-INCLUSIVE CARE OF THE ELDERLY (PACE)^2
;;27^VETERAN-DIRECTED HOME AND COMMUNITY BASED SERVICES (VD-HCBS)^2
;;28^AMBULANCE/TRAVEL - FOR INPATIENT OR OUTPATIENT SERVICES^2
;;END
;
;FBXIP155
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HFBXIP155 1744 printed Dec 13, 2024@02:01:21 Page 2
FBXIP155 ;ALB/BJR-PATCH INSTALL ROUTINE ; 10/8/14 11:22am
+1 ;;3.5;FEE BASIS;**155**;JAN 30, 1995;Build 2
+2 ;;Per VA Directive 6402, this routine should not be modified.
+3 QUIT
+4 ;
UPDPOV ; Update Selected Purpose of Visits (POV)
+1 NEW FBCODE,FBDA,FBFDA,FBI,FBNAME,FBPROG,FBX,X,Y,FBCCODE
+2 DO BMES^XPDUTL(" Updating selected POVs in the FEE BASIS PURPOSE OF VISIT (161.82) file...")
+3 ; verify IEN of OUTPATIENT program in FEE BASIS PROGRAM file
+4 IF $PIECE($GET(^FBAA(161.8,2,0)),U)'="OUTPATIENT"
Begin DoDot:1
+5 DO MES^XPDUTL(" ERROR: Fee Program with IEN 2 is not OUTPATIENT.")
+6 DO MES^XPDUTL(" Purpose of Visits could not be updated.")
+7 DO MES^XPDUTL(" Please contact your IRM for assistance.")
End DoDot:1
QUIT
+8 FOR FBI=1:1
SET FBX=$PIECE($TEXT(POV+FBI),";;",2)
if FBX="END"
QUIT
Begin DoDot:1
+9 SET FBCODE=$PIECE(FBX,U)
+10 SET FBNAME=$PIECE(FBX,U,2)
+11 SET FBPROG=$PIECE(FBX,U,3)
+12 NEW DA,DD,DIC,DINUM,DLAYGO,DO,X
+13 SET FBCCODE=$ORDER(^FBAA(161.82,"B",FBNAME,""))
IF FBCCODE
IF $PIECE(^FBAA(161.82,FBCCODE,0),U,3)=FBCODE
DO MES^XPDUTL("POV WITH CODE "_FBCODE_" ALREADY EXISTS AND HAS NOT BEEN ADDED")
QUIT
+14 SET DIC="^FBAA(161.82,"
SET DIC(0)="L"
SET DLAYGO=161.82
+15 SET X=FBNAME
+16 SET DIC("DR")="2///^S X=FBPROG;3///^S X=FBCODE"
+17 IF +FBCODE
IF '$DATA(^FBAA(161.82,+FBCODE,0))
SET DINUM=+FBCODE
+18 DO FILE^DICN
+19 IF Y<0
DO MES^XPDUTL("ERROR ADDING POV WITH CODE "_FBCODE)
QUIT
+20 DO MES^XPDUTL("POV WITH CODE "_FBCODE_" HAS BEEN ADDED")
End DoDot:1
+21 DO BMES^XPDUTL("Post Install Completed.")
+22 QUIT
+23 ;
POV ;austin code^name^fee program for Purpose of Visit (POV) code(s)
+1 ;;25^NON-VA MEDICAL CARE, CAREGIVER OVERSIGHT VISITS^2
+2 ;;26^PROGRAM OF ALL-INCLUSIVE CARE OF THE ELDERLY (PACE)^2
+3 ;;27^VETERAN-DIRECTED HOME AND COMMUNITY BASED SERVICES (VD-HCBS)^2
+4 ;;28^AMBULANCE/TRAVEL - FOR INPATIENT OR OUTPATIENT SERVICES^2
+5 ;;END
+6 ;
+7 ;FBXIP155