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

Package: Order Entry Results Reporting

Routine: ORCMED


Information

ORCMED ;SLC/MKB - MEDICATION ACTIONS ;11/07/13 11:07

Source Information

Source file <ORCMED.m>

Call Graph

Call Graph

Call Graph Total: 24

Package Total Call Graph
Order Entry Results Reporting 19 ($$DELAY,$$ORDITEM,SUBHDR)^ORCACT  $$VALID^ORCACT0  ($$INPT,$$PTR,GETDLG,GETORDER)^ORCD  ($$OK,ADD,DIALOG,DISPLAY)^ORCDLG  EXIT^ORCDPS1  D1^ORCDPS2  PROVIDER^ORCDPSIV  $$ORDERS^ORCHART  
(ACCEPT,DISPLAY)^ORCHECK  TXT^ORCHTAB  $$PTR^ORCMED  (FREEZE,REBLD)^ORCMENU  ($$LOCATION,$$PROVIDER)^ORCMENU1  EN^ORCSAVE  ($$CURRENT,$$PTEVENT)^OREVNT  $$LOC^OREVNTX  
IMOLOC^ORIMO  REF^ORMBLDPS  ($$LOCK,$$LOCK1,UNLK1,UNLOCK)^ORX2  
Kernel 2 $$NOW^XLFDT  $$UP^XLFSTR  
List Manager 1 FULL^VALM1  
Pharmacy Data Management 1 DOSE^PSSORUTL  
VA FileMan 1 ^DIR  

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

