1 | DVBCSDEV ;ALB/GTS-AMIE C&P APPT EVENT DRIVER ; 10/19/94 3:45 PM
|
---|
2 | ;;2.7;AMIE;**1**;Apr 10, 1995
|
---|
3 | ;
|
---|
4 | ;** NOTICE: This routine is part of an implementation of a Nationally
|
---|
5 | ;** Controlled Procedure. Local modifications to this routine
|
---|
6 | ;** are prohibited per VHA Directive 10-93-142
|
---|
7 | ;
|
---|
8 | ;** Version Changes
|
---|
9 | ; 2.7 - New routine (Enhc 13)
|
---|
10 | ;
|
---|
11 | ;** Variable Descriptions
|
---|
12 | ;** DVBAORG = 1 Appointment event (Originating process variable)
|
---|
13 | ;** SDAMEVT = 1 Make appointment event
|
---|
14 | ;** 2 Cancel appointment event
|
---|
15 | ;** 3 No Show appointment event
|
---|
16 | ;** I DVBAAUTO exists, AMIE Make Event is not executed because
|
---|
17 | ;** cancel/no show part of auto-rebook updated 396.95
|
---|
18 | ;** DVBAXST=1 - ^TMP("SDEVT",$J) exists
|
---|
19 | ;** DVBATYPE=1 - C&P type appointment
|
---|
20 | ;
|
---|
21 | EN ;**AMIE Scheduling event driver main entry point
|
---|
22 | K KDFN I '$D(DFN) N DFN S DFN=$P(SDATA,U,2),KDFN=""
|
---|
23 | S DVBAORG=$$SDORGST^DVBCUTL5
|
---|
24 | I +DVBAORG=1 DO
|
---|
25 | .S DVBAXST=$$SDEVTXST^DVBCUTL5
|
---|
26 | .I +DVBAXST=1 DO
|
---|
27 | ..S DVBATYPE=$$SDEVTSPC^DVBCUTL5(16)
|
---|
28 | ..I +DVBATYPE=1 DO
|
---|
29 | ...I +SDAMEVT=1,('$D(DVBAAUTO)) D EN^DVBCMKLK ;** Original Make event
|
---|
30 | ...I +SDAMEVT=1,($D(DVBAAUTO)) K DVBAAUTO ;** Auto-rebook Make event
|
---|
31 | ...I +SDAMEVT=2!(+SDAMEVT=3) D EN^DVBCCNNS ;** Cancel/No show event
|
---|
32 | ..K DVBATYPE
|
---|
33 | .K DVBAXST
|
---|
34 | K DVBAORG
|
---|
35 | I $D(KDFN) K KDFN,DFN
|
---|
36 | D KVARS^DVBCMKLK
|
---|
37 | Q
|
---|