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

SDAMEX1.m

Go to the documentation of this file.
  1. SDAMEX1 ;ALB/MJK,RMO - Appointment Check In/Check Out Cont. ; 5/6/93
  1. ;;5.3;Scheduling;**27,1015**;08/13/93;Build 21
  1. ;
  1. CK(DFN,SDCL,SDT,SDDA,SDACT) ; -- ask 'ok' and call check-in or check-out
  1. ; input: DFN
  1. ; SDCL := ifn of clinic
  1. ; SDT := appt date/time
  1. ; SDDA := ifn of ^sc multiple
  1. ; SDACT := action CI or CO
  1. ; output: none
  1. ; returned: check-in/check-out process called [1 := yes | 0 := no]
  1. ;
  1. N SDMAX
  1. W !
  1. ;
  1. I '$D(^SD(409.63,"ACO",1,+$$STATUS^SDAM1(DFN,SDT,SDCL,$G(^DPT(DFN,"S",SDT,0)),SDDA))) W !!,*7,">>> You can not check in/out this appointment." D PAUSE^VALM1 S Y=0 G CKQ
  1. ;
  1. S DIR(0)="Y",DIR("A")="Continue" D ^DIR K DIR
  1. I Y=0!($D(DIRUT)) S Y=0 G CKQ
  1. I SDACT="CI" D
  1. .D ONE^SDAM2(DFN,SDCL,SDT,SDDA,0,"")
  1. I SDACT="CO" D
  1. .D CO^SDCO1(DFN,SDT,SDCL,SDDA,1)
  1. W:$X>47 ! W ?47,"Status: ",$P($$STATUS^SDAM1(DFN,SDT,SDCL,$G(^DPT(DFN,"S",SDT,0)),SDDA),";",3)
  1. S Y=1
  1. CKQ Q Y