Package Total Caller Graph
Order Entry Results Reporting 8 ORC ADD INPT MED  ORC ADD IV MED  ORC ADD OUTPT MED  ORC REFILL MEDS  ORC TRANSFER MEDS  ORCDPS2  ORCMED  ORWDPS3  
Kernel 1 ^ORD(101  

Entry Points

Name Comments DBIA/ICR reference
XFER ; -- transfer to in/outpt medsx
XF1
XF2
XFQ
IN ; -- Kill extra values, Reset ID's/DD from Inpt dialog
OUT ; -- Kill extra values, Reset ID's/DD from Outpt dialog
DOSES(TYPE)
CONT() ; -- Want to continue processing orders?
SHOWSIG ; -- Show old sig for transfer in ^TMP("ORSIG",$J)
PTR(NAME) ; -- Returns pointer to OR GTX NAME
REFILLS ; -- Request a refill for med orders
; ORNMBR = #,#,...,# of selected orders
RFQ
RETURN() ; -- press return to cont
ROUTING() ; -- Routing for refill
NW ; -- Order New Medication from Meds tab
; Requires ORDIALOG = name of pkg dialog
; OREVENT = event, if delaying orders
; OREVENT("TS") = treating spec, if admission or transfer
NWQ

External References

Name Field # of Occurrence
^DIR CONT+4, ROUTING+4
$$DELAY^ORCACT XFER+10
$$ORDITEM^ORCACT XF1+4, REFILLS+12
SUBHDR^ORCACT XF1+4, REFILLS+12
$$VALID^ORCACT0 XF1+5, REFILLS+13
$$INPT^ORCD XFER+13
$$PTR^ORCD XF1+11, XF1+12
GETDLG^ORCD XF1+9
GETORDER^ORCD XF1+9
$$OK^ORCDLG XF2+1
ADD^ORCDLG NW+10
DIALOG^ORCDLG XF2
DISPLAY^ORCDLG XF2+1
EXIT^ORCDPS1 XFQ
D1^ORCDPS2 DOSES+6
PROVIDER^ORCDPSIV XFER+18
$$ORDERS^ORCHART XFER+5, REFILLS+4
ACCEPT^ORCHECK XF2+1
DISPLAY^ORCHECK XFER+19
TXT^ORCHTAB SHOWSIG+2
$$PTR^ORCMED OUT+6
FREEZE^ORCMENU REFILLS+5, NW+6
REBLD^ORCMENU NW+10
$$LOCATION^ORCMENU1 XFER+12, REFILLS+7, NW+8
$$PROVIDER^ORCMENU1 XFER+13, REFILLS+6, NW+7
EN^ORCSAVE XF2+5
$$CURRENT^OREVNT XFER+9
$$PTEVENT^OREVNT XFER+11
$$LOC^OREVNTX XFER+12, NW+8
IMOLOC^ORIMO XFER+14
REF^ORMBLDPS REFILLS+15
$$LOCK^ORX2 XFER+2, NW+5
$$LOCK1^ORX2 REFILLS+14
UNLK1^ORX2 REFILLS+15
UNLOCK^ORX2 XFQ+2, NWQ
DOSE^PSSORUTL DOSES+4
FULL^VALM1 XFER+6
$$NOW^XLFDT XF1+13
$$UP^XLFSTR DOSES+9

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,$C(7),$P(ORPTLK,U,2)
  • Line Location: XFER+3
Function Call: WRITE
  • Prompt: !!,$$CURRENT^OREVNT
  • Line Location: XFER+9
Function Call: WRITE
  • Prompt: !,ORERR
  • Line Location: XF1+5
Function Call: WRITE
  • Prompt: !?10,"... order cancelled.",!
  • Line Location: XF2+3
Function Call: WRITE
  • Prompt: !?10,$S(ORIFN:"... order placed.",1:"ERROR"),!
  • Line Location: XF2+5
Function Call: WRITE
  • Prompt: !,$S(I=1:"(Sig: ",1:" ")_ORTX(I)
  • Line Location: SHOWSIG+3
Function Call: WRITE
  • Prompt: ")"
  • Line Location: SHOWSIG+4
Function Call: WRITE
  • Prompt: !,"Invalid order number!"
  • Line Location: REFILLS+11
Function Call: WRITE
  • Prompt: !,ORERR
  • Line Location: REFILLS+13
Function Call: WRITE
  • Prompt: !,$P(ORLK,U,2)
  • Line Location: REFILLS+14
Function Call: WRITE
  • Prompt: !?10,"... refill requested.",$$RETURN
  • Line Location: REFILLS+16
Function Call: WRITE
  • Prompt: !,"Press <return> to continue ..."
  • Line Location: RETURN+1
Function Call: WRITE
  • Prompt: !!,$C(7),$P(ORPTLK,U,2)
  • Line Location: NW+5
Routine Call
  • DIR
  • Line Location:
    • CONT+4
    • ROUTING+4

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^OR(100 - [#100] XF1+6, REFILLS+11
^ORD(101.41 - [#101.41] XFER+15, XFER+16, XFER+17, XF1+8, PTR+1, NW+9
^ORD(101.43 - [#101.43] DOSES+3
^PSX(550 - [#550] ROUTING+2
^TMP("OR" XFER+7, XF1+3, REFILLS+10
^TMP("ORECALL" XF2+7*, NW+11!
^TMP("ORNEW" XF2+6*, XFQ+2, NW+10, NWQ
^TMP("ORSIG" XF1+2!, XFQ+1!, OUT+14!, OUT+15*, SHOWSIG+2
^TMP("ORWORD" XF1+2!, XF2+7, XFQ+1!, OUT+15, OUT+16!, NW+11!
^TMP("PSJMR" XF1+2!

Label References

Name Line Occurrences
$$CONT XF1
$$PTR IN+2, IN+3, IN+4, IN+5, IN+6, IN+8, OUT+2, OUT+3, OUT+8, OUT+11
, OUT+14, OUT+17, OUT+18, DOSES+2, DOSES+3, DOSES+5, DOSES+6, DOSES+13, DOSES+14
$$RETURN REFILLS+16
$$ROUTING REFILLS+8
DOSES IN+7, OUT+4
IN XF1+10
NWQ NW+4, NW+7, NW+8, NW+9
OUT XF1+10
RFQ REFILLS+4, REFILLS+6, REFILLS+7, REFILLS+8
XF2 XF2+2
XFQ XFER+2, XFER+5, XFER+12, XFER+13, XFER+18

Naked Globals

Name Field # of Occurrence
^( XF2+7*, SHOWSIG+2
^(0 DOSES+3

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
DD DOSES+1~, DOSES+9*, DOSES+10, DOSES+11
DIR CONT+1~, ROUTING+1~
DIR("?" CONT+3*, ROUTING+3*
DIR("A" CONT+2*, ROUTING+2*
DIR("B" CONT+2*, ROUTING+2*
DIR(0 CONT+2*, ROUTING+1*
DIROUT ROUTING+1~
DIRUT ROUTING+1~
DOSE DOSES+1~, DOSES+5*, DOSES+8, DOSES+10
DRUG DOSES+1~, DOSES+6*, DOSES+11
DRUG0 DOSES+1~, DOSES+11*, DOSES+12, DOSES+13
DTIME RETURN+1
DTOUT ROUTING+1~, ROUTING+4
DUOUT ROUTING+1~
DUZ XFER+6
FIRST XFER+1~, XF1+13*, XF2, XF2+2*
I OUT+1~, OUT+3*, OUT+7*, OUT+8, OUT+10, OUT+11, OUT+12, OUT+17, OUT+18, OUT+29
, OUT+30, OUT+31, DOSES+1~, DOSES+2*, DOSES+7*, DOSES+8, DOSES+10, DOSES+11, SHOWSIG+1~, SHOWSIG+2*
, SHOWSIG+3*
IDX REFILLS+3~, REFILLS+10*
INSTR IN+1~, IN+6*, IN+10, IN+14, IN+15, IN+19, IN+22, IN+23, OUT+1~, OUT+3*
, OUT+7, OUT+10, OUT+12, OUT+13, OUT+22, OUT+23, OUT+27, OUT+30, OUT+31
NAME PTR~, PTR+1
NMBR XFER+1~, XF1*, XF1+3, REFILLS+3~, REFILLS+9*, REFILLS+10
OLDIFN XFER+1~, XF1+3*, XF1+4, XF1+5, XF1+6, XF1+9
ORCAT XFER+1~, XFER+8*, XFER+14, XF1+7, XF1+10
ORCHECK XFER+1~, XF1+1!, XF2+2!
ORCNT XFER+1~, XFER+20*, XF1
ORD XFER+1~, XF1+6*, XF1+7
ORD1 IN+1~, IN+3*, IN+13, IN+17, OUT+1~, OUT+11*, OUT+21, OUT+25
ORDCNT IN+1~, IN+11*, IN+19*, IN+22, IN+23, OUT+1~, OUT+19*, OUT+27*, OUT+30, OUT+31
ORDD IN+1~, IN+5*, IN+19, OUT+1~, OUT+2*, OUT+27
ORDE IN+1~, IN+6*, IN+8, IN+21, OUT+1~
ORDE( OUT+3*, OUT+8, OUT+29
ORDFIN IN+1~, IN+11*, IN+19*, IN+22, OUT+1~, OUT+19*, OUT+27*, OUT+30
ORDG XFER+1~, XF1+1!, XF1+8*
ORDIALOG XFER+1~, XF1+1!, XF1+7*, XF1+8, XF1+9, XF1+10, XF2+7, NW+4, NW+9*, NW+11!
ORDIALOG( XF1+11!, XF1+12!, IN+2!, IN+3, IN+4, IN+5, IN+6, IN+8, IN+10*, IN+14
, IN+15, IN+19, IN+22*, IN+23*, OUT+2, OUT+3, OUT+6, OUT+7, OUT+8, OUT+10*
, OUT+11, OUT+12, OUT+13, OUT+16!, OUT+17!, OUT+18!, OUT+22, OUT+23, OUT+27, OUT+30*
, OUT+31*, DOSES+2!, DOSES+3, DOSES+7, DOSES+8!, DOSES+9, DOSES+10*, DOSES+11*, DOSES+13*, DOSES+14*
ORDITM XFER+1~, XF1+4*, REFILLS+3~, REFILLS+12*
ORDLI IN+1~, IN+14*, IN+15, OUT+1~, OUT+22*, OUT+23
ORDORIG IN+1~, IN+4*, IN+15, IN+19, OUT+1~, OUT+12*, OUT+23, OUT+27
ORDORIGF IN+1~, IN+11*, IN+15*, IN+21, OUT+1~, OUT+19*, OUT+23*, OUT+29
ORDOSE XF1+1!, IN+18*, IN+19, OUT+26*, OUT+27, DOSES+4!
ORDOSE( IN+18, IN+19, OUT+26, OUT+27
ORDOSE("DD" DOSES+10, DOSES+11
ORDOSE(1 DOSES+4, DOSES+13, DOSES+14
ORDUZ XFER+1~, XFER+6*
ORERR XFER+1~, XF1+1!, XF1+5, REFILLS+3~, REFILLS+13
OREVENT XFER+1~, XFER+8, XFER+10*, XFER+11*, XFER+12, NW+8
ORI XFER+1~, XF1*, REFILLS+3~, REFILLS+9*
ORIDLG XFER+1~, XFER+15*, XF1+7
ORIFN XFER+1~, XF1+1!, XF2+5, XF2+6, REFILLS+3~, REFILLS+10*, REFILLS+11, REFILLS+12, REFILLS+13, REFILLS+14
, REFILLS+15
ORINPT XFER+1~, XFER+13*, XFER+14*
ORIVDLG XFER+1~, XFER+17*, XF1+7, XF1+10
>> ORL XFER+12*, XFER+14, REFILLS+7*, NW+8*
ORLK REFILLS+3~, REFILLS+14*
ORLOG XFER+1~, XF1+13*
ORMAX SHOWSIG+1~*
ORMED DOSES+1~, DOSES+3*, DOSES+14
>> ORNMBR XFER+5*, XFER+20, XF1, REFILLS+4*, REFILLS+9
ORNMSP XFER+1~, XFER+19*
>> ORNP XFER+13*, REFILLS+6*, NW+7*
ORODLG XFER+1~, XFER+16*, XF1+7
OROUT REFILLS+3~, REFILLS+8*, REFILLS+15
ORPTLK XFER+1~, XFER+2*, XFER+3, NW+4~, NW+5*
ORQUIT XFER+1~, XFER+18, XF1, XF1+1!, XF2!, XF2+1*, REFILLS+3~, REFILLS+9
ORSRC XFER+1~, XFER+6*
>> ORTAB XF1+3
ORTX SHOWSIG+1~
ORTX( SHOWSIG+3
ORTYPE XFER+1~, XFER+6*
>> ORVP XFER+2, XFER+11, XFER+14, XFQ+2, DOSES+4, NW+5, NWQ
>> ORWARD XFER+7, XFER+8
ORXFER XFER+1~, XFER+6*
P IN+1~, IN+2*, OUT+13~, OUT+17*
PROMPT DOSES+1~, DOSES+5*, DOSES+7, DOSES+8, DOSES+9
PSOI DOSES+1~, DOSES+3*, DOSES+4
STR DOSES+1~, DOSES+12*, DOSES+13, DOSES+14
TYPE DOSES~, DOSES+4, DOSES+14
U XFER+3, XFER+7, XF1+3, XF1+6, XF1+8, IN+15, IN+19, OUT+23, OUT+27, DOSES+3
, DOSES+12, DOSES+13, REFILLS+10, REFILLS+14, NW+5
>> VALMBCK XFER+4*, XFER+6*, REFILLS+5*, NW+6*, NW+11*
WP OUT+14~*, OUT+15, OUT+16
X XFER+1~, XFER+7*, XFER+8, XFER+10*, XFER+11, XF2+1*, XF2+2, XF2+3, XF2+4, DOSES+1~
, DOSES+8*, DOSES+9*, DOSES+10, CONT+1~, SHOWSIG+1~, SHOWSIG+2*, RETURN+1~*, ROUTING+1~, ROUTING+4
Y CONT+1~, CONT+5, ROUTING+1~, ROUTING+4*, ROUTING+5
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All