IBCROR ;ALB/ARH - RATES: REPORTS ; 5/23/96
;;2.0;INTEGRATED BILLING;**52,106,287**;21-MAR-94
;
;
OPTION ;
W !!!,"Charge Master Reports:",!
S DIR(0)="SO^R:RATE SCHEDULES;C:CHARGE SETS;I:CHARGE ITEMS;IP:CHARGE ITEMS - PROCEDURES;B:BILLING RATES;T:RATE TYPES;G:BILLING REGIONS;V:REV CD LINKS;D:PROVIDER DISCOUNTS;O:OTHER BILLABLE ITEMS;X:(OLD RATES FILE)"
S DIR("A")="Select Report" D ^DIR K DIR
I Y="R" D RS G OPTION
I Y="C" D CS G OPTION
I Y="I" D CI G OPTION
I Y="IP" D CIP G OPTION
I Y="B" D BR G OPTION
I Y="T" D RT G OPTION
I Y="G" D RG G OPTION
I Y="V" D RL G OPTION
I Y="D" D PD G OPTION
I Y="O" D BI G OPTION
I Y="X" D OLD G OPTION
K DIR,X,Y,DIRUT
Q
RS ;
W !,"Report requires 120 columns."
S FLDS=".01,.03;L5,.04;L10;""BILL SERVICE"",.05,.06,W:$$RSADJ^IBCROR($G(D0)) ""YES"";""CHARGES ADJUSTED"";L10,11,.01,.02"
S L=0,DIC="^IBE(363,",BY=".02;S1,.03"
D EN1^DIP
K FLDS,BY,FR,TO,L,DIC
Q
CS ;
W !,"Report requires 132 columns."
S L=0,DIC="^IBE(363.1,",FLDS=".01,.03;L26,.04,.05,.06;L15,.07",BY=".02;S1,.03",FR="",TO=""
D EN1^DIP
K FLDS,BY,FR,TO,L,DIC
Q
CI ;
;
W !!,"Caution: This report may be extremely long for some Charge Sets.",!,"Some Charge Sets, such as CMAC or AWP, may have many thousands of Charge Items.",!
;
D ^IBCROI
Q
CIP ;
;
W !!,"Caution: This report may be extremely long if many procedures are selected.",!
;
D ^IBCROIP
Q
BR ;
S L=0,DIC="^IBE(363.3,",FLDS=".01,.02,.03,.04,.05",BY=".03;S1,.01",FR="",TO=""
D EN1^DIP
K FLDS,BY,FR,TO,L,DIC
Q
RT ;
W !,"Report requires 132 columns."
S FLDS=".01;L20,.02;L20,.03;L5,.04;L8,.05;L5;""THIRD PARTY BILL?"",.06;L20,.07;L11,.08;L5;""REIMB INS?"",.09;L4"
S L=0,DIC="^DGCR(399.3,",BY="",FR="",TO=""
D EN1^DIP
K FLDS,BY,FR,TO,L,DIC
Q
RG ;
S L=0,DIC="^IBE(363.31,",FLDS=".01,11,.01,",BY=".01;S1",(FR,TO)=""
D EN1^DIP
K FLDS,BY,FR,TO,L,DIC
Q
BI ;
S L=0,DIC="^IBA(363.21,",FLDS=".01,.02,",BY=".02;S1,.01"
D EN1^DIP
K FLDS,BY,FR,TO,L,DIC
Q
RL ;
N IBX,DIR,X,Y,DTOUT,DUOUT,DIRUT
S DIR(0)="SO^1:SORT BY REVENUE CODE;2:SORT BY PROCEDURE" D ^DIR Q:Y'>0
I Y=1 S L=0,DIC="^IBE(363.33,",FLDS=".01,.03,.04,.02",BY=".01,.02"
I Y=2 S L=0,DIC="^IBE(363.33,",FLDS=".03,.04,.01,.02",BY=".03;TXT,.02",(FR,TO)=",?"
D EN1^DIP
K FLDS,BY,FR,TO,L,DIC
Q
;
PD ;
D ^IBCRON
Q
;
OLD ; prints old rates in 399.5, provided for reference only
; (these rates are no longer used and the orginal report (IBORAT2) was deleted)
W !!,"This report is for reference only, the rates and charges in this report are no",!,"longer used. They have been replace by the rates in the Charge Master.",!
S L=0,DIC="^DGCR(399.5,",FLDS=".01,.04,"" "";"""",.03,.05;L3,.06,.07",BY=".02;S1,.01;S1,.06,.03",FR=",?",TO=",?"
D EN1^DIP
K FLDS,BY,FR,TO,L,DIC
Q
;
RSADJ(D0) ; returns true if RS has an Adjustment
N IBX S IBX=0 I $G(^IBE(363,+$G(D0),10))'="" S IBX=1
Q IBX
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBCROR 2939 printed Dec 13, 2024@02:19:54 Page 2
IBCROR ;ALB/ARH - RATES: REPORTS ; 5/23/96
+1 ;;2.0;INTEGRATED BILLING;**52,106,287**;21-MAR-94
+2 ;
+3 ;
OPTION ;
+1 WRITE !!!,"Charge Master Reports:",!
+2 SET DIR(0)="SO^R:RATE SCHEDULES;C:CHARGE SETS;I:CHARGE ITEMS;IP:CHARGE ITEMS - PROCEDURES;B:BILLING RATES;T:RATE TYPES;G:BILLING REGIONS;V:REV CD LINKS;D:PROVIDER DISCOUNTS;O:OTHER BILLABLE ITEMS;X:(OLD RATES FILE)"
+3 SET DIR("A")="Select Report"
DO ^DIR
KILL DIR
+4 IF Y="R"
DO RS
GOTO OPTION
+5 IF Y="C"
DO CS
GOTO OPTION
+6 IF Y="I"
DO CI
GOTO OPTION
+7 IF Y="IP"
DO CIP
GOTO OPTION
+8 IF Y="B"
DO BR
GOTO OPTION
+9 IF Y="T"
DO RT
GOTO OPTION
+10 IF Y="G"
DO RG
GOTO OPTION
+11 IF Y="V"
DO RL
GOTO OPTION
+12 IF Y="D"
DO PD
GOTO OPTION
+13 IF Y="O"
DO BI
GOTO OPTION
+14 IF Y="X"
DO OLD
GOTO OPTION
+15 KILL DIR,X,Y,DIRUT
+16 QUIT
RS ;
+1 WRITE !,"Report requires 120 columns."
+2 SET FLDS=".01,.03;L5,.04;L10;""BILL SERVICE"",.05,.06,W:$$RSADJ^IBCROR($G(D0)) ""YES"";""CHARGES ADJUSTED"";L10,11,.01,.02"
+3 SET L=0
SET DIC="^IBE(363,"
SET BY=".02;S1,.03"
+4 DO EN1^DIP
+5 KILL FLDS,BY,FR,TO,L,DIC
+6 QUIT
CS ;
+1 WRITE !,"Report requires 132 columns."
+2 SET L=0
SET DIC="^IBE(363.1,"
SET FLDS=".01,.03;L26,.04,.05,.06;L15,.07"
SET BY=".02;S1,.03"
SET FR=""
SET TO=""
+3 DO EN1^DIP
+4 KILL FLDS,BY,FR,TO,L,DIC
+5 QUIT
CI ;
+1 ;
+2 WRITE !!,"Caution: This report may be extremely long for some Charge Sets.",!,"Some Charge Sets, such as CMAC or AWP, may have many thousands of Charge Items.",!
+3 ;
+4 DO ^IBCROI
+5 QUIT
CIP ;
+1 ;
+2 WRITE !!,"Caution: This report may be extremely long if many procedures are selected.",!
+3 ;
+4 DO ^IBCROIP
+5 QUIT
BR ;
+1 SET L=0
SET DIC="^IBE(363.3,"
SET FLDS=".01,.02,.03,.04,.05"
SET BY=".03;S1,.01"
SET FR=""
SET TO=""
+2 DO EN1^DIP
+3 KILL FLDS,BY,FR,TO,L,DIC
+4 QUIT
RT ;
+1 WRITE !,"Report requires 132 columns."
+2 SET FLDS=".01;L20,.02;L20,.03;L5,.04;L8,.05;L5;""THIRD PARTY BILL?"",.06;L20,.07;L11,.08;L5;""REIMB INS?"",.09;L4"
+3 SET L=0
SET DIC="^DGCR(399.3,"
SET BY=""
SET FR=""
SET TO=""
+4 DO EN1^DIP
+5 KILL FLDS,BY,FR,TO,L,DIC
+6 QUIT
RG ;
+1 SET L=0
SET DIC="^IBE(363.31,"
SET FLDS=".01,11,.01,"
SET BY=".01;S1"
SET (FR,TO)=""
+2 DO EN1^DIP
+3 KILL FLDS,BY,FR,TO,L,DIC
+4 QUIT
BI ;
+1 SET L=0
SET DIC="^IBA(363.21,"
SET FLDS=".01,.02,"
SET BY=".02;S1,.01"
+2 DO EN1^DIP
+3 KILL FLDS,BY,FR,TO,L,DIC
+4 QUIT
RL ;
+1 NEW IBX,DIR,X,Y,DTOUT,DUOUT,DIRUT
+2 SET DIR(0)="SO^1:SORT BY REVENUE CODE;2:SORT BY PROCEDURE"
DO ^DIR
if Y'>0
QUIT
+3 IF Y=1
SET L=0
SET DIC="^IBE(363.33,"
SET FLDS=".01,.03,.04,.02"
SET BY=".01,.02"
+4 IF Y=2
SET L=0
SET DIC="^IBE(363.33,"
SET FLDS=".03,.04,.01,.02"
SET BY=".03;TXT,.02"
SET (FR,TO)=",?"
+5 DO EN1^DIP
+6 KILL FLDS,BY,FR,TO,L,DIC
+7 QUIT
+8 ;
PD ;
+1 DO ^IBCRON
+2 QUIT
+3 ;
OLD ; prints old rates in 399.5, provided for reference only
+1 ; (these rates are no longer used and the orginal report (IBORAT2) was deleted)
+2 WRITE !!,"This report is for reference only, the rates and charges in this report are no",!,"longer used. They have been replace by the rates in the Charge Master.",!
+3 SET L=0
SET DIC="^DGCR(399.5,"
SET FLDS=".01,.04,"" "";"""",.03,.05;L3,.06,.07"
SET BY=".02;S1,.01;S1,.06,.03"
SET FR=",?"
SET TO=",?"
+4 DO EN1^DIP
+5 KILL FLDS,BY,FR,TO,L,DIC
+6 QUIT
+7 ;
RSADJ(D0) ; returns true if RS has an Adjustment
+1 NEW IBX
SET IBX=0
IF $GET(^IBE(363,+$GET(D0),10))'=""
SET IBX=1
+2 QUIT IBX