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

DVBCQMR4.m

Go to the documentation of this file.
  1. DVBCQMR4 ;;ALB-CIOFO/ECF - MALE REPRODUCTIVE SYSTEM QUESTIONNAIRE (V2); 6/15/2011
  1. ;;2.7;AMIE;**169**;Apr 10, 1995;Build 5
  1. EN ;
  1. D:'$D(IOF) SETIOF W:(IOST?1"C-".E) @IOF
  1. S DVBAX="Male Reproductive System Conditions",TT=40-($L(DVBAX)\2),PG=1
  1. W !,?TT,DVBAX
  1. W !?40-($L("Disability Benefits Questionnaire")\2),"Disability Benefits Questionnaire",!!
  1. W !,?1,"Name of patient/Veteran: ",$S($G(NAME)]"":NAME,1:"_______________________")
  1. W ?45," SSN: ",$S($G(SSN)]"":SSN,1:"________________"),!!
  1. S DIF="^TMP($J,""DVBAW"",",XCNP=0
  1. K ^TMP($J,"DVBAW")
  1. F ROU="DVBCQMR5","DVBCQMR6" 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;")!(TEXT["CIOFO/") Q
  1. .I TEXT["^TOF^" D HD2
  1. .I TEXT["^END^" S STOP=1 Q
  1. .W:TEXT'["^TOF^" $P(TEXT,";;",2),! I $Y>56 D HD2
  1. K ^TMP($J,"DVBAW"),DVBY,TEXT,STOP,LP,PG,DVBAX,X
  1. Q
  1. ;
  1. HD2 ;
  1. S DVBY=$O(^TMP($J,"DVBAW",LP))
  1. Q:DVBY=""
  1. Q:$G(^TMP($J,"DVBAW",DVBY,0))["^END^"
  1. S PG=PG+1 W @IOF,!,"Page: ",PG,!!,"Disability Benefits Questionnaire for ",$G(NAME),!
  1. W "Male Reproductive System Conditions",!!!
  1. Q
  1. SETIOF ; ** Set device control var's
  1. D HOME^%ZIS
  1. Q