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

GMTS23IN.m

Go to the documentation of this file.
  1. GMTS23IN ;SLC/PKR - Init for patch GMTS*2.7*23 ; 11/25/97
  1. ;;2.7;Health Summary;**23**;Oct 20, 1995
  1. ;
  1. ;======================================================================
  1. CDHN ;Change default header names in Health Summary Types.
  1. D BMES^XPDUTL("Changing defaulted header names to the new defaults.")
  1. N CDHN,FDA,IENS,IND,JND,MSG
  1. S IND=0
  1. F S IND=$O(^GMT(142,IND)) Q:+IND'>0 D
  1. . S JND=0
  1. . F S JND=$O(^GMT(142,IND,1,JND)) Q:+JND'>0 D
  1. .. S CDHN=$P(^GMT(142,IND,1,JND,0),U,5)
  1. .. I CDHN="Clinical Maintenance" D
  1. ... S IENS=JND_","_IND_","
  1. ... S FDA(142.01,IENS,5)="Reminder Maintenance"
  1. ... D FILE^DIE("KE","FDA","MSG")
  1. .. I CDHN="Clinical Reminders" D
  1. ... S IENS=JND_","_IND_","
  1. ... S FDA(142.01,IENS,5)="Reminders Due"
  1. ... D FILE^DIE("KE","FDA","MSG")
  1. Q
  1. ;
  1. ;======================================================================
  1. POST ;Post init for GMTS*2.7*23
  1. ;Change the default header names to the new ones in existing Health
  1. ;Summaries.
  1. D CDHN
  1. ;
  1. ;Reload the Ad Hoc Health Summary
  1. N INCLUDE
  1. I XPDQUES("POSADHOC") S INCLUDE=1
  1. E S INCLUDE=0
  1. D BMES^XPDUTL("Reloading the Ad Hoc Health Summary")
  1. I INCLUDE D BMES^XPDUTL("Disabled components will be included")
  1. I 'INCLUDE D BMES^XPDUTL("Disabled components will not be included")
  1. D ENPOST^GMTSLOAD
  1. Q
  1. ;
  1. ;======================================================================
  1. RENCRC ;Rename the CLINICAL REMINDERS COMPONENTS.
  1. N FDA,IND,MSG
  1. D BMES^XPDUTL("Renaming PCE CLINICAL REMINDERS Health Summary Component")
  1. S IND=$O(^GMT(142.1,"B","PCE CLINICAL MAINTENANCE",""))
  1. I $L(IND)>0 D
  1. . S FDA(142.1,IND_",",.01)="CLINICAL REMINDERS MAINTENANCE"
  1. . D FILE^DIE("KE","FDA","MSG")
  1. ;
  1. S IND=$O(^GMT(142.1,"B","PCE CLINICAL REMINDERS",""))
  1. I $L(IND)>0 D
  1. . S FDA(142.1,IND_",",.01)="CLINICAL REMINDERS DUE"
  1. . D FILE^DIE("KE","FDA","MSG")
  1. Q
  1. ;