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 |  Used in RPC |  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 ;Jun 19, 2020@09:03:02

Source Information

Source file <ORCHECK.m>

Call Graph

Call Graph

Call Graph Total: 17

Package Total Call Graph
Order Entry Results Reporting 10 $$PTR^ORCD  $$OCAPI^ORCHECK  TXT^ORCHTAB  ($$VALUE,ADMIN,AM,NEXT,OC)^ORCSAVE2  $$DSDWNMSG^ORDSGCHK  EN^ORKCHK  $$USID^ORMBLD  GETOC5^OROCAPI1  
$$NAME50^ORPEAPI  MAYBEIV^ORWDXR01  
VA FileMan 3 ^%DT  $$GET1^DIQ  ^DIR  
Adverse Reaction Tracking 1 EN1^GMRAOR1  
Inpatient Medications 1 ($$ENDCM,ENDDIV)^PSJORUTL  
Kernel 1 $$PATCH^XPDUTL  
Toolkit 1 $$GET^XPAR  

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

Package Total Caller Graph
Order Entry Results Reporting 14 ORCACT4  ORCDLG  ORCHECK  ORCHECK DELMONO  ORCHECK GETMONO  ORCHECK GETMONOL  ORCHECK GETXTRA  ORCHECK ISMONO  
ORCMED  ORCMENU1  ORNORC  ORQ2  ORSRCHOR  ORWDXC  
Adverse Reaction Tracking 2 GMRAFX3  GMRAUTL2  
Barcode Medication Administration 1 PSBODO  
Enterprise Health Management Platform 1 HMPWBM1  
Inpatient Medications 1 PSGSICH1  

Entry Points

