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

Package: Order Entry Results Reporting

Routine: ORCSEND1


Information

ORCSEND1 ;SLC/MKB - Release cont ;Jul 02, 2020@14:48:44

Source Information

Source file <ORCSEND1.m>

Call Graph

Call Graph

Call Graph Total: 16

Package Total Call Graph
Order Entry Results Reporting 10 ($$PTR,GETDLG1)^ORCD  ($$IMMCOLL,$$LABCOLL,GETIMES)^ORCDLR1  ($$DOSE,$$DUR,$$RTE,$$SCH)^ORCDPS2  $$FMDUR^ORCDPS3  (DATES,RELEASE)^ORCSAVE2  CANCEL^ORCSEND  EN^ORCSEND2  CHILD^ORCSEND3  
MSG^ORMBLD  $$VALUE^ORX8  
Inpatient Medications 2 (ENSPU,ENSV)^PSJEEU  $$STARTSTP^PSJORPOE  
Kernel 1 ($$FMADD,$$FMDIFF,$$NOW,$$SCH)^XLFDT  
Pharmacy Data Management 1 ZERO^PSS51P1  
Toolkit 1 $$GET^XPAR  
VA FileMan 1 $$GET1^DIQ  

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

Package Total Caller Graph
Order Entry Results Reporting 2 ORCDLR  ORCSEND  

Entry Points

Name Comments DBIA/ICR reference
PKGSTUFF(PKG) ; Package code
LR ; Spawn child orders if continuous schedule
LR1
SCHEDULE(IFN,PKG,ORY,STRT) ; Returns list of start time(s) from schedule
GETORDER(IFN) ; Set ORX(Inst,Ptr)=Value
PTR(X) ; Returns ptr of prompt X in Order Dialog file
PS ; spawn child orders if multiple doses
PSJ ; (Inpt only)
PSS ;
PS1
PS2 ; ck if parent is unsigned or edit
DOSES(IFN) ; count number of doses in order
FRSTDOSE() ; Return instance of first dose
SIG ; Build text of instructions
STRT ; Build ORSTRT(inst)=date.time array of start times by dose
STOP(I,ORST) ; calculate STOP DATE; similar to PSJHL9; p*507
STPADM(SCH,AT,STP) ; calculate STOP DATE based on admin schedule; similar to PSJHL9; p*507
CNJCHK(I) ;Check for A conjuction; p*507
DUR(I) ; Accumulate duration in ORD("Xt") for offsetting next THEN dose
VBEC ; Spawn VBECS children

External References

