YTSNSI ;BAL/KTL - Report for NSI FOR TBI ;Mar 27, 2025@08:59:02
Source file <YTSNSI.m>
| action | A | extended action | Ea | event driver | Ed | subscriber | Su | protocol | O | limited protocol | LP | run routine | RR | broker | B | edit | E | server | Se | P | screenman | SM | inquire | I |
| 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)
|
| Name | Line Occurrences (* Changed, ! Killed) |
|---|---|
| ^YTT(601.75 - [#601.75] | REPORT+12 |
| >> | 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* |