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

SD5377PT.m

Go to the documentation of this file.
  1. SD5377PT ;ALB/MLI - Routine to inactivate entries in file 409.45 ; 10/6/95
  1. ;;5.3;Scheduling;**77,85**,Aug 13, 1993
  1. ;
  1. ; (based from routine SD5363PT)
  1. ;
  1. ; This routine will add a 10/1/96 inactivate date for the following
  1. ; code so classification questions will be asked.
  1. ;
  1. ; 165 BEREAVEMENT COUNSELING
  1. ;
  1. EN ; entry point to inactivate stop codes in file 409.45
  1. N DA,MSG,SDYQSTOP,STOPIEN,X,Y
  1. D BMES^XPDUTL(">>>Inactivating the following entry:")
  1. S SDYQSTOP=165 D
  1. . S MSG=" Stop code "_SDYQSTOP
  1. . S DA=$O(^SD(409.45,"B",SDYQSTOP,0))
  1. . I 'DA D MES^XPDUTL(MSG_" could not be found in exemption file...nothing updated") Q
  1. . S STOPIEN=$O(^DIC(40.7,"C",SDYQSTOP,0))
  1. . I STOPIEN,$$EX^SDCOU2(STOPIEN) D Q
  1. . . D STORE(DA,0)
  1. . . D MES^XPDUTL(MSG_" no longer exempt from classification questions")
  1. . D MES^XPDUTL(MSG_" already exempt")
  1. Q
  1. ;
  1. ;
  1. STORE(DA,ONOFF) ; create entry for act/inact
  1. ; Input: DA as IEN of 409.45
  1. ; ONOFF as 1 for act; 0 for inact
  1. ;
  1. N DIC,DLAYGO,X,Y
  1. S DIC="^SD(409.45,"_DA_",""E"",",DIC("P")=$P(^DD(409.45,75,0),"^",2)
  1. S DA(1)=DA,DIC(0)="L"
  1. S X="2961001",DIC("DR")=".02///^S X=ONOFF"
  1. K DD,DO
  1. D FILE^DICN
  1. Q