LRBEECP1 ;VA/DALOI/WTY - Edit CPT for CIDC (Cont'); 3/29/05
;;5.2;LAB SERVICE;**1031**;NOV 1, 1997
;
;;VA LR Patche(s): 291
;
;
; Called by LRBEECPT
;
; Reference to $$GET1^DIQ supported by IA #2056
; Reference to ^DIR supported by IA #10026
;
Q
;
AAMA(LRBETST,LRBETSTN) ;If panel, ask if AMA compliant
N LRBEAX,LRBEQT
S LRBEQT=0 F D Q:LRBEQT!(LRBEQUIT)
.S LRBEAX=$$GAMA(LRBETST,LRBETSTN)
.S:LRBEAX="" LRBEQT=1 Q:LRBEQT!(LRBEQUIT)
.I +LRBEAX=-2 S LRBEQT=1 Q:LRBEQT
.S LRBEAR2("TEST",LRBETST,"03-AMA FLAG")=LRBEAX,LRBEQT=1
Q
;
GAMA(LRBETST,LRBETSTN) ;
N LRBEAMA,LRBECPT,LRBEDAMA,LRBEDT,LRBEMSG,LRBEFIL,LRBEFLD,LRBEQT,LRBEDESC
S LRBEMSG="Are the CPT codes for "_LRBETSTN_" AMA compliant or otherwise billable? "
S LRBEFIL=60,LRBEFLD=508
S LRBEDAMA=$$GET1^DIQ(LRBEFIL,LRBETST_",",LRBEFLD,"I")
S LRBEAMA=$$AMA(LRBEMSG,LRBEDAMA) Q:LRBEQUIT LRBEQUIT
I LRBEAMA="" Q LRBEDAMA
I LRBEAMA=LRBEDAMA Q -2
Q LRBEAMA
;
AMA(LRBEMSG,DAMA) ; Ask if the panel CPTs are AMA compliant
N X,Y,DIR,DTOUT,DUOUT,DIRUT
S DIR("B")=$S(DAMA:"YES",1:"NO")
S DIR("A")=LRBEMSG,DIR(0)="YA" D ^DIR
I $D(DTOUT)!($D(DUOUT))!(X[U) S LRBEQUIT=1 Q LRBEQUIT
Q Y
LRBEECP1 ;VA/DALOI/WTY - Edit CPT for CIDC (Cont'); 3/29/05
+1 ;;5.2;LAB SERVICE;**1031**;NOV 1, 1997
+2 ;
+3 ;;VA LR Patche(s): 291
+4 ;
+5 ;
+6 ; Called by LRBEECPT
+7 ;
+8 ; Reference to $$GET1^DIQ supported by IA #2056
+9 ; Reference to ^DIR supported by IA #10026
+10 ;
+11 QUIT
+12 ;
AAMA(LRBETST,LRBETSTN) ;If panel, ask if AMA compliant
+1 NEW LRBEAX,LRBEQT
+2 SET LRBEQT=0
FOR
Begin DoDot:1
+3 SET LRBEAX=$$GAMA(LRBETST,LRBETSTN)
+4 IF LRBEAX=""
SET LRBEQT=1
IF LRBEQT!(LRBEQUIT)
QUIT
+5 IF +LRBEAX=-2
SET LRBEQT=1
IF LRBEQT
QUIT
+6 SET LRBEAR2("TEST",LRBETST,"03-AMA FLAG")=LRBEAX
SET LRBEQT=1
End DoDot:1
IF LRBEQT!(LRBEQUIT)
QUIT
+7 QUIT
+8 ;
GAMA(LRBETST,LRBETSTN) ;
+1 NEW LRBEAMA,LRBECPT,LRBEDAMA,LRBEDT,LRBEMSG,LRBEFIL,LRBEFLD,LRBEQT,LRBEDESC
+2 SET LRBEMSG="Are the CPT codes for "_LRBETSTN_" AMA compliant or otherwise billable? "
+3 SET LRBEFIL=60
SET LRBEFLD=508
+4 SET LRBEDAMA=$$GET1^DIQ(LRBEFIL,LRBETST_",",LRBEFLD,"I")
+5 SET LRBEAMA=$$AMA(LRBEMSG,LRBEDAMA)
IF LRBEQUIT
QUIT LRBEQUIT
+6 IF LRBEAMA=""
QUIT LRBEDAMA
+7 IF LRBEAMA=LRBEDAMA
QUIT -2
+8 QUIT LRBEAMA
+9 ;
AMA(LRBEMSG,DAMA) ; Ask if the panel CPTs are AMA compliant
+1 NEW X,Y,DIR,DTOUT,DUOUT,DIRUT
+2 SET DIR("B")=$SELECT(DAMA:"YES",1:"NO")
+3 SET DIR("A")=LRBEMSG
SET DIR(0)="YA"
DO ^DIR
+4 IF $DATA(DTOUT)!($DATA(DUOUT))!(X[U)
SET LRBEQUIT=1
QUIT LRBEQUIT
+5 QUIT Y