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

SD5348PT.m

Go to the documentation of this file.
  1. SD5348PT ;ALB/REW - SD*5.3*48 Post-init Checker ; 7 Aug 1996
  1. ;;5.3;Scheduling;**48**;AUG 13, 1993
  1. EN ;entry point
  1. ;look through patient file's DD for potentially problematic ID nodes
  1. N SCFILE,SCFLG2
  1. D MES^XPDUTL(" Any command that 'talks' in the background will cause problems.")
  1. D MES^XPDUTL(" Using EN^DDIOL is OK.")
  1. D MES^XPDUTL(" Using the WRITE command will cause problems.")
  1. D BMES^XPDUTL(" Please review each of the ID nodes displayed below: ")
  1. F SCFILE=2,44,404.51,200 D
  1. .D IDCHK(SCFILE)
  1. IF $G(SCFLG2) D
  1. .D BMES^XPDUTL(" Please review asterisked nodes closely (they don't contain DDIOL).")
  1. .D MES^XPDUTL(" Replace any WRITE commands with ones that use 'EN^DDIOL'.")
  1. D BMES^XPDUTL("Prior to making any changes to File #200, Contact IRMFO Customer Support.")
  1. Q
  1. ;
  1. IDCHK(FILE) ;look through a file's DD for potential ID nodes that 'talk'
  1. N SCSUB,SCND,SCFL,SCFLG3,SCSTAR
  1. S SCSUB=""
  1. D FILE^DID(FILE,"","NAME","SCFL")
  1. D MES^XPDUTL(" ")
  1. D BMES^XPDUTL(">>> WRITE-Type ID nodes in "_SCFL("NAME")_" File (#"_FILE_"):")
  1. F S SCSUB=$O(^DD(FILE,0,"ID",SCSUB)) Q:SCSUB="" S SCND=$G(^(SCSUB)) D
  1. .S SCFLG3=1 ;has one id-write node
  1. .N SCFLG
  1. .Q:(SCSUB=+SCSUB) ;FileMan correctly handles these entries
  1. .IF SCND'["^DDIOL" D
  1. ..S SCFLG=1
  1. ..S SCFLG2=1
  1. .D MES^XPDUTL($S($G(SCFLG):" ***",1:" ")_" ^DD("_FILE_",0,""ID"","_SCSUB_"):")
  1. .D MES^XPDUTL(" "_SCND)
  1. D:'$G(SCFLG3) MES^XPDUTL(" ...none.")
  1. Q
  1. ;