Name Comments DBIA/ICR reference
DISPLAY ; -- DISPLAY event [called from ORCDLG,ORCACT4,ORCMED]
; Expects ORVP, ORNMSP, ORTAB, [ORWARD]
SELECT ; -- SELECT event
; Expects ORVP, ORDAILOG(PROMPT,ORI), ORNMSP
ACCEPT(MODE) ; -- ACCEPT event [called from ORCDLG,ORCACT4,ORCMED]
; Expects ORVP, ORDIALOG(), ORNMSP
STUF
DELAY(MODE) ; -- Delayed ACCEPT event [called from ORMEVNT]
; Expects ORVP, ORIFN
BLD(ORDER) ; -- Build new ORX(#) for ORDER
REMDUPS ;
START(DA) ; -- Returns start date/time
DRUG(OI,PTR,IFN) ; -- Returns 6 ^-piece identifier for Dispense Drug
D1
IV() ; -- Get Dispense Drug for IV orderable
LIST(IFN) ; -- Displays list of ORCHECK(IFN) checks
CANCEL() ; -- Returns 1 or 0: Cancel order(s)?
REASON() ; -- Reason for overriding order checks
; I '$D(^XUSEC("ORES",DUZ)),'$D(^XUSEC("ORELSE",DUZ)) Q ??
SESSION ; -- SESSION event [called from ORCSIGN]
; Expects ORVP, ORES()
FDBDOWN(ORX) ; -- Checks to see if the FDB was down and if so set appropriate OC
; expects ORCHECK array of order checks
; if ORX is 1 then this is getting called from SESSION order checks
RETURN ; -- Return checks in ORCHECK(ORIFN,CDL,#)
ALGASS(ORIFN) ;see if patient from order has an allergy assessment
OCAPI(IFN,ORPLACE) ;IA #4859
ISMONO(ORY) ;returns 1 if there is monograph data for the orderchecks being presented to the user
GETMONOL(ORY) ;returns a list of monographs available for the orderchecks being presented to the user
GETMONO(ORY,ORMONO) ;return a monograph
DELMONO(ORY) ;delete monograph data
GETXTRA(ORY,ORGL,ORRULE) ;get extra text for an order check

External References

Name Field # of Occurrence
^%DT START+8
$$GET1^DIQ BLD+4
^DIR CANCEL+6, REASON+5
EN1^GMRAOR1 ALGASS+2
$$PTR^ORCD ACCEPT+6, ACCEPT+8, STUF+1, DRUG+4, IV+3, IV+4
$$OCAPI^ORCHECK SESSION+9
TXT^ORCHTAB LIST+6
$$VALUE^ORCSAVE2 BLD+19, IV+4
ADMIN^ORCSAVE2 START+7
AM^ORCSAVE2 START+6
NEXT^ORCSAVE2 START+6
OC^ORCSAVE2 DELAY+6
$$DSDWNMSG^ORDSGCHK FDBDOWN+11
EN^ORKCHK DISPLAY+8, SELECT+6, ACCEPT+9, STUF+4, DELAY+5, SESSION+38
$$USID^ORMBLD SELECT+5, STUF+2, BLD+18
GETOC5^OROCAPI1 OCAPI+15, OCAPI+17
$$NAME50^ORPEAPI D1+1
MAYBEIV^ORWDXR01 BLD+9
$$ENDCM^PSJORUTL D1
ENDDIV^PSJORUTL IV+5
$$GET^XPAR DISPLAY+2, SELECT+2, ACCEPT+3, DELAY+2, SESSION+3
$$PATCH^XPDUTL ISMONO+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

Used in RPC

RPC Name Call Tags
ORCHECK ISMONO ISMONO
ORCHECK GETMONO GETMONO
ORCHECK GETMONOL GETMONOL
ORCHECK DELMONO DELMONO
ORCHECK GETXTRA GETXTRA

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] BLD+1, BLD+4, BLD+16, BLD+17, START+2, DRUG+3, SESSION+8, ALGASS+1, OCAPI+15
^ORD(100.05 - [#100.05] SESSION+27, SESSION+28, SESSION+32, SESSION+34, SESSION+35
^ORD(100.98 - [#100.98] DISPLAY+5, ACCEPT+8, BLD+5, DRUG+2
^ORD(101.43 - [#101.43] IV+2
^TMP("OR" DISPLAY+6
^TMP($J ACCEPT+2!, SESSION+2!, SESSION+6!, SESSION+9!, SESSION+11, SESSION+12, SESSION+13, SESSION+14, SESSION+15, SESSION+17
SESSION+18, SESSION+19, SESSION+20, SESSION+21, SESSION+22, SESSION+23, SESSION+24*, SESSION+25, SESSION+27, SESSION+28
SESSION+29, SESSION+30, SESSION+31, SESSION+32, SESSION+33, SESSION+34*, SESSION+35*, SESSION+36*, SESSION+37!, FDBDOWN+21*
, FDBDOWN+23*, FDBDOWN+24*, FDBDOWN+25*, OCAPI+19*, OCAPI+20*, OCAPI+21*, OCAPI+22*, OCAPI+23*, OCAPI+24*, OCAPI+25*
, OCAPI+26*, OCAPI+27*, ISMONO+3, GETMONOL+1, GETMONOL+3, GETMONOL+4, GETMONO+1, GETMONO+2!, GETMONO+3*, GETMONO+4!
, GETMONO+5, DELMONO+1!, GETXTRA+2, GETXTRA+3

Label References

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

Naked Globals

Name Field # of Occurrence
^(0 BLD+4, BLD+17
^(1 BLD+17

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
%DT START+1~, START+8*
CDL REMDUPS+1~, REMDUPS+3*, REMDUPS+4, REMDUPS+5, REMDUPS+7, REMDUPS+9, REMDUPS+10, REMDUPS+12, REMDUPS+14, REMDUPS+15
RETURN+1~, RETURN+3*, RETURN+5
CDL2 REMDUPS+1~, REMDUPS+6*, REMDUPS+7, REMDUPS+8, REMDUPS+9, REMDUPS+11, REMDUPS+12, REMDUPS+13
CNT OCAPI+12~, OCAPI+13*, OCAPI+18*, OCAPI+19, OCAPI+20, OCAPI+21, OCAPI+22, OCAPI+23, OCAPI+24, OCAPI+25
, OCAPI+26, OCAPI+27, OCAPI+28
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*
DIROUT REASON+2~
DIRUT REASON+2~
DTOUT REASON+2~, REASON+5
DUOUT REASON+2~, REASON+5
I DISPLAY+3~, DISPLAY+5*, DISPLAY+6*, DISPLAY+9*, REMDUPS+1~, REMDUPS+4*, REMDUPS+5, REMDUPS+7, REMDUPS+10, REMDUPS+14
REMDUPS+15, START+1~, START+4*, START+5, SESSION+4~, SESSION+11*, SESSION+12, SESSION+13, SESSION+14, SESSION+15
SESSION+17, SESSION+18, SESSION+19, SESSION+20, SESSION+21, SESSION+22, SESSION+23, SESSION+24, SESSION+25, SESSION+27
SESSION+28, SESSION+29, SESSION+30, SESSION+31, SESSION+32, SESSION+34, SESSION+35, SESSION+36, FDBDOWN+5~*, FDBDOWN+8
, FDBDOWN+9, FDBDOWN+11, FDBDOWN+12, FDBDOWN+13, FDBDOWN+18, FDBDOWN+20, RETURN+1~*, RETURN+2, RETURN+3, RETURN+5
, OCAPI+12~, OCAPI+18*, OCAPI+19, OCAPI+20, OCAPI+21, OCAPI+22, OCAPI+23, OCAPI+24, OCAPI+25, OCAPI+26
, OCAPI+27, GETMONOL+2~*, GETMONOL+3*, GETMONOL+4
IDX BLD+8~, BLD+11*, BLD+12
IFN REMDUPS+1~, REMDUPS+2*, REMDUPS+3, REMDUPS+4, REMDUPS+5, REMDUPS+6, REMDUPS+7, REMDUPS+8, REMDUPS+10, REMDUPS+11
REMDUPS+13, REMDUPS+14, REMDUPS+15, DRUG~, DRUG+3, IV+4, LIST~, LIST+2, LIST+4, LIST+5
RETURN+1~, RETURN+2*, RETURN+4, RETURN+5, OCAPI~, OCAPI+13
INST BLD+2~, BLD+17*, BLD+19
>> IOINHI LIST+3
>> IOINORM LIST+3
ITEM BLD+2~, BLD+17*, BLD+18, BLD+20
J REMDUPS+1~, REMDUPS+7*, REMDUPS+8, REMDUPS+11, REMDUPS+13, FDBDOWN+8~*, FDBDOWN+9, FDBDOWN+11, FDBDOWN+12, FDBDOWN+13
K FDBDOWN+9~*, FDBDOWN+10, FDBDOWN+11, FDBDOWN+12, FDBDOWN+13
MODE ACCEPT~, ACCEPT+5*, ACCEPT+9, STUF+4, DELAY~, DELAY+3*, DELAY+5, DELAY+6
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+4~, ACCEPT+6*, ACCEPT+7, ACCEPT+8*, STUFSTUF+2, DRUG~
, IV+2
ON LIST+1~, LIST+3*, LIST+5, LIST+7
ORARRAY ALGASS+2!, ALGASS+3
ORCHECK DELAY+3~, REMDUPS+11*, REMDUPS+15*, SESSION+15*, SESSION+17, SESSION+23, SESSION+31, FDBDOWN+3, RETURN+5*
ORCHECK( REMDUPS+2, REMDUPS+3, REMDUPS+4, REMDUPS+5, REMDUPS+6, REMDUPS+7, REMDUPS+8, REMDUPS+10*, REMDUPS+11!, REMDUPS+13*
REMDUPS+14*, REMDUPS+15!, LIST+2, LIST+4, LIST+5, SESSION+15*, SESSION+17, SESSION+23*, SESSION+31*, FDBDOWN+5
, FDBDOWN+8, FDBDOWN+9, FDBDOWN+11!, FDBDOWN+12!, FDBDOWN+13, FDBDOWN+20*, RETURN+4, RETURN+5*
ORCHECK("IFN" CANCEL+2, SESSION+10*, RETURN+4*
ORCHECK("OK" DELAY+6*
ORCHKNM SESSION+4~, SESSION+17*, SESSION+19*, SESSION+21*
ORCNT FDBDOWN+22~*, FDBDOWN+23*, FDBDOWN+24*, FDBDOWN+25*
ORCROC1 SESSION+26~, SESSION+27*, SESSION+30
ORCROC2 SESSION+26~, SESSION+28*, SESSION+30
ORDD DRUG+1~, DRUG+2*, DRUG+3*, DRUG+4*, D1D1+1
ORDER BLD~, BLD+1, BLD+4, BLD+6, BLD+9, BLD+12, BLD+16, BLD+17, BLD+18, BLD+19
, BLD+20
ORDFN ALGASS+1~*, ALGASS+2
ORDG DISPLAY+5, ACCEPT+8, BLD+2~, BLD+4*, BLD+5, DRUG+2
>> ORDIALOG( SELECT+4, ACCEPT+7, ACCEPT+8, STUFSTUF+1, START+4, START+5, DRUG+4, IV+4
ORDODSG SELECT+3~, SELECT+4*, SELECT+6, ACCEPT+4~, ACCEPT+6*, ACCEPT+9, STUF+4, DELAY+3~, DELAY+4*, DELAY+5
ORDSG FDBDOWN+6~, FDBDOWN+7*, FDBDOWN+11*, FDBDOWN+15, FDBDOWN+25
ORENH FDBDOWN+6~, FDBDOWN+7*, FDBDOWN+12*, FDBDOWN+15, FDBDOWN+23, FDBDOWN+24
>> ORES( SESSION+7
ORFLAG OCAPI+12~, OCAPI+13*, OCAPI+15*, OCAPI+17
ORGL GETXTRA~, GETXTRA+2, GETXTRA+3
ORGLOB SESSION+4~, SESSION+5*, SESSION+6, SESSION+23, SESSION+24, SESSION+30
ORI SELECT+4, ACCEPT+4~, ACCEPT+7*, ACCEPT+8*, STUFSTUF+1, BLD+2~, BLD+5*, BLD+6*, BLD+16*
, BLD+17, LIST+1~, LIST+4*, LIST+5, SESSION+24~*
ORID ACCEPT+4~, STUF+2*, STUF+3
ORIFN DELAY+5, SESSION+4~, SESSION+7*, SESSION+8, SESSION+9, SESSION+12, SESSION+15, SESSION+17, SESSION+23, SESSION+31
, ALGASS~, ALGASS+1
ORIT ACCEPT+4~, STUF*, STUF+2, STUF+3
ORITEMS BLD+8~, BLD+9, BLD+10, BLD+11, BLD+12
ORJ LIST+1~, LIST+7*
ORKGLOB FDBDOWN+18~*, FDBDOWN+20, FDBDOWN+21, FDBDOWN+23, FDBDOWN+24, FDBDOWN+25
ORMAIN FDBDOWN+19~*, FDBDOWN+20, FDBDOWN+21, FDBDOWN+23, FDBDOWN+24, FDBDOWN+25
ORMAX LIST+1~, LIST+6*
ORMONO GETMONO~, GETMONO+1, GETMONO+3
ORMONOI SESSION+33~*, SESSION+34, SESSION+35, SESSION+36
ORN OCAPI+12~, OCAPI+13*, OCAPI+15, OCAPI+17, OCAPI+18, OCAPI+19, OCAPI+20, OCAPI+21, OCAPI+22, OCAPI+23
, OCAPI+24, OCAPI+25, OCAPI+26
ORNDF DRUG+1~, D1*, D1+1
ORNEXT FDBDOWN+6~, FDBDOWN+7*, FDBDOWN+10*, FDBDOWN+20
>> ORNMSP DISPLAY+4, DISPLAY+5*, DISPLAY+6*, DISPLAY+7, SELECT+5, STUF+1, STUF+2, STUF+3
ORPIECE1 SESSION+26~, SESSION+29*, SESSION+31
ORPIECE2 SESSION+26~, SESSION+30*, SESSION+31
ORPLACE OCAPI~, OCAPI+19, OCAPI+20, OCAPI+21, OCAPI+22, OCAPI+23, OCAPI+24, OCAPI+25, OCAPI+26, OCAPI+27
ORRULE GETXTRA~, GETXTRA+2, GETXTRA+3
ORSP ACCEPT+4~, STUF*, STUF+1*, STUF+5
ORSTRT ACCEPT+4~, ACCEPT+6*, STUF+5
>> ORTAB DISPLAY+6
ORTHERE FDBDOWN+6~, FDBDOWN+7*, FDBDOWN+13*, FDBDOWN+17
ORTX LIST+1~, LIST+6!, LIST+7
ORTX( LIST+7
>> ORVP DISPLAY+8, SELECT+6, ACCEPT+9, STUF+4, DELAY+5, SESSION+38
>> ORWARD DISPLAY+6
ORX DISPLAY+3~, DISPLAY+7*, DISPLAY+8, SELECT+3~, SELECT+5*, SELECT+6, ACCEPT+4~, ACCEPT+6*, ACCEPT+9, STUF+5*
, DELAY+3~, DELAY+5, BLD+12*, BLD+13, BLD+20*, SESSION+4~, SESSION+38, FDBDOWN~, FDBDOWN+21, FDBDOWN+25
ORX( STUF+5*, BLD+12*, BLD+13*, BLD+20*
ORX(1 DISPLAY+7*, SELECT+5*
>> ORXFER DISPLAY+6
ORXSETIV BLD+2~, BLD+3*, BLD+14*, BLD+15
ORY DISPLAY+3~, DISPLAY+8, SELECT+3~, SELECT+6, ACCEPT+4~, ACCEPT+9, STUF+4, STUF+5!, DELAY+3~, DELAY+5
, IV+1~, IV+5, IV+6, SESSION+4~, SESSION+38, ISMONO~, ISMONO+1*, ISMONO+3*, GETMONOL~, GETMONO~
, GETMONO+5*, DELMONO~, GETXTRA~, GETXTRA+3*
ORY( DISPLAY+9, RETURN+1, RETURN+2, RETURN+3, RETURN+5, GETMONOL+4*
ORZ ACCEPT+4~, STUF+3*, STUF+4, STUF+5!, LIST+1~, LIST+2*, LIST+3, LIST+4, LIST+5
ORZ(1 STUF+3*, STUF+5
OVRIDE REMDUPS+1~, REMDUPS+5*, REMDUPS+10, REMDUPS+13
OVRIDE2 REMDUPS+1~, REMDUPS+8*, REMDUPS+10, REMDUPS+13
PKG BLD+2~, BLD+4*, BLD+5*, BLD+7, BLD+18, BLD+19, BLD+20
>> PROMPT SELECT+4
PSOI IV+1~, IV+2*, IV+5
PTR BLD+2~, BLD+17*, BLD+18, DRUG~, IV+3
RET OCAPI+12~, OCAPI+15, OCAPI+17, OCAPI+18
RET( OCAPI+18, OCAPI+19, OCAPI+20, OCAPI+21, OCAPI+22, OCAPI+23, OCAPI+24, OCAPI+25, OCAPI+26
SPEC BLD+2~, BLD+19*, BLD+20
START BLD+2~, BLD+6*, BLD+13, BLD+20
TYPE IV+1~, IV+3*, IV+4, IV+5
U DISPLAY+5, DISPLAY+6, DISPLAY+9, BLD+4, BLD+5, BLD+11, BLD+12, BLD+17, REMDUPS+5, REMDUPS+7
REMDUPS+8, REMDUPS+10, REMDUPS+13, REMDUPS+14, REMDUPS+15, START+4, D1+1, IV+2, LIST+5, SESSION+8
SESSION+15, SESSION+19, SESSION+21, SESSION+23, SESSION+27, SESSION+28, SESSION+30, SESSION+31, RETURN+2, RETURN+3
RETURN+5, ALGASS+1, OCAPI+15, OCAPI+19, OCAPI+20, OCAPI+24, OCAPI+25, OCAPI+26, GETMONOL+4
USID BLD+2~, BLD+18*, BLD+20
VOL IV+1~, IV+2*, IV+4*, IV+5
X START+1~, START+2*, START+5*, START+6, START+7, START+8, LIST+5*, CANCEL+1~, REASON+2~, SESSION+4~
Y START+1~*, START+8*, START+9, DRUG+1~, D1+1*, D1+2, CANCEL+1~, CANCEL+7, REASON+2~, REASON+5*
, REASON+6, SESSION+4~
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All