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 |  Used in RPC |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  All
Print Page as PDF
Routine: ORRCEVT

Package: Care Management

Routine: ORRCEVT


Information

ORRCEVT ; SLC/MKB,JFR - Event utilities ; 7/5/05 11:15

Source Information

Source file <ORRCEVT.m>

Call Graph

Call Graph Total: 10

Package Total Call Graph
Care Management 3 $$PARAM^ORRCACK  ($$STS,$$TXT,ORD)^ORRCOR  ($$MSGDT,$$MSGTXT,DELETE)^ORRCXQ  
Order Entry Results Reporting 3 EN^ORQ1  (DETNOTE,DETSUM)^ORQQVS  VST^ORWCV  
Kernel 2 ($$FMTHL7,$$HL7TFM,$$NOW)^XLFDT  (SETUP,USER)^XQALERT  
PCE Patient Care Encounter 1 $$GETENC^PXAPI  
Registration 1 IN5^VADPT  

Caller Graph

Caller Graph Total: 2

Package Total Caller Graph
Care Management 2 ORRCDPT  ORRCDPT1  

Entry Points

Name Comments DBIA/ICR reference
IDS(ORY,ORPAT,ORBEG,OREND) ; -- Return appointments for ORPAT
; in @ORY@(ORPAT) = #appts
; @ORY@(ORPAT,ID) = "" per appt
; [from ORRCDPT1]
TEST35(USR) ; -- Trigger Discharge alert to test
INCLD() ; -- Order already in Results column?
TEST20(USR) ; -- Trigger Deceased alert to test
TEXT(ORY,VISIT) ; -- Return associated document text of VISITs
; where VISIT(#) = ID
; in @ORY@(#) = Item=ID^Text^Date in HL7 format
; = Text=line of document text
; RPC = ORRC EVENTS BY ID
NOTE ; -- Add note text associated with event in alert XQAID to @ORY@(ORN)
; Expects TEXT,DATE from alert
TEST19(USR) ; -- Trigger Unsched Visit alert to test
APPT(ORY,ORPAT,ORBEG,OREND,ORDET) ; -- Return past/future appointments
; in @ORY@(#) = Item=ID^Text^Date in HL7 format^Status, and also if ORDET
; = Text=line of associated document text
; RPC = ORRC APPTS BY PATIENT
LIST(ORY,ORPAT,ORUSR,ORDET) ; -- Return alerted events to ORUSR for ORPAT
; in @ORY@(#) = Item=ID^Text^Date in HL7 format, and also if ORDET
; = Text=line of associated document text
; RPC = ORRC EVENTS BY PATIENT
CLEAR(ORY,ORUSR,VISIT) ; -- Clear VISIT alerts for ORUSR
; where VISIT(#) = ID
; returns ORY(#) = ID ^ 1 or 0, if successful
; RPC = ORRC EVENTS ACKNOWLEDGE
PATS(ORY,ORUSR) ; -- Return list of patients for whom ORUSR has ADT alerts
; in @ORY@(PAT) = #event alerts
; @ORY@(PAT,ID) = "" per alert
; [from ORRCDPT]

External References

Name Field # of Occurrence
EN^ORQ1 IDS+14, APPT+23
DETNOTE^ORQQVS APPT+18, TEXT+20, NOTE+12
DETSUM^ORQQVS NOTE+18
$$PARAM^ORRCACK PATS+7
$$STS^ORRCOR APPT+27
$$TXT^ORRCOR APPT+27, TEXT+10
ORD^ORRCOR APPT+28, TEXT+11
$$MSGDT^ORRCXQ NOTE+3
$$MSGTXT^ORRCXQ TEXT+13
DELETE^ORRCXQ CLEAR+7
VST^ORWCV IDS+7, APPT+7
$$GETENC^PXAPI APPT+17, TEXT+19, NOTE+11, NOTE+17
IN5^VADPT NOTE+15
$$FMTHL7^XLFDT LIST+11, APPT+13, APPT+27, TEXT+10, TEXT+14
$$HL7TFM^XLFDT APPT+6
$$NOW^XLFDT IDS+14, APPT+6, APPT+23, TEXT+6
SETUP^XQALERT TEST19+3, TEST35+3, TEST20+3
USER^XQALERT PATS+8, LIST+5

Used in RPC

RPC Name Call Tags
ORRC EVENTS BY ID TEXT
ORRC EVENTS ACKNOWLEDGE CLEAR
ORRC APPTS BY PATIENT APPT
ORRC EVENTS BY PATIENT LIST

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DIC(42 - [#42] NOTE+16
^OR(100 - [#100] IDS+16, APPT+25, TEXT+9
^ORD(100.98 - [#100.98] IDS+13, APPT+22
^SC - [#44] APPT+16, TEXT+17, NOTE+9
^SCE - [#409.68] NOTE+8
^SCE("ADFN" NOTE+7
^TMP("ORR" IDS+15, IDS+19!, APPT+24, APPT+29!
^TMP("PXKENC" NOTE+20!
^TMP($J PATS+5, PATS+6, PATS+11, PATS+12, PATS+14*, PATS+16, PATS+18*, PATS+19*, PATS+21!, INCLD+6
, IDS+5, LIST+5, LIST+6, APPT+9, TEXT+6
^XTV(8992 - [#8992] INCLD+4

Label References

Name Line Occurrences
$$INCLD PATS+13, PATS+17
NOTE LIST+12, TEXT+15

Naked Globals

Name Field # of Occurrence
^( IDS+15, APPT+24
^(0 IDS+16, APPT+25

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
ACTDT PATS+4~, PATS+7*, INCLD+2
CNT IDS+4~, IDS+9*, IDS+11*, IDS+18*, IDS+19
DATA INCLD+3~, INCLD+4*, INCLD+5
DATE INCLD+3~, INCLD+4*, LIST+4~, LIST+8*, LIST+11, APPT+4~, APPT+11*, APPT+13, APPT+15, APPT+17
, TEXT+5~, TEXT+9*, TEXT+10, TEXT+13*, TEXT+14, TEXT+16*, TEXT+17, TEXT+18, TEXT+19, NOTE+3
, NOTE+15
DFN TEXT+5~, TEXT+16*, TEXT+19, TEXT+20, NOTE+2~, NOTE+3*, NOTE+7, NOTE+11, NOTE+12, NOTE+17
, NOTE+18
DT INCLD+2, IDS+14
ENC NOTE+2~, NOTE+7*, NOTE+8
I LIST+4~, LIST+7*, LIST+8
ID IDS+4~, IDS+10*, IDS+11, APPT+4~, APPT+12*, APPT+13, TEXT+5~, TEXT+7*, TEXT+8, TEXT+9
, TEXT+10, TEXT+11, TEXT+12, TEXT+13, TEXT+14, TEXT+15, TEXT+16, TEXT+17
LOC APPT+4~, APPT+12*, APPT+16, APPT+17, TEXT+5~, TEXT+16*, TEXT+17, TEXT+19, NOTE+2~, NOTE+6*
, NOTE+7, NOTE+10*, NOTE+11, NOTE+16*, NOTE+17
NOT PATS+4~, PATS+10*, PATS+13, PATS+17, INCLD+1, LIST+4~, LIST+10*, NOTE+2~, NOTE+3*, NOTE+4
, NOTE+5, NOTE+14, NOTE+15
NOW APPT+5~, APPT+6*, APPT+15, TEXT+5~, TEXT+6*, TEXT+18
ORBEG IDS~, IDS+6*, IDS+7, APPT~, APPT+6*, APPT+7
ORDET LIST~, LIST+12, APPT~, APPT+14, APPT+28
ORDG IDS+4~, IDS+13*, IDS+14, APPT+4~, APPT+22*, APPT+23
ORDT IDS+4~, IDS+14*, IDS+17
OREND IDS~, IDS+6*, IDS+7, APPT~, APPT+6*, APPT+7
ORI PATS+4~, PATS+9*, IDS+4~, IDS+9*, IDS+10, IDS+15*, APPT+4~, APPT+10*, APPT+11, APPT+24*
, TEXT+5~, TEXT+7*, NOTE+2~, NOTE+21*, CLEAR+4~, CLEAR+5*, CLEAR+6
ORIFN IDS+4~, IDS+15*, IDS+16, IDS+18, APPT+4~, APPT+24*, APPT+25, APPT+27, TEXT+5~, TEXT+11*
ORJ APPT+4~, APPT+20*, TEXT+22*
ORLIST IDS+4~, IDS+15, IDS+19, APPT+4~, APPT+24, APPT+29
ORN LIST+4~, LIST+6*, LIST+11*, APPT+4~, APPT+9*, APPT+13*, APPT+15*, APPT+16*, APPT+20*, APPT+27*
, TEXT+5~, TEXT+6*, TEXT+10*, TEXT+14*, TEXT+17*, TEXT+18*, TEXT+22*, NOTE+4*, NOTE+21*, CLEAR+4~*
, CLEAR+8*
ORNOTE APPT+4~, APPT+17!, APPT+19*, TEXT+5~, TEXT+19!, TEXT+21*
ORNOTE( APPT+20, TEXT+22
ORNOW APPT+4~, APPT+23*, APPT+26
ORPAT IDS~, IDS+6*, IDS+7, IDS+10, IDS+11, IDS+13*, IDS+14, IDS+18, IDS+19, LIST~
, LIST+9, APPT~, APPT+6*, APPT+7, APPT+12, APPT+17, APPT+18, APPT+22*, APPT+23
ORRCNOTE APPT+5~, APPT+18, APPT+19, TEXT+5~, TEXT+19!, TEXT+20, TEXT+21
ORRCVST IDS+4~, IDS+7, IDS+8, APPT+5~, APPT+7, APPT+8
ORRCZ NOTE+2~, NOTE+12, NOTE+13, NOTE+18, NOTE+19
ORUSR PATS~, PATS+7*, PATS+8, INCLD+4, LIST~, LIST+5, CLEAR~, CLEAR+4
ORVST IDS+4~, IDS+8*, APPT+4~, APPT+8*
ORVST( IDS+9, IDS+10, APPT+10, APPT+11
ORXQ PATS+4~, PATS+6*, PATS+8, PATS+9, PATS+21, LIST+4~, LIST+5*, LIST+7, LIST+8, LIST+13
ORY PATS~, PATS+5*, PATS+15, PATS+20, IDS~, IDS+5*, IDS+11, IDS+18, IDS+19, LIST~
, LIST+6*, LIST+11, APPT~, APPT+9*, APPT+13, APPT+15, APPT+16, APPT+20, APPT+27, TEXT~
, TEXT+6*, TEXT+10, TEXT+14, TEXT+17, TEXT+18, TEXT+22, NOTE+4, NOTE+21, CLEAR~, CLEAR+4!
ORY( CLEAR+8*
ORZ NOTE+2~, NOTE+12!, NOTE+13*, NOTE+18!, NOTE+19*
ORZ( NOTE+21
PAT PATS+4~, PATS+10*, PATS+11, PATS+14, PATS+15, PATS+18, PATS+19, PATS+20, INCLD+6
STRT IDS+4~, IDS+16*, IDS+17, APPT+5~, APPT+25*, APPT+26, APPT+27
STS IDS+4~, IDS+16*, IDS+17, APPT+5~, APPT+25*, APPT+26
TEXT LIST+4~, LIST+8*, LIST+11, TEXT+5~, TEXT+13*, TEXT+14, NOTE+3, NOTE+4
U PATS+9, PATS+13, PATS+17, INCLD+1, IDS+10, IDS+16, IDS+17, LIST+8, LIST+10, LIST+11
, APPT+11, APPT+12, APPT+13, APPT+25, APPT+26, APPT+27, TEXT+9, TEXT+10, TEXT+14, TEXT+17
, NOTE+8, NOTE+9, NOTE+10
USR TEST19~, TEST19+2, TEST35~, TEST35+2, TEST20~, TEST20+2
VAERR NOTE+2~
VAIP NOTE+2~
VAIP("D" NOTE+15*
VAIP(13 NOTE+16
VDT NOTE+2~, NOTE+3*, NOTE+7, NOTE+11, NOTE+15, NOTE+16*, NOTE+17
VISIT APPT+4~, APPT+17*, APPT+18, TEXT~, NOTE+2~, NOTE+6*, NOTE+10*, NOTE+11*, NOTE+12, NOTE+17*
, NOTE+18, CLEAR~
VISIT( TEXT+7, CLEAR+5, CLEAR+6
VST TEXT+5~, TEXT+19*, TEXT+20
X PATS+4~, PATS+15*, PATS+20*, INCLD+3~, INCLD+5*, INCLD+6, APPT+4~, APPT+11*, APPT+12, APPT+13
X0 NOTE+2~, NOTE+8*, NOTE+9, NOTE+10
XQA TEST19+1~, TEST35+1~, TEST20+1~
XQA( TEST19+2*, TEST35+2*, TEST20+2*
XQAID PATS+4~, PATS+9*, PATS+10, PATS+15, PATS+20, INCLD+4, LIST+4~, LIST+8*, LIST+9, LIST+10
, LIST+11, TEXT+5~, TEXT+15*, NOTE+3, CLEAR+4~, CLEAR+6*, CLEAR+7, CLEAR+8, TEST19+1~, TEST19+2*
, TEST35+1~, TEST35+2*, TEST20+1~, TEST20+2*
XQAMSG TEST19+1~, TEST19+2*, TEST35+1~, TEST35+2*, TEST20+1~, TEST20+2*
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Used in RPC |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  All