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 |  Entry Points |  External References |  Used in RPC |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  Marked Items |  All
Print Page as PDF
Routine: ORBCMA32

Package: Order Entry Results Reporting

Routine: ORBCMA32


Information

ORBCMA32 ; SLC/JLI - Pharmacy Calls for GUI Dialog 02/11/2008

Source Information

Source file <ORBCMA32.m>

Call Graph

Call Graph Total: 13

Package Total Call Graph
Pharmacy Data Management 5 NDF^PSS50  AP^PSS51P1  ALL^PSS51P2  EN^PSSGSGUI  START^PSSJORDF  
Inpatient Medications 3 ORINF^PSIVSP  (ENVOL,ENVOL2)^PSJORUT2  ($$ENDCM,ENDD,ENRFA)^PSJORUTL  
Integrated Billing 1 $$RXST^IBARXEU  
National Drug File 1 $$DFSU^PSNAPIS  
Order Entry Results Reporting 1 GETQLST^ORWDXQ  
Outpatient Pharmacy 1 ($$SC,SC)^PSOCP  
Toolkit 1 $$GET^XPAR  

Entry Points

Name Comments DBIA/ICR reference
SHORT ; from DLGSLCT, get short list of med quick orders
VALQTY(OK,X)
SCLIST ; from DLGSLCT, get options for service connected
DISPDRUG(LST,OI) ; list dispense drugs for an orderable item
AUTH(VAL,PRV) ; For inpatient meds, check restrictions
XPICK
SCHED ; from DLGSLCT, get all pharmacy administration schedules
DEFPICK()
XSCSTS
VALRATE(VAL,X)
FORMALT(ORLST,IEN,PSTYPE) ; return a list of formulary alternatives
INSTRCT ; from OISLCT, get list of potential instructions (based on drug form)
ROUTE ; from OISLCT, get list of routes for the drug form
; ** NEED BOTH ABBREVIATION & NAME IN LIST BOX
DLGSLCT(LST,PSTYPE) ; return default lists for dialog
; PSTYPE: pharmacy type (U=unit dose, F=IV fluids, O=outpatient)
OISLCT(LST,OI,PSTYPE,ORVP) ; return for defaults for pharmacy orderable item
DRUGMSG(VAL,IEN)
DOSES(LST,OI) ; return doses for an orderable item - TEST ONLY
MIXED(X)
ALLROUTE(LST) ; returns a list of all available med routes
PRIOR ; from DLGSLCT, get list of allowed priorities
ISSPLY(VAL,IEN) ; return true if orderable item is a supply
UPPER(X) ; return uppercase
DISPDRG ; from OISLCT, get dispense drugs for this pharmacy orderable item
MEDISIV(VAL,IEN)
SCHEDA ; (similar to SCHED, but also returns administration times)
IVAMT(VAL,OI,ORWTYP)
NXT() ; -- returns next available index in return data array
VALSCH(OK,X,PSTYPE)
VALROUTE(REC,X)
PICKUP ; from DLGSLCT, get prescription routing
TRIM(X) ; trim leading and trailing spaces
MESSAGE ; message
SCSTS(VAL,ORVP,ORDRUG)

External References

Name Field # of Occurrence
$$RXST^IBARXEU SCSTS+3
GETQLST^ORWDXQ SHORT+5
ORINF^PSIVSP VALRATE+3
ENVOL^PSJORUT2 IVAMT+5
ENVOL2^PSJORUT2 IVAMT+4
$$ENDCM^PSJORUTL DRUGMSG+1
ENDD^PSJORUTL DISPDRG+2, DISPDRG+3, DISPDRG+4, DOSES+2
ENRFA^PSJORUTL FORMALT+1
$$DFSU^PSNAPIS DOSES+7
$$SC^PSOCP SCSTS+2
SC^PSOCP SCSTS+2
NDF^PSS50 DOSES+5
AP^PSS51P1 SCHED+3, SCHEDA+3
ALL^PSS51P2 ALLROUTE+4, VALROUTE+4
EN^PSSGSGUI VALSCH+1, VALSCH+2, VALSCH+3, VALSCH+6
START^PSSJORDF INSTRCT+2
$$GET^XPAR DEFPICK+7, AUTH+6

Used in RPC

