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

Package: Order Entry Results Reporting

Routine: ORQ1


Information

ORQ1 ;slc/dcm-Get orders for a patient. ;12/14/16 13:10

Source Information

Source file <ORQ1.m>

Call Graph

Call Graph

Call Graph Total: 5

Package Total Call Graph
Order Entry Results Reporting 2 LOOP^ORQ11  EN^ORQ13  
Kernel 1 $$FMADD^XLFDT  
Toolkit 1 $$GET^XPAR  
VA FileMan 1 $$GET1^DIQ  

Caller Graph

Caller Graph Total: 38

Package Total Caller Graph
Order Entry Results Reporting 26 OCXOZ0F  OCXOZ12  ORB3FUP1  ORB3FUP2  ORCACT1  ORCHTAB1  ORDV02D  ORDV04  
OREVNTX1  ORKCHK  ORKLR  ORKLR2  ORKRA  ORMEVNT  ORMEVNT1  ORPRS02  
ORPRS06  ORPRS10  ORQ10  ORQOR1  ORQPTQ1  ORQRY  ORWDXVB2  ORWORB  
ORWORR  ORY195A  
Virtual Patient Record 5 VPRDJ0  VPRDLRO  VPRDOR  VPRDPSOR  VPRSDAQ  
Adverse Reaction Tracking 2 GMRAFX3  GMRAUTL2  
Emergency Department Integration Software 2 EDPCONV  EDPRPT12  
Enterprise Health Management Platform 2 HMPDJ0  HMPDOR  
Health Summary 1 GMTSORC3  

Entry Points

Name Comments DBIA/ICR reference
EN(PAT,GROUP,FLG,EXPAND,SDATE,EDATE,DETAIL,MULT,XREF,GETKID,EVENT) ;Get orders
; Returns orders in ^TMP("ORR",$J,ORLIST,i) for defined context:
EN0 ; where order status=#:
; 1 => Discontinued (dc) 6 => Active (a) 11 => Unreleased (u)
; 2 => Complete (c) 7 => Expired (e) 12 => DC/Edit (dce)
; 3 => Hold (h) 8 => Scheduled (s) 13 => Cancelled (x)
; 4 => Flagged (?) 9 => Partial Results (pr) 14 => Lapsed (l)
; 5 => Pending (p) 10 => Delayed (d) 15 => Renewed (rn)
; 99 => No Status (')
; EXPAND=ifn of parent order, used to expand child orders
; SDATE =Start date
; EDATE =End date
; DETAIL=Data to be returned (optional, default=0):
; 0 => ^TMP("ORR",$J,ORLIST,i) = order #
; 1 => ^TMP("ORR",$J,ORLIST,i) = order #^display group^when entered^
; start d/t^stop d/t^status^sts abbrv
; ^TMP("ORR",$J,ORLIST,i,"TX",j) = order text
; MULT =0:Don't allow multiple occurrances of order
; =1:Allow multiple occurances
; XREF =cross reference to use instead of ACT (AW for completed orders)
; GETKID=includes children of multiple orders
; EVENT =ptr to Patient Event file #100.2, for orders tied to an event
EN1 ; -- start here
ENQ
LIST ;Get entry in ^TMP("ORR",$J,ORLIST)
GRP(DG)
POP
PROC

External References

Name Field # of Occurrence
$$GET1^DIQ EN1+13, EN1+14
LOOP^ORQ11 EN1+13, EN1+14
EN^ORQ13 EN1+11
$$FMADD^XLFDT EN1+10
$$GET^XPAR EN1+9

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^ORD(100.98 - [#100.98] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^ORD(100.98 - [#100.98] EN1+2, GRP+4, PROC
^TMP("ORGOTIT" ENQ!
^TMP("ORR" LIST+2, LIST+3, LIST+4*, LIST+5

Label References

Name Line Occurrences
@( EN1+16, GRP+4
ENQ EN1+11, EN1+13, EN1+14
GRP EN1+8
LIST EN1+8, LIST+2, LIST+3

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
DETAIL EN~, EN1+3*
DG GRP~, GRP+3, PROC*, PROC+1
>> DILOCKTM LIST+2
DT EN1+7, EN1+10
EDATE EN~, EN1+4*, EN1+5*, EN1+7*, EN1+8*
EVENT EN~, EN1+11
EXPAND EN~
FLG EN~, EN1+3*, EN1+7, EN1+11, EN1+16
GETKID EN~
GROUP EN~, EN1+2*, EN1+8, EN1+13, EN1+14
LAPSE EN1+1~, EN1+9*, EN1+10*
MEM GRP+2~, GRP+3*, GRP+4*, POP*, PROC, PROC+1*
MULT EN~, EN1+3*
ORGRP EN1+1~
ORGRP( GRP+3*, PROC+1*
>> ORLIST LIST+1*, LIST+2, LIST+3, LIST+4, LIST+5
ORLST EN1+1~, EN1+8*
PAT EN~, EN1+1
SDATE EN~, EN1+4*, EN1+6*, EN1+7*, EN1+8*
STK GRP+2~, GRP+3*, GRP+4, POP*, PROC, PROC+1*
STK( GRP+3*, GRP+4, POP, PROC*, PROC+1*
STK(0 GRP+3*
U EN1+11, EN1+16
X EN1+1~, EN1+4*, EN1+8*
XREF EN~
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables |  All