ORQ12 ; slc/dcm - Get patient orders in context ;Mar 04, 2019@14:04:01
Source file <ORQ12.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
GET(IFN,NEWD,DETAIL,ACTOR) | ; -- Setup TMP array
; IFN=ifn of order ; NEWD=3rd subscript in ^TMP("ORR",$J, node (ORLIST) ; DETAIL=see description in ^ORQ1 |
|
TEXT(ORTX,ORIFN,WIDTH,ORUGROUP) | ; -- Returns text of order ORIFN in ORTX(#) ;RTW UAP
|
|
T1 | ||
LASTXT(IFN) | ||
LAST(CODE) | ; -- Return DA of last occurence of CODE action
|
|
ACTION(X) | ; -- Returns text of action X
|
|
DATETIME(X) | ; -- Returns date/time in format 00/00/00@00:00am
|
|
NAME(X) | ; -- Returns name as Lname,F
|
|
ADD | ; -- Add text X to ORTX()
|
|
EXPD | ; -- loop through ^XTMP("ORAE" to get expired orders
|
|
GETEIE(IFN,NEWD,DETAIL,ACTOR) | ; -- Setup TMP array
; IFN=ifn of order ; NEWD=3rd subscript in ^TMP("ORR",$J, node (ORLIST) ; DETAIL=see description in ^ORQ1 |
|
GETSTAT(ITEM) | ;
|
FileNo | Call Tags |
---|---|
^OR(100 - [#100] | GET1^DIQ |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^DIC(9.4 - [#9.4] | TEXT+10 |
^OR(100 - [#100] | GET+8, TEXT+4, TEXT+6, TEXT+18, T1, T1+5, T1+10, T1+12, T1+13, LASTXT+2 , LAST+2, LAST+3, EXPD+7, EXPD+8, EXPD+10, EXPD+14, GETEIE+6, GETSTAT+2 |
^ORD(100.01 - [#100.01] | GET+10, GETEIE+8, GETSTAT+3 |
^ORD(100.03 - [#100.03] | T1+11, GETEIE+11 |
^ORD(100.98 - [#100.98] | GET+9, TEXT+8, GETEIE+7 |
^ORD(101.41 - [#101.41] | T1+7 |
^TMP("ORGOTIT" | GET+6*, EXPD+1!, EXPD+5, EXPD+18!, GETEIE+12* |
^TMP("ORR" | GET+7*, GET+13*, GET+14*, EXPD+17*, GETEIE+13*, GETEIE+14*, GETEIE+15* |
^TMP("ORSORT" | EXPD+1!, EXPD+12*, EXPD+13, EXPD+14, EXPD+18! |
^VA(200 - [#200] | NAME+1 |
^XTMP("ORAE" | EXPD+4, EXPD+5, EXPD+7! |
^XTV(8989.51 - [#8989.51] | T1+16 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
ACTOR | GET~, GET+6, GET+7, GET+13, GET+14, EXPD+2~, EXPD+15*, GETEIE~, GETEIE+12, GETEIE+13 , GETEIE+14 |
CODE | LAST~, LAST+2, LAST+3 |
D | DATETIME+1~, DATETIME+2*, DATETIME+4 |
DA | LAST+1~, LAST+2*, LAST+3*, LAST+4 |
DCREAS | GETEIE+5~, GETEIE+10*, GETEIE+11 |
DETAIL | GET~, GET+7, GETEIE~, GETEIE+13 |
DG | GET+5~, GET+9*, GET+13, GETEIE+5~, GETEIE+7*, GETEIE+14 |
DLG | TEXT+1~, T1+7* |
>> EDATE | EXPD+3*, EXPD+4 |
ENTERD | GET+5~, GET+11*, GET+13, GETEIE+5~, GETEIE+9*, GETEIE+14 |
FIRST | TEXT+1~, T1*, T1+5 |
I | LASTXT+1~, LASTXT+2*, NAME+2*, ADD+1~, ADD+4* |
IFN | GET~, GET+6, GET+7, GET+8, GET+13, GET+14, LASTXT~, LASTXT+2, EXPD+2~, EXPD+5* , EXPD+7, EXPD+8, EXPD+10, EXPD+12, EXPD+14*, GETEIE~, GETEIE+6, GETEIE+12, GETEIE+13, GETEIE+14 , GETEIE+15 |
IOST | TEXT+16 |
ITEM | GETSTAT~, GETSTAT+2 |
>> MULT | EXPD+5 |
NEWD | GET~, GET+7, GET+13, GET+14, GETEIE~, GETEIE+13, GETEIE+14, GETEIE+15 |
NOW | EXPD+2~, EXPD+3* |
OR0 | TEXT+1~, TEXT+6*, TEXT+8, TEXT+10, T1+7 |
OR3 | TEXT+1~, TEXT+6*, TEXT+12, TEXT+13, TEXT+14, T1+11 |
OR6 | TEXT+1~, TEXT+6*, T1+11 |
ORACT | TEXT+1~, TEXT+3*, TEXT+4*, TEXT+6, T1+10, T1+12, T1+13 |
ORDG | T1+1~, T1+3* |
>> ORFLG | T1+13 |
>> ORGRP( | EXPD+4 |
ORI | TEXT+1~, TEXT+15*, TEXT+18*, T1+5* |
ORIFN | TEXT~, TEXT+3*, TEXT+4, TEXT+6, T1, T1+3, T1+4, T1+5, T1+10, T1+12 , T1+13, LAST+2, LAST+3 |
ORIG | TEXT+14~*, TEXT+17, TEXT+18 |
ORIGTA | TEXT+14~, TEXT+17*, TEXT+18 |
>> ORIGVIEW | TEXT+9, TEXT+12, T1+6, ACTION+2 |
ORJ | TEXT+1~ |
>> ORLIST | EXPD+17 |
>> ORLST | GET+6*, GET+7, GET+13, GET+14, EXPD+17, GETEIE+12*, GETEIE+13, GETEIE+14, GETEIE+15 |
OROITEM | T1+1~ |
>> ORPAR | T1+16* |
ORREP | EXPD+2~, EXPD+10*, EXPD+11 |
ORTA | TEXT+1~, T1*, T1+4, T1+5 |
>> ORTOADD | T1+4 |
ORTX | TEXT~, TEXT+2!, TEXT+7*, ADD+1, ADD+2*, ADD+3, ADD+4, ADD+5*, ADD+6* |
ORTX( | ADD+1, ADD+2*, ADD+3*, ADD+4*, ADD+5* |
ORTX(1 | TEXT+7*, TEXT+10* |
ORUAPVER | T1+1~, T1+2*, T1+3*, T1+4 |
ORUGROUP | TEXT~, T1+4 |
>> ORUIFN | T1+4* |
>> ORUTA | T1+4* |
ORX | TEXT+1~, TEXT+6*, TEXT+11, TEXT+12, T1, T1+9, T1+11, T1+13* |
ORXZ | T1+10*! |
>> PAT | EXPD+4, EXPD+5, EXPD+7 |
>> SDATE | EXPD+3*, EXPD+4 |
SIEN | GETSTAT+1~, GETSTAT+2*, GETSTAT+3 |
START | GET+5~, GET+11*, GET+13, GETEIE+5~, GETEIE+9*, GETEIE+14 |
STAT | GET+5~, GET+10*, GET+13, GETEIE+5~, GETEIE+8*, GETEIE+14 |
STOP | GET+5~, GET+11*, GET+13, GETEIE+5~, GETEIE+9*, GETEIE+14 |
T | DATETIME+1~, DATETIME+2*, DATETIME+4 |
T1 | DATETIME+1~, DATETIME+2*, DATETIME+3*, DATETIME+4 |
TM | EXPD+2~, EXPD+4*, EXPD+5, EXPD+7, EXPD+12, EXPD+13*, EXPD+14 |
TO | EXPD+2~, EXPD+3*, EXPD+4*, EXPD+5, EXPD+7, EXPD+12, EXPD+13*, EXPD+14 |
TXT | GET+5~, GET+14, GETEIE+5~, GETEIE+15 |
U | GET+9, GET+10, GET+11, GET+13, TEXT+4, TEXT+8, TEXT+10, TEXT+11, TEXT+12, TEXT+13 , TEXT+14, T1, T1+7, T1+9, T1+11, T1+12, T1+13, NAME+1, EXPD+8, EXPD+10 , EXPD+15, GETEIE+7, GETEIE+8, GETEIE+9, GETEIE+10, GETEIE+14, GETSTAT+2, GETSTAT+3 |
USTS | EXPD+2~, EXPD+8*, EXPD+9 |
WIDTH | TEXT~, TEXT+2*, ADD+3, ADD+4, ADD+5 |
X | TEXT+1~, TEXT+8*, TEXT+11*, TEXT+13*, TEXT+15*, TEXT+18*, TEXT+19*, T1+5*, T1+7*, T1+9* , T1+10*, T1+11*, T1+12*, T1+13*, ACTION~, ACTION+2, DATETIME~, DATETIME+2, NAME~, NAME+1 , ADD+2*, ADD+3, ADD+4, EXPD+2~ |
X0 | GET+5~, GET+8*, GET+9, GET+11, EXPD+2~, EXPD+14*, GETEIE+5~, GETEIE+6*, GETEIE+7, GETEIE+9 |
X3 | GET+5~, GET+8*, GET+10, EXPD+2~, EXPD+14*, EXPD+15, GETEIE+5~, GETEIE+6*, GETEIE+8 |
X4 | GET+5~, GET+8*, GETEIE+5~, GETEIE+6* |
X6 | GET+5~, GET+8*, GETEIE+5~, GETEIE+6*, GETEIE+10 |
X7 | EXPD+2~ |
X8 | EXPD+2~ |
>> XQAID | T1+13 |
Y | TEXT+1~, T1+7!, LASTXT+1~*, LASTXT+2*, LASTXT+3, ACTION+1~, ACTION+2*, ACTION+3, DATETIME+1~, DATETIME+4* , DATETIME+5, NAME+1~, NAME+2*, NAME+3*, NAME+4, ADD+1~*, ADD+2*, ADD+3, ADD+4*, ADD+5* , ADD+6* |
Z | DATETIME+1~, DATETIME+2*, DATETIME+3*, DATETIME+4, NAME+1~*, NAME+2, ADD+4*, ADD+5* |