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

DVBAP232.m

Go to the documentation of this file.
  1. DVBAP232 ;ALB/TH - 2507 SPECIAL CONSIDERATIONS FILE UPDATE ; Mar 24, 2021@09:22:10
  1. ;;2.7;AMIE;**232**;Apr 10, 1995;Build 1
  1. ;
  1. ; This routine is used as a post-install in a KIDS build to modify
  1. ; the 2507 SPECIAL CONSIDERATIONS file (#396.25).
  1. ;
  1. ; Reference to $$FIND1^DIC supported by ICR# 2051
  1. ; Reference to UPDATE^DIE supported by ICR# 2053
  1. ; Reference to BMES^XPDUTL supported by ICR# 10141
  1. ; Reference to MES^XPDUTL supported by ICR# 10141
  1. ;
  1. Q
  1. ;
  1. POST ; Update Special Considerations in 2507 SPECIAL CONSIDERATIONS file (#396.25)
  1. ;
  1. D BMES^XPDUTL("DVBA*2.7*232 Post-Install starts...")
  1. D:$P($T(NEW+1),";;",2)'="QUIT" ADD ; add new special consideration reason
  1. D MES^XPDUTL("DVBA*2.7*232 Post-Install is complete."),MES^XPDUTL("")
  1. K DVBAIEN,%H,%I,DIC,X,Y
  1. Q
  1. ;
  1. ADD ; Add new Special Considerations
  1. ; DVBAREC is in format:
  1. ; ;;Special Consideration name
  1. ;
  1. D BMES^XPDUTL(">>> Adding Special Consideration to the 2507 SPECIAL CONSIDERATIONS file...")
  1. ;
  1. N DVBAI,DVBANM,DVBAREC,DVBFDA
  1. ; load all new entries
  1. F DVBAI=1:1 S DVBAREC=$P($T(NEW+DVBAI),";;",2) Q:DVBAREC="QUIT" D
  1. . S DVBANM=$P(DVBAREC,U) ;name
  1. . ;
  1. . ; check if code already exists in file 396.25
  1. . S DVBAIEN=$$FIND1^DIC(396.25,"","MX",DVBANM,"","","DVBAERR")
  1. . I DVBAIEN D Q
  1. . . D BMES^XPDUTL(" >> New Special Consideration "_DVBANM_" already exists.")
  1. . ; quit if error
  1. . I $D(DVBAERR) D Q
  1. . . D BMES^XPDUTL(" >> ... Unable to add Special Consideration "_DVBANM_" to file.")
  1. . . D MES^XPDUTL(" >> ... "_$G(DVBAERR("DIERR",1,"TEXT",1))_".")
  1. . . D MES^XPDUTL(" >> ... Please contact support for assistance...")
  1. . . K DVBAERR
  1. . ;
  1. . ; if new reason does not exist, add new entry
  1. . ; set field values of new entry
  1. . S DVBFDA(396.25,"+1,",.01)=DVBANM
  1. . ; add new entry
  1. . D UPDATE^DIE("E","DVBFDA","","DVBAERR")
  1. . ; check if error
  1. . I '$D(DVBAERR) D
  1. . . D BMES^XPDUTL(" >> Special Consideration "_DVBANM_" added to file.")
  1. . I $D(DVBAERR) D
  1. . . D BMES^XPDUTL(" >> ... Unable to add Special Consideration "_DVBANM_" to file.")
  1. . . D MES^XPDUTL(" >> ... "_$G(DVBAERR("DIERR",1,"TEXT",1))_".")
  1. . . D MES^XPDUTL(" >> ... Please contact support for assistance.")
  1. . . ; clean out error array b4 processing next code
  1. . . K DVBAERR
  1. ;
  1. D BMES^XPDUTL(">>> Add new Special Consideration complete.")
  1. D MES^XPDUTL("")
  1. Q
  1. ;
  1. NEW ; codes to add - ;;Special Consideration name^
  1. ;;VICAP^
  1. ;;QUIT
  1. ;