Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Entry Points |  Interaction Calls |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call  | 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>

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

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

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
Info |  Source |  Entry Points |  Interaction Calls |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call  | All