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 |  Local Variables  | All
Print Page as PDF
Routine: ORBSMART

Package: Order Entry Results Reporting

Routine: ORBSMART


Information

ORBSMART ;SLC/JMH - SMART NOTIFICATIONS; Oct 4, 2022@11:23

Source Information

Source file <ORBSMART.m>

Call Graph

Call Graph

Call Graph Total: 10

Package Total Call Graph
Kernel 4 ($$FMADD,$$NOW)^XLFDT  $$INSTALDT^XPDUTL  ALERTDAT^XQALBUTL  (GETPAT2,GETUSER1)^XQALDATA  
Order Entry Results Reporting 4 EN^ORB3  DEL^ORB3FUP1  SCHALRT^ORB3UTL  GETDATA^ORWORB  
Clinical Reminders 1 EN^PXRMGEV  
Toolkit 1 $$GET^XPAR  

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

Package Total Caller Graph
Order Entry Results Reporting 7 ORB3  ORBSMART INSMALRT  ORBSMART ISSMNOT  ORBSMART OUSMALRT  ORLPREM  ORMTIME  ORWORB  
Clinical Reminders 3 PXRMCALT  PXRMNTFY  PXRMRPCG  
Womens Health 1 WVTDALRT  

Entry Points

Name Comments DBIA/ICR reference
INSMALRT(ORY,ORAID) ;set what alert is being processed for smart
OUSMALRT(ORY,ORAID) ;clear what alert is being processed for smart
EN(ORY,ORDATA) ;
CLEAR(ORY,ORDATA) ;Clear SMART alert
CLRPROV(ORNOT,ORDFN) ;clear all alerts for notification ORNOT for patient ORDFN for the current user DUZ
CLRALL(ORNOT,ORDFN) ;clear all alerts for notification ORNOT for patient ORDFN for all users
CLRONE(ORDATA) ;clear only the alert matching ORDATA
SMALERTS(ORDFN,ORDUZ,ORGLOB) ;
PALERTS(ORDFN,ORGLOB) ;
UHASNOT(ORDFN,ORDUZ,ORNOT) ; returns 1 if user ORDUZ has notification ORNOT for patient ORDFN
PHASNOT(ORDFN,ORNOT) ; returns 1 patient ORDUZ has a notification ORNOT
SMIENS(ORY) ;
ISSMIEN(ORIEN) ;
ISSMNOT(ORY,ORIEN) ;
NCIMGNOT(ORDFN) ;Fire SMART NON-CRITICAL IMAGING RES alert
GETRMLST(ORLST,ORLNM,OVER,RETDATA) ;Get a list of patients from Reminder call
HOOK(ORN,ORBDFN,ORNUM,ORBADUZ,ORBPMSG,ORBPDATA) ;
GETNOTID(ORNOTNM) ;Get the OE/RR NOTIFICATIONS File IEN for the notification name
GENERATE ;generate the smart alerts
SCHCALL(ORRTN,ORSCH) ;Return 1 if ORRTN should be run now, 0 if not.
NIGHTLY ;nightly task to generate smart alerts
SMINSTDT() ;get SMART install date
SMARTON(USER,NOTIEN) ;

External References

Name Field # of Occurrence
EN^ORB3 NCIMGNOT+4, HOOK+13
DEL^ORB3FUP1 CLRPROV+6, CLRALL+6, CLRONE+2
SCHALRT^ORB3UTL EN+11
GETDATA^ORWORB SMALERTS+7
EN^PXRMGEV GETRMLST+6
$$FMADD^XLFDT SCHCALL+5, NIGHTLY+5
$$NOW^XLFDT SCHCALL+5, SCHCALL+12
$$GET^XPAR SMARTON+3
$$INSTALDT^XPDUTL SMINSTDT+2
ALERTDAT^XQALBUTL SMALERTS+9
GETPAT2^XQALDATA PALERTS+3
GETUSER1^XQALDATA SMALERTS+3

Used in RPC

