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 |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All
Print Page as PDF
Routine: SDCD

Package: Scheduling

Routine: SDCD


Information

SDCD ;BSN/GRR - DISCHARGE PATIENT FROM CLINIC ;3/15/91 11:24 ;

Source Information

Source file <SDCD.m>

Call Graph

Call Graph

Call Graph Total: 5

Package Total Call Graph
Scheduling 2 (AFTER,BEFORE,INVOKE)^SCMCEV3  DT^SDUTL  
VA FileMan 2 ^DIC  ^DIE  
Registration 1 FIRST^VAUTOMA  

Caller Graph

Legends:

Legend of Colors

Package Component Superscript legend

action A extended action Ea event driver Ed subscriber Su protocol O limited protocol LP run routine RR broker B edit E server Se print P screenman SM inquire I

Caller Graph

Caller Graph Total: 4

Package Total Caller Graph
Scheduling 3 SCMCQK1  SDCOAM  SDDISCHARGE  
Kernel 1 ^DIC(19  

Entry Points

Name Comments DBIA/ICR reference
15
QUIT ;
DIS ;
NOPE
STAT ;ck if already discharged

External References

Name Field # of Occurrence
^DIC 15
^DIE DIS+5, STAT+3
AFTER^SCMCEV3 15+10
BEFORE^SCMCEV3 15+7
INVOKE^SCMCEV3 15+12
DT^SDUTL 15
FIRST^VAUTOMA 15+2

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,*7,">>> Patient not enrolled in '",$S($D(^SC(+SDCLN,0)):$P(^(0),"^"),1:"Unknown"),"' clinic."
  • Line Location: 15+5
Function Call: WRITE
  • Prompt: !!,*7,">>> Patient is not actively enrolled in any clinics."
  • Line Location: 15+9
Function Call: WRITE
  • Prompt: *7,*7,!,"PATIENT ALREADY DISCHARGED FROM '",$S($D(^SC(SC,0)):$P(^(0),U),1:"UNKNOWN"),"' CLINIC",*7,*7
  • Line Location: DIS+2
Function Call: WRITE
  • Prompt: !!,"***Discharging patient from ",$S($D(^SC(SC,0)):$P(^(0),U),1:"UNKNOWN")," Clinic***",!
  • Line Location: DIS+3
Function Call: WRITE
  • Prompt: !?10,*7,"PATIENT HAS FUTURE APPOINTMENT(S) IN THIS CLINIC"
  • Line Location: DIS+4
Function Call: WRITE
  • Prompt: !,*7,"PATIENT NOT ENROLLED IN ANY CLINICS!!"
  • Line Location: NOPE+0
Routine Call
  • DIC
  • Line Location:
    • 15
Routine Call
  • DIE
  • Line Location:
    • DIS+5
    • STAT+3

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^DPT - [#2] Classic Fileman Calls

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DPT - [#2] 15+2, 15+4, 15+6, DIS+2, DIS+4, DIS+5, STAT+1
^SC - [#44] 15+5, DIS+2, DIS+3

Label References

Name Line Occurrences
15 15+13, NOPE
DIS 15+8
NOPE 15+2
QUIT 1515+3, NOPE
STAT DIS+5, STAT+3

Naked Globals

Name Field # of Occurrence
^( DIS+4
^(0 15+5, DIS+2, DIS+3, DIS+4

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
CLINIC 15+6*, QUIT+1!
>> DA DIS+5*, STAT+2*
>> DA(1 15+8*, DIS+2, DIS+5, STAT+1, STAT+2
>> DA(2 15+1*, 15+2, 15+4, 15+6, 15+7, 15+10, 15+12, DIS+2, DIS+4, DIS+5
STAT+1, STAT+2
DFN QUIT+1!
DIC 15*, 15+2*, QUIT+1!
DIC("S" 15+2*!
DIC(0 15*
>> DIE DIS+5*, STAT+2*, STAT+3
>> DR DIS+5*, STAT+2*
DT 15DIS+4
>> I 15+6*, 15+8*
SC 15+8*, QUIT+1!, DIS+2, DIS+3, DIS+4
>> SCDISCH DIS+5
>> SDAMERR 15+5*, 15+9*, 15+10, 15+12, DIS+2*, DIS+6*
>> SDCLN 15+2, 15+3, 15+4, 15+5
SDF QUIT+1!, DIS+1*, DIS+4*, DIS+5, DIS+6*
>> SDFN 1515+1, 15+13, NOPE
SDST QUIT+1!, DIS+5, STAT+1*
U 15+6, DIS+2, DIS+3, STAT+1
VAUSTR QUIT+1!
VAUTC 15+4*, 15+6, QUIT+1!
VAUTC( 15+4*, 15+6*, 15+8
VAUTC(0 15+3, 15+5, 15+9
VAUTD QUIT+1!
VAUTNI 15+2*, QUIT+1!
>> VAUTSTR 15+2*
VAUTVB 15+2*, QUIT+1!
XD DIS+6!, STAT+3*
>> XX DIS+4*, DIS+5*, STAT+1, STAT+2, STAT+3
>> Y 1515+1*, 15+2
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All