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

FBXIP177.m

Go to the documentation of this file.
FBXIP177 ;ALB/BJR-PATCH INSTALL ROUTINE ;4/12/17 3:26pm
 ;;3.5;FEE BASIS;**177**;JAN 30, 1995;Build 7
 ;;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"!($P($G(^FBAA(161.8,6,0)),U)'="CIVIL HOSPITAL") D  Q
 . D MES^XPDUTL("    ERROR: Fee Program IEN Mismatched.")
 . 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",$E(FBNAME,1,63),"")) 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)^Additional Description
 ;;92^OUTPATIENT IVF / ART CARE - NON-VETERAN COLLATERAL SPOUSE^2
 ;;93^OUTPATIENT IVF / ART CARE - SC VETERAN^2
 ;;94^OUTPATIENT IVF / ART CARE - VETERAN COLLATERAL SPOUSE; FOR WHEN SPOUSE IS ALSO A VETERAN BUT NOT SC^2
 ;;95^INPATIENT IVF / ART CARE - NON-VETERAN COLLATERAL SPOUSE^6
 ;;96^INPATIENT IVF / ART CARE - SC VETERAN^6
 ;;97^INPATIENT IVF / ART CARE - VETERAN COLLATERAL SPOUSE; FOR WHEN SPOUSE IS ALSO A VETERAN BUT NOT SC^6
 ;;END
 ;
 ;FBXIP177