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

Package: Mental Health

Routine: YTSNSI


Information

YTSNSI ;BAL/KTL - Report for NSI FOR TBI ;Mar 27, 2025@08:59:02

Source Information

Source file <YTSNSI.m>

Call Graph

Call Graph

Call Graph Total: 1

Package Total Call Graph
Mental Health 1 (BYKEY,LDSCORES)^YTSCORE  

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

Package Total Caller Graph
Mental Health 1 ^YTT(601.71  

Entry Points

Name Comments DBIA/ICR reference
DLLSTR(YSDATA,YS,YSTRNG) ; compute scores or report text based on YSTRNG
; input
; YSDATA(2)=adminId^patientDFN^instrumentName^dateGiven^isComplete
; YSDATA(2+n)=questionId^sequence^choiceId
; YS("AD")=adminId
; YSTRNG=1 for score, 2 for report
; output if YSTRNG=1: ^TMP($J,"YSCOR",n)=scaleId=score
; output if YSTRNG=2: append special "answers" to YSDATA
REPORT ; build the numerical answer array for the report
; expects ^TMP($J,"YSCOR",...) and ^TMP($J,"YSG") from DLLSTR
; YSDATA from DLLSTR
; Question IEN = 9567-9588
; Answer array = 7771-7781
WRAP(TX,MAX,IND) ; If length of TX > MAX, wrap by adding LF and INDent
ADDOUT(S) ; add string to out array (expects OUT)

External References

Name Field # of Occurrence
BYKEY^YTSCORE DLLSTR+11
LDSCORES^YTSCORE DLLSTR+15

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^YTT(601.75 - [#601.75] REPORT+12

Label References

Name Line Occurrences
$$WRAP REPORT+16
ADDOUT WRAP+4, WRAP+8, WRAP+10
REPORT DLLSTR+16

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
I WRAP+1~, WRAP+3*, WRAP+11*
II REPORT+5~, REPORT+9*, REPORT+10, REPORT+11
IND WRAP~, WRAP+11
J WRAP+1~, WRAP+6*, WRAP+7, WRAP+8
LF WRAP+1~, WRAP+2*, WRAP+3, WRAP+11
MAX WRAP~, WRAP+4, WRAP+8
N DLLSTR+14~
OUT WRAP+1~, ADDOUT+1*
OUT( WRAP+11, ADDOUT+1*
S ADDOUT~, ADDOUT+1
SCOREVAL DLLSTR+14~
TMPYS REPORT+5~, REPORT+18
TMPYS( REPORT+15*, REPORT+17*
TX WRAP~, WRAP+3
U REPORT+10, REPORT+11
X WRAP+1~, WRAP+3*, WRAP+4, WRAP+6, WRAP+7, WRAP+8, WRAP+11*, WRAP+12
Y WRAP+1~, WRAP+5*, WRAP+7, WRAP+8*, WRAP+9*, WRAP+10
YNEW WRAP+1~, WRAP+7*, WRAP+8, WRAP+9
YS DLLSTR~, DLLSTR+15
YSDATA DLLSTR~, DLLSTR+11, DLLSTR+15, REPORT+18*
YSDATA( REPORT+9, REPORT+10, REPORT+11
YSDATA("" REPORT+8
YSN DLLSTR+9~
YSTEXT DLLSTR+9~, REPORT+6~, REPORT+12*, REPORT+16*, REPORT+17
YSTRNG DLLSTR~, DLLSTR+11, DLLSTR+13
YTANS REPORT+5~, REPORT+13*, REPORT+15, REPORT+17
YTCHC REPORT+5~, REPORT+11*, REPORT+12, REPORT+14, REPORT+15
YTCNT REPORT+5~, REPORT+7*
YTI REPORT+5~, REPORT+8*, REPORT+15*, REPORT+17*
YTQUE REPORT+5~, REPORT+10*, REPORT+13
YTRAW REPORT+5~, REPORT+7*
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Global Variables Directly Accessed |  Label References |  Local Variables  | All