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

RMPR9S8P.m

Go to the documentation of this file.
  1. RMPR9S8P ;HOIFO/SPS - GUI 2319 PRESCRIPTION INFO SCREEN 8 HOME OXYGEN
  1. ;;3.0;PROSTHETICS;**59**;Feb 09, 1996
  1. ; (IEN)=ien of file 660
  1. ;display detailed record
  1. A1(IEN) G A2
  1. EN(RESULTS,IEN) ;Broker
  1. A2 ;
  1. I '$D(^RMPR(660,IEN)) S RESULTS(0)="NOTHING TO REPORT" G EXIT
  1. S RMPRDFN=$P(^RMPR(660,IEN,0),U,2)
  1. S RMPODFN=RMPRDFN
  1. D BPI,DPI
  1. K PTI,I,RX,Y,DT1,DT2,TRX,IENS,DFN
  1. Q
  1. BPI ; Build pt info hdr
  1. K PTI
  1. ; Name,SSN
  1. S DFN=RMPODFN D DEM^VADPT
  1. ; Current Rx (IEN on ACT DATE)
  1. S RX=$O(^RMPR(665,RMPODFN,"RMPOB"," "),-1)
  1. I 'RX S RESULTS(0)="NOTHING TO REPORT" Q
  1. S Y=$P(^RMPR(665,RMPODFN,"RMPOB",RX,0),U) X ^DD("DD") S DT1=Y
  1. S Y=$P(^RMPR(665,RMPODFN,"RMPOB",RX,0),U,3) X ^DD("DD") S DT2=Y
  1. S PTI(0)=RX
  1. ; Activation date
  1. S PTI(1)=DT1
  1. ; Expiration Date:
  1. S PTI(2)=DT2
  1. ; Rx Remarks
  1. K TRX
  1. S IENS=RX_","_RMPODFN_","
  1. D GETS^DIQ(665.193,IENS,3,,"TRX")
  1. S I=0 F S I=$O(TRX(665.193,IENS,3,I)) Q:I="" D
  1. . S PTI(2+I)=TRX(665.193,IENS,3,I)
  1. Q
  1. DPI ; Display pt info hdr
  1. S I="" F S I=$O(PTI(I)) Q:I="" S RESULTS(I)=PTI(I) ;W !,PTI(I)
  1. Q
  1. EXIT ;
  1. Q