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

AGED12.m

Go to the documentation of this file.
AGED12 ; IHS/ASDS/EFG - EDIT PAGE 12 ;  
 ;;7.0;IHS PATIENT REGISTRATION;;MAR 28, 2003
 I AGOPT(8)'="Y" G END
VAR D DRAW
L2 W !
 I $Y>8 W !,AGLINE("EQ")
 W !,"Do you wish to ",$S($Y>8:"edit",1:"add")," OTHER TRIBEs? (Y/N) NO// " D READ^AGED1
 Q:$D(DTOUT)!$D(DFOUT)
 G:$D(AG("ED"))&'$D(AGXTERN) @("^AGED"_AG("ED"))
 G EDIT:Y?1"Y".E,END:Y?1"N".E!$D(DLOUT)!$D(DUOUT) D YN^AG G L2
DRAW ; ENTRY POINT.
 S AG("PG")=12
 D ^AGED
 W !,AGLINE("EQ")
 Q:'$D(^AUPNPAT(DFN,43,0))  Q:+$P(^(0),U,4)<1
 W !!,"OTHER TRIBES:",?50,"QUANTUM:",!
 S DIC=9000001.43,DA=DFN F I=0:0 S I=$O(^AUPNPAT(DFN,43,I)) Q:+I'=I  S AG("DRENT1")=I,DR=.01 D ^AGDICLK I $D(AG("LKPRINT")) W !?5,AG("LKPRINT"),?53,$P(@AGL,U,2)
 Q
EDIT W !! S DIE="^AUPNPAT(",DR=4301,DA=DFN D ^DIE,UPDATE1^AGED(DUZ(2),DFN,12,"")
 I '$O(^AUPNPAT(DFN,43,0)) K ^AUPNPAT(DFN,43)
 G VAR
END K AG,DTOUT,DLOUT,DFOUT,DQOUT,DA,DIC,DIE,DR,AG("DRENT1"),AG("LKERR"),AG("LKPRINT")