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

AGLKIN.m

Go to the documentation of this file.
AGLKIN ; IHS/ASDS/EFG - LOOK-UP AND EDIT INACTIVE OR DECEASED PATIENTS ; 
 ;;7.1;PATIENT REGISTRATION;;AUG 25,2005
A W $$S^AGVDF("IOF") W !,"Review and edit DECEASED or INACTIVE patient files.....",!!
 S AUPNLK("INAC")="",DIC("S")="I $D(^AUPNPAT(Y,41,DUZ(2),0)) I $P(^(0),U,3)]""""!($D(^DPT(Y,.35)))" D PTLK^AG K AUPNLK("INAC")
 Q:'$D(DFN)
B K ^UTILITY("DIQ1",$J) W !!!,"DATE OF DEATH: " S DR=.351,DIC=2,DA=DFN D EN^DIQ1 I $D(^(DR)) W ^(DR)
C W !!,"INACTIVE DATE: " S DIC=9000001.41,DA=DFN,DR=.03,AG("DRENT1")=DUZ(2) D ^AGDICLK K AG("NOUPDATE") I $D(AG("LKPRINT")) W AG("LKPRINT") S AG("NOUPDATE")=""
 W !!,"RECORD DISPOSITION: " S DR=.04,AG("DRENT1")=DUZ(2) D ^AGDICLK W:$D(AG("LKPRINT")) AG("LKPRINT")
D W !!,"Do you wish to edit this patient's file? (Y/N) NO//  " D READ^AG G END:$D(DTOUT)!$D(DFOUT)!$D(DLOUT)!(Y?1"N".E),E:Y?1"Y".E,A:$D(DUOUT) D YN^AG G D
E D ^AGED1 K AG("NOUPDATE") G A
END Q