YTSPSEQ2 ;SLC/KCM - Score PSEQ-2 ; 3/25/22 2:02pm
Source file <YTSPSEQ2.m>
Package | Total | Call Graph |
---|---|---|
Mental Health | 1 | LDSCORES^YTSCORE |
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 |
Package | Total | Caller Graph |
---|---|---|
Mental Health | 1 | ^YTT(601.71 |
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 |
|
SCORESV | ; calculate the score
; expects YSDATA from DLLSTR (YSDATA from LOADANSW^YTSCORE,SCALEG^YTQAPI3) |
|
REPORT(SCORE) | ; build .SCORE string
; expects score in ^TMP($J,"YSCOR",n) |
Name | Line Occurrences |
---|---|
REPORT | DLLSTR+13 |
SCORESV | DLLSTR+9 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
I | SCORESV+2~, SCORESV+4*, SCORESV+5, SCORESV+18*, SCORESV+19, SCORESV+20, REPORT+2~, REPORT+3*, REPORT+4, REPORT+5 |
J | SCORESV+16~, SCORESV+18*, SCORESV+21*, SCORESV+22 |
N | DLLSTR+11~, DLLSTR+14*, DLLSTR+15 |
NAME | REPORT+2~, REPORT+4*, REPORT+6 |
QID | SCORESV+2~, SCORESV+5* |
SCLID | SCORESV+16~, SCORESV+19*, SCORESV+22 |
SCLNM | SCORESV+16~, SCORESV+20*, SCORESV+22 |
SCORE | DLLSTR+13, DLLSTR+15, REPORT~, REPORT+6* |
SCORES | DLLSTR+11~ |
SKIP | SCORESV+2~, SCORESV+3*, SCORESV+6*, SCORESV+8 |
TOTAL | SCORESV+2~, SCORESV+3*, SCORESV+7*, SCORESV+8*, SCORESV+22 |
U | SCORESV+5, SCORESV+20 |
VAL | SCORESV+5*, SCORESV+6, SCORESV+7, REPORT+2~, REPORT+5*, REPORT+6 |
YS | DLLSTR~, DLLSTR+12 |
YSDATA | DLLSTR~, DLLSTR+12 |
YSDATA( | DLLSTR+15*, SCORESV+4, SCORESV+5 |
YSDATA("" | DLLSTR+14 |
YSTRNG | DLLSTR~, DLLSTR+9, DLLSTR+10 |