| 1 | DVBCWEA4 ;BPIOFO/RLC - EATING DIORDERS WKS ; 12/26/06 14:00pm
 | 
|---|
| 2 |  ;;2.7;AMIE;**118**;Apr 10, 1995;Build 3
 | 
|---|
| 3 |  ;Per VHA Directive 10-92-142, this routines should not be modified
 | 
|---|
| 4 |  ;
 | 
|---|
| 5 |  ; IOM represents cpl (char per line) depending on printing selection
 | 
|---|
| 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="EATING DISORDERS (Mental Disorders)",PG=1
 | 
|---|
| 12 |  S TT=IOM-$L(DVBAX)\2
 | 
|---|
| 13 |  W !!?TT,DVBAX,!?(IOM-16\2),"# 0915 Worksheet",!!
 | 
|---|
| 14 |  W "Name: ",NAME,?45,"SSN: ",SSN,!
 | 
|---|
| 15 |  W !,"Date of Exam: ____________________",?45,"C-number: ",CNUM
 | 
|---|
| 16 |  W !!,"Place of Exam: ___________________",!!
 | 
|---|
| 17 |  S DIF="^TMP($J,""DVBAW"",",XCNP=0
 | 
|---|
| 18 |  K ^TMP($J,"DVBAW")
 | 
|---|
| 19 |  F ROU="DVBCWEA5" S X=ROU X ^%ZOSF("LOAD")
 | 
|---|
| 20 |  K DIF,XCNP,ROU
 | 
|---|
| 21 |  N LP,TEXT
 | 
|---|
| 22 |  S LP=0,STOP=0
 | 
|---|
| 23 |  F  S LP=$O(^TMP($J,"DVBAW",LP)) Q:(LP="")!(STOP)  D
 | 
|---|
| 24 |  .S TEXT=^TMP($J,"DVBAW",LP,0)
 | 
|---|
| 25 |  .I (TEXT'[";;")!(TEXT[";AMIE;") Q
 | 
|---|
| 26 |  .I TEXT["TOF" D HD2
 | 
|---|
| 27 |  .I TEXT["END" S STOP=1 Q
 | 
|---|
| 28 |  .W:TEXT'["TOF" $P(TEXT,";;",2),! I $Y>57 D HD2
 | 
|---|
| 29 |  K ^TMP($J,"DVBAW"),TEXT,STOP,LP,PG,DVBAX,X,TT
 | 
|---|
| 30 |  Q
 | 
|---|
| 31 |  ;
 | 
|---|
| 32 | HD2 S PG=PG+1 W @IOF,!,"Page: ",PG,!?10,"Compensation and Pension Exam for "_NAME,!!
 | 
|---|
| 33 |  W "EATING DISORDERS (Mental Disorders)",!!!
 | 
|---|
| 34 |  Q
 | 
|---|
| 35 | SETIOF ;  ** Set device control var's
 | 
|---|
| 36 |  D HOME^%ZIS
 | 
|---|
| 37 |  Q
 | 
|---|