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

APCDEHS.m

Go to the documentation of this file.
APCDEHS ; IHS/CMI/LAB - HS IN DATA ENTRY ;
 ;;2.0;IHS PCC SUITE;;MAY 14, 2009
 ;
 N DIC,DA,D0,X,Y,DP,DI,DL
 I $G(AUPNPAT)="" W !!,$C(7),$C(7),"Sorry I don't know the patient.",! Q
 D GETTYPE
 G:APCHSTYP="" XIT
 I $G(IO)="" S IOP="HOME" D ^%ZIS
 S APCHSPAT=AUPNPAT
 ;D EN^APCHS
 S APCDHDR="PCC Health Summary for "_$P(^DPT(APCHSPAT,0),U)
 D VIEWR^XBLM("EN^APCHS",APCDHDR)
 S (DFN,Y)=APCHSPAT D ^AUPNPAT
 K APCHSPAT,APCHSTYP,APCHSTAT,APCHSMTY,AMCHDAYS,AMCHDOB,APCDHDR
 D FULL^VALM1
 Q
XIT ;
 K %,Y
 K APCHSTYP,APCHSPAT
 Q
GETTYPE ;
 I $G(AUPNPARM)="" D DEFAULT Q
 S APCHSTYP=$P(AUPNPARM,U,14) I APCHSTYP="" D DEFAULT Q
 I '$D(^APCHSCTL(APCHSTYP)) W !,"Error in Site Parameter File!",$C(7),$C(7) S APCHSTYP="" Q
 Q
DEFAULT ;
 S APCHSTYP=""
 S X="ADULT REGULAR",DIC(0)="",DIC="^APCHSCTL(" D ^DIC K DIC,DA
 I Y=-1 W !!,"PCC DATA ENTRY HEALTH SUMMARY TYPE IS MISSING!!  NOTIFY YOUR SUPERVISOR OR SITE MANAGER.",!! Q
 S APCHSTYP=+Y
 Q
EPDE ;EP - CALLED FROM D/E TEMPLATE
 D EN^XBNEW("^APCDEHS","AUPN*;VALM*")
 K Y
 Q