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

Package: Order Entry Results Reporting

Routine: ORCHECK


Information

ORCHECK ;SLC/MKB-Order checking calls ;23-Nov-2011 11:55;PLS

Source Information

Source file <ORCHECK.m>

Call Graph

Call Graph Total: 11

Package Total Call Graph
Order Entry Results Reporting 6 $$PTR^ORCD  TXT^ORCHTAB  ($$VALUE,ADMIN,AM,NEXT,OC)^ORCSAVE2  EN^ORKCHK  $$USID^ORMBLD  $$NAME50^ORPEAPI  
VA Fileman 3 ^%DT  $$GET1^DIQ  ^DIR  
Inpatient Medications 1 ($$ENDCM,ENDDIV)^PSJORUTL  
Toolkit 1 $$GET^XPAR  

Caller Graph

Caller Graph Total: 7

Package Total Caller Graph
Order Entry Results Reporting 5 ORCACT4  ORCDLG  ORCMED  ORCMENU1  ORWDXC  
Adverse Reaction Tracking 2 GMRAFX3  GMRAUTL2  

Entry Points

Name Comments DBIA/ICR reference
IV() ; -- Get Dispense Drug for IV orderable
REMDUPS ;
LIST(IFN) ; -- Displays list of ORCHECK(IFN) checks
RETURN ; -- Return checks in ORCHECK(ORIFN,CDL,#)
ACCEPT(MODE) ; -- ACCEPT event [called from ORCDLG,ORCACT4,ORCMED]
; Expects ORVP, ORDIALOG(), ORNMSP
MANUAL ; -- MANUAL event
; Expects ORVP, ORES()
REASON() ; -- Reason for overriding order checks
; I '$D(^XUSEC("ORES",DUZ)),'$D(^XUSEC("ORELSE",DUZ)) Q ??
DELAY(MODE) ; -- Delayed ACCEPT event [called from ORMEVNT]
; Expects ORVP, ORIFN
DRUG(OI,PTR,IFN) ; -- Returns 6 ^-piece identifier for Dispense Drug
SESSION ; -- SESSION event [called from ORCSIGN]
; Expects ORVP, ORES()
STUF
CANCEL() ; -- Returns 1 or 0: Cancel order(s)?
BLD(ORDER) ; -- Build new ORX(#) for ORDER
OCAPI(IFN,ORPLACE) ;IA #4859
START(DA) ; -- Returns start date/time
DISPLAY ; -- DISPLAY event [called from ORCDLG,ORCACT4,ORCMED]
; Expects ORVP, ORNMSP, ORTAB, [ORWARD]
SELECT ; -- SELECT event
; Expects ORVP, ORDAILOG(PROMPT,ORI), ORNMSP
D1

External References

Name Field # of Occurrence
^%DT START+8
$$GET1^DIQ BLD+3
^DIR CANCEL+6, REASON+5
$$PTR^ORCD ACCEPT+5, ACCEPT+7, STUF+1, DRUG+4, IV+3, IV+4
TXT^ORCHTAB LIST+6
$$VALUE^ORCSAVE2 BLD+9, IV+4
ADMIN^ORCSAVE2 START+7
AM^ORCSAVE2 START+6
NEXT^ORCSAVE2 START+6
OC^ORCSAVE2 DELAY+5
EN^ORKCHK DISPLAY+8, SELECT+6, ACCEPT+8, STUF+4, DELAY+4, SESSION+9, MANUAL+7
$$USID^ORMBLD SELECT+5, STUF+2, BLD+8
$$NAME50^ORPEAPI D1+1
$$ENDCM^PSJORUTL D1
ENDDIV^PSJORUTL IV+5
$$GET^XPAR DISPLAY+2, SELECT+2, ACCEPT+2, DELAY+2, SESSION+2, MANUAL+2

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !,$P(ORY(I),U,4)
  • Line Location: DISPLAY+9
Function Call: WRITE
  • Prompt: !,ON_">>> "_X_OFF
  • Line Location: LIST+5
Function Call: WRITE
  • Prompt: !,ON_$S(ORJ=1:">>> ",1:" ")_ORTX(ORJ)_OFF
  • Line Location: LIST+7
Function Call: WRITE
  • Prompt: !
  • Line Location: LIST+8
Routine Call
  • DIR
  • Line Location:
    • CANCEL+6
    • REASON+5

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^DIC(9.4 - [#9.4] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^OR(100 - [#100] SESSION+5, SESSION+6, SESSION+8, BLD+1, BLD+3, BLD+6, BLD+7, START+2, DRUG+3, OCAPI+9
, OCAPI+11, OCAPI+12, OCAPI+13, OCAPI+14, OCAPI+15, OCAPI+16
^ORD(100.98 - [#100.98] DISPLAY+5, ACCEPT+7, BLD+4, DRUG+2
^ORD(101.43 - [#101.43] IV+2
^TMP("OR" DISPLAY+6
^TMP($J OCAPI+12*, OCAPI+13*, OCAPI+14*, OCAPI+15*, OCAPI+16*

Label References

Name Line Occurrences
$$DRUG STUF+2, BLD+8
$$IV DRUG+2
$$START ACCEPT+5, BLD+5
BLD DELAY+4, SESSION+6, MANUAL+5
D1 DRUG+2
REMDUPS SESSION+9
RETURN SELECT+6, ACCEPT+8, STUF+4, DELAY+5, SESSION+9, MANUAL+7
STUF ACCEPT+6, ACCEPT+7

Naked Globals

Name Field # of Occurrence
^( SESSION+8
^(0 BLD+3, BLD+7
^(1 SESSION+8, BLD+7

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
%DT START+1~, START+8*
CDL RETURN+1~, RETURN+3*, RETURN+5, REMDUPS+1~, REMDUPS+3*, REMDUPS+4, REMDUPS+5
DA START~, START+2
DIR CANCEL+1~, REASON+2~
DIR("?" CANCEL+4*, CANCEL+5*, REASON+4*
DIR("A" CANCEL+3*, REASON+3*
DIR(0 CANCEL+2*, REASON+3*
>> DTOUT REASON+5
>> DUOUT REASON+5
I DISPLAY+3~, DISPLAY+5*, DISPLAY+6*, DISPLAY+9*, SESSION+3~, SESSION+8*, MANUAL+3~, RETURN+1~*, RETURN+2, RETURN+3
, RETURN+5, REMDUPS+1~, REMDUPS+4*, REMDUPS+5, START+1~, START+4*, START+5, OCAPI+10~, OCAPI+11*, OCAPI+12
, OCAPI+13, OCAPI+14, OCAPI+15, OCAPI+16
IFN RETURN+1~, RETURN+2*, RETURN+4, RETURN+5, REMDUPS+1~, REMDUPS+2*, REMDUPS+3, REMDUPS+4, REMDUPS+5, DRUG~
, DRUG+3, IV+4, LIST~, LIST+2, LIST+4, LIST+5, OCAPI~, OCAPI+9, OCAPI+11, OCAPI+12
, OCAPI+13, OCAPI+14, OCAPI+15, OCAPI+16
INST BLD+2~, BLD+7*, BLD+9
>> IOINHI LIST+3
>> IOINORM LIST+3
ITEM BLD+2~, BLD+7*, BLD+8, BLD+10
>> J REMDUPS+5*
MODE ACCEPT~, ACCEPT+4*, ACCEPT+8, STUF+4, DELAY~, DELAY+3*, DELAY+4, DELAY+5
NUM CANCEL+1~, CANCEL+2*, CANCEL+3, CANCEL+4, CANCEL+5
OFF LIST+1~, LIST+3*, LIST+5, LIST+7
OI SELECT+3~, SELECT+4*, SELECT+5, ACCEPT+3~, ACCEPT+5*, ACCEPT+6, ACCEPT+7*, STUF, STUF+2, DRUG~
, IV+2
ON LIST+1~, LIST+3*, LIST+5, LIST+7
ORCHECK DELAY+3~, SESSION+8*, RETURN+5*, REMDUPS+5*
ORCHECK( SESSION+8*, RETURN+4, RETURN+5*, REMDUPS+2, REMDUPS+3, REMDUPS+4, REMDUPS+5!, LIST+2, LIST+4, LIST+5
ORCHECK("IFN" SESSION+7*, MANUAL+6*, RETURN+4*, CANCEL+2
ORCHECK("OK" DELAY+5*
ORDD DRUG+1~, DRUG+2*, DRUG+3*, DRUG+4*, D1, D1+1
ORDER BLD~, BLD+1, BLD+3, BLD+5, BLD+6, BLD+7, BLD+8, BLD+9, BLD+10
ORDG DISPLAY+5, ACCEPT+7, BLD+2~, BLD+3*, BLD+4, DRUG+2
>> ORDIALOG( SELECT+4, ACCEPT+6, ACCEPT+7, STUF, STUF+1, START+4, START+5, DRUG+4, IV+4
>> ORES( SESSION+4, MANUAL+4
ORI SELECT+4, ACCEPT+3~, ACCEPT+6*, ACCEPT+7*, STUF, STUF+1, BLD+2~, BLD+4*, BLD+5*, BLD+6*
, BLD+7, LIST+1~, LIST+4*, LIST+5
ORID ACCEPT+3~, STUF+2*, STUF+3
ORIFN DELAY+4, SESSION+3~, SESSION+4*, SESSION+5, SESSION+6, SESSION+8, MANUAL+3~, MANUAL+4*, MANUAL+5
ORIT ACCEPT+3~, STUF*, STUF+2, STUF+3
ORJ LIST+1~, LIST+7*
ORMAX LIST+1~, LIST+6*
ORNDF DRUG+1~, D1*, D1+1
>> ORNMSP DISPLAY+4, DISPLAY+5*, DISPLAY+6*, DISPLAY+7, SELECT+5, STUF+1, STUF+2, STUF+3
ORPLACE OCAPI~, OCAPI+12, OCAPI+13, OCAPI+14, OCAPI+15, OCAPI+16
ORSP ACCEPT+3~, STUF*, STUF+1*, STUF+5
ORSTRT ACCEPT+3~, ACCEPT+5*, STUF+5
>> ORTAB DISPLAY+6
ORTX LIST+1~, LIST+6!, LIST+7
ORTX( LIST+7
>> ORVP DISPLAY+8, SELECT+6, ACCEPT+8, STUF+4, DELAY+4, SESSION+9, MANUAL+7
>> ORWARD DISPLAY+6
ORX DISPLAY+3~, DISPLAY+7*, DISPLAY+8, SELECT+3~, SELECT+5*, SELECT+6, ACCEPT+3~, ACCEPT+5*, ACCEPT+8, STUF+5*
, DELAY+3~, DELAY+4, SESSION+3~, SESSION+9, MANUAL+3~, MANUAL+7, BLD+10*
ORX( STUF+5*, BLD+10*
ORX(1 DISPLAY+7*, SELECT+5*
>> ORXFER DISPLAY+6
ORY DISPLAY+3~, DISPLAY+8, SELECT+3~, SELECT+6, ACCEPT+3~, ACCEPT+8, STUF+4, STUF+5!, DELAY+3~, DELAY+4
, SESSION+3~, SESSION+9, MANUAL+3~, MANUAL+7, IV+1~, IV+5, IV+6
ORY( DISPLAY+9, RETURN+1, RETURN+2, RETURN+3, RETURN+5
ORZ ACCEPT+3~, STUF+3*, STUF+4, STUF+5!, LIST+1~, LIST+2*, LIST+3, LIST+4, LIST+5
ORZ(1 STUF+3*, STUF+5
PKG BLD+2~, BLD+3*, BLD+4*, BLD+8, BLD+9, BLD+10
>> PROMPT SELECT+4
PSOI IV+1~, IV+2*, IV+5
PTR BLD+2~, BLD+7*, BLD+8, DRUG~, IV+3
SPEC BLD+2~, BLD+9*, BLD+10
START BLD+2~, BLD+5*, BLD+10
TYPE IV+1~, IV+3*, IV+4, IV+5
U DISPLAY+5, DISPLAY+6, DISPLAY+9, SESSION+5, SESSION+8, BLD+3, BLD+4, BLD+7, RETURN+2, RETURN+3
, RETURN+5, START+4, D1+1, IV+2, LIST+5, OCAPI+12, OCAPI+14, OCAPI+15, OCAPI+16
USID BLD+2~, BLD+8*, BLD+10
VOL IV+1~, IV+2*, IV+4*, IV+5
X SESSION+3~, SESSION+8*, MANUAL+3~, START+1~, START+2*, START+5*, START+6, START+7, START+8, LIST+5*
, CANCEL+1~, REASON+2~
Y SESSION+3~, SESSION+8*, MANUAL+3~, START+1~*, START+8*, START+9, DRUG+1~, D1+1*, D1+2, CANCEL+1~
, CANCEL+7, REASON+2~, REASON+5*, REASON+6
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