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 |  Naked Globals |  Local Variables |  Marked Items |  All
Print Page as PDF
Routine: ORMBLD

Package: Order Entry Results Reporting

Routine: ORMBLD


Information

ORMBLD ; SLC/MKB/JDL - Build outgoing ORM msgs ;05/10/17 10:08

Source Information

Source file <ORMBLD.m>

Call Graph

Call Graph

Call Graph Total: 16

Package Total Call Graph
Order Entry Results Reporting 11 ($$NMSP,$$PTR,GETDLG1,GETORDER)^ORCD  ($$VALUE,STATUS)^ORCSAVE2  ALG^ORMBLDAL  (ADDN,DIET,IP,TF,TRAY)^ORMBLDFH  CSLT^ORMBLDGM  (CH,XO)^ORMBLDLR  (ADT,EN)^ORMBLDOR  IV^ORMBLDPS  
EN^ORMBLDRA  (DC,EN)^ORMBLDSD  CA^ORMBLDVB  
Kernel 3 ($$FMTHL7,$$NOW)^XLFDT  $$PATCH^XPDUTL  MSG^XQOR  
Dietetics 1 EN^FHWOR8  
VA FileMan 1 $$GET1^DIQ  

Caller Graph

Legends:

Legend of Colors

Package Component Superscript legend

protocol O screenman SM broker B event driver Ed print P extended action Ea limited protocol LP edit E server Se subscriber Su inquire I run routine RR action A

Caller Graph

Caller Graph Total: 28

