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

ABMSTAT.m

Go to the documentation of this file.
ABMSTAT ; IHS/SD/TPF - SELECT CLAIM PEND STATUS ;    
 ;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
 ;
EN(CLAIMNUM) ;EP - ALLOW USER ENTRY OF CLAIM STATUS AND PENDING STATUS
 I $G(CLAIMNUM)="" W !,"CLAIM NUMBER NOT DEFINED!" H 3 Q
 I '$D(^ABMDCLM(DUZ(2),CLAIMNUM,0))#2 W !,"CLAIM NUMBER NOT FOUND ON FILE!" H 3 Q
 D EDITSTAT(CLAIMNUM)
 Q:$G(X)=""!($G(X)[U)
 D STUFPEND(CLAIMNUM)
 D STUFFDUZ(CLAIMNUM,.DUZ)
 Q
STUFPEND(CLAIMNUM) ;EP - STUFF PEND STATUS INTO STATUS FIELD
 K DIE,DR,DIC,DIR,DA
 S DA=CLAIMNUM
 S DR=".04////^S X=""P"""
 S DIE="^ABMDCLM("_DUZ(2)_","
 D ^DIE
 K DIE,DR,DIC,DIR,DA
 Q
EDITSTAT(CLAIMNUM) ;EP - EDIT PEND STATUS
 K DIE,DR,DIC,DIR,DA
 S DA=CLAIMNUM
 S DR=".18R"
 S DIE="^ABMDCLM("_DUZ(2)_","
 D ^DIE
 K DIE,DR,DIC,DIR,DA
 Q
STUFFDUZ(CLAIMNUM,DUZ) ;EP - STUFF USER INTO 'PENDING STATUS UPDATER'
 K DIE,DR,DIC,DIR,DA
 S DA=CLAIMNUM
 S DR=".19R////^S X=DUZ"
 S DIE="^ABMDCLM("_DUZ(2)_","
 D ^DIE
 K DIE,DR,DIC,DIR,DA
 Q