Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Entry Points |  Interaction Calls
Print Page as PDF
Routine: YTXCHGI

Package: Mental Health

Routine: YTXCHGI


Information

YTXCHGI ;SLC/KCM - Instrument Specification Import ; 9/15/2015

Source Information

Source file <YTXCHGI.m>

Entry Points

Name Comments DBIA/ICR reference
IMPTREE(TREE,YTXDRY) ; updates database from object tree source
; TREE : name of array containing object tree
; .YTXLOG: array of log info (count, errors)
; YTXDRY: 1 if just doing a dry run of the install
DEPTH1(FILE,ARRAY) ; loop 1 level deep in .ARRAY(1) to save in FILE
; FILE: file number
; ARRAY(n): subscript name for level n
DEPTH2(FILE,ARRAY) ; loop 2 levels deep in .ARRAY to save in FILE
; FILE: file number
; ARRAY(n): subscript name for level n
DEPTH3(FILE,ARRAY) ; loop 3 levels deep in .ARRAY to save in FILE
; FILE: file number
; ARRAY(n): subscript name for level n
PROCESS(FILE,IDX) ; using instances identified in IDX to save values to FILE
; expects: MAP,DONE,TSTIEN
; FILE: file number
; IDX: index values used to replace ?n subscripts
FMSAVE(UPDTYPE,FILE,REC,IEN) ; add/update file
DIFFREC(FILE,IEN,REC) ; return 0 if identical, 1 if changed, 2 if absent
; expects MAP
; will modify .REC to remove empty fields that need no update
WP2REC(TREEREF,FIELD,REC) ; parse CRLF delimited JSON TREE text into ^TMP
SHOWREC(UPDTYPE,FILE,REC,IEN) ; show record
DELETES(TSTIEN) ; delete records no longer used by instrument
; expects YTXDRY,YTXVRB (if defined)
; uses "leftover" entries in ^TMP("YTXCHGI",$J,"ENTRY",file,ien)
CHKNOTE(NAME) ; Return 1 if a default note should be added
ADDNOTE(NAME) ; Add default note for this instrument

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !,$S(UPDTYPE=0:"Nop ",UPDTYPE=1:"Upd ",UPDTYPE=2:"Add ",1:"??? "),FILE,":",IEN,?20
  • Line Location: SHOWREC+7
Function Call: WRITE
  • Prompt: X
  • Line Location: SHOWREC+8
Function Call: WRITE
  • Prompt: !,"Del ",FILE,":",IEN
  • Line Location: DELETES+11
Function Call: WRITE
  • Prompt: !,"Old ",FILE,":",IEN
  • Line Location: DELETES+14
Info |  Source |  Entry Points |  Interaction Calls