[613] | 1 | DVBCWME4 ;BPOIFO/ESW - MENTAL DISORDERS (EXCEPT PTSD & EATING DISORDERS ; 10/1/02 5:36pm
|
---|
| 2 | ;;2.7;AMIE;**46**;Apr 10, 1995
|
---|
| 3 | ;Per VHA Directive 10-92-142, this riutine should not be modified
|
---|
| 4 | ;
|
---|
| 5 | ; IOM represents cpl (characters per line) depending on print. select"
|
---|
| 6 | ; The header will be centered for any print out.
|
---|
| 7 | ;
|
---|
| 8 | EN D:'$D(IOF) SETIOF W:(IOST?1"C-".E) @IOF
|
---|
| 9 | S DVBAX="Compensation and Pension Examination",TT=IOM-$L(DVBAX)\2
|
---|
| 10 | W !?TT,DVBAX
|
---|
| 11 | S DVBAX="MENTAL DISORDERS (except PTSD and Eating Disorders)",TT=IOM-$L(DVBAX)\2,PG=1
|
---|
| 12 | ; $L("# XXXX Worksheet")=16 for all worksheets
|
---|
| 13 | ;
|
---|
| 14 | W !!?TT,DVBAX,!?(IOM-16\2),"# 0905 Worksheet",!!
|
---|
| 15 | W "Name: ",NAME,?45,"SSN: ",SSN,!
|
---|
| 16 | W !,"Date of Exam: ____________________",?45,"C-number: ",CNUM
|
---|
| 17 | W !!,"Place of Exam: ___________________",!!
|
---|
| 18 | S DIF="^TMP($J,""DVBAW"",",XCNP=0
|
---|
| 19 | K ^TMP($J,"DVBAW")
|
---|
| 20 | F ROU="DVBCWME5" S X=ROU X ^%ZOSF("LOAD")
|
---|
| 21 | K DIF,XCNP,ROU
|
---|
| 22 | N LP,TEXT
|
---|
| 23 | S LP=0,STOP=0
|
---|
| 24 | F S LP=$O(^TMP($J,"DVBAW",LP)) Q:(LP="")!(STOP) D
|
---|
| 25 | .S TEXT=^TMP($J,"DVBAW",LP,0)
|
---|
| 26 | .I (TEXT'[";;")!(TEXT[";AMIE;") Q
|
---|
| 27 | .I TEXT["TOF" D HD2
|
---|
| 28 | .I TEXT[";;END" S STOP=1 Q
|
---|
| 29 | .W:TEXT'["TOF" $P(TEXT,";;",2),! I $Y>55 D HD2
|
---|
| 30 | K ^TMP($J,"DVBAW"),TEXT,STOP,LP,PG,DVBAX,X,TT
|
---|
| 31 | Q
|
---|
| 32 | ;
|
---|
| 33 | HD2 S PG=PG+1 W @IOF,!,"Page: ",PG,!?10,"Compensation and Pension Exam for "_NAME,!!
|
---|
| 34 | W "MENTAL DISORDERS (except PTSD and Eating Disorders)",!!!
|
---|
| 35 | Q
|
---|
| 36 | SETIOF ; ** Set device control var's
|
---|
| 37 | D HOME^%ZIS
|
---|
| 38 | Q
|
---|