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

DVBCWB2.m

Go to the documentation of this file.
  1. DVBCWB2 ;ALB/RLC BONES WKS ; 12 FEB 2007
  1. ;;2.7;AMIE;**121**;Apr 10, 1995;Build 9
  1. ;
  1. EN D:'$D(IOF) SETIOF W:(IOST?1"C-".E) @IOF
  1. S DVBAX="For BONES (Fractures and Bone Disease)",PG=1
  1. W !?22,"Compensation and Pension Examination",!,?(IOM-$L(DVBAX)\2),DVBAX,!?33,"# 1410 Worksheet",!!
  1. W "Name: ",NAME,?45,"SSN: ",SSN,!,?45,"C-number: ",CNUM,!,"Date of exam: ____________________",!!,"Place of exam: ___________________",!!
  1. S DIF="^TMP($J,""DVBAW"",",XCNP=0
  1. K ^TMP($J,"DVBAW")
  1. F ROU="DVBCWB3" 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>58 D HD2
  1. K ^TMP($J,"DVBAW"),TEXT,STOP,LP,PG,DVBAX,X
  1. Q
  1. ;
  1. HD2 S PG=PG+1 W @IOF,!,"Page: ",PG,!!,"Compensation and Pension Exam for "_NAME,!
  1. W "BONES (Fractures and Bone Disease)",!!!
  1. Q
  1. SETIOF ; ** Set device control var's
  1. D HOME^%ZIS
  1. Q