YTSEQ5D ;SLC/KCM - Score EQ-5D-5L ; 3/25/22 2:02pm
Source file <YTSEQ5D.m>
| 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)  | 
|
| BLDQSTN(QSTN) | ; build list of questions and response values in .QSTN
 ; expects YSDATA from DLLSTR  | 
|
| REPORT(STATE) | ; Build EQ-5D-5L score string
 | 
|
| TESTSCR(YSAD) | ; Test scoring routine
 |