ABMDE8F ; IHS/ASDST/DMJ - Page 8 - RADIOLOGY ;
;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
;
; IHS/DSD/LSL - 09/01/98 - Patch 2 - NOIS NDA-0898-180038
; 0.00 charges on HCFA because version 2.0 does not assume
; 1 for units. Modify code to set units to 1 if not
; already defined.
; IHS/ASDS/DMJ - v2.4 p7 - 9/7/01 NOIS HQW-0701-100066
; Modifications done related to Medicare Part B
; IHS/SD/SDR - V2.5 P2 - 5/9/02 - NOIS HQW-0302-100190
; Modified to display 2nd and 3rd modifiers and units
; IHS/SD/SDR - V2.5 P8 - IM10618
; Prompt/display provider
; IHS/SD/SDR - v2.5 p9 - IM16660
; 4-digit revenue codes
; IHS/SD/SDR - v2.5 p9 - task 1
; Use new service line provider multiple
; IHS/SD/SDR - v2.5 p10 - IM19843
; Added new prompt SERVICE TO DATE/TIME
; IHS/SD/SDR - v2.5 p11 - NPI
;
; IHS/SD/SDR - v2.6 CSV
;
DISP K ABMZ S ABMZ("TITL")="RADIOLOGY SERVICES",ABMZ("PG")="8F"
I $D(ABMP("DDL")),$Y>(IOSL-9) D PAUSE^ABMDE1 G:$D(DUOUT)!$D(DTOUT)!$D(DIROUT) XIT I 1
E D SUM^ABMDE1
;
D F^ABMDE8X
FEE S ABMZ("CAT")=15
S ABMZ("SUB")=35
D MODE^ABMDE8X
S:((^ABMDEXP(ABMMODE(6),0)["HCFA")!(^ABMDEXP(ABMMODE(6),0)["CMS")) ABMZ("DIAG")=";.08"
S ABMZ("DR")=";W !;.09//"_$$SDT^ABMDUTL(ABMP("VDT"))_";W !;.12//"_$$SDT^ABMDUTL(ABMP("VDT"))_";.03//1"
S ABMZ("CHRG")=";W !;.04",ABMZ("ITEM")="Radiology (CPT Code)",ABMZ("DIC")="^ICPT(",ABMZ("X")="X",ABMZ("MAX")=50,ABMZ("TOTL")=0
I ^ABMDEXP(ABMMODE(6),0)["UB" S ABMZ("REVN")=";W !;.02//320"
D HD G LOOP
HD W !?5,"REVN",?60,"UNIT",?71,"TOTAL"
W !?5,"CODE",?10," CPT - RADIOLOGY SERVICES",?59,"CHARGE",?66,"QTY",?71,"CHARGE"
W !?5,"====",?10,"===============================================",?59,"======",?66,"===",?70,"========="
Q
LOOP S (ABMZ("LNUM"),ABMZ("NUM"),ABMZ(1),ABM)=0 F ABM("I")=1:1 S ABM=$O(^ABMDCLM(DUZ(2),ABMP("CDFN"),35,ABM)) Q:'ABM S ABM("X")=ABM,ABMZ("NUM")=ABM("I") D PC1
S ABMZ("MOD")=.05_U_4_U_.06_U_.07
I ABMZ("NUM")>0 W !?69,"==========",!?69,$J("$"_($FN(ABMZ("TOTL"),",",2)),10)
I +$O(ABME(0)) S ABME("CONT")="" D ^ABMDERR K ABME("CONT")
G XIT
;
PC1 S ABM("X0")=^ABMDCLM(DUZ(2),ABMP("CDFN"),35,ABM("X"),0),ABM("X")=$P(^(0),U)
S ABMZ("UNIT")=$P(ABM("X0"),U,3)
S:'+ABMZ("UNIT") ABMZ("UNIT")=1
S ABMZ(ABM("I"))=$P($$CPT^ABMCVAPI($P(ABM("X0"),U),ABMP("VDT")),U,2)_U_ABM_U_$P(ABM("X0"),U,2) ;CSV-c
EOP I $Y>(IOSL-5) D PAUSE^ABMDE1,HD
W !,"[",ABM("I"),"]"
I $P(ABM("X0"),"^",9) D
.W ?5,"CHARGE DATE: "
.W $$CDT^ABMDUTL($P(ABM("X0"),"^",9))
.I $P(ABM("X0"),U,12)'="",($P(ABM("X0"),U,12)'=$P(ABM("X0"),U,9)) W "-",$$CDT^ABMDUTL($P(ABM("X0"),U,12))
.S ABMRPRV=$O(^ABMDCLM(DUZ(2),ABMP("CDFN"),35,ABM,"P","C","D",0))
.S:ABMRPRV="" ABMRPRV=$O(^ABMDCLM(DUZ(2),ABMP("CDFN"),35,ABM,"P","C","R",0))
.I ABMRPRV'="" D ;rendering provider on line item
..W " ("_$P($G(^VA(200,$P(^ABMDCLM(DUZ(2),ABMP("CDFN"),35,ABM,"P",ABMRPRV,0),U),0)),U)_"-"_$P(^ABMDCLM(DUZ(2),ABMP("CDFN"),35,ABM,"P",ABMRPRV,0),U,2)_")"
.W !
W ?5,$$GETREV^ABMDUTL($P(ABM("X0"),U,2))
S ABMZ("MOD")=""
F ABM("M")=5,6,7 S:$P(ABM("X0"),U,ABM("M"))]"" ABMZ("MOD")=ABMZ("MOD")_"-"_$P(ABM("X0"),U,ABM("M"))
W ?10,$P(ABMZ(ABM("I")),U) W:ABMZ("MOD")]"" ABMZ("MOD")
K ABMU S ABMU(1)="?59"_U_$J($P(ABM("X0"),U,4),6,2)
S ABMU(2)="?66"_U_$J(ABMZ("UNIT"),2)
S ABMU(3)="?70"_U_$J($FN((ABMZ("UNIT")*$P(ABM("X0"),U,4)),",",2),9)
S ABMZ("TOTL")=(ABMZ("UNIT")*$P(ABM("X0"),U,4))+ABMZ("TOTL")
I $P(^ABMDPARM(DUZ(2),1,0),U,14)'="Y" S ABMU("TXT")=$P($$CPT^ABMCVAPI($P(ABM("X0"),U),ABMP("VDT")),U,3) ;CSV-c
;start CSV-c
E D
.S ABMU("TXT")=""
.K ABMZCPTD
.D IHSCPTD^ABMCVAPI($P(ABM("X0"),U),"ABMZCPTD","",ABMP("VDT"))
.S ABM("CP")=0
.F S ABM("CP")=$O(ABMZCPTD(ABM("CP"))) Q:(+ABM("CP")=0) D
..Q:($G(ABMZCPTD(ABM("CP")))="")
..S ABMU("TXT")=ABMU("TXT")_ABMZCPTD(ABM("CP"))_" "
;end CSV-c
I ABMU("TXT")]"" S ABMU("RM")=58,ABMU("LM")=16+$L(ABMZ("MOD")) S:ABMZ("MOD")]"" ABMU("TAB")=3+$L(ABMZ("MOD")) D ^ABMDWRAP I 1
E W ?17,$P($$CPT^ABMCVAPI($P(ABM("X0"),U),ABMP("VDT")),U,3) ;CSV-c
Q
;
XIT K ABM,ABMMODE
Q
ABMDE8F ; IHS/ASDST/DMJ - Page 8 - RADIOLOGY ;
+1 ;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
+2 ;
+3 ; IHS/DSD/LSL - 09/01/98 - Patch 2 - NOIS NDA-0898-180038
+4 ; 0.00 charges on HCFA because version 2.0 does not assume
+5 ; 1 for units. Modify code to set units to 1 if not
+6 ; already defined.
+7 ; IHS/ASDS/DMJ - v2.4 p7 - 9/7/01 NOIS HQW-0701-100066
+8 ; Modifications done related to Medicare Part B
+9 ; IHS/SD/SDR - V2.5 P2 - 5/9/02 - NOIS HQW-0302-100190
+10 ; Modified to display 2nd and 3rd modifiers and units
+11 ; IHS/SD/SDR - V2.5 P8 - IM10618
+12 ; Prompt/display provider
+13 ; IHS/SD/SDR - v2.5 p9 - IM16660
+14 ; 4-digit revenue codes
+15 ; IHS/SD/SDR - v2.5 p9 - task 1
+16 ; Use new service line provider multiple
+17 ; IHS/SD/SDR - v2.5 p10 - IM19843
+18 ; Added new prompt SERVICE TO DATE/TIME
+19 ; IHS/SD/SDR - v2.5 p11 - NPI
+20 ;
+21 ; IHS/SD/SDR - v2.6 CSV
+22 ;
DISP KILL ABMZ
SET ABMZ("TITL")="RADIOLOGY SERVICES"
SET ABMZ("PG")="8F"
+1 IF $DATA(ABMP("DDL"))
IF $Y>(IOSL-9)
DO PAUSE^ABMDE1
IF $DATA(DUOUT)!$DATA(DTOUT)!$DATA(DIROUT)
GOTO XIT
IF 1
+2 IF '$TEST
DO SUM^ABMDE1
+3 ;
+4 DO F^ABMDE8X
FEE SET ABMZ("CAT")=15
+1 SET ABMZ("SUB")=35
+2 DO MODE^ABMDE8X
+3 IF ((^ABMDEXP(ABMMODE(6),0)["HCFA")!(^ABMDEXP(ABMMODE(6),0)["CMS"))
SET ABMZ("DIAG")=";.08"
+4 SET ABMZ("DR")=";W !;.09//"_$$SDT^ABMDUTL(ABMP("VDT"))_";W !;.12//"_$$SDT^ABMDUTL(ABMP("VDT"))_";.03//1"
+5 SET ABMZ("CHRG")=";W !;.04"
SET ABMZ("ITEM")="Radiology (CPT Code)"
SET ABMZ("DIC")="^ICPT("
SET ABMZ("X")="X"
SET ABMZ("MAX")=50
SET ABMZ("TOTL")=0
+6 IF ^ABMDEXP(ABMMODE(6),0)["UB"
SET ABMZ("REVN")=";W !;.02//320"
+7 DO HD
GOTO LOOP
HD WRITE !?5,"REVN",?60,"UNIT",?71,"TOTAL"
+1 WRITE !?5,"CODE",?10," CPT - RADIOLOGY SERVICES",?59,"CHARGE",?66,"QTY",?71,"CHARGE"
+2 WRITE !?5,"====",?10,"===============================================",?59,"======",?66,"===",?70,"========="
+3 QUIT
LOOP SET (ABMZ("LNUM"),ABMZ("NUM"),ABMZ(1),ABM)=0
FOR ABM("I")=1:1
SET ABM=$ORDER(^ABMDCLM(DUZ(2),ABMP("CDFN"),35,ABM))
IF 'ABM
QUIT
SET ABM("X")=ABM
SET ABMZ("NUM")=ABM("I")
DO PC1
+1 SET ABMZ("MOD")=.05_U_4_U_.06_U_.07
+2 IF ABMZ("NUM")>0
WRITE !?69,"==========",!?69,$JUSTIFY("$"_($FNUMBER(ABMZ("TOTL"),",",2)),10)
+3 IF +$ORDER(ABME(0))
SET ABME("CONT")=""
DO ^ABMDERR
KILL ABME("CONT")
+4 GOTO XIT
+5 ;
PC1 SET ABM("X0")=^ABMDCLM(DUZ(2),ABMP("CDFN"),35,ABM("X"),0)
SET ABM("X")=$PIECE(^(0),U)
+1 SET ABMZ("UNIT")=$PIECE(ABM("X0"),U,3)
+2 IF '+ABMZ("UNIT")
SET ABMZ("UNIT")=1
+3 ;CSV-c
SET ABMZ(ABM("I"))=$PIECE($$CPT^ABMCVAPI($PIECE(ABM("X0"),U),ABMP("VDT")),U,2)_U_ABM_U_$PIECE(ABM("X0"),U,2)
EOP IF $Y>(IOSL-5)
DO PAUSE^ABMDE1
DO HD
+1 WRITE !,"[",ABM("I"),"]"
+2 IF $PIECE(ABM("X0"),"^",9)
Begin DoDot:1
+3 WRITE ?5,"CHARGE DATE: "
+4 WRITE $$CDT^ABMDUTL($PIECE(ABM("X0"),"^",9))
+5 IF $PIECE(ABM("X0"),U,12)'=""
IF ($PIECE(ABM("X0"),U,12)'=$PIECE(ABM("X0"),U,9))
WRITE "-",$$CDT^ABMDUTL($PIECE(ABM("X0"),U,12))
+6 SET ABMRPRV=$ORDER(^ABMDCLM(DUZ(2),ABMP("CDFN"),35,ABM,"P","C","D",0))
+7 IF ABMRPRV=""
SET ABMRPRV=$ORDER(^ABMDCLM(DUZ(2),ABMP("CDFN"),35,ABM,"P","C","R",0))
+8 ;rendering provider on line item
IF ABMRPRV'=""
Begin DoDot:2
+9 WRITE " ("_$PIECE($GET(^VA(200,$PIECE(^ABMDCLM(DUZ(2),ABMP("CDFN"),35,ABM,"P",ABMRPRV,0),U),0)),U)_"-"_$PIECE(^ABMDCLM(DUZ(2),ABMP("CDFN"),35,ABM,"P",ABMRPRV,0),U,2)_")"
End DoDot:2
+10 WRITE !
End DoDot:1
+11 WRITE ?5,$$GETREV^ABMDUTL($PIECE(ABM("X0"),U,2))
+12 SET ABMZ("MOD")=""
+13 FOR ABM("M")=5,6,7
IF $PIECE(ABM("X0"),U,ABM("M"))]""
SET ABMZ("MOD")=ABMZ("MOD")_"-"_$PIECE(ABM("X0"),U,ABM("M"))
+14 WRITE ?10,$PIECE(ABMZ(ABM("I")),U)
IF ABMZ("MOD")]""
WRITE ABMZ("MOD")
+15 KILL ABMU
SET ABMU(1)="?59"_U_$JUSTIFY($PIECE(ABM("X0"),U,4),6,2)
+16 SET ABMU(2)="?66"_U_$JUSTIFY(ABMZ("UNIT"),2)
+17 SET ABMU(3)="?70"_U_$JUSTIFY($FNUMBER((ABMZ("UNIT")*$PIECE(ABM("X0"),U,4)),",",2),9)
+18 SET ABMZ("TOTL")=(ABMZ("UNIT")*$PIECE(ABM("X0"),U,4))+ABMZ("TOTL")
+19 ;CSV-c
IF $PIECE(^ABMDPARM(DUZ(2),1,0),U,14)'="Y"
SET ABMU("TXT")=$PIECE($$CPT^ABMCVAPI($PIECE(ABM("X0"),U),ABMP("VDT")),U,3)
+20 ;start CSV-c
+21 IF '$TEST
Begin DoDot:1
+22 SET ABMU("TXT")=""
+23 KILL ABMZCPTD
+24 DO IHSCPTD^ABMCVAPI($PIECE(ABM("X0"),U),"ABMZCPTD","",ABMP("VDT"))
+25 SET ABM("CP")=0
+26 FOR
SET ABM("CP")=$ORDER(ABMZCPTD(ABM("CP")))
IF (+ABM("CP")=0)
QUIT
Begin DoDot:2
+27 IF ($GET(ABMZCPTD(ABM("CP")))="")
QUIT
+28 SET ABMU("TXT")=ABMU("TXT")_ABMZCPTD(ABM("CP"))_" "
End DoDot:2
End DoDot:1
+29 ;end CSV-c
+30 IF ABMU("TXT")]""
SET ABMU("RM")=58
SET ABMU("LM")=16+$LENGTH(ABMZ("MOD"))
IF ABMZ("MOD")]""
SET ABMU("TAB")=3+$LENGTH(ABMZ("MOD"))
DO ^ABMDWRAP
IF 1
+31 ;CSV-c
IF '$TEST
WRITE ?17,$PIECE($$CPT^ABMCVAPI($PIECE(ABM("X0"),U),ABMP("VDT")),U,3)
+32 QUIT
+33 ;
XIT KILL ABM,ABMMODE
+1 QUIT