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 |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Local Variables  | All
Print Page as PDF
Routine: YTWJSONF

Package: Mental Health

Routine: YTWJSONF


Information

YTWJSONF ;SLC/KCM - File/Export JSON versions of instruments ; 7/20/2018

Source Information

Source file <YTWJSONF.m>

Call Graph

Call Graph

Call Graph Total: 7

Package Total Call Graph
Mental Health 4 GETSPEC^YTWJSON  CHKSPEC^YTWJSONE  ($$PROMPT,NAMES)^YTWJSONU  (FMADD,FMDEL,FMUPD)^YTXCHGU  
Kernel 3 $$GTF^%ZISH  $$NOW^XLFDT  MES^XPDUTL  

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

Package Total Caller Graph
Mental Health 3 YS130PST  YTXCHG  YTXCHGT  

Entry Points

Name Comments DBIA/ICR reference
SAVEDIR ; Save all active instruments to directory
; may need to first remove current files from the destination directory
; (this doesn't clean up the destination directory first)
SAVE96 ; Save all active instruments as JSON in 601.96
LPACTV(PATH) ; Loop thru all active instruments to create JSON documents
; PATH: if empty, JSON documents are saved to 601.96
; otherwise, this specifics the host directory
DEL96 ; Delete active instruments from 601.96
FILE96(TEST) ; save JSON test to 601.96
LIST96 ; Save list of instruments as JSON in 601.96
FILE(TEST,PATH) ; save JSON test to a file
LIST(PATH) ; Save list of instruments as JSON to directory
LPSEED ; Loop thru all active instruments to seed JSON documents
FILE712(TEST) ; save JSON test to 601.712

External References

Name Field # of Occurrence
$$GTF^%ZISH FILE+10, LIST+4
$$NOW^XLFDT FILE712+11
MES^XPDUTL FILE96+11
GETSPEC^YTWJSON FILE96+9, FILE+4, FILE712+4
CHKSPEC^YTWJSONE FILE712+7
$$PROMPT^YTWJSONU SAVEDIR+4
NAMES^YTWJSONU LIST96+6, LIST+2
FMADD^YTXCHGU FILE96+14, LIST96+8, FILE712+16
FMDEL^YTXCHGU DEL96+4, DEL96+6
FMUPD^YTXCHGU FILE96+13, LIST96+7, FILE712+15

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: "."
  • Line Location: LPACTV+6
Function Call: WRITE
  • Prompt: "."
  • Line Location: LPACTV+7
Function Call: WRITE
  • Prompt: !,"Error creating JSON for "_$P(^YTT(601.71,TEST,0),U)
  • Line Location: FILE+5
Function Call: WRITE
  • Prompt: !,"Error writing file: "_NAME
  • Line Location: FILE+11
Function Call: WRITE
  • Prompt: !,"Error writing file: instrumentList.json"
  • Line Location: LIST+5
Function Call: WRITE
  • Prompt: "."
  • Line Location: LPSEED+4
Function Call: WRITE
  • Prompt: "JSON err: "_$P(^YTT(601.71,TEST,0),U)
  • Line Location: FILE712+5
Function Call: WRITE
  • Prompt: "Checksum err: "_ERRS
  • Line Location: FILE712+8

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^TMP("YTQ-FILE" FILE712+1!, FILE712+6*, FILE712+7, FILE712+13, FILE712+17!
^TMP($J FILE+7!, FILE+8*, FILE+10, FILE+12!, LIST+3!*, LIST+4, LIST+6!
^YTT(601.71 - [#601.71] LPACTV+4, LPACTV+5, FILE96+1, FILE96+2, FILE96+5, FILE96+11, FILE+1, FILE+5, FILE+9, LPSEED+2
LPSEED+3, FILE712+3, FILE712+5
^YTT(601.712 - [#601.712] FILE712+14
^YTT(601.96 - [#601.96] DEL96+2, DEL96+3, DEL96+5, FILE96+8, LIST96+5

Label References

Name Line Occurrences
DEL96 SAVE96+1
FILE LPACTV+7
FILE712 LPSEED+4
FILE96 LPACTV+6
LIST SAVEDIR+6
LIST96 SAVE96+3
LPACTV SAVEDIR+5, SAVE96+2

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
CRC FILE712+2~, FILE712+7, FILE712+12
ERRS FILE712+2~, FILE712+7, FILE712+8
I FILE712+2~, FILE712+6*
IEN DEL96+1~, DEL96+3*, DEL96+4, DEL96+5*, DEL96+6, FILE96+4~, FILE96+8*, FILE96+13, LIST96+1~, LIST96+5*
LIST96+7, FILE712+2~, FILE712+14*, FILE712+15
JSON FILE96+4~, FILE96+9, FILE96+10, LIST96+1~, LIST96+6, FILE+3~, FILE+4, FILE+5, FILE+8, LIST+1~
, LIST+2, LIST+3, FILE712+2~, FILE712+4, FILE712+5
JSON( FILE712+6
NAME FILE+9~*, FILE+10, FILE+11
NM DEL96+1~, DEL96+2*, DEL96+3
OK FILE+3~, FILE+10*, FILE+11, LIST+1~, LIST+4*, LIST+5
PATH SAVEDIR+3~, SAVEDIR+4*, SAVEDIR+5, SAVEDIR+6, LPACTV~, LPACTV+6, LPACTV+7, FILE~, FILE+10, LIST~
, LIST+4
REC FILE96+4~, FILE96+13, FILE96+14, LIST96+1~, LIST96+7, LIST96+8, FILE712+2~, FILE712+15, FILE712+16
REC( FILE96+5*, FILE96+6*, FILE96+8, LIST96+2*, LIST96+3*, FILE712+10*, FILE712+11*, FILE712+12*
REC(1 FILE96+7*, LIST96+4*, FILE712+13*
TEST LPACTV+3~, LPACTV+4*, LPACTV+5, LPACTV+6, LPACTV+7, FILE96~, FILE96+1*, FILE96+2, FILE96+5, FILE96+9
, FILE96+11, FILE~, FILE+1*, FILE+4, FILE+5, FILE+9, LPSEED+1~, LPSEED+2*, LPSEED+3, LPSEED+4
, FILE712~, FILE712+3*, FILE712+4, FILE712+5, FILE712+10, FILE712+14
U LPACTV+5, FILE96+5, FILE96+11, FILE+5, FILE+9, LPSEED+3, FILE712+5
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Local Variables  | All