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 |  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: LRCHIV

Package: Lab Service

Routine: LRCHIV


Information

LRCHIV ;SLC/RWF - SET UP O("S") VARIABLES FOR ARCHIVE. ;2/5/91 12:30 ;

Source Information

Source file <LRCHIV.m>

Call Graph

Call Graph

Call Graph Total: 12

Package Total Call Graph
VA FileMan 5 ^%DT  C^%DTC  ^DIC  YN^DICN  ^DIE  
Kernel 3 ^%ZIS  ^%ZISC  ^%ZTLOAD  
Lab Service 3 DFN^LRCHIVE  EN^LRCHIVK  (DD,DEM,STAMP)^LRX  
Registration 1 KVAR^VADPT  

Entry Points

Name Comments DBIA/ICR reference
EN01 ;
SEARCH ;
PAT
T
DQ1
LST
QUIT
RESTART
TAPE
DT
EN02 ;
CLEAN ;REMOVE ^LAR FOR READ TAPE IN
EN03 ;
PURGE ;PURGE DATA FROM ^LR THAT IS IN ^LAR
DQ2
FLAG
DEV
KILL
PRT ;

External References

Name Field # of Occurrence
^%DT DT
C^%DTC DT+1, FLAG+1
^%ZIS DEV
^%ZISC QUITKILL+1
^%ZTLOAD T+2, PURGE+5, PRT+2
^DIC TAPE
YN^DICN PATRESTART+2, CLEAN+2
^DIE DT+2
DFN^LRCHIVE DQ1+3
EN^LRCHIVK DQ2+1
DD^LRX DQ1
DEM^LRX LST+1
STAMP^LRX DQ1
KVAR^VADPT QUIT

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !,"Please finish the Clear and Purge steps first."
  • Line Location: SEARCH+2
Function Call: WRITE
  • Prompt: !,"Do you want a list of patients that will have data archived"
  • Line Location: PAT+0
Function Call: WRITE
  • Prompt: !,"Answering YES to this question will produce a list of patients that will have data archived."
  • Line Location: PAT+0
Function Call: WRITE
  • Prompt: @IOF,!,"LAB DATA ARCHIVED for data before ",Y
  • Line Location: DQ1+0
Function Call: WRITE
  • Prompt: ". on"
  • Line Location: DQ1+0
Function Call: WRITE
  • Prompt: @IOF
  • Line Location: LST+0
Function Call: WRITE
  • Prompt: !,PNM,?30,SSN
  • Line Location: LST+1
Function Call: WRITE
  • Prompt: !!,PNM," LRDFN # "_LRDFN_" Has Been Deleted from ^LR( ",!,$C(7),"SSN = Unknown",!
  • Line Location: LST+2
Function Call: WRITE
  • Prompt: !,"Searching in progress, please wait for it to finish."
  • Line Location: RESTART+0
Function Call: WRITE
  • Prompt: !,"Continue where the last search stopped."
  • Condition for execution: %=0
  • Line Location: RESTART+2
Function Call: WRITE
  • Prompt: !,"You must create a NEW name for this ARCHIVE."
  • Line Location: TAPE+0
Function Call: WRITE
  • Prompt: !,"OK, lets forget it."
  • Line Location: DT+0
Function Call: WRITE
  • Prompt: !,"I will now CLEAR out the global"
  • Line Location: CLEAN+1
Function Call: WRITE
  • Prompt: !!,"Now read the tape back in to make sure we have a good tape."
  • Line Location: CLEAN+6
Function Call: WRITE
  • Prompt: !,"Then do the PURGE pass."
  • Line Location: CLEAN+7
Function Call: WRITE
  • Prompt: !,"You have not done the clear and reload of the global yet.",$C(7)
  • Line Location: PURGE+2
Function Call: WRITE
  • Prompt: !,"PURGE in progress, or completed. Please let it finish."
  • Line Location: PURGE+3
Function Call: WRITE
  • Prompt: !!,"Not in the right state.",!!
  • Line Location: DQ2+0
Function Call: WRITE
  • Prompt: !
  • Line Location: KILL+0
Function Call: WRITE
  • Prompt: @IOF
  • Condition for execution: $E(IOST,1,2)="P-"
  • Line Location: KILL+0
Routine Call
  • DIC
  • Line Location:
    • TAPE
Routine Call
  • DIE
  • Line Location:
    • DT+2
