Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: DVBCWPE6

DVBCWPE6.m

Go to the documentation of this file.
  1. DVBCWPE6 ;BPOIFO/ESW - REVIEW EXAM PTSD ; 10/1/02 5:47pm
  1. ;;2.7;AMIE;**46**;Apr 10, 1995
  1. ;Per VHA Directive 10-92-142, this routine should not be modified
  1. ;
  1. ; IOM represents cpl (characters per line) depending on print. select"
  1. ; The header will be centered for any print out.
  1. ;
  1. EN D:'$D(IOF) SETIOF W:(IOST?1"C-".E) @IOF
  1. S DVBAX="Compensation and Pension Examination",TT=IOM-$L(DVBAX)\2
  1. W !?TT,DVBAX
  1. S DVBAX="REVIEW EXAMINATION FOR POST-TRAUMATIC STRESS DISORDER (PTSD)",TT=IOM-$L(DVBAX)\2,PG=1
  1. ; $L("# XXXX Worksheet")=16 for all worksheets
  1. ;
  1. W !!?TT,DVBAX,!?(IOM-16\2),"# 0920 Worksheet",!!
  1. W "Name: ",NAME,?45,"SSN: ",SSN
  1. W !!,"Date of Exam: ____________________",?45,"C-number: ",CNUM
  1. W !!,"Place of Exam: ___________________",!!
  1. S DIF="^TMP($J,""DVBAW"",",XCNP=0
  1. K ^TMP($J,"DVBAW")
  1. F ROU="DVBCWPE4","DVBCWPE7" S X=ROU X ^%ZOSF("LOAD")
  1. K DIF,XCNP,ROU
  1. N LP,TEXT
  1. S LP=0,STOP=0
  1. F S LP=$O(^TMP($J,"DVBAW",LP)) Q:(LP="")!(STOP) D
  1. .S TEXT=^TMP($J,"DVBAW",LP,0)
  1. .I (TEXT'[";;")!(TEXT[";AMIE;") Q
  1. .I TEXT["TOF" D HD2
  1. .I TEXT["END" S STOP=1 Q
  1. .W:TEXT'["TOF" $P(TEXT,";;",2),! I $Y>55 D HD2
  1. K ^TMP($J,"DVBAW"),TEXT,STOP,LP,PG,DVBAX,X,TT
  1. Q
  1. ;
  1. HD2 S PG=PG+1 W @IOF,!,"Page: ",PG,!?10,"Compensation and Pension Exam for "_NAME,!!
  1. W "REVIEW EXAMINATION FOR POST-TRAUMATIC STRESS DISORDER (PTSD)",!!!
  1. Q
  1. SETIOF ; ** Set device control var's
  1. D HOME^%ZIS
  1. Q