ICDTBL6 ;ALB/EG/MRY - GROUPER UTILITY FUNCTIONS ; 10/16/07 9:40am
;;18.0;DRG Grouper;**31**;Oct 20, 2000;Build 7
DRG600 ;
DRG601 S ICDRG=$S(ICDMCC>0:600,1:601) Q
DRG602 ;
DRG603 S ICDRG=$S(ICDMCC=2:602,1:603) Q
DRG604 ;
DRG605 S ICDRG=$S(ICDMCC=2:604,1:605) Q
DRG606 ;
DRG607 S ICDRG=$S(ICDMCC=2:606,1:607) Q
DRG614 ;
DRG615 S ICDRG=$S(ICDMCC>0:614,1:615) Q
DRG616 ;
DRG617 ;
DRG618 S ICDRG=$S(ICDMCC=2:616,ICDMCC=1:617,1:618) Q
DRG619 ;
DRG620 ;
DRG621 S ICDRG=$S(ICDMCC=2:619,ICDMCC=1:620,1:621) Q
DRG622 ;
DRG623 ;
DRG624 S ICDRG=$S(ICDMCC=2:622,ICDMCC=1:623,1:624) Q
DRG625 ;
DRG626 ;
DRG627 S ICDRG=$S(ICDMCC=2:625,ICDMCC=1:626,1:627) Q
DRG628 ;
DRG629 ;
DRG630 S ICDRG=$S(ICDMCC=2:628,ICDMCC=1:629,1:630) Q
DRG637 ;
DRG638 ;
DRG639 S ICDRG=$S(ICDMCC=2:637,ICDMCC=1:638,1:639) Q
DRG640 ;
DRG641 S ICDRG=$S(ICDMCC=2:640,1:641) Q
DRG642 S ICDRG=642 Q
DRG643 ;
DRG644 ;
DRG645 S ICDRG=$S(ICDMCC=2:643,ICDMCC=1:644,1:645) Q
DRG652 S ICDRG=652 Q
DRG653 ;
DRG654 ;
DRG655 S ICDRG=$S(ICDMCC=2:653,ICDMCC=1:654,1:655) Q
DRG656 ;DRGs 656-661
S ICDRG=999
S ICDRG=$S(ICDPD["M"&(ICDMCC=2):656,ICDPD["M"&(ICDMCC=1):657,ICDPD["M":658,1:ICDRG)
I "656^657^658"[ICDRG Q
S ICDRG=$S(ICDRG'["M"&(ICDMCC=2):659,ICDPD'["M"&(ICDMCC=1):660,1:661)
Q
DRG657 D DRG656 Q
DRG658 D DRG656 Q
DRG659 D DRG656 Q
DRG660 D DRG656 Q
DRG661 D DRG656 Q
DRG662 ;
DRG663 ;
DRG664 S ICDRG=$S(ICDMCC=2:662,ICDMCC=1:663,1:664) Q
DRG665 ;
DRG666 ;
DRG667 S ICDRG=$S(ICDMCC=2:665,ICDMCC=1:666,1:667) Q
DRG668 ;
DRG669 ;
DRG670 S ICDRG=$S(ICDMCC=2:668,ICDMCC=1:669,1:670) Q
DRG671 ;
DRG672 S ICDRG=$S(ICDMCC>0:671,1:672) Q
DRG673 ;
DRG674 ;
DRG675 S ICDRG=$S(ICDMCC=2:673,ICDMCC=1:674,1:675) Q
DRG682 ;
DRG683 ;
DRG684 S ICDRG=$S(ICDMCC=2:682,ICDMCC=1:683,1:684) Q
DRG685 S ICDRG=685 Q
DRG686 ;
DRG687 ;
DRG688 S ICDRG=$S(ICDMCC=2:686,ICDMCC=1:687,1:688) Q
DRG689 ;
DRG690 S ICDRG=$S(ICDMCC=2:689,1:690) Q
DRG691 ;DRGs 691-694
S ICDRG=999
S ICDRG=$S('$D(ICDPDRG(691)):"",$D(ICDOP(" 98.51"))&(ICDMCC>0):691,$D(ICDOP(" 98.51")):692,1:ICDRG)
I "691^692"[ICDRG Q
S ICDRG=$S('$D(ICDPDRG(691)):"",ICDMCC=2:693,1:694)
Q
DRG692 D DRG691 Q
DRG693 D DRG691 Q
DRG694 D DRG691 Q
DRG695 ;
DRG696 S ICDRG=$S(ICDMCC=2:695,1:696) Q
DRG697 S ICDRG=697 Q
DRG698 ;
DRG699 S ICDRG=$S(ICDMCC=2:698,ICDMCC=1:699,1:700) Q
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HICDTBL6 2361 printed Nov 22, 2024@17:02:01 Page 2
ICDTBL6 ;ALB/EG/MRY - GROUPER UTILITY FUNCTIONS ; 10/16/07 9:40am
+1 ;;18.0;DRG Grouper;**31**;Oct 20, 2000;Build 7
DRG600 ;
DRG601 SET ICDRG=$SELECT(ICDMCC>0:600,1:601)
QUIT
DRG602 ;
DRG603 SET ICDRG=$SELECT(ICDMCC=2:602,1:603)
QUIT
DRG604 ;
DRG605 SET ICDRG=$SELECT(ICDMCC=2:604,1:605)
QUIT
DRG606 ;
DRG607 SET ICDRG=$SELECT(ICDMCC=2:606,1:607)
QUIT
DRG614 ;
DRG615 SET ICDRG=$SELECT(ICDMCC>0:614,1:615)
QUIT
DRG616 ;
DRG617 ;
DRG618 SET ICDRG=$SELECT(ICDMCC=2:616,ICDMCC=1:617,1:618)
QUIT
DRG619 ;
DRG620 ;
DRG621 SET ICDRG=$SELECT(ICDMCC=2:619,ICDMCC=1:620,1:621)
QUIT
DRG622 ;
DRG623 ;
DRG624 SET ICDRG=$SELECT(ICDMCC=2:622,ICDMCC=1:623,1:624)
QUIT
DRG625 ;
DRG626 ;
DRG627 SET ICDRG=$SELECT(ICDMCC=2:625,ICDMCC=1:626,1:627)
QUIT
DRG628 ;
DRG629 ;
DRG630 SET ICDRG=$SELECT(ICDMCC=2:628,ICDMCC=1:629,1:630)
QUIT
DRG637 ;
DRG638 ;
DRG639 SET ICDRG=$SELECT(ICDMCC=2:637,ICDMCC=1:638,1:639)
QUIT
DRG640 ;
DRG641 SET ICDRG=$SELECT(ICDMCC=2:640,1:641)
QUIT
DRG642 SET ICDRG=642
QUIT
DRG643 ;
DRG644 ;
DRG645 SET ICDRG=$SELECT(ICDMCC=2:643,ICDMCC=1:644,1:645)
QUIT
DRG652 SET ICDRG=652
QUIT
DRG653 ;
DRG654 ;
DRG655 SET ICDRG=$SELECT(ICDMCC=2:653,ICDMCC=1:654,1:655)
QUIT
DRG656 ;DRGs 656-661
+1 SET ICDRG=999
+2 SET ICDRG=$SELECT(ICDPD["M"&(ICDMCC=2):656,ICDPD["M"&(ICDMCC=1):657,ICDPD["M":658,1:ICDRG)
+3 IF "656^657^658"[ICDRG
QUIT
+4 SET ICDRG=$SELECT(ICDRG'["M"&(ICDMCC=2):659,ICDPD'["M"&(ICDMCC=1):660,1:661)
+5 QUIT
DRG657 DO DRG656
QUIT
DRG658 DO DRG656
QUIT
DRG659 DO DRG656
QUIT
DRG660 DO DRG656
QUIT
DRG661 DO DRG656
QUIT
DRG662 ;
DRG663 ;
DRG664 SET ICDRG=$SELECT(ICDMCC=2:662,ICDMCC=1:663,1:664)
QUIT
DRG665 ;
DRG666 ;
DRG667 SET ICDRG=$SELECT(ICDMCC=2:665,ICDMCC=1:666,1:667)
QUIT
DRG668 ;
DRG669 ;
DRG670 SET ICDRG=$SELECT(ICDMCC=2:668,ICDMCC=1:669,1:670)
QUIT
DRG671 ;
DRG672 SET ICDRG=$SELECT(ICDMCC>0:671,1:672)
QUIT
DRG673 ;
DRG674 ;
DRG675 SET ICDRG=$SELECT(ICDMCC=2:673,ICDMCC=1:674,1:675)
QUIT
DRG682 ;
DRG683 ;
DRG684 SET ICDRG=$SELECT(ICDMCC=2:682,ICDMCC=1:683,1:684)
QUIT
DRG685 SET ICDRG=685
QUIT
DRG686 ;
DRG687 ;
DRG688 SET ICDRG=$SELECT(ICDMCC=2:686,ICDMCC=1:687,1:688)
QUIT
DRG689 ;
DRG690 SET ICDRG=$SELECT(ICDMCC=2:689,1:690)
QUIT
DRG691 ;DRGs 691-694
+1 SET ICDRG=999
+2 SET ICDRG=$SELECT('$DATA(ICDPDRG(691)):"",$DATA(ICDOP(" 98.51"))&(ICDMCC>0):691,$DATA(ICDOP(" 98.51")):692,1:ICDRG)
+3 IF "691^692"[ICDRG
QUIT
+4 SET ICDRG=$SELECT('$DATA(ICDPDRG(691)):"",ICDMCC=2:693,1:694)
+5 QUIT
DRG692 DO DRG691
QUIT
DRG693 DO DRG691
QUIT
DRG694 DO DRG691
QUIT
DRG695 ;
DRG696 SET ICDRG=$SELECT(ICDMCC=2:695,1:696)
QUIT
DRG697 SET ICDRG=697
QUIT
DRG698 ;
DRG699 SET ICDRG=$SELECT(ICDMCC=2:698,ICDMCC=1:699,1:700)
QUIT
+1 QUIT