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

DG53426E.m

Go to the documentation of this file.
  1. DG53426E ;ALB/AEG - DG*5.3*426 POST-INSTALLATION;2-19-02
  1. ;;5.3;Registration;**426,1015**;2-19-02;Build 21
  1. ;
  1. ; This routine is a modified version of IVMCMD1. It deletes records
  1. ; from the Annual Means Test file #08.31. It opens a case record in
  1. ; the IVM Patient file (#301.5), calls the means test event driver, &
  1. ; calls DGMTR
  1. ;
  1. EN ; This entry point is called from DG53426D & contans calls that are
  1. ; responsible for completing the deletion of an income test.
  1. ;
  1. D DEL31(MTIEN)
  1. S DGDONE=1
  1. ;
  1. D OPEN(DFN,DGDOT)
  1. ; Call the Means test event driver
  1. D EVNT
  1. ; Call DGMTR if deleted means test.
  1. I $G(DGTOT)=1 D
  1. .S DGMSGF=1
  1. .D EN^DGMTR
  1. ; cleanup the partition
  1. D CLEAN
  1. ;
  1. ENQ Q
  1. ;
  1. DEL31(MTIEN) ; delete 408.31 entry
  1. ; mtien - means test file pointer
  1. ;
  1. N DA,DIK
  1. S DA=MTIEN,DIK="^DGMT(408.31,"
  1. D ^DIK
  1. Q
  1. ;
  1. OPEN(DFN,DGDOT) ; Open IVM patient file case record.
  1. ;
  1. ; input(s) DFN - Pointer to patient file.
  1. ; DGDOT - Date of Means test to be deleted.
  1. ;
  1. N DA,DR,DIE
  1. S DA=$O(^IVM(301.5,"APT",+DFN,+$$LYR^DGMTSCU1(DGDOT),0))
  1. I $G(^IVM(301.5,+DA,0))']"" G OPENQ
  1. S DR=".04////0",DIE="^IVM(301.5,"
  1. D ^DIE
  1. K ^IVM(301.5,+DA,1)
  1. OPENQ Q
  1. ;
  1. EVNT ; Call the Means test event driver
  1. S DGMTYPT=DGTOT D QUE^DGMTR
  1. Q
  1. ;
  1. CLEAN ; Cleanup the partition and quit
  1. K DA,DFN,DGINC,DGINR,DGMTA,DGMTACT,DGMTI,DGMTP
  1. K DGMTYPT,DIE,DIK,DR,DG12,DG121,DG13,DG41,DG411
  1. K DGMAR1,DGDEP,DGFILE,DGNODE,DGOLD
  1. K DGPAT,DGTEXT,DGVACMA
  1. Q