source: FOIAVistA/trunk/r/AUTOMATED_MED_INFO_EXCHANGE-DVBA-DVBC/DVBCRPR1.m@ 1535

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

initial load of FOIAVistA 6/30/08 version

File size: 2.1 KB
Line 
1DVBCRPR1 ;ALBANY-ISC/GTS-REPRINT C&P REPORT CONTINUED ;4/28/93
2 ;;2.7;AMIE;**2,119**;Apr 10, 1995;Build 10
3 ;
4 ; ** Entry points called only from DVBCRPRT **
5 ; ** All TAGS are entry points **
6HDR S PG=PG+1
7 I +$G(DVBGUI)&&(PG>1) Q
8 I PG>1 D HDR3^DVBCUTL2 Q
9 S:ZPR'="E" TOTTIME=$$PROCDAY^DVBCUTL2(DA(1))
10 S:ZPR="E" TOTTIME=$$INSFTME^DVBCUTA1(DA(1))
11 S OUTTIME="Processing time: "_TOTTIME
12 I (IOST?1"C-".E)!($D(DVBAON2)) W @IOF
13 S:('$D(DVBAON2)) DVBAON2=""
14 W !,"Date: ",DVBCDT(0),?(80-$L(PGHD)\2),PGHD,?71,"Page: ",PG,!?(80-$L(DVBCSITE)\2),DVBCSITE,!
15 W ?29,"** REPRINT OF FINAL **",! W ?(80-$L(OUTTIME)\2),OUTTIME,!
16 W ?(80-$L(EXHD)\2),EXHD,! F LNE=1:1:80 W "="
17 K LNE S:EXHD["AGENT ORANGE" DVBCAO=1 I EXHD'["AGENT ORANGE" K DVBCAO
18 D SSNOUT^DVBCUTIL
19 W !!?2,"Name: ",PNAM,?56,"SSN: ",DVBCSSNO,!?51,"C-Number: ",CNUM,!?56,"DOB: " S Y=DOB X XDD W Y,!?2,"Address: ",ADR1,! W:ADR2]"" ?11,ADR2,! W:ADR3]"" ?11,ADR3,!!
20 K DVBCSSNO
21 W !?2,"City,State,Zip+4: ",?48,"Res Phone: ",HOMPHON,!?5,CITY," ",STATE," ",ZIP,?48,"Bus Phone: ",BUSPHON,!
22 W !,"Entered active service: " S Y=EOD X XDD S:Y="" Y="Not specified" W Y,?40,"Last rating exam date: ",LREXMDT,! S Y=RAD X XDD S:Y="" Y="Not specified" W "Released active service: " W Y,!!,"Priority of exam: ",PRIO,!
23 F LNE=1:1:80 W "="
24 W !
25 Q
26 ;
27UP F XIX=$Y:1:(IOSL-6) W !
28 Q
29 ;
30BOT I '$D(AUTO),$D(PRINT) D UP W ?7,"This exam has been reviewed and approved by the examining physician" W:$D(DVBCAO) !?27,"and signed by the veteran" W ".",!!,"VA Form 2507",! ;for RO
31 I $D(AUTO),$D(PRINT) D UP W ?7,"Adequated by: ___________________________________ Date: _____________",!!
32 I $D(AUTO),$D(PRINT) W "Physician signature: ___________________________________ Date: _____________",!!,"VA Form 2507",!
33 Q
34 ;
35HDA S:'$D(XPG) XPG=0 S XPG=XPG+1
36 I (IOST?1"C-".E)!($D(DVBAON2)) W @IOF
37 S:('$D(DVBAON2)) DVBAON2=""
38 W !,"Final C&P Reports for print date " S Y=DT X XDD W Y,!!,"Operator: ",$S($D(^VA(200,+DUZ,0)):$P(^(0),U,1),1:"Unknown operator"),!,"Location: ",$S($D(^DIC(4,+DUZ(2),0)):$P(^(0),U,1),1:"Unknown location"),!
39 W !,"Veteran Name",?28,"SSN",?43,"C-Number",?55,"Request date",!
40 F XXLN=1:1:79 W "-"
41 W !!
42 Q
Note: See TracBrowser for help on using the repository browser.