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 |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All
Print Page as PDF
Routine: ORWDXC

Package: Order Entry Results Reporting

Routine: ORWDXC


Information

ORWDXC ; SLC/KCM - Utilities for Order Checking ;01/04/18 13:10

Source Information

Source file <ORWDXC.m>

Call Graph

Call Graph

Call Graph Total: 13

Package Total Call Graph
Order Entry Results Reporting 8 $$NMSP^ORCD  (FDBDOWN,RETURN,SESSION)^ORCHECK  (AM,NEXT,OC)^ORCSAVE2  EN^ORKCHK  $$USID^ORMBLD  DELETE^OROCAPI1  $$NAME50^ORPEAPI  $$DEFDLG^ORWDXQ  
VA FileMan 3 ^%DT  ^DIE  ^DIK  
Inpatient Medications 1 ($$ENDCM,ENDDIV)^PSJORUTL  
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: 12

Package Total Caller Graph
Order Entry Results Reporting 11 ORAREN  ORKPS  ORQQCN2  ORWDXC ACCEPT  ORWDXC DELAY  ORWDXC DELORD  ORWDXC DISPLAY  ORWDXC FILLID  
ORWDXC ON  ORWDXC SAVECHK  ORWDXC SESSION  
Enterprise Health Management Platform 1 HMPWBM1  

Entry Points

Name Comments DBIA/ICR reference
ON(VAL) ; returns E if order checking enabled, otherwise D
FILLID(VAL,DLG) ; Return the FillerID (namespace) for a dialog
DISPLAY(LST,DFN,FID) ; Return list of Order Checks for a FillerID (namespace)
ACCEPT(LST,DFN,FID,STRT,ORL,OIL,ORIFN,ORREN)
DELAY(LST,DFN,FID,STRT,ORL,OIL) ; Return list of Order Checks on Accept Delayed
SESSION(LST,ORVP,ORLST) ; Return list of Order Checks on Release Order
SAVECHK(OK,ORVP,RSN,LST)
DELORD(OK,ORIFN)
USID(ORITMX) ; Return universal svc ID for an orderable item
; ORITMX = OI^NMSP^PKGINFO
CHK2LST ; creates list that can be passed to broker from ORCHECK array
; expects ORCHECK to be present and populates LST
LST2CHK ; create ORCHECK array from list passed by broker
CHECKIT(X) ;remove uncessesary duplication of Duplicate Therapy checks
AINB(A,B) ;if array A is a subset of array B then return 1, else return 0
XINA(X,A) ;if string X is an entry in array A then return 1, else return 0
REMDUPS ;
REMDUPSX ;similar to REMDUPS^ORCHECK
OPOS(DFN) ;handles saving and removing order checks that should only be displayed once per cprs session
; expects ORCHECK
; sets these order checks into the "Once Per cprs Session" global ^TMP($J,"OC-OPOS",DFN)

External References

Name Field # of Occurrence
^%DT ACCEPT+9, DELAY+7
^DIE DELORD+7
^DIK DELORD+9
$$NMSP^ORCD FILLID+4
FDBDOWN^ORCHECK ACCEPT+29
RETURN^ORCHECK ACCEPT+18, ACCEPT+27, DELAY+14
SESSION^ORCHECK SESSION+8
AM^ORCSAVE2 ACCEPT+8, DELAY+6
NEXT^ORCSAVE2 ACCEPT+8, DELAY+6
OC^ORCSAVE2 SAVECHK+4
EN^ORKCHK DISPLAY+3, ACCEPT+17, ACCEPT+26, DELAY+13
$$USID^ORMBLD USID+14
DELETE^OROCAPI1 DELORD+11
$$NAME50^ORPEAPI USID+13
$$DEFDLG^ORWDXQ FILLID+3
$$ENDCM^PSJORUTL USID+12
ENDDIV^PSJORUTL USID+9
$$GET^XPAR ON+1

Used in RPC

