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.
  1. AGLKIN ; IHS/ASDS/EFG - LOOK-UP AND EDIT INACTIVE OR DECEASED PATIENTS ;
  1. ;;7.1;PATIENT REGISTRATION;;AUG 25,2005
  1. A W $$S^AGVDF("IOF") W !,"Review and edit DECEASED or INACTIVE patient files.....",!!
  1. 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")
  1. Q:'$D(DFN)
  1. B K ^UTILITY("DIQ1",$J) W !!!,"DATE OF DEATH: " S DR=.351,DIC=2,DA=DFN D EN^DIQ1 I $D(^(DR)) W ^(DR)
  1. 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")=""
  1. W !!,"RECORD DISPOSITION: " S DR=.04,AG("DRENT1")=DUZ(2) D ^AGDICLK W:$D(AG("LKPRINT")) AG("LKPRINT")
  1. 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
  1. E D ^AGED1 K AG("NOUPDATE") G A
  1. END Q