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

DBTSCOMT.m

Go to the documentation of this file.
  1. DBTSCOMT ;BAO/DMH call from SQL that data was committed [ 02/04/1999 4:57 PM ]
  1. ;
  1. ;
  1. ; this program is called from the DBTS ADD PATIENT COMMIT remote proc.
  1. ; call sends patient id saying that load to SQL was complete.
  1. ; so remove the temporary global on the patient log before
  1. ; the load started
  1. ;
  1. ;
  1. START ;
  1. ;
  1. COM(DBTSRET,DBTSP) ;dbtsret is return value, dbtsp input value of patient ien
  1. ;
  1. ;
  1. TEST ;
  1. S ARRAY=0
  1. ;S DBTSP=13051 ;uncomment if want to test with call to TEST directly
  1. ;
  1. S DBTSRET(1)="-1" ;set this just in case the program stops before k
  1. D ^XBKVAR
  1. I DUZ(2)=4526 S DUZ(2)=2348
  1. S DBTS("LOC")=$P($G(^AUTTLOC(DUZ(2),0)),"^",10)
  1. I DBTS("LOC")="" S DBTSRET(1)="-1" Q
  1. S DBTS("ID")=DBTS("LOC")_"|1419200COM|"_DBTSP
  1. K ^DBTS("TMP",DBTSP)
  1. S DBTSRET(1)=DBTS("ID")_U_DBTS("LOC")_U_DBTSP_U_"COMMIT"
  1. Q