RPC Name Call Tags
ORBSMART ISSMNOT ISSMNOT
ORBSMART INSMALRT INSMALRT
ORBSMART OUSMALRT OUSMALRT

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^ORD(100.9 - [#100.9] SMIENS+3, SMIENS+4, ISSMIEN+1, HOOK+2, HOOK+3, HOOK+5, HOOK+15, GETNOTID+2
^TMP("ORSMART CURRENT ALERT" INSMALRT+1*, OUSMALRT+1!
^TMP($J GETRMLST+3!, GETRMLST+7, GETRMLST+9, GETRMLST+10!
^XTMP( SCHCALL+5*, SCHCALL+6, SCHCALL+8, SCHCALL+12*
^XTMP("ORBSMART GENERATE" NIGHTLY+3, NIGHTLY+5*

Label References

Name Line Occurrences
$$GETNOTID NCIMGNOT+3
$$ISSMIEN SMALERTS+6, PALERTS+6, ISSMNOT+1
$$PHASNOT NCIMGNOT+4
$$SMARTON HOOK+10
CLEAR EN+3
CLRALL CLEAR+19
CLRONE CLEAR+20
CLRPROV CLEAR+18
GENERATE NIGHTLY+4
PALERTS CLRPROV+2, CLRALL+2, PHASNOT+3
SMALERTS UHASNOT+3

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
ACTION CLEAR+3~, CLEAR+16*, CLEAR+18, CLEAR+19, CLEAR+20
DATA EN+1~, EN+11
DATA("BODY" EN+10*
DATA("PATIENT" EN+6*
DATA("TITLE" EN+7*
DATA("WHEN" EN+9*
DATA("WHO" EN+8*
DT GETRMLST+5, SCHCALL+10, NIGHTLY+2
DUZ EN+8
I SMIENS+1~, SMIENS+2*, SMIENS+3*, SMIENS+4
ISDEFER CLEAR+3~
NOTIEN SMARTON~, SMARTON+3
ORAID INSMALRT~, INSMALRT+1, OUSMALRT~
ORALERTS UHASNOT+1~, PHASNOT+1~
ORALERTS( UHASNOT+4, PHASNOT+4
>> ORALL SMALERTS+6, PALERTS+6
ORBADUZ HOOK~, HOOK+15
ORBADUZ( HOOK+9, HOOK+12!
ORBD2 SMALERTS+9~
ORBD2( SMALERTS+10
ORBDATA SMALERTS+7~, SMALERTS+8
ORBDFN HOOK~, HOOK+13
ORBPDATA HOOK~, HOOK+13
ORBPMSG HOOK~, HOOK+6
ORBY CLEAR+3~, CLRPROV+1~, CLRPROV+6!, CLRALL+1~, CLRALL+6!, CLRONE+1~, CLRONE+2
ORCALL SCHCALL+8~*, SCHCALL+9
ORCALLDT SCHCALL+9~*, SCHCALL+10
ORDATA EN~, EN+3, CLEAR~, CLRONE~, CLRONE+2
ORDATA("DATA" EN+2, EN+5, EN+7, EN+9, EN+10, CLEAR+14, CLEAR+16, CLEAR+17
ORDATA("DFN" EN+6, CLEAR+5
ORDFN CLEAR+3~, CLEAR+5*, CLEAR+18, CLEAR+19, CLRPROV~, CLRPROV+2, CLRALL~, CLRALL+2, SMALERTS~, SMALERTS+5
, PALERTS~, PALERTS+3, PALERTS+5, UHASNOT~, UHASNOT+3, PHASNOT~, PHASNOT+3, NCIMGNOT~, NCIMGNOT+4
ORDUZ SMALERTS~, SMALERTS+3, UHASNOT~, UHASNOT+3
ORFIRE HOOK+6~*, HOOK+8
ORGLOB SMALERTS~, SMALERTS+2, SMALERTS+8, SMALERTS+10, PALERTS~, PALERTS+2, PALERTS+7, SCHCALL+3~, SCHCALL+4*, SCHCALL+5
, SCHCALL+6, SCHCALL+8, SCHCALL+12
ORI CLRPROV+1~, CLRPROV+4*, CLRALL+1~, CLRALL+4*, SMALERTS+4~*, SMALERTS+5, SMALERTS+6, SMALERTS+7, SMALERTS+8, SMALERTS+9
, SMALERTS+10, PALERTS+4~*, PALERTS+5, PALERTS+6, PALERTS+7, UHASNOT+1~, PHASNOT+1~, GETRMLST+7~*, GETRMLST+8, GETRMLST+9
, HOOK+1~*, HOOK+2*, HOOK+3, HOOK+5, HOOK+10, HOOK+13, HOOK+15
ORIEN ISSMIEN~, ISSMIEN+1, ISSMNOT~, ISSMNOT+1
ORINPUT CLEAR+3~
ORJ CLRPROV+5~*, CLRPROV+6, CLRALL+5~*, CLRALL+6, HOOK+3~*, HOOK+5, HOOK+15
ORLNM GETRMLST~, GETRMLST+5, GETRMLST+7, GETRMLST+9
ORLOG HOOK+5~*, HOOK+7
ORLST GETRMLST~
ORLST( GETRMLST+8*, GETRMLST+9*
ORN HOOK~, HOOK+2, HOOK+3
ORNEWMSG HOOK+6~*, HOOK+13
ORNOT CLRPROV~, CLRPROV+4, CLRALL~, CLRALL+4, UHASNOT~, UHASNOT+4, PHASNOT~, PHASNOT+4
ORNOTIEN CLEAR+3~, CLEAR+17*, CLEAR+18, CLEAR+19, NCIMGNOT+1~, NCIMGNOT+3*, NCIMGNOT+4
ORNOTNM NCIMGNOT+1~, NCIMGNOT+2*, NCIMGNOT+3, GETNOTID~, GETNOTID+1, GETNOTID+2
ORNOTX CLRPROV+1~, CLRPROV+4*, CLRPROV+5, CLRALL+1~, CLRALL+4*, CLRALL+5
ORNOW NIGHTLY+1~, NIGHTLY+2*, NIGHTLY+3, NIGHTLY+5
ORNUM HOOK~, HOOK+13, SMINSTDT+1~, SMINSTDT+2*, SMINSTDT+3
ORPALERTS CLRPROV+1~, CLRPROV+3, CLRALL+1~, CLRALL+3
ORPALERTS( CLRPROV+5, CLRALL+5
ORRESULT CLEAR+3~
ORRET UHASNOT+1~, UHASNOT+2*, UHASNOT+4*, UHASNOT+5, PHASNOT+1~, PHASNOT+2*, PHASNOT+4*, PHASNOT+5, HOOK+1~*, HOOK+15*
, HOOK+16, SCHCALL+3~, SCHCALL+4*, SCHCALL+10*, SCHCALL+12, SCHCALL+13
ORRMIN GETRMLST+1~, GETRMLST+6
ORRMIN("LR" GETRMLST+5*
ORRMIN("SUB" GETRMLST+4*
ORRSLT SMINSTDT+1~, SMINSTDT+2
ORRSLT("?" SMINSTDT+3
ORRTN SCHCALL~, SCHCALL+6, SCHCALL+8, SCHCALL+12
ORSCH SCHCALL~, SCHCALL+7
ORTNM GETRMLST+1~, GETRMLST+2*, GETRMLST+3, GETRMLST+4, GETRMLST+7, GETRMLST+9, GETRMLST+10
ORXDATA CLEAR+3~, CLEAR+14*, CLEAR+15*, CLEAR+16, CLEAR+17, CLEAR+20
ORY INSMALRT~, OUSMALRT~, EN~, EN+3, CLEAR~, SMALERTS+1~, PALERTS+1~, SMIENS~, ISSMNOT~, ISSMNOT+1*
, GETRMLST+1~, GETRMLST+6, SMINSTDT+1~, SMINSTDT+2*, SMINSTDT+3*, SMINSTDT+4
ORY( SMALERTS+4, SMALERTS+5, SMALERTS+6, SMALERTS+7, SMALERTS+8, SMALERTS+9, SMALERTS+10, PALERTS+4, PALERTS+5, PALERTS+6
, PALERTS+7, SMIENS+4*
ORY(1 EN+4*, EN+12*, CLEAR+1*
OVER GETRMLST~, GETRMLST+5
RESULT SMARTON+1~, SMARTON+2*, SMARTON+3*, SMARTON+4
RETDATA GETRMLST~, GETRMLST+5, GETRMLST+9
SMARARR HOOK+1~, HOOK+13
SMARARR( HOOK+10*, HOOK+11
STATUS CLEAR+3~
TMP SMARTON+1~
U SMALERTS+5, SMALERTS+6, SMALERTS+7, SMALERTS+8, SMALERTS+9, SMALERTS+10, PALERTS+5, PALERTS+6, PALERTS+7, GETRMLST+5
, HOOK+15, SCHCALL+5, NIGHTLY+3, NIGHTLY+5
USER HOOK+1~, HOOK+9*, HOOK+10, HOOK+11*, HOOK+12, SMARTON~
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Used in RPC |  Global Variables Directly Accessed |  Label References |  Local Variables  | All