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

ABPAROCC.m

Go to the documentation of this file.
  1. ABPAROCC ;RE-OPEN CLOSED PATIENT BILL;[ 07/25/91 8:06 AM ]
  1. ;;1.4;AO PVT-INS TRACKING;*0*;IHS-OKC/KJR;JULY 25, 1991
  1. W !!,"<<< NOT AN ENTRY POINT - ACCESS DENIED >>>",!! Q
  1. START ;ENTRY POINT
  1. ;PROCEDURE TO RE-OPEN A CLOSED PATIENT BILL;REMOVES WRITE-OFF AMOUNTS
  1. D XIT,DT^DICRW S ABPAHD1="Delete Current Write-offs"
  1. D HEADER^ABPAMAIN W !! D ^ABPAPATL I $D(ABPATDFN)'=1 G XIT
  1. K DIC,DA S DIC="^ABPVAO("_ABPATDFN_",1,",DIC(0)="AEQZ",DA(1)=ABPATDFN
  1. S DIC("S")="I $P(^ABPVAO(DA(1),1,+Y,0),U,17)=""C"""
  1. W ! D ^DIC G:+Y'>0 START S ABPA("WO")=$P(Y(0),"^",3),ABPACDFN=+Y
  1. S ABPAFRDT=+Y(0),ABPATODT=ABPAFRDT,$P(ABPAXX,"=",81)="" D ^ABPAPD2C
  1. I ABPA("WO")>0 D G PAUSE
  1. .W *7,!,"I am going to remove the $",$J(ABPA("WO"),8,2)," write-off."
  1. .K DIR S DIR(0)="Y",DIR("A")="Is this O.K.",DIR("B")="YES" D ^DIR
  1. .I 'Y W " ... Bill not re-opened!" Q
  1. .K DIC,DIE,DA,DR S DIE="^ABPVAO("_ABPATDFN_",1,",DR=".03///0;.18///PA"
  1. .S DA(1)=ABPATDFN,DA=ABPACDFN D ^DIE W " ... Bill re-opened!"
  1. K ABPAMESS S ABPAMESS="There is no write-off to delete!"
  1. S ABPAMESS(2)="... Press any key to continue ... "
  1. PAUSE D PAUSE^ABPAMAIN
  1. XIT K DIC,DIE,DA,DR,X,Y,ABPATDFN,DIR,ABPACDFN