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 |  All
Print Page as PDF
Routine: ORMSD

Package: Order Entry Results Reporting

Routine: ORMSD


Information

ORMSD ; SLC/AGP - Process Scheduling ORM msgs ;04/05/18

Source Information

Source file <ORMSD.m>

Call Graph

Call Graph

Call Graph Total: 13

Package Total Call Graph
Order Entry Results Reporting 10 EN^ORB3  (GETDLG1,GETORDER)^ORCD  ($$ACTION,RESPONSE)^ORCSAVE  ORDTEXT^ORCSAVE1  (DATES,RELEASE,SIGSTS,STATUS)^ORCSAVE2  CANCEL^ORCSEND  SETALL^ORDD100  EN^ORERR  
$$UNESC^ORHLESC  $$MSH^ORMBLD  
Kernel 2 ($$HL7TFM,$$NOW)^XLFDT  MSG^XQOR  
VA FileMan 1 ^DIE  

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: 1

Package Total Caller Graph
Order Entry Results Reporting 1 ORM  

Entry Points

Name Comments DBIA/ICR reference
UNESC(STR) ;
CREATACT(NATURE) ;
EN(MSG) ; -- main entry point for OR RECEIVE where MSG contains HL7 msg
ENX ;
LASTACT(ORIFN) ;
LASTACTX ;
MSH(RESULT,X,SEG,ERROR) ;
MSA(RESULT,X,SEG,ERROR) ;
SCH(RESULT,X,SEG,ERROR) ;
AIL(RESULT,X,SEG,ERROR) ;
AIG(RESULT,X,SEG,ERROR) ;
NTE(RESULT,X,SEG,ERROR) ;
PID(RESULT,X,SEG,ERROR) ;
PV1(RESULT,X,SEG,ERROR) ; -- Gets Patient location info.
; may not be needed for scheduling
FMDATE(Y) ; -- Convert HL7 date/time to FM format
REJECT(RESULT) ;
ACCEPT(RESULT) ;
DCACK(ORIFN,RESULT) ;
GETSTAT(RESULT) ;
EXPDT(ORIFN) ; -- save exp date when dc'd
VALIDATE(RESULT,ERROR) ;
VALIDATX ;
SAVEREC(RESULT) ;
UPDRESP(ORIFN,ORDIALOG) ;
PMPTMAP(ID) ;
SENDFAIL(ERROR,RESULT) ;
SENDOK(RESULT) ;
PKG(NMSP) ; -- Return Package file ptr for NMSP
PTR(X) ; -- Return ptr to prompt OR GTX X
VALUE(ID) ; -- Return value of ID in ^OR(100,+ORIFN,4.5,"ID")

External References

