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

ACHSSTL2.m

Go to the documentation of this file.
ACHSSTL2 ; IHS/ITSC/PMF - INSTALL NEW SITE'S SERVICE CLASSES ;    [ 10/16/2001   8:16 AM ]
 ;;3.1;CONTRACT HEALTH MGMT SYSTEM;;JUN 11, 2001
 ;
 I $D(^ACHS(3,ACHSDUZ2)) Q
 ;
EN ;
 Q:'$D(ACHSDUZ2)
 D HOME^%ZIS
 S ACHSSITE=$P(^DIC(4,ACHSDUZ2,0),U)
 K DIE,DA,DR
 W *7,!!!,"I will now set up the CHS SERVICE CLASSIFICATION FILE for '",ACHSSITE,"'.",!!
 D WAIT^DICD
 W !!
 S ^ACHS(3,0)="CHS SERVICE CLASSIFICATION^9002063",^ACHS(3,ACHSDUZ2,0)=ACHSDUZ2,^ACHS(3,ACHSDUZ2,1,0)="^9002063.02"
SETOBJ ;
 F ACHSO=1:1 S ACHSZ=$S($D(ACHS638):$T(@"OBJ638"+ACHSO),1:$T(@"OBJCLS"+ACHSO)) Q:ACHSZ=" ;;"  D
 . S DIC="^ACHS(3,ACHSDUZ2,1,",DIC(0)="L",X=$E(ACHSZ,4,7),(DA,DA(1))=ACHSDUZ2,DLAYGO=9002063
 . D ^DIC
 . S ACHSK=$P(^ACHS(3,ACHSDUZ2,1,0),U,4),DIE="^ACHS(3,ACHSDUZ2,1,",DA=ACHSK,DR="1///^S X=$P(ACHSZ,U,2);1.05///^S X=$P(ACHSZ,U,3)"
 . D ^DIE,SETDCR
 .Q
 W !!,"Done!!",!!
 S DIK="^ACHS(3,"
 D IXALL^DIK
END ;
 K ACHSI,ACHSK,ACHSZ,ACHSO,DIE,DR,DA,DIK,ACHS638
 Q
 ;
OBJCLS ;;
 ;;2185^PATIENT & ESCORT TRAVEL^I^526^4
 ;;252A^MED LAB SRV OUTP NON-IHS^I^574^2
 ;;252D^DENTAL LAB SERVICES^F^568^5
 ;;252G^NON-FEDERAL HOSPITALIZATION^F^573^1^533^1
 ;;252H^X-RAY SRV OUTP NON-IHS^I^574^2
 ;;252K^CAT SCAN INPATIENT^I^573^1
 ;;252L^HOSPITAL OUTPATIENT VISIT^F^574^2
 ;;252M^EXTD CARE FAC (NURSING HOME)^F^575^3
 ;;252Q^E.R. SERVICES^F^574^2
 ;;252R^RENAL DIALYSIS (HOSP INP)^I^573^1
 ;;252S^PHYSICAL THERAPY SERV.^I^574^2
 ;;254A^PHYS SVCS IN IHS FACILITY^I^240^2
 ;;254B^PHYS INP NON-IHS^F^573^1^533^1
 ;;254D^PHYS OUTP NON-IHS^F^574^4^533^4
 ;;254E^DENTIST (DENTAL CARE)^F^568^5
 ;;254J^FEE SPEC. NON MD NON-IHS FAC^I^573^1^574^2^575^3
 ;;254L^REFRACTIONS ON-IHS^F^574^2
 ;;254M^RENAL DIALYSIS - PHYS OUTP^I^574^2
 ;;254P^RENAL DIALYSIS - PHYS INP^I^573^1
 ;;254V^FEDERAL HOSPITAL (OUTPATIENT)^I^574^2
 ;;2611^DRUGS MEDICINES & VAC.^I^574^2
 ;;2618^BLOOD & BLOOD PRODUCTS^I^573^1
 ;;263A^MEDICAL AND SURGICAL SUPPLIES^I^574^2
 ;;263G^PROSTHETIC & ORTHO. DEVICES^I^574^2
 ;;
OBJ638 ;;
 ;;2185^PATIENT & ESCORT TRAVEL^I^573^1
 ;;252A^MED LAB SRV OUTP NON-IHS^I^573^1
 ;;252D^DENTAL LAB SERVICES^I^573^1
 ;;252G^NON-FEDERAL HOSPITALIZATION^I^573^1
 ;;252H^X-RAY SRV OUTP NON-IHS^I^573^1
 ;;252K^CAT SCAN INPATIENT^I^573^1
 ;;252L^HOSPITAL OUTPATIENT VISIT^I^573^1
 ;;252M^EXTD CARE FAC (NURSING HOME)^I^573^1
 ;;252Q^E.R. SERVICES^I^573^1
 ;;252R^RENAL DIALYSIS (HOSP INP)^I^573^1
 ;;252S^PHYSICAL THERAPY SERV.^I^573^1
 ;;254A^PHYS SVCS IN IHS FACILITY^I^573^1
 ;;254B^PHYS INP NON-IHS^I^573^1
 ;;254D^PHYS OUTP NON-IHS^I^573^1
 ;;254E^DENTIST (DENTAL CARE)^I^573^1
 ;;254J^FEE SPEC. NON MD NON-IHS FAC^I^573^1
 ;;254L^REFRACTIONS ON-IHS^I^573^1
 ;;254M^RENAL DIALYSIS - PHYS OUTP^I^573^1
 ;;254P^RENAL DIALYSIS - PHYS INP^I^573^1
 ;;254V^FEDERAL HOSPITAL (OUTPATIENT)^I^573^1
 ;;2611^DRUGS MEDICINES & VAC.^I^573^1
 ;;2618^BLOOD & BLOOD PRODUCTS^I^573^1
 ;;263A^MEDICAL AND SURGICAL SUPPLIES^I^573^1
 ;;263G^PROSTHETIC & ORTHO. DEVICES^I^573^1
 ;;
SETDCR ;(below)
 F ACHSI=4:2:999 Q:ACHSI=""  D
 . S:'$D(^ACHS(3,ACHSDUZ2,1,ACHSK,"CC",0)) ^(0)="^9002063.03P"
 . S DIC="^ACHS(3,ACHSDUZ2,1,ACHSK,""CC"",",X=$P(ACHSZ,U,ACHSI),DIC("DR")="1////"_$P(ACHSZ,U,ACHSI+1),DIC(0)="L",DA(2)=ACHSDUZ2,DA(1)=ACHSK
 . D ^DIC
 . W "."
 .Q
 Q
 ;