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

SDAPIDP.m

Go to the documentation of this file.
  1. SDAPIDP ;ALB/MTC - Outpatient API/Dispositions ; 03 MAY 1996 11:30 am
  1. ;;5.3;Scheduling;**27,132**;08/13/93
  1. ;
  1. EN(DFN,SDT,SDCL,SDUZ,SDMODE,SDVIEN) ; -- check api for appts
  1. N SDDA,SDOE
  1. S SDOE=0
  1. ;
  1. ; -- file check-out data ; get encount ien
  1. S SDOE=$$FILE(DFN,SDT,SDCL,SDUZ,SDMODE,$G(SDVIEN))
  1. ;
  1. ENQ Q SDOE
  1. ;
  1. ;
  1. FILE(DFN,SDT,SDCL,SDUZ,SDMODE,SDVIEN) ; -- file data
  1. N SDATA,SDHDL,SDOE,SDCOMPF,SDLOG
  1. S SDOE=""
  1. ;
  1. ; -- get encounter ien ; error if none returned
  1. S SDOE=$$GETDISP^SDVSIT2(DFN,SDT,$G(SDVIEN))
  1. I 'SDOE D ERRFILE^SDAPIER(110) G FILEQ
  1. ;
  1. ; -- log user and date/time data
  1. D LOGDATA^SDAPIAP(SDOE)
  1. ;
  1. ; -- process data
  1. D FILE^SDAPICO(SDOE,SDUZ)
  1. ;
  1. ; -- update check-out completion
  1. D EN^SDCOM(SDOE,SDMODE,1,.SDCOMPF)
  1. ;
  1. FILEQ Q SDOE
  1. ;