ICDTBL9D ;ALB/MJB - GROUPER UTILITY FUNCTIONS;08/09/2010
;;18.0;DRG Grouper;**56,69**;Oct 20, 2000;Build 7
DRG901 ;
DRG902 ;
DRG903 S ICDRG=$S(ICDMCC=2:901,ICDMCC=1:902,1:903) Q
DRG904 ;
DRG905 S ICDRG=$S(ICDMCC>0:904,1:905) Q
DRG906 S ICDRG=906 Q
DRG907 ;
DRG908 ;
DRG909 S ICDRG=$S(ICDMCC=2:907,ICDMCC=1:908,1:909) Q
DRG913 ;
DRG914 S ICDRG=$S(ICDMCC=2:913,1:914) Q
DRG915 ;
DRG916 S ICDRG=$S(ICDMCC=2:915,1:916) Q
DRG917 ;
DRG918 S ICDRG=$S(ICDMCC=2:917,1:918) Q
DRG919 ;
DRG920 ;
DRG921 S ICDRG=$S(ICDMCC=2:919,ICDMCC=1:920,1:921) Q
DRG922 ;
DRG923 S ICDRG=$S(ICDMCC=2:922,1:923) Q
DRG927 S ICDRG=927 Q
DRG928 ;
DRG929 S ICDRG=$S(ICDMCC>0:928,1:929) Q
DRG933 S ICDRG=933 Q
DRG934 S ICDRG=934 Q
DRG935 S ICDRG=935 Q
DRG939 ;
DRG940 ;
DRG941 I ICDOR["O" S ICDRG=$S(ICDMCC=2:939,ICDMCC=1:940,1:941) Q
Q
DRG945 ;
DRG946 S ICDRG=$S(ICDMCC>0:945,1:946) D DRG941 Q
DRG947 ;
DRG948 S ICDRG=$S(ICDMCC=2:947,1:948) D DRG941 Q
DRG949 ;
DRG950 S ICDRG=$S(ICDMCC>0:949,1:950) D DRG941 Q
DRG951 S ICDRG=951 D DRG941 Q
DRG955 S ICDRG=955 Q
DRG956 S ICDRG=956 Q
DRG957 ;
DRG958 ;
DRG959 S ICDRG=$S(ICDMCC=2:957,ICDMCC=1:958,1:959) Q
DRG963 ;
DRG964 ;
DRG965 S ICDRG=$S(ICDMCC=2:963,ICDMCC=1:964,1:965) Q
DRG969 ;
DRG970 S ICDRG=$S(ICDMCC=2:969,1:970) Q
DRG974 ;
DRG975 ;
DRG976 S ICDRG=$S(ICDMCC=2:974,ICDMCC=1:975,1:976) Q
DRG977 S ICDRG=977 Q
DRG981 ;
DRG982 ;
DRG983 I ICDOR["OA",ICDOTMP["40^41^42" D DRG42^ICDTBL0D Q
I ICDDX(1)=$O(^ICD9("AB","278.01 ",0))&($D(ICDDXT("V85.43"))) S ICDRG=983 Q
S ICDRG=$S(ICDMCC=2:981,ICDMCC=1:982,1:983) Q
DRG984 ;
DRG985 ;
DRG986 S ICDRG=$S(ICDMCC=2:984,ICDMCC=1:985,1:986) Q
DRG987 ;
DRG988 ;
DRG989 S ICDRG=$S(ICDMCC=2:987,ICDMCC=1:988,1:989) Q
DRG998 S ICDRG=998 Q
DRG999 S ICDRG=999 Q
Q
ICDTBL9D ;ALB/MJB - GROUPER UTILITY FUNCTIONS;08/09/2010
+1 ;;18.0;DRG Grouper;**56,69**;Oct 20, 2000;Build 7
DRG901 ;
DRG902 ;
DRG903 SET ICDRG=$SELECT(ICDMCC=2:901,ICDMCC=1:902,1:903)
QUIT
DRG904 ;
DRG905 SET ICDRG=$SELECT(ICDMCC>0:904,1:905)
QUIT
DRG906 SET ICDRG=906
QUIT
DRG907 ;
DRG908 ;
DRG909 SET ICDRG=$SELECT(ICDMCC=2:907,ICDMCC=1:908,1:909)
QUIT
DRG913 ;
DRG914 SET ICDRG=$SELECT(ICDMCC=2:913,1:914)
QUIT
DRG915 ;
DRG916 SET ICDRG=$SELECT(ICDMCC=2:915,1:916)
QUIT
DRG917 ;
DRG918 SET ICDRG=$SELECT(ICDMCC=2:917,1:918)
QUIT
DRG919 ;
DRG920 ;
DRG921 SET ICDRG=$SELECT(ICDMCC=2:919,ICDMCC=1:920,1:921)
QUIT
DRG922 ;
DRG923 SET ICDRG=$SELECT(ICDMCC=2:922,1:923)
QUIT
DRG927 SET ICDRG=927
QUIT
DRG928 ;
DRG929 SET ICDRG=$SELECT(ICDMCC>0:928,1:929)
QUIT
DRG933 SET ICDRG=933
QUIT
DRG934 SET ICDRG=934
QUIT
DRG935 SET ICDRG=935
QUIT
DRG939 ;
DRG940 ;
DRG941 IF ICDOR["O"
SET ICDRG=$SELECT(ICDMCC=2:939,ICDMCC=1:940,1:941)
QUIT
+1 QUIT
DRG945 ;
DRG946 SET ICDRG=$SELECT(ICDMCC>0:945,1:946)
DO DRG941
QUIT
DRG947 ;
DRG948 SET ICDRG=$SELECT(ICDMCC=2:947,1:948)
DO DRG941
QUIT
DRG949 ;
DRG950 SET ICDRG=$SELECT(ICDMCC>0:949,1:950)
DO DRG941
QUIT
DRG951 SET ICDRG=951
DO DRG941
QUIT
DRG955 SET ICDRG=955
QUIT
DRG956 SET ICDRG=956
QUIT
DRG957 ;
DRG958 ;
DRG959 SET ICDRG=$SELECT(ICDMCC=2:957,ICDMCC=1:958,1:959)
QUIT
DRG963 ;
DRG964 ;
DRG965 SET ICDRG=$SELECT(ICDMCC=2:963,ICDMCC=1:964,1:965)
QUIT
DRG969 ;
DRG970 SET ICDRG=$SELECT(ICDMCC=2:969,1:970)
QUIT
DRG974 ;
DRG975 ;
DRG976 SET ICDRG=$SELECT(ICDMCC=2:974,ICDMCC=1:975,1:976)
QUIT
DRG977 SET ICDRG=977
QUIT
DRG981 ;
DRG982 ;
DRG983 IF ICDOR["OA"
IF ICDOTMP["40^41^42"
DO DRG42^ICDTBL0D
QUIT
+1 IF ICDDX(1)=$ORDER(^ICD9("AB","278.01 ",0))&($DATA(ICDDXT("V85.43")))
SET ICDRG=983
QUIT
+2 SET ICDRG=$SELECT(ICDMCC=2:981,ICDMCC=1:982,1:983)
QUIT
DRG984 ;
DRG985 ;
DRG986 SET ICDRG=$SELECT(ICDMCC=2:984,ICDMCC=1:985,1:986)
QUIT
DRG987 ;
DRG988 ;
DRG989 SET ICDRG=$SELECT(ICDMCC=2:987,ICDMCC=1:988,1:989)
QUIT
DRG998 SET ICDRG=998
QUIT
DRG999 SET ICDRG=999
QUIT
+1 QUIT