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

AGED4A3.m

Go to the documentation of this file.
AGED4A3 ; IHS/ASDS/EFG - PAGE 4 - INSURANCE SUMMARY OVERFLOW ; 07 Sep 2005  7:26 AM
 ;;7.1;PATIENT REGISTRATION;**1,2,12**;AUG 25, 2005;Build 1
 ;IHS/OIT/NKD AG*7.1*12 INSURER TYPE
 ;
PRVTINS(AGINSREC) ;EP -
 ;S:$G(AGINSREC)'="" AGSELECT=AGINSREC
 ;D ^AGED7
 ;S NOPVTB=0
 ;K AGSELECT
 ;Q:$G(Y)=AGOPT("ESCAPE")
 ;I '$O(^AUPNPRVT(DFN,11,0)) Q
 ;I $G(AGINSPTR)'="",($P($G(^AUTNINS(AGINSPTR,2)),U)'="K"),($G(AGELP("PH"))'="") S INSPTR=AGINSPTR D ^AGED7B
 ;K AGELP
 ;IHS/SD/TPF AG*7.1*1 NEW CODE
 S:$G(AGINSREC)'="" AGSELECT=AGINSREC
 S PARDFN=$P($P(AGINSREC,U,11),",")
 S PARREC=$P($P(AGINSREC,U,11),",",3)
 S POLHPTR=$E($P(AGINSREC,U,7),2,99)
 S AGINSPTR=$P(AGINSREC,U,2)
 S NEWENTRY=0
 D EN^AGEDPRV(PARDFN,PARREC,0,AGINSREC,AGINSPTR,POLHPTR)
 Q:$D(DTOUT)!$D(DUOUT)!$D(DIROUT)
 Q:$G(Y)=AGOPT("ESCAPE")
 I $D(DFOUT) K DFOUT Q  ;AG*7.1*2 SO ^^ TAKES USER TO INS. SUMMARY PAGE FROM POL MEM vIEW PAGE
 ;IS THERE PAGE B INFO? 
 I '$O(^AUPNPRVT(DFN,11,0)) Q
 ;I $G(AGINSPTR)'="",($P($G(^AUTNINS(AGINSPTR,2)),U)'="K"),($G(POLHPTR)'="") D EN^AGEDPRVB(PARDFN,PARREC,0,AGINSREC,"","","")
 I $G(AGINSPTR)'="",($$INSTYP^AGUTL(AGINSPTR)'="K"),($G(POLHPTR)'="") D EN^AGEDPRVB(PARDFN,PARREC,0,AGINSREC,"","","")  ;IHS/OIT/NKD AG*7.1*12
 K POLHPTR,AGINSPTR
 K PARDFN,PARREC,NEWENTRY,AGSELECT
 ;END NEW
 Q