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

SDWLIFT2.m

Go to the documentation of this file.
  1. SDWLIFT2 ;IOFO BAY PINES/OG - INTER-FACILITY TRANSFER: DISPLAY TRANSFER DETAILS ; Compiled March 23, 2005 12:38:06 ; Compiled January 25, 2007 12:35:43
  1. ;;5.3;Scheduling;**415,446**;AUG 13 1993;Build 77
  1. ;
  1. ;
  1. ;******************************************************************
  1. ; CHANGE LOG
  1. ;
  1. ; DATE PATCH DESCRIPTION
  1. ; ---- ----- -----------
  1. ;
  1. ;
  1. Q
  1. EN ; INITIALIZE VARIABLES FOR DISPLAY
  1. ; SDWLFMT: which set of data?
  1. ; 0 - Active
  1. ; 2 - Inactive
  1. N SDWLOK,SDWLI
  1. K SDWLINFO
  1. D GETDATA^SDWLIFT5(.SDWLINFO,SDWLFMT)
  1. S SDWLIFTN=$$GETTN^SDWLIFT(.SDWLINFO)
  1. I 'SDWLIFTN S VALMBCK="R" Q
  1. K SDWLINFO D GETDATA^SDWLIFT5(.SDWLINFO,SDWLFMT)
  1. S (SDWLOK,SDWLI)=0 F S SDWLI=$O(SDWLINFO(SDWLI)) Q:'SDWLI I SDWLINFO(SDWLI,1)=SDWLIFTN S SDWLOK=1 Q
  1. D:SDWLOK EN^VALM("SDWL TRANSFER REQ VIEW")
  1. D INIT^SDWLIFT1(SDWLFMT)
  1. S VALMBCK="R"
  1. Q
  1. ;
  1. INIT ; Default initialization options.
  1. N DIC,D,X,WP,SDWLI,DFN,TMP,SDWLTY,SDWLDA,VADM
  1. S SDWLDA=$$GET1^DIQ(409.35,SDWLIFTN,.01,"I")
  1. D GETS^DIQ(409.35,SDWLIFTN,"1;3;7",,"TMP")
  1. S DFN=$$GET1^DIQ(409.3,SDWLDA,.01,"I")
  1. D DEM^VADPT
  1. S VALMCNT=1
  1. D SET^VALM10(VALMCNT,"Name: "_$E(VADM(1)_SDWLSPS,1,31)_"Status: "_TMP(409.35,SDWLIFTN_",",3))
  1. I TMP(409.35,SDWLIFTN_",",7)'="" S VALMCNT=VALMCNT+1 D SET^VALM10(VALMCNT,"Transfer accepted by: "_TMP(409.35,SDWLIFTN_",",7))
  1. S VALMCNT=VALMCNT+1
  1. D SET^VALM10(VALMCNT,"SSN: "_$E($P(VADM(2),U,2)_SDWLSPS,1,31)_"Date of birth: "_$P(VADM(3),U,2))
  1. S VALMCNT=VALMCNT+1
  1. D SET^VALM10(VALMCNT,"Wait List Type: "_$$GET1^DIQ(409.3,SDWLDA,4)_" : "_$$GET1^DIQ(409.3,SDWLDA,4+$$GET1^DIQ(409.3,SDWLDA,4,"I")))
  1. S VALMCNT=VALMCNT+1
  1. D SET^VALM10(VALMCNT,"Transfer to: "_$$GET1^DIQ(4,$$FIND1^DIC(4,"","X",TMP(409.35,SDWLIFTN_",",1),"D"),.01))
  1. S VALMCNT=VALMCNT+1
  1. D SET^VALM10(VALMCNT,"Comments: ")
  1. S X=$$GET1^DIQ(409.35,SDWLIFTN_",",5,"Z","WP")
  1. S SDWLI=0 F S SDWLI=$O(WP(SDWLI)) Q:'SDWLI S VALMCNT=VALMCNT+1 D SET^VALM10(VALMCNT,WP(SDWLI,0))
  1. Q
  1. ;
  1. HD ; -- Make header line for list processor
  1. S X=$$SETSTR^VALM1("User: "_SDWLDZN,"",1,79)
  1. S VALMHDR(1)=X,VALMHDR(2)=""
  1. Q
  1. EXIT ; Tidy up
  1. K SDWLIFTN
  1. K VALMHDR
  1. Q