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

SDWLRP3.m

Go to the documentation of this file.
  1. SDWLRP3 ;;IOFO BAY PINES/TEH - WAITING LIST - RPC 3 ; 20 Aug 2002 2:10 PM
  1. ;;5.3;scheduling;**263,1015**;AUG 13 1993;Build 21
  1. ;
  1. ;
  1. ;******************************************************************
  1. ; CHANGE LOG
  1. ;
  1. ; DATE PATCH DESCRIPTION
  1. ; ---- ----- -----------
  1. ; 10/30/2002 Inserted comment for DBIA174
  1. ;
  1. ;
  1. ;
  1. ;
  1. ;
  1. ;
  1. ;******************************************************************
  1. ;
  1. ;
  1. ; Internal ID : Description ; Internal ID : Description
  1. ;
  1. ;
  1. SDPRIOUT() ;PRIORITY SET OF CODES - Internal ID:Description;Internal ID:Description
  1. K ^TMP("SDWLST",$J)
  1. D FIELD^DID(409.3,"10",,"POINTER","^TMP(""SDWLPRI"",$J)")
  1. Q
  1. SDREQOUT() ;REQUEST BY SET OF CODES - Internal ID:Description;Internal ID:Description
  1. K ^TMP("SDWLST",$J)
  1. D FIELD^DID(409.3,"11",,"POINTER","^TMP(""SDWLREQ"",$J)")
  1. Q
  1. SDTYOUT() ;WAIT LIST TYPE - Internal ID:Description;Internal ID:Description
  1. K ^TMP("SDWLST",$J)
  1. D FIELD^DID(409.3,"4",,"POINTER","^TMP(""SDWLTY"",$J)")
  1. Q
  1. SDDISOUT() ;DISPOSITION
  1. K ^TMP("SDWLDIS",$J)
  1. D FIELD^DID(409.3,"21",,"POINTER","^TMP(""SDWLDIS"",$J)")
  1. Q
  1. SDSTOUT() ;CURRENT STATUS
  1. K ^TMP("SDWLST",$J)
  1. D FIELD^DID(409.3,"23",,"POINTER","^TMP(""SDWLST"",$J)")
  1. Q
  1. SDPACOUT() ;PACKAGE
  1. K ^TMP("SDWPAC",$J)
  1. D FIELD^DID(409.3,"26",,"POINTER","^TMP(""SDWLPAC"",$J)")
  1. Q
  1. SDNEOUT() ;NEW ENROLLEE
  1. K ^TMP("SDWLNE",$J)
  1. D FIELD^DID(409.3,"27",,"POINTER","^TMP(""SDWLNE"",$J)")
  1. Q
  1. SDSC(SDWLOUT,SDWLDFN) ;-service connected API
  1. ;
  1. ;
  1. ; Input:
  1. ; Patients DFN
  1. ;
  1. ; Output:
  1. ; ^TMP("SDWLRP3",$J,0)=Service Connected Disability %
  1. ; ^TMP("SDWLRP3",$J,INTERNAL NUMBER)=DISABILITY^%
  1. ;
  1. ;
  1. K ^TMP("SDWLRP3",$J)
  1. D ELIG^VADPT,SVC^VADPT
  1. I $D(VAEL(3)),$P(VAEL(3),U,2) S SDWLSC=$P(VAEL(3),U,2),^TMP("SDWLRP3",$J,0)=SDWLSC
  1. ;
  1. ;10/30/2002;DBIA174 - Direct global access to Patient file, Field .3721 -- Rated Disabilties-teh
  1. ;
  1. I $D(^DPT(SDWLDFN,.372)) S X=0 F S X=$O(^DPT(SDWLDFN,.372,X)) Q:X<1 D
  1. .S Y=$G(^DPT(SDWLDFN,.372,X,0)) I $P(Y,U,3) S SDWLX=$P($G(^DIC(31,+Y,0)),U,1),^TMP("SDWLRP3",$J,$P(Y,U,1))=SDWLX_"^"_$P(Y,U,2)
  1. I '$D(^TMP("SDWLRP3",$J)) S SDWLOUT=-1 Q
  1. K SDWLOUT S SDWLOUT=$NA(^TMP("SDWLRP3",$J))
  1. Q