Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  All
Print Page as PDF
Routine: SDC

Package: Scheduling

Routine: SDC


Information

SDC ;MAN/GRR,ALB/LDB - CANCEL A CLINIC'S AVAILABILITY ; 3/2/05 2:11pm

Source Information

Source file <SDC.m>

Call Graph

Call Graph Total: 17

Package Total Call Graph
Scheduling 9 ($$HANDLE,BEFORE,CANCEL)^SDAMEVT  (ASKL,CHKEND,END)^SDC0  (,DELETE)^SDC1  (,TC)^SDC2  $$COED^SDC4  CANCEL^SDCNSLT  DOW^SDM0  $$EXAE^SDOE  
(DTS,RT)^SDUTL  
VA Fileman 5 ^%DT  NOW^%DTC  ^DIC  YN^DICN  ^DIE  
IHS Changes To ADT 1 ($$READ,MSG)^BDGF  
IHS Changes To Scheduling 1 ($$INACTMSG,$$OWNER)^BSDU  
Registration 1 LO^DGUTL  

Caller Graph

Caller Graph Total: 3

Package Total Caller Graph
Scheduling 2 SDC2  SDCANCEL  
IHS Changes To Scheduling 1 ASDAVAIL  

Entry Points

Name Comments DBIA/ICR reference
ROPT
ALL ;D S S ^(1)=" "_$E(SD,6,7)_" **CANCELLED**",FR=SD,TO=SD+.9 ;NAKED REFERENCE - ^SC(IFN,"ST",Date,1)
B
F
C
SDC1
S
N
SKIP
CK1
T
W
WP
EVT ; -- separate tag if need to NEW vars
; -- cancel event
MORE

External References

Name Field # of Occurrence
^%DT SDC1+6
NOW^%DTC SDC1+7
$$READ^BDGF ALL+1
MSG^BDGF SDC1+4
$$INACTMSG^BSDU SDC1+2
$$OWNER^BSDU SDC1+4
LO^DGUTL SDC1
^DIC SDC1+2
YN^DICN W, WP
^DIE C+12
$$HANDLE^SDAMEVT C+5
BEFORE^SDAMEVT C+6
CANCEL^SDAMEVT EVT+3
ASKL^SDC0 SDC1+11
CHKEND^SDC0 C
END^SDC0 SDC1+2, SDC1+6, N+3
^SDC1 N+3
DELETE^SDC1 C+3, C+4
^SDC2 N+4
TC^SDC2 F, T
$$COED^SDC4 W+1, T+1
CANCEL^SDCNSLT C+11
DOW^SDM0 B
$$EXAE^SDOE CK1+2
DTS^SDUTL SDC1+8, SDC1+9
RT^SDUTL MORE+2

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: Y,SDRE1
  • Line Location: SDC1+9
Function Call: WRITE
  • Prompt: !,"APPOINTMENTS HAVE ALREADY BEEN CANCELLED",!,*7
  • Line Location: SDC1+11
Function Call: WRITE
  • Prompt: !,*7,"CLINIC DOES NOT MEET ON THAT DAY"
  • Line Location: N+0
Function Call: WRITE
  • Prompt: *7,!?5,"NO APPOINTMENTS SCHEDULED"
  • Line Location: N+1
Function Call: WRITE
  • Prompt: !,"FIRST, I'LL LIST THE EXISTING APPOINTMENTS",!
  • Line Location: N+2
Function Call: WRITE
  • Prompt: W
  • Line Location: W+0
Function Call: WRITE
  • Prompt: !,"REPLY YES (Y) OR NO (N)"
  • Line Location: W+0
Function Call: WRITE
  • Prompt: !,"REPLY YES (Y) OR NO (N)"
  • Line Location: WP+0
Function Call: READ
  • Prompt: "STARTING TIME: "
  • Formatting: !
  • Timeout: DTIME
  • Variable: X
  • Line Location: F+0
Function Call: READ
  • Prompt: "ENDING TIME: "
  • Formatting: !
  • Timeout: DTIME
  • Variable: X
  • Line Location: T+0
Function Call: WRITE
  • Prompt: !,"Ending time must be greater than starting time",*7
  • Line Location: T+0
Function Call: WRITE
  • Prompt: !
  • Line Location: T+1
Function Call: READ
  • Prompt: "Reason for cancellation: "
  • Formatting: !
  • Timeout: DTIME
  • Variable: I
  • Line Location: ROPT+0
Function Call: WRITE
  • Prompt: !,"YOU MAY ENTER A MESSAGE CONCERNING THE CANCELLATION HERE"
  • Line Location: ROPT+0
Function Call: READ
  • Timeout: DTIME
  • Variable: CANREM
  • Line Location: ALL+6
Function Call: WRITE
  • Prompt: !,"Reason for cancellation: "
  • Line Location: ALL+6
Function Call: WRITE
  • Prompt: !,*7,"Reason must be between 3 to 160 characters long",!
  • Line Location: ALL+6
Function Call: WRITE
  • Prompt: !!,"CANCELLED! "
  • Line Location: C+0
Routine Call
  • DIE
  • Line Location:
    • C+12