RPC Name Call Tags
ORWDXC ON ON
ORWDXC DISPLAY DISPLAY
ORWDXC FILLID FILLID
ORWDXC ACCEPT ACCEPT
ORWDXC SAVECHK SAVECHK
ORWDXC SESSION SESSION
ORWDXC DELORD DELORD
ORWDXC DELAY DELAY

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^OR(100 - [#100] Classic Fileman Calls

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^OR(100 - [#100] DELORD+2, DELORD+5
^ORD(100.8 - [#100.8] CHECKIT+3
^ORD(100.98 - [#100.98] FILLID+7
^ORD(101.41 - [#101.41] FILLID+2, FILLID+4
^ORD(101.43 - [#101.43] USID+6
^TMP($J ACCEPT+1!, ACCEPT+4!, ACCEPT+33!, DELAY+1!, DELAY+17!, SESSION+1!, SESSION+12!, OPOS+12, OPOS+13, OPOS+14
, OPOS+15*

Label References

Name Line Occurrences
$$AINB CHECKIT+13, CHECKIT+18
$$USID ACCEPT+13, DELAY+11
$$XINA AINB+3
CHECKIT ACCEPT+32, SESSION+11
CHK2LST ACCEPT+31, DELAY+16, SESSION+10
LST2CHK SAVECHK+2
OPOS ACCEPT+30, SESSION+9
REMDUPS CHK2LST+2

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
%DT ACCEPT+5~, ACCEPT+9*, DELAY+3~, DELAY+7*
A CHECKIT+12~*, CHECKIT+13, CHECKIT+18, AINB~, XINA~
A( AINB+3, XINA+3
ADDCLASS CHECKIT+14~*, CHECKIT+16, CHECKIT+19~*, CHECKIT+21
B CHECKIT+12~*, CHECKIT+13, CHECKIT+18, AINB~, AINB+3
CDL CHK2LST+3~, CHK2LST+6*, CHK2LST+7, CHK2LST+8, CHK2LST+9, CHK2LST+13*, CHK2LST+14, CHK2LST+15, CHK2LST+16, CHK2LST+19*
, CHK2LST+20, CHK2LST+23, CHK2LST+24, CHK2LST+25, LST2CHK+1~, LST2CHK+6*, LST2CHK+7, LST2CHK+8, REMDUPS+1~, REMDUPS+2*
, REMDUPS+3, REMDUPS+5, REMDUPS+6, REMDUPS+7, REMDUPS+8, REMDUPSX+1~, REMDUPSX+2*, REMDUPSX+3, REMDUPSX+4
CDL2 REMDUPS+1~, REMDUPS+4*, REMDUPS+5, REMDUPS+6, REMDUPS+7
CLASS CHECKIT+5~*, CHECKIT+6
DA DELORD+1~, DELORD+5~, DELORD+6*, DELORD+7!, DELORD+8*
DFN DISPLAY~, DISPLAY+3, ACCEPT~, ACCEPT+17, ACCEPT+26, ACCEPT+30, DELAY~, DELAY+13, OPOS~, OPOS+14
, OPOS+15
DGRP FILLID+1~, FILLID+2*, FILLID+3, FILLID+7
DIE DELORD+5~, DELORD+6*, DELORD+7!
DIK DELORD+1~, DELORD+8*
DLG FILLID~, FILLID+2, FILLID+3*, FILLID+4
DR DELORD+5~, DELORD+6*, DELORD+7!
FID DISPLAY~, DISPLAY+2, ACCEPT~, ACCEPT+15, ACCEPT+24, DELAY~, DELAY+11
I DISPLAY+1~, DISPLAY+4*, SESSION+4*, SESSION+5, SESSION+6, SESSION+7, CHK2LST+3~, CHK2LST+8*, CHK2LST+9, CHK2LST+15*
, CHK2LST+16, CHK2LST+20*, CHK2LST+23, CHK2LST+24, CHK2LST+25, LST2CHK+1~*, LST2CHK+8*, CHECKIT+1~, CHECKIT+2*, CHECKIT+4
, CHECKIT+5, CHECKIT+6, CHECKIT+8, CHECKIT+9*, CHECKIT+10, CHECKIT+11, CHECKIT+12, CHECKIT+14, CHECKIT+15, CHECKIT+17
, CHECKIT+19, CHECKIT+20, AINB+1~, AINB+3*, XINA+1~, XINA+3*, REMDUPS+1~, REMDUPS+3*, REMDUPS+5, REMDUPS+7
, REMDUPS+8, REMDUPSX+1~, REMDUPSX+3*, REMDUPSX+4, OPOS+3~, OPOS+4*, OPOS+5, OPOS+6, OPOS+9, OPOS+11
, OPOS+14
IFN REMDUPS+1~*, REMDUPS+2, REMDUPS+3, REMDUPS+4, REMDUPS+5, REMDUPS+6, REMDUPS+7, REMDUPS+8, REMDUPSX+1~*, REMDUPSX+2
, REMDUPSX+3, REMDUPSX+4
ILST CHK2LST+3~, CHK2LST+4*, CHK2LST+21*, CHK2LST+25*, LST2CHK+1~, LST2CHK+2*, LST2CHK+3, LST2CHK+4, LST2CHK+5
J LST2CHK+4~*, CHECKIT+1~, CHECKIT+7*, CHECKIT+8, CHECKIT+10*, CHECKIT+11, CHECKIT+12, CHECKIT+14, CHECKIT+15, CHECKIT+17
, CHECKIT+21, REMDUPS+1~, REMDUPS+5*, REMDUPS+6, REMDUPSX+4*, OPOS+3~, OPOS+5*, OPOS+6, OPOS+9, OPOS+11
, OPOS+14
K CHECKIT+11*, CHECKIT+12, CHECKIT+16, CHECKIT+19, CHECKIT+20, OPOS+3~, OPOS+6*, OPOS+9, OPOS+11, OPOS+14
LASTIFN CHK2LST+3~, CHK2LST+4*, CHK2LST+21*
LST DISPLAY~, ACCEPT~, ACCEPT+32, DELAY~, SESSION~, SESSION+11, SAVECHK~
LST( DISPLAY+4*, CHK2LST+24*, CHK2LST+25*
LST("ORCHECKS" LST2CHK+2, LST2CHK+3, LST2CHK+4, LST2CHK+5
OIL ACCEPT~, ACCEPT+17, ACCEPT+26, DELAY~, DELAY+13
OIL( ACCEPT+11, ACCEPT+12, ACCEPT+13, ACCEPT+14*, ACCEPT+15, ACCEPT+16, ACCEPT+21, ACCEPT+22, ACCEPT+24, ACCEPT+25
, DELAY+9, DELAY+11, DELAY+12
OK SAVECHK~, SAVECHK+1*, DELORD~, DELORD+2*, DELORD+10*
OLDIFN DELORD+5~*, DELORD+6
OLIST CHK2LST+3~, CHK2LST+4*, CHK2LST+16*
ORCHECK ACCEPT+5~, DELAY+3~, SESSION+2~, SAVECHK+1~, CHK2LST+11!, REMDUPS+6*, REMDUPS+8*, REMDUPSX+4*
ORCHECK( SAVECHK+4, CHK2LST+5, CHK2LST+6, CHK2LST+8, CHK2LST+9, CHK2LST+16*, CHK2LST+19, CHK2LST+20, CHK2LST+23, CHK2LST+24
, CHK2LST+25, LST2CHK+8*, REMDUPS+2, REMDUPS+3, REMDUPS+4, REMDUPS+5, REMDUPS+6!, REMDUPS+7*, REMDUPS+8!, REMDUPSX+2
, REMDUPSX+3, REMDUPSX+4!, OPOS+4, OPOS+5, OPOS+6, OPOS+9, OPOS+11, OPOS+14!
ORCHECK("OK" SAVECHK+3*
ORCHECK2 CHK2LST+3~
ORCHECK2( CHK2LST+9*, CHK2LST+12, CHK2LST+13, CHK2LST+14, CHK2LST+15, CHK2LST+16
ORDODSG ACCEPT+5~, ACCEPT+7*, ACCEPT+17, ACCEPT+26
ORDRUG USID+2~, USID+9, USID+10*, USID+11*, USID+12, USID+13
ORES SESSION+2~
ORES( SESSION+7*
ORI ACCEPT+5~, ACCEPT+11*, ACCEPT+12, ACCEPT+13, ACCEPT+14, ACCEPT+15, ACCEPT+16, ACCEPT+21*, ACCEPT+22, ACCEPT+24
, ACCEPT+25, DELAY+3~, DELAY+9*, DELAY+11, DELAY+12
ORID CHK2LST+3~, CHK2LST+22*, CHK2LST+24, CHK2LST+25
ORIFN ACCEPT~, SAVECHK+1~, SAVECHK+4*, DELORD~, DELORD+2, DELORD+5, DELORD+8, DELORD+11, CHK2LST+3~, CHK2LST+5*
, CHK2LST+6, CHK2LST+8, CHK2LST+9, CHK2LST+10, CHK2LST+12*, CHK2LST+13, CHK2LST+14, CHK2LST+15, CHK2LST+16, CHK2LST+18*
, CHK2LST+19, CHK2LST+20, CHK2LST+21, CHK2LST+22, CHK2LST+23, CHK2LST+24, CHK2LST+25, LST2CHK+1~, LST2CHK+6*, LST2CHK+7
, LST2CHK+8
ORITMX USID~, USID+3, USID+4, USID+6, USID+7, USID+8, USID+11, USID+14
ORL ACCEPT~, ACCEPT+7*, DELAY~, DELAY+5*
ORLST SESSION~
ORLST( SESSION+4, SESSION+5, SESSION+6, SESSION+7
ORNUM CHK2LST+3~, CHK2LST+14*, CHK2LST+15, CHK2LST+16
ORREN ACCEPT~
ORTXT OPOS+7~, OPOS+10*, OPOS+13*, OPOS+14, OPOS+15
ORTXT0 OPOS+7~
ORTXTI OPOS+7~, OPOS+12*, OPOS+13
ORTXTO OPOS+7~, OPOS+8*, OPOS+9, OPOS+10, OPOS+12, OPOS+13
ORVP SESSION~, SESSION+3*, SESSION+9, SAVECHK~
ORX DISPLAY+1~, DISPLAY+2*, DISPLAY+3, ACCEPT+5~, ACCEPT+11*, ACCEPT+15*, ACCEPT+16, ACCEPT+17, ACCEPT+19!, ACCEPT+21*
, ACCEPT+23*, ACCEPT+24, ACCEPT+25, ACCEPT+26, DELAY+3~, DELAY+9*, DELAY+10*, DELAY+11, DELAY+12, DELAY+13
ORX( ACCEPT+15*, ACCEPT+16*, ACCEPT+24*, ACCEPT+25*, DELAY+11*, DELAY+12*
ORX(1 DISPLAY+2*
ORXTRAI OPOS+7~, OPOS+11*, OPOS+12, OPOS+13
ORY DISPLAY+1~, DISPLAY+3, ACCEPT+5~, ACCEPT+17, ACCEPT+18, ACCEPT+19!, ACCEPT+26, ACCEPT+27, DELAY+3~, DELAY+13
, DELAY+14
ORY( DISPLAY+4
PSOI USID+5~, USID+6*, USID+9
RESERVED CHK2LST+3~, CHK2LST+4*, CHK2LST+21*, CHK2LST+24
RET AINB+1~, AINB+2*, AINB+3*, AINB+4, XINA+1~, XINA+2*, XINA+3*, XINA+4
RSLT USID+2~*, USID+12*, USID+13*, USID+14*, USID+15*, USID+16
RSN SAVECHK~, SAVECHK+3
SORT CHK2LST+3~, CHK2LST+4*, CHK2LST+7*, CHK2LST+10*, CHK2LST+17*, CHK2LST+18
SORT( CHK2LST+10*, CHK2LST+17, CHK2LST+18
STR CHECKIT+4~*, CHECKIT+7, CHECKIT+8
STRT ACCEPT~, ACCEPT+7*, ACCEPT+9*, ACCEPT+24, DELAY~, DELAY+5*, DELAY+7*, DELAY+11
STS DELORD+1~, DELORD+2*, DELORD+3
TYPE USID+5~, USID+7*, USID+8, USID+9
U FILLID+2, FILLID+4, FILLID+7, DISPLAY+4, ACCEPT+16, ACCEPT+25, DELAY+12, SESSION+6, SESSION+7, DELORD+2
, DELORD+5, USID+3, USID+4, USID+6, USID+7, USID+8, USID+11, USID+13, USID+15, CHK2LST+23
, CHK2LST+24, CHK2LST+25, LST2CHK+6, LST2CHK+8, CHECKIT+2, CHECKIT+3, CHECKIT+14, CHECKIT+19, REMDUPS+5, REMDUPS+7
, REMDUPS+8
USID ACCEPT+5~, ACCEPT+13*, ACCEPT+14, ACCEPT+15
VAL ON~, ON+1*, FILLID~, FILLID+2*, FILLID+4*, FILLID+5, FILLID+8*
VOL USID+5~*, USID+8*, USID+9
X FILLID+6~, FILLID+7*, FILLID+8, ACCEPT+5~, ACCEPT+7*, ACCEPT+8, ACCEPT+9, DELAY+3~, DELAY+5*, DELAY+6
, DELAY+7, LST2CHK+4*, LST2CHK+5*, LST2CHK+6, LST2CHK+8, CHECKIT~, XINA~, XINA+3
X( CHECKIT+2, CHECKIT+4, CHECKIT+5, CHECKIT+6, CHECKIT+8, CHECKIT+15!, CHECKIT+16*, CHECKIT+20!, CHECKIT+21*
Y ACCEPT+5~, ACCEPT+9*, DELAY+3~, DELAY+7*, CHECKIT+1~
Y( CHECKIT+8*, CHECKIT+9, CHECKIT+10, CHECKIT+11, CHECKIT+12, CHECKIT+15!, CHECKIT+17, CHECKIT+20!
Z CHECKIT+1~
Z( CHECKIT+6*, CHECKIT+14, CHECKIT+19
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All