Routine Call
  • %ZIS
  • Line Location:
    • DEV

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^LAB(69.9 - [#69.9] Classic Fileman Calls

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^%ZOSF("PRIORITY" DQ1
^DD(63.04 DQ1+1
^DD(63.999904 DQ1+1*
^LAB(69.9 - [#69.9] SEARCH+3*, T*, DQ1+3*, RESTART+3, CLEAN+5, DQ2DQ2+1*, DQ2+2!, FLAGFLAG+1
^LAR( DQ1+3, RESTARTRESTART+1, CLEAN+3!
^LAR("NAME" LSTDQ2+2!
^LAR("SSN" DQ2+2!
^LAR("Z" - [#63.9999] CLEAN+4*, DQ2+2!*
^LR - [#63] LST+1, LST+2

Label References

Name Line Occurrences
DEV SEARCH+4, RESTART+3, PURGE+4, PRT+1
FLAG SEARCH+1, CLEAN+2, PURGE+1
KILL QUITPRT+1, PRT+2, PRT+3
LST PRT+3
PAT PATRESTART+3
QUIT SEARCH+2, SEARCH+3, SEARCH+4, T+2, RESTARTRESTART+2, RESTART+3, CLEAN+2, PURGE+4, PURGE+5
DQ2DQ2+2
RESTART SEARCH+1, RESTART+2
TAPE SEARCH+3, TAPE

Naked Globals

Name Field # of Occurrence
^( DQ1+1
^("LRDFN" RESTART+3
^("TAPE" FLAG
^(0 LST+1, CLEAN+5*, FLAG
^(3 DQ1+1*

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
>> % PAT*, PAT+1, RESTART+2*, CLEAN+2*
>> %DT DT*
>> %DT("A" DT*
>> %DT("B" DT*
%ZIS DEV*!, PRT+1*
%ZIS("A" DEV*, PRT+1*
C1 DQ1*, QUIT!
C2 DQ1*, QUIT!
C3 DQ1*, QUIT!
>> DA SEARCH+3, TAPE*, DT*, DT+2
>> DFN LST+1*
DIC TAPE*, DT+2!
DIC(0 TAPE*
>> DIE DT+2*
DLAYGO TAPE*!
>> DR DT+2*
F1 SEARCH+1, SEARCH+2, SEARCH+3, QUIT!, CLEAN+2, PURGE+2, PURGE+3, FLAG*, FLAG+1
I T+1*, CLEAN+3*, KILL+1!
IO DQ1
IO("Q" T+1, T+2!, PURGE+5!, PRT+2
IO(0 QUIT
IOF DQ1LSTKILL
IOST KILL
J KILL+1!
L1 DQ1+2!
L2 DQ1+2!
>> LR(1 DQ1DT+1*, DT+2, FLAG+1*
>> LR(2 DT+1*, FLAG+1*
>> LR(3 DT+1*, FLAG+1*
LRDAT KILL+1!
>> LRDFN SEARCH+4*, LST*, LST+1, LST+2, RESTART+3*
LRDPF LST+1*, KILL+1!
LRIDT KILL+1!
LRPAT PAT+1*, LSTKILL+1!, PRT+2*
LRSS KILL+1!
LRSUB DQ1+1*, KILL+1!
P1 SEARCH+4, TDQ1+3, DT+2*, CLEAN+5, DQ2DQ2+1, FLAG*, FLAG+1, KILL+1!
PNM LST*, LST+1~, LST+2, KILL+1!
>> POP SEARCH+4, RESTART+3, PURGE+4, PRT+1
SSN LST+1, KILL+1!
U TDQ1+1, DQ1+3, TAPECLEAN+5, DQ2DQ2+1, FLAG*, FLAG+1
X T*, DQ1*, DQ1+2!, DT+1, CLEAN+3*, FLAG+1
X0 DQ1+1*, KILL+1!
X1 DT+1*, FLAG+1*, KILL+1!
X2 DT+1*, FLAG+1*, KILL+1!
X3 DQ1+1*, KILL+1!
Y DQ1*, DQ1+2!, TAPEDTDT+1
ZTDESC KILL+1!, PRT+2*
ZTIO KILL+1!
>> ZTQUE KILL+1*
ZTRTN T+1*, PURGE+5*, KILL+1!, PRT+2*
ZTSAVE KILL+1!
ZTSAVE( T+1*
ZTSAVE("F1" PURGE+5*
ZTSAVE("LR(" PURGE+5*
ZTSAVE("LRPAT" PRT+2*
ZTSAVE("P1" PURGE+5*
ZTSK KILL+1!
Info |  Source |  Call 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