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

RMPR4P24.m

Go to the documentation of this file.
  1. RMPR4P24 ;PHX/HPL-Print patient PC notification letter ;10/31/1994
  1. ;;3.0;PROSTHETICS;**3,20,55,161**;Feb 09, 1996;Build 2
  1. ;
  1. ; ODJ - patch 55 - 1/29/01 - replace hard coded mail route code 121
  1. ; with call to extrinsic for site param.
  1. ; see nois AUG-1097-32118
  1. ;
  1. EN(RDA) ;SETUP VARIABLES AND PRINT PATIENT NOTIFICATION LETTER
  1. ;VARIABLE REQUIRED:RDA - ENTRY # IN FILE 664
  1. N VAHOW
  1. S NAME=$P(^RMPR(664,RDA,0),U,9),RMPRINIT=NAME,RMPREMP=$$SIG^RMPR31U(NAME)
  1. I $D(^VA(200,RMPRINIT,.13)) S RMPRPHON=$P(^VA(200,RMPRINIT,.13),U,2)
  1. I '$D(^VA(200,$P(^RMPR(664,RDA,0),U,9),.13)) S RMPRPHON=RMPR("PHONE")
  1. S DFN=$P(^RMPR(664,RDA,0),U,2) D ADD^VADPT,DEM^VADPT
  1. S RMPRITEM=""
  1. S RMPRITM=0 F LP=1:1 S RMPRITM=$O(^RMPR(664,RDA,1,RMPRITM)) Q:RMPRITM="B" S RMPRITEM(LP)=$P(^RMPR(664,RDA,1,RMPRITM,0),U,2),RMPRITM(LP)=$P(^RMPR(664,RDA,1,RMPRITM,0),U,1)
  1. S HEADING="Department of Veterans Affairs"
  1. W !!!!!,?IOM-$L(HEADING)\2,HEADING
  1. S RMPRTAB=IOM-$L(RMPR("NAME"))\2 W !,?RMPRTAB,RMPR("NAME")
  1. S RMPRTAB=IOM-$L(RMPR("ADD"))\2 W !,?RMPRTAB,RMPR("ADD")
  1. S RMPRTAB=IOM-$L(RMPR("CITY"))\2 W !,?RMPRTAB,RMPR("CITY")
  1. S RMPRTAB=7 S NAME=VADM(1) S FIXDNAME=$$PARS^RMPRUTL1(NAME)
  1. W !!,?44,$$FMTE^XLFDT(DT,"D")
  1. S FIXDNAME=$E(FIXDNAME,2,$L(FIXDNAME)-2)
  1. W !!,?RMPRTAB,$S($P(VADM(5),U,1)["M":"MR. ",$P(VADM(5),U,1)["F":"MS. ",1:"")_$$UP^XLFSTR(FIXDNAME)
  1. W ?44,"In reply refer to: ",$P(^DIC(4,RMPR("STA"),99),U,1)_"/"_$$ROU^RMPRUTIL(RMPRSITE),!
  1. ;display purchase card transaction
  1. W:VAPA(1)'="" ?RMPRTAB,VAPA(1)
  1. W:VAPA(2)'="" ?RMPRTAB,VAPA(2)
  1. W ?44,"Accounting Symbol ",$P(^RMPR(664,RDA,4),U,5),!
  1. W:VAPA(3)'="" ?RMPRTAB,VAPA(3)
  1. W:VAPA(4)'="" ?RMPRTAB,VAPA(4)_", "_$P(VAPA(5),"^",2)_" "_VAPA(6)
  1. W ?44,"Veteran: ",VADM(1),!
  1. ; *161 removed old line which printed SSN
  1. W !!,?RMPRTAB,"Dear ",$S($P(VADM(5),"^",1)["M":"Mr. ",$P(VADM(5),"^",1)["F":"Ms. ",1:"")_FIXDNAME_","
  1. W !!,?RMPRTAB+0
  1. W "This is to notify you that the items listed below were ordered"
  1. W !,?RMPRTAB,"for you on "
  1. W $$FMTE^XLFDT($P(^RMPR(664,RDA,0),U,1),"D")_". Delivery of this equipment is expected"
  1. W !,?RMPRTAB,$S($P($G(^RMPR(664,RDA,3)),U,2)'="":"on or about "_$$FMTE^XLFDT($P(^RMPR(664,RDA,3),U,2),"D")_".",1:"in 30 days from the order date.")
  1. W !!,?RMPRTAB,"If you do not receive it within 5 days of the expected date,"
  1. S LINE="please contact "_RMPREMP_", of my staff, at "_RMPRPHON_"."
  1. W $$RAP^RMPRUTL1(LINE,RMPRTAB)
  1. ITEMS NEW DA
  1. W !
  1. S RMPRLAST=$P(^RMPR(664,RDA,1,0),U,4) F LP=1:1:RMPRLAST D
  1. .I $D(RMPRITEM(LP)) W !,?RMPRTAB+3,RMPRITEM(LP)
  1. .E S RMPRITM=RMPRITM(LP) W !,?RMPRTAB+3,$$ITM^RMPR31U(RMPRITM)
  1. W !!,?RMPRTAB,"Sincerely,"
  1. W !!!!!,?RMPRTAB,RMPR("SIG")
  1. W !,?RMPRTAB,RMPR("SBT")
  1. W @IOF
  1. K RMPREMP,RMPRNAME,LINE Q " "