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

DGENLCD.m

Go to the documentation of this file.
  1. DGENLCD ;ALB/CJM - Enrollment Catastophic Disability - List Manager Screen;12 JUN 1997 10:00 am
  1. ;;5.3;Registration;**121,1015**;08/13/93;Build 21
  1. ;
  1. EN(DFN) ;Entry point for the DGENCD CATASTROPHIC DISABILTY List Template
  1. ; Input -- DFN Patient IEN
  1. ; Output -- None
  1. ;
  1. Q:'$G(DFN)
  1. D WAIT^DICD
  1. D EN^VALM("DGENCD CATASTROPHIC DISABILITY")
  1. Q
  1. ;
  1. INIT ;Init variables and list array
  1. D CLEAN^VALM10
  1. S VALMCNT=0
  1. D EN^DGENLCD1("DGEN CD",DFN,.VALMCNT)
  1. Q
  1. ;
  1. HELP ;Help code
  1. S X="?" D DISP^XQORM1 W !!
  1. Q
  1. ;
  1. EXIT ;Exit code
  1. D CLEAN^VALM10
  1. D CLEAR^VALM1
  1. Q
  1. ;
  1. EXPND ;Expand code
  1. Q
  1. ;
  1. HDR ;Header code
  1. N DGPREFNM,X,VA,VAERR
  1. D PID^VADPT
  1. S VALMHDR(1)=$E("Patient: "_$P($G(^DPT(DFN,0)),U),1,30)_" ("_VA("BID")_")"
  1. S X=$S('$D(^DPT(DFN,"TYPE")):"PATIENT TYPE UNKNOWN",$D(^DG(391,+^("TYPE"),0)):$P(^(0),U,1),1:"PATIENT TYPE UNKNOWN")
  1. S VALMHDR(1)=$$SETSTR^VALM1(X,VALMHDR(1),60,80)
  1. Q