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

ICD1899O.m

Go to the documentation of this file.
  1. ICD1899O ;ALB/JDG - YEARLY DRG UPDATE;8/9/2010
  1. ;;18.0;DRG Grouper;**99**;Oct 20, 2000;Build 2
  1. ;
  1. ; Inactivating DRG(s) - will add an entry for fiscal year 2020
  1. ; DRG is being inactivated with an inactive status.
  1. Q
  1. ;
  1. ;
  1. INACTDRG ;
  1. N ICDLINE,ICDX,ICDDRG,ICDDESC,DA,DIE,DR,ICDMDC,ICDSURG,ICDFDA
  1. D BMES^XPDUTL(">>> Inactivating DRG(s) for FY 2020...")
  1. F ICDLINE=1:1 S ICDX=$T(INAC+ICDLINE) S ICDDRG=$P(ICDX,";;",2) Q:ICDDRG="EXIT" D
  1. .S ICDDESC="NO LONGER VALID"
  1. .S DA(ICDLINE)=$P(ICDDRG,U)
  1. .S DA=1
  1. .S DIE="^ICD("_DA(ICDLINE)_",1,"
  1. .S DR=".01///^S X=ICDDESC"
  1. .D ^DIE
  1. .; check if already done in case patch being re-installed
  1. .Q:$D(^ICD($P(ICDDRG,U),66,"B",3191001))
  1. .; add entry to 80.266
  1. .S ICDMDC=$P(ICDDRG,U,2)
  1. .S ICDSURG=$P(ICDDRG,U,3)
  1. .S ICDDRG=$P(ICDDRG,U)
  1. .S ICDFDA(80.2,"?1,",.01)=ICDDRG
  1. .S ICDFDA(80.266,"+2,?1,",.01)=3191001
  1. .S ICDFDA(80.266,"+2,?1,",.03)=0
  1. .S ICDFDA(80.266,"+2,?1,",.05)=ICDMDC
  1. .S ICDFDA(80.266,"+2,?1,",.06)=ICDSURG
  1. .D UPDATE^DIE("","ICDFDA") K ICDFDA
  1. .; add entry to 80.268 and 80.2681
  1. .S ICDFDA(80.2,"?1,",.01)=ICDDRG
  1. .S ICDFDA(80.268,"+2,?1,",.01)=3191001
  1. .D UPDATE^DIE("","ICDFDA") K ICDFDA
  1. .S ICDFDA(80.2,"?1,",.01)=ICDDRG
  1. .S ICDFDA(80.2681,"?2,?1,",.01)=3191001
  1. .S ICDFDA(80.2681,"+3,?2,?1,",.01)=ICDDESC
  1. .D UPDATE^DIE("","ICDFDA") K ICDFDA
  1. ;
  1. ;
  1. INAC ;DRG^MDC^SURG (1=surg, 0=med)
  1. ;;691^11^0
  1. ;;692^11^0
  1. ;;EXIT