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

RA5130P.m

Go to the documentation of this file.
  1. RA5130P ;ALB/BJR - DELETE OLD AS AND AP X-REF ; 8/16/16 10:36am
  1. ;;5.0;Radiology/Nuclear Medicine;**130**;Mar 16, 1998;Build 3
  1. ;
  1. Q
  1. EN ; Entry point
  1. ; Delete old ARS and ADT x-ref
  1. Q:$$PATCH^XPDUTL("RA*5.0*130") ;Patch has already been installed
  1. N RAERR,RAERR1,RAMSG
  1. D DELIX^DDMOD(75.1,2,1,,,"RAERR") I $D(RAERR) D
  1. .D BMES^XPDUTL("An error has occured when attempting to delete the 'ADT' x-ref.")
  1. .I $D(RAERR("DIERR",1,"TEXT")) S RAMSG=0 F S RAMSG=$O(RAERR("DIERR",1,"TEXT",RAMSG)) Q:'RAMSG D
  1. ..D BMES^XPDUTL(RAERR("DIERR",1,"TEXT",RAMSG))
  1. .D BMES^XPDUTL("Please contact local site support.")
  1. D DELIX^DDMOD(75.1,5,1,,,"RAERR1") I $D(RAERR1) D
  1. .D BMES^XPDUTL("An error has occured when attempting to delete the 'ARS' x-ref.")
  1. .I $D(RAERR1("DIERR",1,"TEXT")) S RAMSG=0 F S RAMSG=$O(RAERR1("DIERR",1,"TEXT",RAMSG)) Q:'RAMSG D
  1. ..D BMES^XPDUTL(RAERR1("DIERR",1,"TEXT",RAMSG))
  1. .D BMES^XPDUTL("Please contact local site support.")
  1. Q