Package Total Caller Graph
Order Entry Results Reporting 27 ITEMS  ORCFLAG  ORCHECK  ORCSEND  ORCSEND1  ORCSEND2  ORCSEND3  ORCSIGN  
OREVNT1  ORM  ORMBLDFH  ORMBLDGM  ORMBLDLR  ORMBLDOR  ORMBLDPS  ORMBLDRA  
ORMEVNT1  ORMLR1  ORMSD  ORWDFH  ORWDX  ORY129  ^ORD(101.41  ORMVBEC  
ORWDRA32  ORWDXC  ORY350  
Scheduling 1 SDHL7BLD  

Entry Points

Name Comments DBIA/ICR reference
NEW(IFN,CODE) ; -- Send NW order message to pkg
REASON(X,N) ; -- Returns 6 ^-piece format of reason X
; N ^ NATURE ^ 99ORN ^ # ^ Reason ^ 99ORR
FH ; -- new Diet order
MSH(TYPE,TO) ; -- MSH segment
NAME(NMSP) ; -- Returns name of pkg NMSP
PV1(OBJ,TYPE,LOC,VISIT,APPTDT) ; -- PV1 segment
BTS(PAT) ; -- Send batch trailer segment/message to Lab
HL7DATE(DATE) ; -- FM -> HL7 format
PS ; -- new Pharmacy order
USID(OI) ; -- Returns Univ Serv ID for Orderable Item
NATURE(X) ; -- Returns 3 ^-piece identifier for nature X
PID(DFN) ; -- PID segment
LR ; -- new Lab order
RA ; -- new Radiology order
BHS(PAT) ; -- Send batch header segment/message to Lab
IP() ; -- Returns ORIFN^Type if pt has active isolation order (or 0 if not)
GMRC ; -- new Consult order
GMRA ; -- new Allergy order
TEST(ORIFN) ; -- Build/display HL7 msgs w/o sending
MSG(IFN,CODE,REASON) ; -- Send all other order msgs
OR ; -- new Generic order
SD ;

External References

Name Field # of Occurrence
$$GET1^DIQ IP+4, PS+4
EN^FHWOR8 FH+1
$$NMSP^ORCD NEW+6, MSG+5
$$PTR^ORCD NEW+12
GETDLG1^ORCD NEW+9
GETORDER^ORCD NEW+9
$$VALUE^ORCSAVE2 IP+4, PS+5
STATUS^ORCSAVE2 PS+6
ALG^ORMBLDAL GMRA+2
ADDN^ORMBLDFH FH+6
DIET^ORMBLDFH FH+7
IP^ORMBLDFH FH+3
TF^ORMBLDFH FH+5
TRAY^ORMBLDFH FH+4
CSLT^ORMBLDGM GMRC+1
CH^ORMBLDLR LR+2
XO^ORMBLDLR LR+1
ADT^ORMBLDOR OR+1
EN^ORMBLDOR OR+2
IV^ORMBLDPS PS+8
EN^ORMBLDRA RA+1
DC^ORMBLDSD MSG+13
EN^ORMBLDSD SD+1
CA^ORMBLDVB MSG+6
$$FMTHL7^XLFDT PV1+2, HL7DATE+1
$$NOW^XLFDT NEW+13, MSG+15, BHS+1, MSH+2, IP+2
$$PATCH^XPDUTL PV1+4, GMRA+1
MSG^XQOR NEW+16, MSG+21, BHS+3, BTS+2

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^FH(119.4 - [#119.4] GET1^DIQ
^DIC(9.4 - [#9.4] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DPT - [#2] PID+3, PV1+3
^OR(100 - [#100] NEW+5, NEW+12, MSG+4, MSG+9, MSG+17, IP+3, PS+7
^ORD(100.02 - [#100.02] NATURE+1
^ORD(100.03 - [#100.03] REASON+2
^ORD(100.98 - [#100.98] MSG+18, IP+2, OR+1, FH+3, FH+4, FH+5, FH+6, LR+3, PS+8
^ORD(101.41 - [#101.41] PS+8
^ORD(101.43 - [#101.43] USID+1
^TMP("ORWORD" NEW+2!, NEW+14!, MSG+1!, MSG+20!

Label References

Name Line Occurrences
$$HL7DATE NEW+13, MSG+15, BHS+1, MSH+2
$$MSH NEW+10, MSG+12
$$NAME MSH+2
$$NATURE NEW+13, REASON+3
$$PID NEW+10, MSG+12, BHS+2, BTS+1
$$PV1 NEW+11, MSG+14
$$REASON MSG+15
$$USID MSG+17
@( NEW+14, LR+6, PS+9
MSG PS+7
NEW TEST+1

Naked Globals

Name Field # of Occurrence
^( MSG+17, IP+3
^(3 NEW+5, MSG+4
^(4 MSG+4
^(8 NEW+5

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
APPTDT PV1~, PV1+2*, PV1+5
CODE NEW~, NEW+4*, NEW+13, MSG~, MSG+8*, MSG+11, MSG+13, MSG+15, MSG+16, MSG+19
, LR+1, SD+1
DA MSG+3~, MSG+9*
DATE HL7DATE~, HL7DATE+1
DFN PID~, PID+2, PID+4
DG MSG+3~
>> DGPMA MSG+15
DGQUIET NEW+2~, NEW+3*, MSG+1~, MSG+2*
DUZ MSG+15
DUZ(2 BHS+1, MSH+2
I MSG+3~, MSG+12*, MSG+14*, MSG+15*, MSG+16, MSG+17*, MSG+19*
IFN NEW~, NEW+5, NEW+9, MSG~, MSG+4, MSG+6, MSG+9, MSG+15, MSG+17, PS+5
, PS+6
IVDLG PS+3~*, PS+8
LOC PV1~, PV1+5, PV1+6
LOCAL USID+1~, USID+3*, USID+4
MSH MSH+1~, MSH+2*, MSH+3
N REASON~, REASON+3*
NATL USID+1~, USID+2*, USID+4
NATR MSG+3~, MSG+10*, MSG+15
NMSP NAME~, NAME+1, NAME+2, NAME+3, NAME+4, NAME+5, NAME+6, NAME+7, NAME+8
OBJ PV1~, PV1+3
OI MSG+3~, MSG+17*, USID~, USID+1
OITEM USID+1~*, USID+2, USID+3
OR0 NEW+4~, NEW+5*, NEW+6, NEW+8, NEW+11, NEW+13, MSG+3~, MSG+4*, MSG+5, MSG+12
, MSG+14, MSG+18, PS+3, PS+4
OR3 NEW+4~, NEW+5*, NEW+12, PS+5, PS+7
OR8 NEW+4~, NEW+5*, NEW+13, MSG+3~, MSG+9*, MSG+10
ORDG NEW+4~, NEW+6*, OR+1, FH+3, FH+4, FH+5, FH+6, LR+3, PS+8
ORDIALOG NEW+4~, NEW+8*, NEW+9
ORDIALOG( NEW+12
ORIFN IP+1~, IP+3*, IP+4, TEST~, TEST+1
ORMSG NEW+2~, NEW+15, NEW+16, MSG+1~, MSG+21, BHS+1~, BHS+3, BTS+1~, BTS+2, PS+6!
ORMSG( MSG+14*, MSG+15*, MSG+16*, MSG+17*, MSG+19*
ORMSG(0 NEW+3, MSG+2
ORMSG(1 NEW+10*, MSG+12*, BHS+1*, BTS+1*
ORMSG(2 NEW+10*, MSG+12*, BHS+2*, BTS+1*
ORMSG(3 NEW+11*
ORMSG(4 NEW+13*
ORN NATURE+1~*, NATURE+2
>> ORNP MSG+10
ORPARAM FH+1~
ORPARAM(3 FH+2*
ORPARENT NEW+4~, NEW+12*, NEW+13
ORPKG NEW+2~, NEW+6*, NEW+7, NEW+10, NEW+14, NEW+16, MSG+1~, MSG+5*, MSG+6, MSG+7
, MSG+8*, MSG+12, MSG+13, MSG+14, MSG+15, MSG+16, MSG+17, MSG+21, REASON+4, LR+2*
, LR+6*
ORR REASON+2~*, REASON+3, REASON+4
ORVP NEW+4~, NEW+6*, NEW+10, NEW+11, IP+3, FH+1
ORZTEST NEW+15*, TEST+1!*
PACH PV1+1~, PV1+4*, PV1+5, PV1+6
PAT BHS~, BHS+2, BTS~, BTS+1
PID PID+1~, PID+2*, PID+3*, PID+4*, PID+5
PKG PS+4~*, PS+9
PKGID MSG+3~, MSG+4*, MSG+15
PROV MSG+3~, MSG+10*, MSG+15
PTR PID+1~, PID+2*, PID+3, PID+4
PV1 PV1+1~, PV1+5*, PV1+6*, PV1+7
RB PV1+1~*, PV1+3*, PV1+5, PV1+6
REASON MSG~, MSG+6, MSG+15
ROOT PID+1~, PID+2*, PID+3, PID+4
START IP+1~, IP+2*, IP+3*
STS MSG+3~, MSG+4*, MSG+16
SUB LR+3~*, LR+4*, LR+5*, LR+6
TO MSH~, MSH+2
TYPE MSG+3~, MSG+11*, MSG+12, MSH~, MSH+2, PV1~, PV1+3, PV1+5, PV1+6, IP+1~
, IP+2*, IP+3, IP+4*
U NEW+6, NEW+7, NEW+8, NEW+11, NEW+12, NEW+13, MSG+4, MSG+5, MSG+7, MSG+10
, MSG+12, MSG+14, MSG+15, MSG+18, PID+3, PID+4, PV1+3, PV1+5, PV1+6, USID+2
, USID+3, USID+4, NATURE+2, REASON+3, REASON+4, IP+3, IP+4, LR+3, PS+3, PS+4
, PS+5, PS+7
VISIT PV1~, PV1+5, PV1+6
X NATURE~, NATURE+1, REASON~, REASON+2, REASON+4
Y NATURE+1~, NATURE+2*, NATURE+3, REASON+2~, REASON+3*, REASON+4*, REASON+5, IP+1~, IP+2*, IP+3*
, IP+4*, IP+5

Marked Items

Name Field # of Occurrence
$T(ALG^ORMBLDAL GMRA+2
$T(CA^ORMBLDVB MSG+6
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  Marked Items |  All