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

IBCA1.m

Go to the documentation of this file.
  1. IBCA1 ;ALB/MRL - DISPLAY UTILITIES ;01 JUN 88 12:00
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;
  1. ;MAP TO DGCRA1
  1. ;
  1. Q:'$D(VADM) S X="",$P(X,"=",81)="" W @IOF,!,VADM(1)_" ("_$P(VADM(2),"^",2)_")",?64,"DOB: ",$P(VADM(3),"^",2),!,X
  1. W !,"Rate Type",?13,": ",$S($D(^DGCR(399.3,+IBIDS(.07),0)):$P(^(0),"^",1),1:"UNSPECIFIED-REQUIRED") S IBBT=IBIDS(.04)_IBIDS(.05)_IBIDS(.06)
  1. W !,"Event Date",?13,": " S Y=IBIDS(.03) X:Y ^DD("DD") W $S($L(Y):Y,1:"UNSPECIFIED"),!,"Sensitive",?13,": ",$S(IBIDS(155):"YES",IBIDS(155)=0:"NO",1:"NOT SPECIFIED")
  1. W !,"Responsible",?13,": ",$S(IBIDS(.11)="p":"PATIENT",IBIDS(.11)="i":"INSURANCE CARRIER",1:"OTHER [INSTITUTION]") I "^i^o^"[("^"_IBIDS(.11)_"^") W " (Specify ",$S(IBIDS(.11)="i":"CARRIER",1:"INSTITUTION")," on SCREEN 3)"
  1. W !!,"Bill Type",?13,": ",IBBT F I=1:1:3 W !," o "_I_$S(I=1:"st",I=2:"nd",1:"rd")_" Digit",?13,": " D TYPE
  1. W !!,"Bill From",?13,": " S Y=IBIDS(151) X ^DD("DD") W Y,!,"Bill To",?13,": " S Y=IBIDS(152) X ^DD("DD") W Y
  1. W ! I $E(IBBT,2)<3,$D(IBIDS(.08)) W !,"PTF Number",?13,": ",IBIDS(.08)
  1. I $D(IBIDS(.17)) W !,"Initial Bill#",?13,": ",$S($D(^DGCR(399,+IBIDS(.17),0)):$P(^(0),"^"),1:"Bill no longer exists")
  1. I $D(IBIDS(.15)) W !,"Copied Bill#",?13,": ",$S($D(^DGCR(399,+IBIDS(.15),0)):$P(^(0),"^"),1:"Bill no longer exists")
  1. W ! D T
  1. I $D(IBCAN),IBCAN=2 Q
  1. ASK S IBYN=0 W !!,"IS THE ABOVE INFORMATION CORRECT AS SHOWN" S %=1 D YN^DICN G ^IBCA:%=2,^IBCA2:%=1 I % D Q^IBCA2 G NREC^IBCA
  1. W !!?4,"YES - If this information is correct as shown and you wish to file the bill.",!?4,"NO - If you wish to change this information prior to filing."
  1. W !?4,"'^' - Enter the up-arrow character to DELETE this Bill at this time." G ASK
  1. TYPE S X3=$E(IBBT,I),X4=".0"_(I+3) W X3," - " I '$D(^DD(399,X4,0)) W "ZEROTH NODE UNSPECIFIED-CONTACT YOUR SYSTEMS MANAGER!"
  1. E W $P($P($P(^DD(399,X4,0),"^",3),X3_":",2),";",1)
  1. K X3,X4 Q
  1. T ;
  1. W !,"Please verify the above information for the bill you just entered. Once this"
  1. W !,"information is accepted it will no longer be editable and you will be required"
  1. W !,"to CANCEL THE BILL if changes to this information are necessary."
  1. Q