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

ACHSSTL1.m

Go to the documentation of this file.
ACHSSTL1 ; IHS/ITSC/PMF - INSTALL A NEW SITE'S COST CENTERS ;   [ 12/06/2002  10:36 AM ]
 ;;3.1;CONTRACT HEALTH MGMT SYSTEM;**5**;JUN 11, 2001
 ;IHS/SET/GTH ACHS*3.1*5 12/06/2002 - Don't setup COST CENTERs if already setup.
 Q:'$D(DUZ(2))
 D HOME^%ZIS
 S ACHSSITE=$$LOC^ACHS
SETCTR ;
 K DIC,DIE,DA,DR
 I $P(^ACHS(1,0),U,3) W !!,"CHS COST CENTER file is already Setup." D END Q  ;IHS/SET/GTH ACHS*3.1*5 12/06/2002
 W *7,!!!,"Setting up the CHS COST CENTER file.",!!
 D WAIT^DICD
 W !!
 S ^ACHS(1,0)="CHS COST CENTER^9002061I^"
CC1 ;
 F ACHSI=1:1 S ACHSZ=$S($D(ACHS638):$T(@"COST638"+ACHSI),1:$T(@"COSTIHS"+ACHSI)) Q:ACHSZ=" ;;"  D
 . S DIC="^ACHS(1,",DIC(0)="L",X=$E(ACHSZ,4,6),DLAYGO=9002061,DIC("DR")="1///"_$P(ACHSZ,U,2)
 . D ^DIC
 . W "."
 .Q
 W !!,"Done!!"
END ;
 K DIE,DIC,DA,DLAYGO,DR,ACHSI,ACHSZ,ACHSK,ACHSC,X
 Q
COSTIHS ;;
 ;;240^PHY SVCS IN IHS FACILITY
 ;;526^PATIENT & ESCORT TRAVEL
 ;;533^RENAL DIALYSIS (NON IHS)
 ;;568^DENTAL SERVICES
 ;;573^CHS GM & S HOSP
 ;;574^CHS AMBULATORY CARE
 ;;575^CHS ALL OTHER/REHAB
 ;;
COST638 ;;
 ;;573^CHS GM & S HOSP
 ;;