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

ECX3P7PT.m

Go to the documentation of this file.
  1. ECX3P7PT ;ALB/JAP - PATCH ECX*3*7 Post-Init Rtn ; May 6, 1998
  1. ;;3.0;DSS EXTRACTS;**7**;Dec 22, 1997
  1. ;
  1. POST ;Entry point
  1. N ECXDA
  1. D INTRO
  1. ;
  1. ;if new entries (iens>112) already added, display message and quit
  1. S ECXDA=$O(^ECX(728.441,999),-1)
  1. I $D(^ECX(728.441,113,0)),$P(^(0),U,1)="AAAA" D Q
  1. .D MES^XPDUTL(" ")
  1. .D MES^XPDUTL(" It appears that patch ECX*3*7 was previously installed.")
  1. .D MES^XPDUTL(" ")
  1. .D MES^XPDUTL(" If you wish to repeat the installation of patch ECX*3*7,")
  1. .D MES^XPDUTL(" then run CLEAN^ECX3P7P1 first -- that will delete any")
  1. .D MES^XPDUTL(" entries from ECX*3*7 previously added.")
  1. .D MES^XPDUTL(" ")
  1. ;
  1. ;check contents of entry #113
  1. I ($D(^ECX(728.441,113,0))&($P($G(^(0)),U,1)'="AAAA"))!(ECXDA'=112) D Q
  1. .D MES^XPDUTL(" ")
  1. .D MES^XPDUTL(" It appears that you may have a problem with File #728.441.")
  1. .D MES^XPDUTL(" ")
  1. .D MES^XPDUTL(" Perform a FileMan print of the entire file which shows")
  1. .D MES^XPDUTL(" the internal entry number and #.01 field of each record.")
  1. .D MES^XPDUTL(" ")
  1. .D MES^XPDUTL(" Call Customer Support for further assistance.")
  1. .D MES^XPDUTL(" Have the FileMan printout at hand when you call.")
  1. .D MES^XPDUTL(" ")
  1. ;
  1. ;add new entries
  1. I '$D(^EC(728.441,113)),ECXDA=112 D ADD^ECX3P7P1
  1. Q
  1. ;
  1. INTRO ; Message intro
  1. ;;
  1. ;; The purpose of Patch ECX*3*7 is to add new entries to the
  1. ;; NATIONAL CLINIC File (#728.441). A total of 158 new
  1. ;; entries will be made.
  1. ;;
  1. ;;
  1. ;;QUIT
  1. ;
  1. N TXTVAR
  1. F I=1:1 S TXTVAR=$P($T(INTRO+I),";;",2) Q:TXTVAR="QUIT" DO
  1. .D MES^XPDUTL(TXTVAR)
  1. Q