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

Package: Mental Health

Routine: YSBRPC


Information

YSBRPC ;SLC/DJE - MHA DASHBOARD ; Apr 01, 2021@16:33

Source Information

Source file <YSBRPC.m>

Call Graph

Call Graph

Call Graph Total: 11

Package Total Call Graph
Mental Health 6 (GETNOTE,GETRPRT,HRPTPROF)^YSBDD1  ENCODE^YSBJSON  (GETUSRP,USRP)^YSBPREFS  GETCONN^YSBRPC  (GETLOCS,IDFLT)^YSBWHIG2  HIGHRISK^YSBWHIGH  
Kernel 2 ($$HTE,$$NOW)^XLFDT  ($$DIV4,DIV4)^XUSER  
VA FileMan 2 ^%DT  $$GET1^DIQ  
Toolkit 1 GETLST^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: 5

Package Total Caller Graph
Mental Health 5 YSBDD1  YSBPREFS  YSBRPC  YSBWHIGH  YTQRQAD7  

Entry Points

Name Comments DBIA/ICR reference
RESTFUL(OUT,IN) ;main RPC that interprets RESTful calls
LOADDB(JSONOUT) ;Load dashboard data. Currently close to everything is loaded. User data, widget and widget data.
WEBWIDG(ARGS,RESULTS) ;Load dashboard data for a widget embedded in MHA Web
TOTMP(JSONOUT) ; move JSONOUT array to ^TMP("YTQ-JSON)
NOPAT ; no patients but JSON utility sets up "data":[""]. Needs to be "data":[]
GETUSER(DATAOUT) ;user info
CHKCLIN(WIEN,ERR)
GETWDGT(DATAOUT,WNAME)
SELPATS(DATAOUT) ;
HRINIT(SAFHEAD,SAFDCL,SAFREV,SAFSCNO,SAFSCYES,CSREHEAD,CSRENEW,CSREUPD,SITES) ;
GETCONN(JSONOUT) ;Respond to the connection check

External References

Name Field # of Occurrence
^%DT GETUSER+5
$$GET1^DIQ CHKCLIN+6, CHKCLIN+10
$$HTE^XLFDT GETCONN+3
$$NOW^XLFDT GETWDGT+4
GETLST^XPAR HRINIT+1, HRINIT+2, HRINIT+3, HRINIT+4, HRINIT+5, HRINIT+6, HRINIT+7, HRINIT+8
$$DIV4^XUSER GETUSER+6
DIV4^XUSER HRINIT+9
GETNOTE^YSBDD1 RESTFUL+7
GETRPRT^YSBDD1 RESTFUL+5
HRPTPROF^YSBDD1 RESTFUL+6
ENCODE^YSBJSON LOADDB+7, WEBWIDG+6, GETCONN+4
GETUSRP^YSBPREFS RESTFUL+9
USRP^YSBPREFS RESTFUL+10
GETCONN^YSBRPC RESTFUL+3
GETLOCS^YSBWHIG2 GETWDGT+56
IDFLT^YSBWHIG2 GETWDGT+33
HIGHRISK^YSBWHIGH SELPATS+5

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^DIC(40.7 - [#40.7] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^SC - [#44] CHKCLIN+4
^TMP("YTQ-JSON" WEBWIDG+8, TOTMP+2, TOTMP+4*
^YSD(605.1 - [#605.1] GETWDGT+7, GETWDGT+8, GETWDGT+13, GETWDGT+14, GETWDGT+15, GETWDGT+22, GETWDGT+23, GETWDGT+24, GETWDGT+49, GETWDGT+50
^YTT(601.71 - [#601.71] GETWDGT+52, GETWDGT+54

Label References

Name Line Occurrences
GETUSER LOADDB+2, WEBWIDG+3
GETWDGT LOADDB+3, WEBWIDG+4
LOADDB RESTFUL+1
SELPATS LOADDB+4, WEBWIDG+5
TOTMP WEBWIDG+7

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
AFT NOPAT+2~, NOPAT+6*, NOPAT+7
ARGS WEBWIDG~
ARGS("widgetName" WEBWIDG+2
BEF NOPAT+2~, NOPAT+6*, NOPAT+7
CLINIC CHKCLIN+1~, CHKCLIN+2*
COLCNT GETWDGT+3~, GETWDGT+31*, GETWDGT+38*, GETWDGT+39, GETWDGT+40, GETWDGT+41, GETWDGT+42, GETWDGT+43, GETWDGT+45, GETWDGT+46
, GETWDGT+47, GETWDGT+48
COLSEQ GETWDGT+1~, GETWDGT+13*, GETWDGT+14, GETWDGT+16, GETWDGT+17, GETWDGT+18, GETWDGT+21, GETWDGT+25, GETWDGT+26, GETWDGT+27
, GETWDGT+28
COLUMN GETWDGT+1~, GETWDGT+14*, GETWDGT+15, GETWDGT+16, GETWDGT+22, GETWDGT+23, GETWDGT+24
CSREHEAD HRINIT~, HRINIT+6
CSRENEW HRINIT~, HRINIT+7
CSREUPD HRINIT~, HRINIT+8
DATAIN LOADDB+1~
DATAOUT LOADDB+1~, LOADDB+2, LOADDB+3, LOADDB+4, WEBWIDG+1~, WEBWIDG+3, WEBWIDG+4, WEBWIDG+5, GETUSER~, GETWDGT~
, GETWDGT+56, SELPATS~, SELPATS+5, GETCONN+1~
DATAOUT("connection" GETCONN+2*, GETCONN+3*
DATAOUT("data" LOADDB+5, LOADDB+6*
DATAOUT("user" GETUSER+9*, GETUSER+12*, GETUSER+13*
DATAOUT("widgets" GETWDGT+11*, GETWDGT+12*, GETWDGT+16*, GETWDGT+17*, GETWDGT+18*, GETWDGT+21*, GETWDGT+25*, GETWDGT+26*, GETWDGT+27*, GETWDGT+28*
, GETWDGT+31, GETWDGT+39*, GETWDGT+40*, GETWDGT+41*, GETWDGT+42*, GETWDGT+43*, GETWDGT+45*, GETWDGT+46*, GETWDGT+47*, GETWDGT+48*
, GETWDGT+53*, GETWDGT+54*, SELPATS+2, SELPATS+4
DUN NOPAT+2~, NOPAT+3*, NOPAT+4, NOPAT+7*
DUZ GETUSER+6, GETUSER+9, HRINIT+9
DUZ(2 GETUSER+7, HRINIT+10
ERR CHKCLIN~, CHKCLIN+3*, CHKCLIN+12*
ERRARY LOADDB+1~, WEBWIDG+1~, GETCONN+1~
FIELDN0 GETWDGT+1~, GETWDGT+15*, GETWDGT+17, GETWDGT+18, GETWDGT+20
HASSITE GETUSER+4~, GETUSER+6*, GETUSER+7
I LOADDB+1~, GETUSER+4~, GETUSER+11*, GETUSER+12
ID GETWDGT+1~, GETWDGT+7*, GETWDGT+8, GETWDGT+11, GETWDGT+12, GETWDGT+13, GETWDGT+14, GETWDGT+15, GETWDGT+16, GETWDGT+17
, GETWDGT+18, GETWDGT+21, GETWDGT+22, GETWDGT+23, GETWDGT+24, GETWDGT+25, GETWDGT+26, GETWDGT+27, GETWDGT+28, GETWDGT+30
, GETWDGT+31, GETWDGT+39, GETWDGT+40, GETWDGT+41, GETWDGT+42, GETWDGT+43, GETWDGT+45, GETWDGT+46, GETWDGT+47, GETWDGT+48
, GETWDGT+49, GETWDGT+50, GETWDGT+53, GETWDGT+54, GETWDGT+55, GETWDGT+56
II TOTMP+1~, TOTMP+3*, TOTMP+4, NOPAT+2~, NOPAT+4*, NOPAT+5, NOPAT+6, NOPAT+7
IIEN GETWDGT+3~, GETWDGT+35*
ILAB GETWDGT+3~, GETWDGT+35*, GETWDGT+37, GETWDGT+40, GETWDGT+41
ILAB2 GETWDGT+3~, GETWDGT+37*
IN RESTFUL~, RESTFUL+10
IN(1 RESTFUL+1, RESTFUL+3, RESTFUL+5, RESTFUL+6, RESTFUL+7, RESTFUL+9, RESTFUL+10
IN0 GETWDGT+3~
INSTID GETWDGT+2~, GETWDGT+50*, GETWDGT+51, GETWDGT+52, GETWDGT+53, GETWDGT+54
INSTS GETWDGT+3~, GETWDGT+32!, GETWDGT+33
INSTS( GETWDGT+34, GETWDGT+35, GETWDGT+36, GETWDGT+42, GETWDGT+43, GETWDGT+45
INSTSEQ GETWDGT+2~, GETWDGT+34*, GETWDGT+35, GETWDGT+36, GETWDGT+42, GETWDGT+43, GETWDGT+45, GETWDGT+49*, GETWDGT+50, GETWDGT+53
, GETWDGT+54
ISTR GETWDGT+3~, GETWDGT+35*
JJ TOTMP+1~, TOTMP+2*, TOTMP+4*
JSONOUT LOADDB~, WEBWIDG+7, TOTMP~, GETCONN~
JSONOUT( TOTMP+3, TOTMP+4, NOPAT+4, NOPAT+5, NOPAT+6, NOPAT+7*
LOCATION GETWDGT+1~
LOCID GETWDGT+1~
MNGRP GETWDGT+2~, GETWDGT+36*
MNSCL GETWDGT+2~, GETWDGT+36*, GETWDGT+37
N0 CHKCLIN+1~, CHKCLIN+4*, CHKCLIN+5, CHKCLIN+9
NOW GETWDGT+3~, GETWDGT+4*, GETWDGT+6
OUT RESTFUL~, RESTFUL+1, RESTFUL+3, RESTFUL+5, RESTFUL+6, RESTFUL+7, RESTFUL+9, RESTFUL+10
PSTR NOPAT+2~, NOPAT+3*, NOPAT+5, NOPAT+6
RESULTS WEBWIDG~, WEBWIDG+8*
SAFDCL HRINIT~, HRINIT+2
SAFHEAD HRINIT~, HRINIT+1
SAFREV HRINIT~, HRINIT+3
SAFSCNO HRINIT~, HRINIT+4
SAFSCYES HRINIT~, HRINIT+5
SHOW GETWDGT+1~, GETWDGT+19*, GETWDGT+20*, GETWDGT+21
SITE GETUSER+4~, GETUSER+6, GETUSER+8
SITE( GETUSER+7*, GETUSER+11, GETUSER+12
SITES HRINIT~, HRINIT+9, HRINIT+10
SITES( HRINIT+10*
SUB GETWDGT+2~, GETWDGT+44*, GETWDGT+45, GETWDGT+46, GETWDGT+47, GETWDGT+48
SUBCOL GETWDGT+1~, GETWDGT+23*, GETWDGT+26
SUBCOLSEQ GETWDGT+1~, GETWDGT+22*, GETWDGT+23, GETWDGT+24, GETWDGT+25, GETWDGT+26, GETWDGT+27, GETWDGT+28
SUBFIELDN0 GETWDGT+1~, GETWDGT+24*, GETWDGT+27, GETWDGT+28
TODAY GETUSER+4~, GETUSER+5*, GETUSER+13
TOPCD CHKCLIN+1~, CHKCLIN+2*, CHKCLIN+5*, CHKCLIN+6, CHKCLIN+9*, CHKCLIN+10
TOPNO CHKCLIN+1~, CHKCLIN+2*, CHKCLIN+6*, CHKCLIN+7, CHKCLIN+10*, CHKCLIN+11
U GETUSER+12, CHKCLIN+5, CHKCLIN+9, GETWDGT+9, GETWDGT+10, GETWDGT+12, GETWDGT+17, GETWDGT+18, GETWDGT+20, GETWDGT+27
, GETWDGT+28, GETWDGT+35, GETWDGT+45, GETWDGT+46, GETWDGT+47, GETWDGT+48, GETWDGT+54
WIDGETN0 GETWDGT+1~, GETWDGT+8*, GETWDGT+9, GETWDGT+10, GETWDGT+12
WIDGETNAME SELPATS+3~, SELPATS+4*, SELPATS+5
WIDGETNUM SELPATS+1~, SELPATS+2*, SELPATS+4
WIEN CHKCLIN~, CHKCLIN+3, CHKCLIN+4
WIN1 GETWDGT+3~
WNAME WEBWIDG+1~, WEBWIDG+2*, WEBWIDG+4, GETWDGT~, GETWDGT+5*, GETWDGT+10
X GETUSER+4~, GETUSER+5*
XSTR NOPAT+2~
Y GETUSER+4~, GETUSER+5
YSDT GETWDGT+3~, GETWDGT+6*
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All