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

ICD183P.m

Go to the documentation of this file.
  1. ICD183P ;ALB/ESD/JAT - ICD/DRG; 11/15/01 9:07am ; 12/3/01 4:17pm
  1. ;;18.0;DRG Grouper;**3**;Oct 13,2000
  1. ;
  1. ;
  1. EN ;- Pre-Install entry point
  1. ;
  1. ;- revise Diagnoses
  1. D CHGDIAG^ICD183P3
  1. ;
  1. ; first need to create routines ICD183PA,B,C
  1. ; from DRG Pricer file from Austin
  1. ; (see ICD182PA,B,C from 2001)
  1. ;
  1. ; - Weights & trims for FY 2002
  1. D BEGWT01
  1. ;
  1. Q
  1. ;
  1. BEGWT01 ;- Entry point for wts & trims update for FY 2002
  1. N DRG,FYR,ICDLOW,ICDHIGH,ICDLOS,ICDWWU,ICDCNT,WT,I,J
  1. D UPD01
  1. Q
  1. ;
  1. UPD01 ;- Load FY 2002 data into ICD DRG file (#80.2)
  1. S FYR=3020000
  1. D BMES^XPDUTL(">>> Adding FY 2002 Weights & Trims...")
  1. Q:$D(^ICD(523,"FY",3020000,0))
  1. F I=1:1 S WT=$P($T(WEIGHTS+I^ICD183PA),";;",2,99) Q:I>200 D SETVAR,FY,MORE
  1. F I=1:1 S WT=$P($T(WEIGHTS+I^ICD183PB),";;",2,99) Q:I>200 D SETVAR,FY,MORE
  1. F I=1:1 S WT=$P($T(WEIGHTS+I^ICD183PC),";;",2,99) Q:$E(WT,1,3)="END" D SETVAR,FY,MORE
  1. S ^ICD("AFY",3020000)=""
  1. D MES^XPDUTL(">>> ...completed.")
  1. D MES^XPDUTL("")
  1. Q
  1. ;
  1. FY ;- Set FY multiple with FYR stats
  1. S $P(^ICD(DRG,"FY",FYR,0),"^",1,4)=FYR_"^"_ICDWWU_"^"_ICDLOW_"^"_ICDHIGH,$P(^(0),"^",9)=ICDLOS
  1. I '$D(^ICD(DRG,"FY",0)) S ^ICD(DRG,"FY",0)="^80.22^"_FYR_"^1" Q
  1. S ICDCNT="" F J=0:1 S ICDCNT=$O(^ICD(DRG,"FY",ICDCNT)) Q:ICDCNT=""
  1. S $P(^ICD(DRG,"FY",0),"^",3,4)=FYR_"^"_J
  1. Q
  1. ;
  1. SETVAR ;- Set variables
  1. S DRG=$E(WT,1,3),ICDLOW=1,ICDLOS=$E(WT,12,14),ICDHIGH=$E(WT,16,17),ICDWWU=$E(WT,5,10)
  1. DRG I $E(DRG,1)=0 S DRG=$E(DRG,2,3) G DRG
  1. S ICDLOS=$E(ICDLOS,1,2)_"."_$E(ICDLOS,3) I $E(ICDLOS,1)=0 S ICDLOS=$E(ICDLOS,2,4)
  1. I $E(ICDHIGH,1)=0 S ICDHIGH=$E(ICDHIGH,2)
  1. S ICDWWU=$E(ICDWWU,1,2)_"."_$E(ICDWWU,3,6) I $E(ICDWWU,1)=0 S ICDWWU=$E(ICDWWU,2,7)
  1. Q
  1. ;
  1. MORE ;- Set zero node with FY 2002 stats
  1. S $P(^ICD(DRG,0),"^",2,4)=ICDWWU_"^"_ICDLOW_"^"_ICDHIGH,$P(^(0),"^",8)=ICDLOS
  1. Q
  1. ;