source: WorldVistAEHR/trunk/r/AUTOMATED_MED_INFO_EXCHANGE-DVBA-DVBC/DVBCREQ1.m@ 1093

Last change on this file since 1093 was 623, checked in by George Lilly, 15 years ago

revised back to 6/30/08 version

File size: 3.0 KB
Line 
1DVBCREQ1 ;ALB/GTS-557/THM-NEW 2507 REQUEST PRINTING ; 5/25/91 11:36 AM
2 ;;2.7;AMIE;**19,29**;Apr 10, 1995
3 ;
4START S PGHD="COMPENSATION AND PENSION EXAM REQUEST",ROHD="Requested by "_RONAME,PG=0
5 D HDR
6 D SSNOUT^DVBCUTIL ;** Set the value of DVBCSSNO
7 W !?2,"Name: ",PNAM,?56,"SSN: ",DVBCSSNO,!?51,"C-Number: ",CNUM,!?56,"DOB: " S Y=DOB X ^DD("DD") W Y,!?2,"Address: ",ADR1,! W:ADR2]"" ?11,ADR2,! W:ADR3]"" ?11,ADR3,!!
8 W !?2,"City,State,Zip+4: ",?48,"Res Phone: ",HOMPHON,!?5,CITY," ",STATE," ",ZIP,?48,"Bus Phone: ",BUSPHON,! I IOST?1"C-".E D CRTBOT G:$D(GETOUT) EXIT
9 W !,"Entered active service: " S Y=EOD X ^DD("DD") S:Y="" Y="Not specified" W Y,?40,"Last rating exam date: ",LREXMDT,! S Y=RAD X ^DD("DD") S:Y="" Y="Not specified" W "Released active service: " W Y,!
10 F LINE=1:1:80 W "="
11 S TVAR(1,0)="0,0,0,2:1,0^** Priority of exam: "_PRIO
12 D WR^DVBAUTL4("TVAR")
13 K TVAR
14 I $D(^DVB(396.3,DA(1),5)),(+$P(^DVB(396.3,DA(1),5),U,1)>0) DO
15 .I $D(DVBAINSF),($D(^DVB(396.3,$P(^DVB(396.3,DA(1),5),U,1),0))) DO
16 ..S Y=$P(^DVB(396.3,$P(^DVB(396.3,DA(1),5),U,1),0),U,5) X ^DD("DD")
17 ..S TVAR(1,0)="0,0,0,0,0^Date original 2507 Reported to MAS: "_Y K Y
18 ..D WR^DVBAUTL4("TVAR")
19 ..K TVAR
20 S TVAR(1,0)="0,0,0,3:2,0^Selected exams: "
21 D WR^DVBAUTL4("TVAR")
22 K TVAR
23 D TST^DVBCUTL3 G:($D(GETOUT)) EXIT
24 W !!!!! I IOST?1"C-".E D CRTBOT G:$D(GETOUT) EXIT
25 W "Current Rated disabilities:",!! D DDIS^DVBCUTL3 G:($D(GETOUT)) EXIT
26 W "Other Disabilities:",!!?2,OTHDIS,!?2,OTHDIS1,!?2,OTHDIS2,!!,"General remarks:",!!
27 K ^UTILITY($J,"W")
28 I IOST?1"C-".E D CRTBOT G:$D(GETOUT) EXIT
29 F LINE=0:0 S LINE=$O(^DVB(396.3,DA(1),2,LINE)) Q:(LINE="")!($D(GETOUT)) S X=^(LINE,0),DIWL=1,DIWF="NW" D ^DIWP I $Y>(IOSL-7),$O(^DVB(396.3,DA(1),2,LINE))]"" D BOT D:'$D(GETOUT) HDR,RMRK
30 D:('$D(GETOUT)) ^DIWW
31 ; ** Exit TAG **
32EXIT D:('$D(GETOUT)) BOT K GETOUT,LPCNT,DVBCDX,DVBCSC,DVBCSSNO Q
33 ;
34HDR S PG=PG+1 I '$D(ONE)!(($D(ONE))&(PG>1))!(IOST?1"C-".E) W @IOF
35 W !,"Date: ",DVBCDT(0),?(80-$L(PGHD)\2),PGHD,?71,"Page: ",PG,! S PRTDIV=$S($D(^DG(40.8,XDIV,0)):$P(^(0),U,1),1:"Unknown division") S PRTDIV="For "_PRTDIV_" Medical Center Division at "_$$SITE^DVBCUTL4
36 W ?(80-$L(PRTDIV)\2),PRTDIV
37 W !! S Y=$P(^DVB(396.3,DA(1),0),U,22) I Y]"" S Z="*** Transferred from ",Z=Z_$S($D(^DIC(4.2,+Y,0)):$P(^(0),U,1),1:"unknown site")_" ***" W ?(80-$L(Z)\2),Z,!
38 W ?(80-$L(ROHD)\2),ROHD,! S RQ="Date Requested: ",Y=DTRQ X ^DD("DD") S RQ=RQ_Y W ?(80-$L(RQ)\2),RQ,! F XLN=1:1:80 W "="
39 K XLN Q
40 ;
41CRTBOT ; ** Write form number at bottom of CRT **
42 I $P(^DVB(396.3,DA(1),0),U,23)="Y" W !?20,"** Claim folder review will be required **",!
43 F LPCNT=$Y:1:(IOSL-7) W !
44 W !,"VA Form 21-2507"
45 D TERM^DVBCUTL3
46 Q
47 ;
48BOT I $P(^DVB(396.3,DA(1),0),U,23)="Y" W !?20,"** Claim folder review will be required **",!
49 I IOST?1"C-".E F LPCNT=$Y:1:(IOSL-6) W !
50 I IOST'?1"C-".E F LPCNT=$Y:1:(IOSL-4) W !
51 W !,"VA Form 21-2507"
52 I IOST?1"C-".E D TERM^DVBCUTL3
53 Q
54 ;
55RMRK W !?2,"Name: ",PNAM,?56,"SSN: ",DVBCSSNO
56 W ! F XLN=1:1:80 W "="
57 W !!,"General remarks (continued):",!!
58 Q
Note: See TracBrowser for help on using the repository browser.