Routine Call
  • DIC
  • Line Location:
    • SDC1+2

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DG(40.8 - [#40.8] SDC1+11, MORE+1
^DPT - [#2] C+8, C+12, CK1
^DPT("ASDCN" C+10*
^DPT("ASDPSD" MORE+1, CK1+3!
^SC - [#44] SDC1+2, SDC1+5, SDC1+8, SDC1+10*, SDC1+11, N!, N+1, N+4, ROPT+2*, ROPT+3*
, SKIP*, SKIP+1, SKIP+2*, S, ALL+2*, C, C+2, C+3, C+4, C+5
, C+7*, B, MORE+1
^SC("AAS" CK1+1
^SC("ARAD" MORE
^SCE - [#409.68] CK1+2

Label References

Name Line Occurrences
ALL W+1
B SDC1+10
C SKIP+5, C+13
CK1 MORE+3
EVT MORE+3
F F, T+1
MORE C+12
N SDC1+10
ROPT ROPT
S SKIP+2, ALL+2
SDC1 SDC1+4, SDC1+9, N
SKIP ROPT+2
T T
W N+1, W
WP W+1, WP

Naked Globals

Name Field # of Occurrence
^( B, MORE*, MORE+1!, CK1
^("C" C+3
^("CAN" S*
^("I" SDC1+8
^("MES" SKIP+2*
^("SL" SDC1+6
^(0 SDC1+10*, SDC1+11, C+8, C+12*, MORE+1, CK1
^(1 SDC1+11, N, SKIP+2, SKIP+5*, B

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
>> % SDC1+7*, W*, W+1, W+2, WP*, WP+1, F, SKIP+2, SKIP+3
%DT SDC1+6*!
%DT("A" SDC1+6*
>> A ROPT+3*
>> ANS SDC1+11*
BSDMSG ALL+1~*, ALL+2
CANREM ROPT+1~*, C+11
>> CDATE SDC1+7*
>> DA C+12*
>> DA(1 B*
>> DFN C+5*, C+6, C+8, C+10, C+12, MORE, MORE+1, CK1, CK1+1, CK1+2
, CK1+3, EVT+3
DH SDC1+10*, W*, SKIP+3*, SKIP+5*, C+11*, C+12*, B*, MORE+2, MORE+3*, EVT+2~
>> DIC SDC1+2*
>> DIC("A" SDC1+2*!
>> DIC("S" SDC1+2*!
>> DIC("W" SDC1+2*
>> DIC(0 SDC1+2*
DIE C+1~, C+12*
>> DO B*
>> DOW SDC1+10, B*
DR C+1~, C+12*
DTIME F, T, ROPT
DTOUT N+3!
DUOUT N+3!
DUZ SDC1+4, C+12
FR F*, T, T+1!, ROPT+2, ROPT+3, SKIP, SKIP+1, SKIP+2, SKIP+5*, ALL+2*
, C*, C+2, C+3, C+4, C+5, C+6, C+7, C+8, C+10, C+11
, C+12, MORE, MORE+1, MORE+2, CK1, CK1+1, CK1+2, CK1+3, EVT+2~
I ROPT*, ROPT+1, ROPT+2, SKIP+2*, SKIP+3*, SKIP+4*, SKIP+5, C+2*, C+3, C+4
, C+5, C+6, C+7, C+11, MORE+2, EVT+2~
I5 SKIP+4*!
J C+3*!, C+4*!
J2 C+3*!, C+4*!
>> NOAP SDC1*, N+1*, SKIP+1*
NODE C+1~, C+8*, C+9
>> P SKIP+3*
SC SDC1+6*, SDC1+8, SDC1+10, SDC1+11, N, N+1, N+4, W+1, T+1, ROPT+2
, ROPT+3, SKIP, SKIP+1, SKIP+2, S, ALL+2, C, C+2, C+3, C+4
, C+5, C+6, C+7, C+9, C+10, C+11, B, MORE, MORE+1, MORE+2
, EVT+2~
>> SD SDC1+7*, SDC1+9, SDC1+10, N, N+1, N+4, W+1, S, ALL+2, B
SD1 MORE+4!, CK1*, CK1+1*
SDATA SDC+8~, C+6, EVT+3!
SDCNHDL SDC+8~, C+5*, C+6, EVT+3!
>> SDCNT ROPT+3*
SDCP SDC1!
SDH MORE+2*, MORE+3!
SDHTO T*, T+1!, SKIP
SDIN SDC1+8!*, SDC1+9
SDIV MORE+1*, MORE+4!, CK1+3
SDLT SDC1!
SDPL C+11*, MORE+2*, MORE+4!, EVT+3
SDRE SDC1+8!*, SDC1+9
SDRE1 SDC1+8!*, SDC1+9
SDRT MORE+2*, MORE+4!
SDSC C+11*, MORE+2*, MORE+4!, EVT+3
SDTIME SDC1+7*, SDC1+11*, C+12, EVT+2~
SDTTM C+11*, MORE+2*, MORE+4!, EVT+3
>> SDV1 SDC1+11*, MORE+1*
SDX SDC1+11!, C!, MORE+4!, CK1*, CK1+1*, CK1+2*, CK1+3
>> SI SDC1+7*, SDC1+10, SKIP+3
>> SL SDC1+6*, SDC1+7
>> SS B*
ST F*, T+1!, SKIP+3
>> STARTDAY SDC1+7*
TDH C+1~, C+11*, C+12*
TMPD C+1~, C+11*
TO T*, T+1!, SKIP+1, ALL+2*, C
U SDC1+6, SDC1+7, SDC1+10, F, T, C+9
>> X F*, T*, SKIP+2, SKIP+3*, B*
>> Y SDC1+2, SDC1+4, SDC1+5, SDC1+6, SDC1+7, SDC1+8*, SDC1+9*, F, T, SKIP+2*
, SKIP+3*, B
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  All