AICDGRP ; IHS/OHPRD/GIS - SUPERGROUPER: GROUPER WITH SMART DX AND OP LOOKUP AND PRIORITIZED DISPLAY OF ALL DRG DIAGNOSES ; [ 01/09/2003 4:09 PM ]
;;3.51;IHS ICD/CPT lookup & grouper;**2,6**;MAY 30, 1991
;
; TAKEN FROM ADT VERSION 3.3 ;JAN 11 1985
;
S IOP=$I D ^%ZIS X ("W "_IOF)
S LINE="W ! S S=S+1 Q:S<22 W ""'^' TO HALT: "" R W#3:DTIME S:'$T W=U Q:W=U W *13,$J("""",40),*13 S S=0"
S:'$D(DTIME) DTIME=300
S U="^",X="T",%DT="" D ^%DT S DT=Y W !!?21,"DRG PRIORITIZER VERSION 1.0",!!!
PAT ;EP ;AICD*3.51*6
D KILLS ;AICD*3.51*6
S DGQU=0 S PT="N" D ^AICDGRP2 W !
I $D(AICDQUIT) K AICDQUIT G Q
I $D(AGE),AGE="^"!(AGE="") G Q
K NOR,NSD,NDR,RG,CC,ORG,DIC
DXS ;EP ;AICD*3.51*6
G DXS^AICDGRP1 ; *2* ;AICD*3.51*6
Q ;EP ;AICD*3.51*6
D KILLS ;AICD*3.51*6
W !!,"Leaving DRG Grouper.",!
Q
KILLS K AICDDX,AICDE,AICDI,AICDJ,AICDK,AICDL,AICDN,AICDTOT
K DGQU,DGFLG,DAM,AICDPRMT,PT,Q,RG,SD,SD1,T,TAC,Y,DIC,DRGCAL,I,L,MDC,NDR,NOR,OR,PD,%,%DT,%Y,SEX,AGE,EXP,ORG,TRS,NSD,ELIM,C,POP,WD2,W,S
Q
NOTES ; CALLS %ZIS,%DT,%DTC,DGDRG*,DIC,AICDGRP2
; BE SURE TO INCLUDE THE ROUTINE AICDGRP2 TO STREAMLINE THE DATA ENTRY PROCESS
; SUGGEST YOU SET AICDHLIM TO LIMIT SEARCH TO 20 CHOICES TO AVOID CONFUSION
; MORE+6 FIXED ON 4/6/88 TO PREVENT UNDEF ERROR [TAC]
; MODIFIED AGAIN BY GIS/TPA 6/6/88 TO PREVENT UNDEF ERROR WHEN MULTIPLE PROCEDURES ARE ENTERED (468+1)
AICDGRP ; IHS/OHPRD/GIS - SUPERGROUPER: GROUPER WITH SMART DX AND OP LOOKUP AND PRIORITIZED DISPLAY OF ALL DRG DIAGNOSES ; [ 01/09/2003 4:09 PM ]
+1 ;;3.51;IHS ICD/CPT lookup & grouper;**2,6**;MAY 30, 1991
+2 ;
+3 ; TAKEN FROM ADT VERSION 3.3 ;JAN 11 1985
+4 ;
+5 SET IOP=$IO
DO ^%ZIS
XECUTE ("W "_IOF)
+6 SET LINE="W ! S S=S+1 Q:S<22 W ""'^' TO HALT: "" R W#3:DTIME S:'$T W=U Q:W=U W *13,$J("""",40),*13 S S=0"
+7 IF '$DATA(DTIME)
SET DTIME=300
+8 SET U="^"
SET X="T"
SET %DT=""
DO ^%DT
SET DT=Y
WRITE !!?21,"DRG PRIORITIZER VERSION 1.0",!!!
PAT ;EP ;AICD*3.51*6
+1 ;AICD*3.51*6
DO KILLS
+2 SET DGQU=0
SET PT="N"
DO ^AICDGRP2
WRITE !
+3 IF $DATA(AICDQUIT)
KILL AICDQUIT
GOTO Q
+4 IF $DATA(AGE)
IF AGE="^"!(AGE="")
GOTO Q
+5 KILL NOR,NSD,NDR,RG,CC,ORG,DIC
DXS ;EP ;AICD*3.51*6
+1 ; *2* ;AICD*3.51*6
GOTO DXS^AICDGRP1
Q ;EP ;AICD*3.51*6
+1 ;AICD*3.51*6
DO KILLS
+2 WRITE !!,"Leaving DRG Grouper.",!
+3 QUIT
KILLS KILL AICDDX,AICDE,AICDI,AICDJ,AICDK,AICDL,AICDN,AICDTOT
+1 KILL DGQU,DGFLG,DAM,AICDPRMT,PT,Q,RG,SD,SD1,T,TAC,Y,DIC,DRGCAL,I,L,MDC,NDR,NOR,OR,PD,%,%DT,%Y,SEX,AGE,EXP,ORG,TRS,NSD,ELIM,C,POP,WD2,W,S
+2 QUIT
NOTES ; CALLS %ZIS,%DT,%DTC,DGDRG*,DIC,AICDGRP2
+1 ; BE SURE TO INCLUDE THE ROUTINE AICDGRP2 TO STREAMLINE THE DATA ENTRY PROCESS
+2 ; SUGGEST YOU SET AICDHLIM TO LIMIT SEARCH TO 20 CHOICES TO AVOID CONFUSION
+3 ; MORE+6 FIXED ON 4/6/88 TO PREVENT UNDEF ERROR [TAC]
+4 ; MODIFIED AGAIN BY GIS/TPA 6/6/88 TO PREVENT UNDEF ERROR WHEN MULTIPLE PROCEDURES ARE ENTERED (468+1)