RPC Name Call Tags
ORBCMA32 DLGSLCT DLGSLCT
ORBCMA32 AUTH AUTH
ORBCMA32 DRUGMSG DRUGMSG
ORBCMA32 FORMALT FORMALT
ORBCMA32 VALROUTE VALROUTE
ORBCMA32 ISSPLY ISSPLY
ORBCMA32 IVAMT IVAMT
ORBCMA32 VALRATE VALRATE
ORBCMA32 VALSCH VALSCH

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^ORD(101.41 - [#101.41] DEFPICK+2, DEFPICK+3, SCSTS+1
^ORD(101.42 - [#101.42] PRIOR+3, PRIOR+4
^ORD(101.43 - [#101.43] DISPDRG+3, DISPDRG+4, INSTRCT+2, MESSAGE+1, MEDISIV+2, ISSPLY+2, IVAMT+3, FORMALT+3, FORMALT+4, DOSES+2
^PSX(550 - [#550] DEFPICK+12
^TMP("ORECALL" DEFPICK+4
^TMP("PSJINS" OISLCT+2!, OISLCT+8!, INSTRCT+4, INSTRCT+5
^TMP("PSJMR" OISLCT+2!, OISLCT+8!, ROUTE+3, ROUTE+4, ROUTE+7, ROUTE+8
^TMP("PSJNOUN" OISLCT+2!, OISLCT+8!, INSTRCT+9, INSTRCT+10
^TMP("PSJSCH" OISLCT+2!, OISLCT+7, OISLCT+8!
^TMP($J SCHED+2!, SCHED+4, SCHED+5!, SCHEDA+2!, SCHEDA+4, SCHEDA+5, SCHEDA+6, ALLROUTE+3!, ALLROUTE+5, ALLROUTE+6
, VALROUTE+2!, VALROUTE+5!, VALROUTE+6, VALROUTE+7, VALROUTE+9, VALROUTE+10, VALROUTE+12!, VALROUTE+14!, DOSES+4!, DOSES+6
, DOSES+10!
^VA(200 - [#200] AUTH+2, AUTH+3
^XUSEC("OREMAS" AUTH+6

Label References

Name Line Occurrences
$$DEFPICK PICKUP+3
$$NXT DLGSLCT+4, DLGSLCT+5, DLGSLCT+7, DLGSLCT+8, DLGSLCT+9, DLGSLCT+11, DLGSLCT+12, SHORT+6, SCHED+4, SCHEDA+7
, PRIOR+4, PICKUP+2, PICKUP+3, SCLIST+1, OISLCT+3, OISLCT+4, OISLCT+5, OISLCT+6, OISLCT+7, DISPDRG+8
, INSTRCT+7, INSTRCT+8, INSTRCT+10, INSTRCT+11, ROUTE+5, ROUTE+6, ROUTE+9, MESSAGE+1, ALLROUTE+6
$$TRIM VALRATE+2
$$UPPER VALROUTE+3, VALROUTE+12, VALRATE+1
DISPDRG OISLCT+3, DISPDRUG+1
INSTRCT OISLCT+4
MESSAGE OISLCT+6
PICKUP DLGSLCT+11
PRIOR DLGSLCT+5, DLGSLCT+9
ROUTE OISLCT+5
SCHED DLGSLCT+8
SCLIST DLGSLCT+12
SHORT DLGSLCT+4, DLGSLCT+7
XPICK DEFPICK+8, DEFPICK+9, DEFPICK+10, DEFPICK+11
XSCSTS SCSTS+2, SCSTS+3

Naked Globals

Name Field # of Occurrence
^( ROUTE+4, ROUTE+8, MESSAGE+1
^($J OISLCT+7
^(0 AUTH+2
^(1 DEFPICK+4

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
ABBR ROUTE+2~, ROUTE+4*, ROUTE+5, ROUTE+8*, ROUTE+9, VALROUTE+1~, VALROUTE+10*, VALROUTE+11*, VALROUTE+12, VALROUTE+13
AMT IVAMT+1~, IVAMT+8*
AMT( IVAMT+7*, IVAMT+8
AUTH AUTH+1~, AUTH+3*, AUTH+4
CNT ROUTE+2~
DLG DEFPICK+1~, DEFPICK+2*, DEFPICK+4
DT AUTH+4
DUZ AUTH+6
EDITONLY PICKUP+1~, DEFPICK+5*
I SHORT+1~, SHORT+6*, DISPDRG+1~, DISPDRG+5*, DISPDRG+6, DISPDRG+7, DISPDRG+8, ROUTE+2~, ROUTE+3*, ROUTE+4
, ROUTE+6, ROUTE+7*, ROUTE+8, MESSAGE+1*, ALLROUTE+1~, ALLROUTE+5*, ALLROUTE+6, IVAMT+1~, IVAMT+7*, IVAMT+10*
, FORMALT+2*, FORMALT+3, FORMALT+4
IEN SCHEDA+1~, SCHEDA+5*, SCHEDA+6, SCHEDA+7, ROUTE+2~, ROUTE+4*, ROUTE+5, ROUTE+6, ROUTE+8*, ROUTE+9
, VALROUTE+1~, VALROUTE+6*, VALROUTE+7*, VALROUTE+8, VALROUTE+9, VALROUTE+10, VALROUTE+13, DRUGMSG~, DRUGMSG+1, MEDISIV~
, MEDISIV+2, ISSPLY~, ISSPLY+2, FORMALT~, FORMALT+1
IINS INSTRCT+1~, INSTRCT+4*, INSTRCT+5
ILST NXT+1*, NXT+2, DLGSLCT+2~*, OISLCT+1~*, DISPDRUG+1~*, ALLROUTE+1~, ALLROUTE+2*, DOSES+1~, DOSES+11*, DOSES+13*
INACT AUTH+1~, AUTH+3*, AUTH+4
INOUN INSTRCT+1~, INSTRCT+9*, INSTRCT+10
INS INSTRCT+1~
INSREC INSTRCT+1~, INSTRCT+5*, INSTRCT+6, INSTRCT+7
IVFLAG IVAMT+1~, IVAMT+2*, IVAMT+4, IVAMT+5
LST DLGSLCT~, OISLCT~, DISPDRUG~, ALLROUTE~, DOSES~
LST( DLGSLCT+4*, DLGSLCT+5*, DLGSLCT+7*, DLGSLCT+8*, DLGSLCT+9*, DLGSLCT+11*, DLGSLCT+12*, SHORT+6*, SCHED+4*, SCHEDA+7*
, PRIOR+4*, PICKUP+2*, PICKUP+3*, SCLIST+1*, OISLCT+3*, OISLCT+4*, OISLCT+5*, OISLCT+6*, OISLCT+7*, DISPDRG+8*
, INSTRCT+7*, INSTRCT+8*, INSTRCT+10*, INSTRCT+11*, ROUTE+5*, ROUTE+6*, ROUTE+9*, MESSAGE+1*, ALLROUTE+6*, DOSES+13*
>> LSTA( DOSES+8*, DOSES+9*, DOSES+11, DOSES+12
NAME VALROUTE+1~, VALROUTE+9*, VALROUTE+11, VALROUTE+12, AUTH+1~, AUTH+2*, AUTH+5
NDF DOSES+1~, DOSES+6*, DOSES+7
NOUN INSTRCT+1~
OI OISLCT~, DISPDRUG~, DISPDRG+3, DISPDRG+4, INSTRCT+2, MESSAGE+1, IVAMT~, IVAMT+2, IVAMT+3, FORMALT+3*
, FORMALT+4, DOSES~, DOSES+2
OK VALSCH~, VALSCH+1*, VALSCH+7*, VALQTY~, VALQTY+4*
ORDRUG SCSTS~, SCSTS+2
ORI DOSES+1~, DOSES+3*, DOSES+11*, DOSES+12, DOSES+13
ORJ DOSES+1~, DOSES+12*, DOSES+13
ORLST FORMALT~, FORMALT+1
ORLST( FORMALT+2, FORMALT+3, FORMALT+4*
ORTMP DISPDRG+1~, DISPDRG+3, DISPDRG+4, DOSES+1~, DOSES+2
ORTMP( DISPDRG+5, DISPDRG+6*, DISPDRG+7*, DISPDRG+8, DOSES+3
ORVP OISLCT~, DISPDRG+3, SCSTS~, SCSTS+2, SCSTS+3
>> ORWDRG DOSES+3*, DOSES+5, DOSES+6
ORWP94 SCSTS+1~*, SCSTS+3
ORWTYP IVAMT~, IVAMT+3, IVAMT+6, IVAMT+9
ORWY IVAMT+1~, IVAMT+4, IVAMT+5
ORWY( IVAMT+7, IVAMT+10
ORWY(0 IVAMT+10
ORX DISPDRG+1~, DISPDRG+2*, DISPDRG+3, DISPDRG+4, VALSCH+3~*, VALSCH+4
PRMT DEFPICK+1~, DEFPICK+3*, DEFPICK+4
PRV AUTH~, AUTH+2, AUTH+3
PSOI IVAMT+1~, IVAMT+3*, IVAMT+4, IVAMT+5
PSTYPE DLGSLCT~, DLGSLCT+3, DLGSLCT+10, SHORT+2, SHORT+3, SHORT+4, OISLCT~, DISPDRUG+1~*, DISPDRG+3, DISPDRG+4
, INSTRCT+3, FORMALT~, FORMALT+1, VALSCH~, VALSCH+3, DOSES+1~*, DOSES+2
REC VALROUTE~, VALROUTE+5*, VALROUTE+8*, VALROUTE+12*, VALROUTE+13*
ROUT ROUTE+2~, ROUTE+4*, ROUTE+5, ROUTE+6, ROUTE+8*, ROUTE+9
SCH SCHEDA+1~, SCHEDA+4*, SCHEDA+5, SCHEDA+7
TMP SHORT+1~, SHORT+5
TMP( SHORT+6
U SCHEDA+7, PRIOR+4, DISPDRG+6, DISPDRG+7, INSTRCT+2, INSTRCT+6, INSTRCT+7, INSTRCT+10, ROUTE+4, ROUTE+5
, ROUTE+6, ROUTE+8, ROUTE+9, ALLROUTE+6, VALROUTE+5, VALROUTE+13, AUTH+2, AUTH+3, DRUGMSG+2, MEDISIV+2
, ISSPLY+2, IVAMT+2, IVAMT+3, IVAMT+8, IVAMT+10, FORMALT+3, FORMALT+4, DOSES+6, DOSES+8, DOSES+9
VAL AUTH~, AUTH+1*, AUTH+5*, AUTH+7*, DRUGMSG~, DRUGMSG+2*, MEDISIV~, MEDISIV+1*, MEDISIV+2*, ISSPLY~
, ISSPLY+1*, ISSPLY+2*, IVAMT~, IVAMT+3*, IVAMT+8*, IVAMT+10*, IVAMT+11*, VALRATE~, VALRATE+3*, SCSTS~
, SCSTS+2*, SCSTS+3*, SCSTS+4*
VAPN DOSES+1~, DOSES+6*, DOSES+7
VERB INSTRCT+1~, INSTRCT+6*, INSTRCT+11
X SHORT+1~, SHORT+2*, SHORT+3*, SHORT+4*, SHORT+5, SCHED+1~, SCHED+4*, SCHEDA+1~, SCHEDA+6*, SCHEDA+7
, PRIOR+1~, PRIOR+2*, PRIOR+3*, PRIOR+4, PICKUP+1~, PICKUP+2*, PICKUP+3*, DEFPICK+1~, DEFPICK+2*, DEFPICK+4*
, DEFPICK+5, DEFPICK+7*, DEFPICK+8*, DEFPICK+9*, DEFPICK+10*, DEFPICK+11*, DEFPICK+12*, XPICK, SCLIST+1*, MIXED~
, MIXED+1, ROUTE+2~, ALLROUTE+1~, VALROUTE~, VALROUTE+3*, VALROUTE+4, VALROUTE+6, VALROUTE+7, VALROUTE+12, AUTH+1~
, AUTH+3*, DRUGMSG+1~*, DRUGMSG+2, VALRATE~, VALRATE+1*, VALRATE+2*, VALRATE+3, UPPER~, UPPER+1, TRIM~
, TRIM+1*, TRIM+2*, TRIM+3, VALSCH~, VALSCH+3, VALSCH+4!*, VALSCH+7, VALQTY~, VALQTY+3!, VALQTY+4
, DOSES+1~, DOSES+7*, DOSES+8, DOSES+9
XREF PRIOR+1~

Marked Items

Name Field # of Occurrence
$T(ENDD^PSJORUTL DISPDRG+2
$T(EN^PSSGSGUI VALSCH+1, VALSCH+2
$T(SC^PSOCP SCSTS+2
Info |  Source |  Call Graph |  Entry Points |  External References |  Used in RPC |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  Marked Items |  All