Name Field # of Occurrence
$$GET1^DIQ PKGSTUFF+1, SCHEDULE+5, SIG+11
$$PTR^ORCD LR+8, LR+9, LR+10, LR+11, LR+12, LR+13, LR+14, LR+15, STRT+2
GETDLG1^ORCD LR+7, PSS+8
$$IMMCOLL^ORCDLR1 LR1+7
$$LABCOLL^ORCDLR1 LR1+6
GETIMES^ORCDLR1 LR+7
$$DOSE^ORCDPS2 SIG+4
$$DUR^ORCDPS2 SIG+4
$$RTE^ORCDPS2 SIG+4
$$SCH^ORCDPS2 SIG+4
$$FMDUR^ORCDPS3 STRT+14, STOP+2, DUR+1
DATES^ORCSAVE2 LR+5, LR1+10, PSS+13
RELEASE^ORCSAVE2 LR1+14, PS1+32
CANCEL^ORCSEND PS2+7
EN^ORCSEND2 VBEC+1
CHILD^ORCSEND3 LR1+8, PS1+17, PS1+28
MSG^ORMBLD PS2+4
$$VALUE^ORX8 PSS+19
ENSPU^PSJEEU SCHEDULE+23
ENSV^PSJEEU SCHEDULE+6
$$STARTSTP^PSJORPOE STRT+11
ZERO^PSS51P1 SCHEDULE+17
$$FMADD^XLFDT SCHEDULE+10, SCHEDULE+12, SCHEDULE+22, STOP+9, STPADM+6
$$FMDIFF^XLFDT STPADM+6, STPADM+8
$$NOW^XLFDT PS1+6, STRT+5
$$SCH^XLFDT STOP+4
$$GET^XPAR SCHEDULE+15, PS1+12

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^PSDRUG - [#50] GET1^DIQ
^PS(51.1 - [#51.1] GET1^DIQ
^DIC(9.4 - [#9.4] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^OR(100 - [#100] LR+2, LR+4, LR1+9, LR1+10*, LR1+11*, LR1+12, SCHEDULE+2, SCHEDULE+4, SCHEDULE+5, SCHEDULE+8
, SCHEDULE+9, GETORDER+2, PSS+4, PSS+17, PSS+19, PSS+20, PS1+10, PS1+13, PS1+14, PS1+29*
PS1+30, PS1+33*, PS2+1!, PS2+3, PS2+4, PS2+6*, DOSES+2, DOSES+3
^ORD(100.02 - [#100.02] PS2+5
^ORD(101.41 - [#101.41] GETORDER+3, PTR+1
^ORD(101.42 - [#101.42] PS1+9, PS1+11, PS1+12, PS1+26
^ORD(101.43 - [#101.43] SIG+12, STRT+3
^SC - [#44] STRT+4
^TMP("ORWORD" PS1+32!, SIG+1!, SIG+5*, SIG+6
^TMP($J SCHEDULE+16!, SCHEDULE+18, SCHEDULE+19!

Label References

Name Line Occurrences
$$CNJCHK STRT+9
$$DOSES PSS+13
$$FRSTDOSE PS1+3
$$PTR PSS+9, PSS+10, PSS+11, PSS+12, PSS+14, PSS+15, PSS+16, PS1+1, PS1+8, PS1+25
STRT+6
$$STOP STRT+16
$$STPADM STRT+16
@( PKGSTUFF+2
GETORDER LR+7, PSS+8
SCHEDULE LR+3
SIG PS1+17, PS1+28
STRT PSS+11

Naked Globals

Name Field # of Occurrence
^( GETORDER+2
^(0 PS2+1*
^(1 GETORDER+2, SIG+5*
^(3 PSS+4, PS2+6*
^(6 PS2+6*

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
ADMTM STRT+1~, STRT+9*, STRT+11, STRT+16
ADMTMN STRT+1~, STRT+6*, STRT+9
AT STPADM~, STPADM+3*, STPADM+4, STPADM+5, STPADM+6, STPADM+7
AT1 STPADM+2~, STPADM+5, STPADM+6*, STPADM+7*
CNT DOSES+1~*, DOSES+2*, DOSES+3*, DOSES+4
CODE PSS+3~, PS2+3*, PS2+4
DAYS SCHEDULE+14~, SCHEDULE+21*, SCHEDULE+22
DOSE SIG+1~, SIG+3*
DT SIG+5
DURA STRT+1~, STRT+14*, STRT+15*, STRT+16, STOP+1~, STOP+2*, STOP+3*, STOP+4, STOP+5*, STOP+6*
, STOP+7*, STOP+8*, STOP+9
DUZ LR1+14, PS1+32, PS2+6
I SCHEDULE+1~, SCHEDULE+4*, SCHEDULE+5, SCHEDULE+8*, SCHEDULE+9, SCHEDULE+27*, GETORDER+1~, GETORDER+2*, GETORDER+5, PSS+3~
PSS+18*, PSS+19*, PSS+20*, DOSES+1~, DOSES+2*, DOSES+3*, FRSTDOSE+1~*, FRSTDOSE+2*, STOP~, STOP+2
, CNJCHK~, CNJCHK+3, DUR~, DUR+1
ID PSS+3~, PS1+5*, PS1+20*, PS1+21, SIG+1~, SIG+2*, SIG+9, SIG+10
IFN SCHEDULE~, SCHEDULE+2, SCHEDULE+4, SCHEDULE+5, SCHEDULE+8, SCHEDULE+9, GETORDER~, GETORDER+2, GETORDER+5, DOSES~
, DOSES+2, DOSES+3
INST GETORDER+1~, GETORDER+3*, GETORDER+4, GETORDER+5
ITM SIG+10~, SIG+12*, SIG+13
LOCMX SCHEDULE+14~, SCHEDULE+15*, SCHEDULE+21
NATR PS2+5~*, PS2+6
>> NATURE LR1+10, LR1+14, PS1+32
ND STPADM+2~, STPADM+7*, STPADM+8*
NXT SCHEDULE+26~, SCHEDULE+27*
OI STRT+1~, STRT+2*, STRT+3, CNJCHK+1~, CNJCHK+3*
OND STPADM+2~, STPADM+8*, STPADM+9, STPADM+10
OR0 LR+1~, LR+2*, LR+6, LR1+1, PSS+1~, PSS+4*, PSS+5, PSS+6, PSS+7
OR3 PSS+3~, PSS+4*, PSS+17, PSS+18, PS1+30*, PS2+2
ORA CNJCHK+1~, CNJCHK+2*, CNJCHK+3*, CNJCHK+4
ORADMIN PSS+3~, PSS+12*, PS1+19
ORCAT PSS+1~, PSS+5*
ORCHLD LR+1~, LR1+11, PSS+3~, PS1+29
ORCNJ STRT+1~, STRT+9*, STRT+13
ORCNJA STRT+1~, STRT+9*, STRT+10, STRT+13
ORCOLLCT LR+1~, LR1+3*, LR1+6, LR1+7
ORCONJ PSS+2~, PSS+11*, STRT+9, CNJCHK+3
>> ORD("XD" DUR+6*
>> ORD("XH" DUR+4*
>> ORD("XM" DUR+3*
>> ORD("XS" DUR+2*
ORDD PSS+2~, PSS+15*, PS1+5, PS1+20, PS1+21, SIG+2
ORDG LR+1~, LR+6*, PSS+1~, PSS+7*
ORDGNM PSS+2~, PSS+16*, SIG+8, SIG+11
ORDIALOG LR+1~, LR+6*, LR+7, PSS+1~, PSS+6*, PSS+8
ORDIALOG( LR+8!, LR1+2*, LR1+3, LR1+5*, LR1+6*, LR1+7*, PS1+2*, PS1+4*, PS1+5*, PS1+6*
PS1+13*, PS1+16*, PS1+19*!, PS1+20!, PS1+21*, PS1+27*, SIG+2, SIG+3, SIG+6*, SIG+7*
SIG+8!, SIG+11*, SIG+13*
ORDOSE PSS+2~, PSS+9*, PS1+4, PS1+19, FRSTDOSE+2, SIG+3, SIG+7
ORDRUG SIG+1~, SIG+2*, SIG+9, SIG+11
ORDUR SCHEDULE+1~, SCHEDULE+9*, SCHEDULE+10, SCHEDULE+11, SCHEDULE+24, SCHEDULE+25, PSS+2~, PSS+10*, PS1+19, STRT+14
, STOP+2, DUR+1
ORDUZ LR+1~, LR+6*, PSS+1~, PSS+6*
ORENEW PSS+3~, PSS+18*, PSS+19, PSS+20
ORENEW( PSS+20*
>> ORERR LR1+13*, PS1+31*
ORFRST PSS+2~, PSS+14*, PS1+3, PS1+23
ORI PSS+1~, PS1+3*, PS1+4, PS1+5, PS1+18*, PS1+19, PS1+20, PS1+22, SIG+1~, SIG+3*
STRT+1~, STRT+7*, STRT+8, STRT+9, STRT+10, STRT+13, STRT+14, STRT+16, STRT+18*
ORID PSS+2~, PSS+15*, PS1+4, PS1+5, PS1+19, PS1+20, SIG+2
>> ORIFN LR+2, LR+3, LR+4, LR+5, LR+7, LR1+9, LR1+12*, PSS+4, PS1+10, PS1+13
PS1+14, PS1+30*, PS1+32, PS1+33, PS2+1
ORIG PSS+3~, PS2+2*, PS2+3, PS2+4, PS2+6, PS2+7
ORL LR+1~, LR+2*, LR1+1~*, SCHEDULE+6, SCHEDULE+15, PSS+1~, PSS+7*, STRT+4
ORLAST LR+1~, LR1+11, PSS+3~, PS1+29
ORLASTC LR1~, LR1+9*, LR1+10
ORLOG LR+1~, LR+6*, PSS+1~, PSS+6*, PS2+1
ORNOW LR1+14, PS1+32, PS2+6, STRT+1~, STRT+5*, STRT+8, STRT+11
ORNP LR+1~, LR+6*, PSS+1~, PSS+5*
OROI PSS+3~, PS1+2*, SIG+12
ORP PSS+1~, PS1*, PS1+1, PS1+2, PS1+4*, PS1+19*
ORPARENT LR+1~, LR+2*, LR1+10, LR1+11, LR1+12, LR1+14, PSS+1~, PSS+4*, PSS+8, PSS+13
PS1+29, PS1+30
ORPCOLL LR+1~, LR+15*, LR1+5
ORPCOMM LR+1~, LR+13*, LR1+2
ORPITEM LR+1~, LR+9*, LR1+2
ORPKG PSS+3~, PSS+7*
ORPRA PS1+7~, PS1+11*, PS1+12*, PS1+13, PS1+15*, PS1+16
ORPRR PS1+7~, PS1+9*, PS1+16, PS1+24~, PS1+26*, PS1+27
ORPSAMP LR+1~, LR+10*, LR1+2
ORPSPEC LR+1~, LR+11*, LR1+2
ORPTYPE LR+1~, LR+14*, LR1+2, LR1+3, LR1+6, LR1+7
ORPURG LR+1~, LR+12*, LR1+2
>> ORQUIT LR1+12*, PS1+30*
ORS1 LR+1~, LR1*, LR1+2
ORS2 LR+1~, LR1+4*, LR1+5, LR1+6, LR1+7
ORSCH PSS+2~, PSS+10*, PS1+6, PS1+19, STRT+8
ORSD STRT+1~, STRT+8*, STRT+11*
ORSIG PSS+3~, PSS+14*, SIG+1, SIG+5, SIG+6
ORSP STRT+1~, STRT+16*
ORST STOP~, STOP+4, STOP+9
ORSTART PSS+3~, PSS+11*, PSS+13, PS1+6*, PS1+17, PS1+22*, PS1+28
ORSTP STRT+1~, STRT+16*
ORSTP( STRT+13, STRT+16*
ORSTR PSS+2~, PSS+16*, SIG+8, SIG+13
ORSTRT LR+1~, LR+3, PSS+2~, STRT+1!
ORSTRT( LR1+4, PS1+22, STRT+13*, STRT+16, STRT+18
ORSTRT("BEG" PSS+11, STRT+19*
ORSTRT(0 LR+4
ORT PSS+2~, PSS+9*, PS1+4, PS1+19
ORTIME LR+1~
ORTM STPADM+2~, STPADM+9
ORTM( STPADM+7*, STPADM+8
ORTM(9999999 STPADM+9
ORURG PS1+7~, PS1+8*, PS1+13, PS1+16, PS1+24~, PS1+25*, PS1+27
>> ORURGID PS1+10*, PS1+13, PS1+14
>> ORURGR PS1+13*, PS1+14*, PS1+15
>> ORVP PS2+1, STRT+11
ORWD STRT+1~, STRT+4*, STRT+11
ORX LR+1~, PSS+1~, SIG+1~, SIG+4*, SIG+5
ORX( LR1LR1+2, GETORDER+4*, GETORDER+5*, PS1+4, PS1+5, PS1+18, PS1+19, PS1+20, FRSTDOSE+2
STRT+7, STRT+8, STRT+9, STRT+14, STOP+2, CNJCHK+3, DUR+1
ORX(1 PS1+1, PS1+2, PS1+3, PS1+23, STRT+2
ORY SCHEDULE~, SCHEDULE+2*, SCHEDULE+3*, SCHEDULE+23!, SCHEDULE+24*, SCHEDULE+25*, SCHEDULE+27
ORY( SCHEDULE+3*, SCHEDULE+27*
P LR+1~, LR1+2*
PKG PKGSTUFF~, PKGSTUFF+1*, PKGSTUFF+2, SCHEDULE~, SCHEDULE+4, SCHEDULE+6
PSJAT SCHEDULE+1~
PSJAX SCHEDULE+1~
PSJC SCHEDULE+1~, SCHEDULE+24, SCHEDULE+25
PSJC( SCHEDULE+27
PSJFD SCHEDULE+1~, SCHEDULE+10*, SCHEDULE+12*, SCHEDULE+22*
PSJM SCHEDULE+1~, SCHEDULE+12
PSJNE SCHEDULE+1~, SCHEDULE+6*
PSJOFD SCHEDULE+1~
PSJOSD SCHEDULE+1~
PSJPP SCHEDULE+1~, SCHEDULE+6*
PSJSCH SCHEDULE+1~, SCHEDULE+8*
PSJSD SCHEDULE+1~, SCHEDULE+2*, SCHEDULE+3, SCHEDULE+10, SCHEDULE+12, SCHEDULE+22
PSJTS SCHEDULE+1~, SCHEDULE+7
PSJW SCHEDULE+1~, SCHEDULE+6*
PSJX SCHEDULE+1~, SCHEDULE+5*, SCHEDULE+6, SCHEDULE+8
PSJY SCHEDULE+1~, SCHEDULE+17, SCHEDULE+18
PSOI STRT+1~, STRT+3*, STRT+11
PTR GETORDER+1~, GETORDER+3*, GETORDER+4, GETORDER+5, PS1+1~*, PS1+2
SCH STRT+1~, STRT+8*, STRT+10, STRT+11, STRT+16, STPADM~, STPADM+3
SCHMX SCHEDULE+14~, SCHEDULE+18*, SCHEDULE+21
START LR+4~*, LR+5
STOP STOP+1~, STOP+3, STOP+4*, STOP+9*, STOP+10
STP STPADM~, STPADM+3*, STPADM+4, STPADM+6, STPADM+7, STPADM+8, STPADM+10
STR SIG+10~*, SIG+11, SIG+13
STRT SCHEDULE~, SCHEDULE+2
STS LR+1~, LR1+12*, LR1+13, PSS+1~, PS1+30*, PS1+31, PS1+34
TYPE GETORDER+1~, GETORDER+3*, GETORDER+4
U LR+2, LR+4, LR+6, LR1+1, LR1+11, LR1+12, SCHEDULE+2, GETORDER+3, PSS+5, PSS+6
PSS+7, PSS+17, PSS+18, PS1+14, PS1+29, PS1+30, PS1+33, PS2+1, PS2+2, PS2+3
PS2+4, PS2+6, SIG+5, SIG+12, STRT+3, STRT+11
X SCHEDULE+1~, SCHEDULE+5*, SCHEDULE+11*, SCHEDULE+12, GETORDER+1~, GETORDER+2*, GETORDER+3, PTR~, PTR+1, STRT+1~
STRT+8*, STRT+11*, STRT+13, STRT+18*, STRT+19, STPADM+2~, STPADM+8*, DUR+1~*, DUR+2, DUR+3
, DUR+4, DUR+5
XD STRT+1~, STRT+3*
XH STRT+1~, STRT+3*
XM STRT+1~, STRT+3*
XS STRT+1~, STRT+3*
Y GETORDER+1~, GETORDER+2*, GETORDER+4, FRSTDOSE+1~*, FRSTDOSE+2*, FRSTDOSE+3, STPADM+2~, STPADM+7*, DUR+1~, DUR+5*
, DUR+6

Marked Items

Name Field # of Occurrence
$T(@PKG PKGSTUFF+2
$T(EN^ORCSEND2 VBEC+1
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  Marked Items  | All