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

SR3189P.m

Go to the documentation of this file.
  1. SR3189P ;ALB/BJR - DELETE OLD ADT AND ARS X-REF ; 8/15/16 3:36pm
  1. ;;3.0;Surgery;**189**;24 Jun 93;Build 3
  1. ;
  1. Q
  1. EN ; Entry point
  1. ; Delete old ARS and ADT x-ref
  1. Q:$$PATCH^XPDUTL("SR*3.0*189") ;Patch has already been installed
  1. N SRERR,SRERR1,SRMSG
  1. D DELIX^DDMOD(130,.09,2,,,"SRERR") I $D(SRERR) D
  1. .D BMES^XPDUTL("An error has occured when attempting to delete the 'ADT' x-ref.")
  1. .I $D(SRERR("DIERR",1,"TEXT")) S SRMSG=0 F S SRMSG=$O(SRERR("DIERR",1,"TEXT",SRMSG)) Q:'SRMSG D
  1. ..D BMES^XPDUTL(SRERR("DIERR",1,"TEXT",SRMSG))
  1. .D BMES^XPDUTL("Please contact local site support.")
  1. D DELIX^DDMOD(130,235,1,,,"SRERR1") I $D(SRERR1) D
  1. .D BMES^XPDUTL("An error has occured when attempting to delete the 'ARS' x-ref.")
  1. .I $D(SRERR1("DIERR",1,"TEXT")) S SRMSG=0 F S SRMSG=$O(SRERR1("DIERR",1,"TEXT",SRMSG)) Q:'SRMSG D
  1. ..D BMES^XPDUTL(SRERR1("DIERR",1,"TEXT",SRMSG))
  1. .D BMES^XPDUTL("Please contact local site support.")
  1. Q