Name Field # of Occurrence
^DIE SAVEREC+42, SAVEREC+56
EN^ORB3 SAVEREC+47
GETDLG1^ORCD SAVEREC+10
GETORDER^ORCD SAVEREC+10
$$ACTION^ORCSAVE SAVEREC+24
RESPONSE^ORCSAVE SAVEREC+50
ORDTEXT^ORCSAVE1 SAVEREC+50
DATES^ORCSAVE2 ACCEPT+6, SAVEREC+36
RELEASE^ORCSAVE2 SAVEREC+32
SIGSTS^ORCSAVE2 SAVEREC+34
STATUS^ORCSAVE2 REJECT+10, ACCEPT+5, DCACK+5, SAVEREC+22
CANCEL^ORCSEND SAVEREC+46
SETALL^ORDD100 SAVEREC+30
EN^ORERR EN+4, EN+6, SENDFAIL+2
$$UNESC^ORHLESC UNESC+1
$$MSH^ORMBLD SENDFAIL+6, SENDOK+2
$$HL7TFM^XLFDT MSH+2, SCH+8, FMDATE+1
$$NOW^XLFDT REJECT+4, EXPDT+2, SAVEREC+5
MSG^XQOR SENDFAIL+9, SENDOK+4

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)
^DIC(9.4 - [#9.4] PKG+2
^OR(100 - [#100] LASTACT+3, REJECT+4*, REJECT+5*, REJECT+8*, REJECT+9*, ACCEPT+4*, DCACK+6*, EXPDT+1, EXPDT+2, VALIDATE+6
, VALIDATE+9, SAVEREC+13, SAVEREC+17*, SAVEREC+43*, SAVEREC+44*, SAVEREC+50!, SAVEREC+52*, SAVEREC+54, VALUE+2, VALUE+3
^ORD(100.01 - [#100.01] GETSTAT+1, GETSTAT+2, GETSTAT+3
^ORD(100.02 - [#100.02] CREATACT+2, CREATACT+3, REJECT+4
^ORD(100.98 - [#100.98] SAVEREC+7
^ORD(101.41 - [#101.41] SAVEREC+6, PTR+1

Label References

Name Line Occurrences
$$CREATACT SAVEREC+23
$$GETSTAT SAVEREC+20
$$LASTACT SAVEREC+25
$$PKG SAVEREC+10
$$PMPTMAP UPDRESP+3
$$PTR SAVEREC+48, UPDRESP+4, UPDRESP+5, UPDRESP+6
$$UNESC NTE+1
$$VALIDATE EN+15
@( EN+11
ACCEPT EN+13
DCACK ACCEPT+7
ENX EN+12, EN+13, EN+14, EN+15
EXPDT DCACK+4
LASTACTX LASTACT+2
REJECT EN+12
SAVEREC EN+16
SENDFAIL EN+14, EN+15
SENDOK EN+17
VALIDATX VALIDATE+3, VALIDATE+4, VALIDATE+5, VALIDATE+6, VALIDATE+7, VALIDATE+8, VALIDATE+10

Naked Globals

Name Field # of Occurrence
^( PKG+2
^(0 SAVEREC+52*
^(3 REJECT+5
^(6 EXPDT+2*

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
ACTION EN+1~, SCH+4*, SCH+5
AIG EN+1~
AIL EN+1~
ARQ EN+1~
C SAVEREC+1~, UPDRESP+1~
CREATACT SAVEREC+1~, SAVEREC+23*, SAVEREC+24, SAVEREC+25
DA SAVEREC+38~, SAVEREC+39*, SAVEREC+55~, SAVEREC+56*
DA(1 SAVEREC+39*, SAVEREC+40
DATE EN+1~, SCH+6*, SCH+8
DIE SAVEREC+38~, SAVEREC+40*, SAVEREC+55~, SAVEREC+56*
DISPBY SAVEREC+1~
DR SAVEREC+38~, SAVEREC+41*, SAVEREC+55~, SAVEREC+56*
DT ACCEPT+6
ENTER EN+1~
ERROR EN+1~, EN+2*, EN+7, EN+14, EN+15, MSH~, MSA~, SCH~, AIL~, AIG~
, NTE~, PID~, PV1~, VALIDATE~, VALIDATE+3*, VALIDATE+4*, VALIDATE+5*, VALIDATE+6*, VALIDATE+7*, VALIDATE+8*
, VALIDATE+10*, SENDFAIL~, SENDFAIL+2, SENDFAIL+7
FAILMSA EN+1~, EN+7*, EN+12, MSA+5*
FREQ EN+1~, SCH+9*, SCH+10
HASMSA EN+1~, EN+7*, EN+9*, EN+13
I SAVEREC+1~, UPDRESP+1~, PKG+1~*, PKG+2*, PKG+3, VALUE+1~, VALUE+2*, VALUE+3
ID SAVEREC+1~, UPDRESP+1~, UPDRESP+2*, UPDRESP+3, UPDRESP+4, PMPTMAP~, PMPTMAP+1, PMPTMAP+2, PMPTMAP+3, PMPTMAP+4
, PMPTMAP+5, PMPTMAP+6, VALUE~, VALUE+1, VALUE+2
IEN CREATACT+1~, CREATACT+2*, CREATACT+3
INST EN+1~, AIG+1~, AIG+3*, AIG+4
ISTIME SAVEREC+1~, SAVEREC+48*, SAVEREC+49
MSG EN~, EN+3, EN+4, EN+6
MSH EN+1~, EN+5*, EN+6
NATURE CREATACT~, CREATACT+2
NMSP PKG~, PKG+2
NODE EN+1~, EN+8*, AIG+1~, AIG+4*, AIG+5
NUM EN+1~, SCH+9*, SCH+10
NXT EN+1~
OERR SAVEREC+1~
OK VALIDATE+1~, VALIDATE+2*, VALIDATE+3*, VALIDATE+4*, VALIDATE+5*, VALIDATE+6*, VALIDATE+7*, VALIDATE+8*, VALIDATE+10*, VALIDATX+1
OR3 VALIDATE+1~, VALIDATE+9*
ORDA REJECT+7~*, REJECT+8, REJECT+9, SAVEREC+1~, SAVEREC+12*, SAVEREC+13, SAVEREC+24*, SAVEREC+25*, SAVEREC+27, SAVEREC+32
, SAVEREC+34, SAVEREC+39, SAVEREC+43, SAVEREC+44, SAVEREC+50
ORDG SAVEREC+1~, SAVEREC+7*, SAVEREC+54, SAVEREC+56
ORDIALOG SAVEREC+1~, SAVEREC+6*, SAVEREC+10, SAVEREC+52, UPDRESP~
ORDIALOG( SAVEREC+48, UPDRESP+4, UPDRESP+5*, UPDRESP+6*
OREMSG SENDFAIL+4~, SENDFAIL+9
OREMSG(1 SENDFAIL+6*
OREMSG(2 SENDFAIL+7*
OREMSG(3 SENDFAIL+8*
>> ORERR REJECT+6*, SAVEREC+27*
ORIFN LASTACT~, LASTACT+2, LASTACT+3, REJECT+1~, REJECT+2*, REJECT+4, REJECT+5, REJECT+7, REJECT+8, REJECT+9
, REJECT+10, ACCEPT+1~, ACCEPT+2*, ACCEPT+4, ACCEPT+5, ACCEPT+6, ACCEPT+7, DCACK~, DCACK+4, DCACK+5
, DCACK+6, EXPDT~, EXPDT+1, EXPDT+2, VALIDATE+1~, VALIDATE+8*, VALIDATE+9, SAVEREC+1~, SAVEREC+8*, SAVEREC+10
, SAVEREC+12, SAVEREC+13, SAVEREC+17, SAVEREC+22, SAVEREC+24, SAVEREC+25, SAVEREC+30, SAVEREC+32, SAVEREC+34, SAVEREC+36
, SAVEREC+39, SAVEREC+43, SAVEREC+44, SAVEREC+46, SAVEREC+47, SAVEREC+50, SAVEREC+52, SAVEREC+54, SAVEREC+56, UPDRESP~
, VALUE+2, VALUE+3
ORIG REJECT+5~*
ORLEAD SAVEREC+2~, SAVEREC+49*
ORMSG EN+1~, EN+3*, EN+4, EN+5, EN+7, EN+8, AIG+3, AIG+4, SENDFAIL+2, SENDOK+1~
, SENDOK+4
ORMSG(1 SENDOK+2*
ORMSG(2 SENDOK+3*
ORNATR REJECT+1~, REJECT+3*, REJECT+4, SAVEREC+1~, SAVEREC+33*
ORNOW SAVEREC+1~, SAVEREC+5*, SAVEREC+24, SAVEREC+32, SAVEREC+36
ORNP SAVEREC+1~, SAVEREC+4*
ORPKG SAVEREC+1~, SAVEREC+10*, SAVEREC+52
ORSTRT SAVEREC+1~, SAVEREC+15*, SAVEREC+36
ORSTS DCACK+1~, DCACK+3*, DCACK+5
ORTRAIL SAVEREC+2~, SAVEREC+49*
ORV SENDFAIL+1~, SENDFAIL+2
ORV("XQY0" SENDFAIL+2*
ORVP SAVEREC+1~, SAVEREC+9*
ORWHO SAVEREC+1~, SAVEREC+3*, SAVEREC+4, SAVEREC+24, SAVEREC+32, SAVEREC+41
PAT EN+1~
PID EN+1~
PV1 EN+1~
RESULT EN+1~, EN+12, EN+13, EN+14, EN+15, EN+16, EN+17, LASTACT+1~, LASTACT+2*, LASTACT+3*
, LASTACT+4*, LASTACTX+1, MSH~, MSA~, SCH~, AIL~, AIG~, NTE~, PID~, PV1~
, REJECT~, ACCEPT~, ACCEPT+7, DCACK~, GETSTAT~, VALIDATE~, SAVEREC~, SAVEREC+20, SENDFAIL~, SENDOK~
RESULT( SCH+4*, UPDRESP+4, UPDRESP+5
RESULT("APPT IEN" , MSA+4*, SCH+2*, ACCEPT+4, DCACK+6, SAVEREC+17, TYPE" , SCH+3*
RESULT("CLINIC" AIL+1*, VALIDATE+3
RESULT("COMMENT" NTE+1*
RESULT("COMPLETE" VALIDATE+4
RESULT("DISCONTINUE" GETSTAT+1, VALIDATE+4, SAVEREC+21
RESULT("DISPO SITION BY" , SCH+12*, VALIDATE+7, SAVEREC+3
RESULT("INTERVAL" SCH+10*
RESULT("MSG D ATE/TIME" , MSH+2*, SAVEREC+41
RESULT("MSG I D" , MSH+1*, REJECT+2, ACCEPT+2, ACCEPT+3, SENDFAIL+6, SENDOK+2
RESULT("NLT" SCH+7*
RESULT("NUMBE R APPT" , SCH+10*
RESULT("ORDER IEN" , SCH+2*, VALIDATE+6, VALIDATE+8, SAVEREC+8
RESULT("PARTIAL" SCH+5*, GETSTAT+2
RESULT("PATIENT" PID+1*, VALIDATE+5, VALIDATE+6, SAVEREC+9, SAVEREC+47
RESULT("PREREQ" AIG+2*, AIG+5*
RESULT("REJEC TION ERROR" , MSA+5*, REJECT+4, REJECT+6, REJECT+9
RESULT("RTC D ATE" , SCH+8*
RESULT("SIGNE D BY" , SCH+11*
SEG EN+1~, EN+8*, EN+9, EN+10*, EN+11, MSH~, MSH+1, MSH+2, MSA~, MSA+2
, MSA+3, MSA+5, SCH~, SCH+2, SCH+3, SCH+4, SCH+6, SCH+9, SCH+11, SCH+12
, AIL~, AIL+1, AIG~, AIG+2, NTE~, NTE+1, PID~, PID+1, PV1~
SIGN EN+1~
STATUS MSA+1~, MSA+3*, MSA+4, SAVEREC+1~, SAVEREC+20*, SAVEREC+22
STOP EXPDT+1~*, EXPDT+2
STR UNESC~, UNESC+1
STS VALIDATE+1~, VALIDATE+9*, VALIDATE+10
TIME SCH+1~, SCH+6*, SCH+7, SCH+8
TYPE SAVEREC+1~, SAVEREC+21*, SAVEREC+24, SAVEREC+45, UPDRESP+1~, UPDRESP+3*, UPDRESP+4, UPDRESP+5, UPDRESP+6
U CREATACT+3, MSA+4, SCH+3, SCH+4, SCH+5, SCH+8, AIG+2, AIG+5, PID+1, REJECT+2
, REJECT+4, REJECT+5, REJECT+8, ACCEPT+2, ACCEPT+3, EXPDT+1, EXPDT+2, VALIDATE+6, VALIDATE+9, SAVEREC+15
, SAVEREC+43, SAVEREC+44, SAVEREC+52, SAVEREC+54, UPDRESP+4, UPDRESP+5, UPDRESP+6, PMPTMAP+1, PMPTMAP+2, PMPTMAP+3
, PMPTMAP+4, PMPTMAP+5, PMPTMAP+6
WHOSIGN SAVEREC+1~, SAVEREC+15*, SAVEREC+24
X EN+1~, EN+7*, EN+8, MSH~, MSA~, SCH~, AIL~, AIG~, AIG+3, AIG+4
, NTE~, PID~, PV1~, PTR~, PTR+1
X0 SAVEREC+1~, SAVEREC+13*, SAVEREC+15
X8 SAVEREC+1~, SAVEREC+13*, SAVEREC+15
Y FMDATE~, FMDATE+1, VALUE+1~, VALUE+3*, VALUE+4
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 |  All