- IBCCCB0 ;ALB/ARH - COPY BILL FOR COB (OVERFLOW) ;06-19-97
- ;;2.0;INTEGRATED BILLING;**51,137,155,727**;21-MAR-94;Build 34
- ;;Per VA Directive 6402, this routine should not be modified.
- ;
- DSPRB(IBIFN) ; display related bills
- ;
- N IBCOB,IBI,IBLABEL,IBJ,IBK,IBINS,IBAR,IBDS Q:'$G(IBIFN)
- S IBDS="------------------------------------------------------------------"
- D BCOB^IBCU3(IBIFN,.IBCOB) I $O(IBCOB(0)) D
- . W !!!,?13,"Payer Responsible",?33,"Bill #",?41,"Status",?49,"Original",?59,"Collected",?72,"Balance",!,?13,IBDS
- . S IBI=0 F S IBI=$O(IBCOB(IBI)) Q:'IBI D
- .. S IBLABEL=$S(IBI=1:"Primary",IBI=2:"Secondary",IBI=3:"Tertiary",1:"Other")_":",IBLABEL=$J(IBLABEL,10)
- .. S IBJ=0 F S IBJ=$O(IBCOB(IBI,IBJ)) Q:'IBJ D
- ... S IBK="" F S IBK=$O(IBCOB(IBI,IBJ,IBK)) Q:IBK="" D
- .... S IBINS=$G(^DIC(36,+IBJ,0))
- .... W !," ",IBLABEL,?13,$E($P(IBINS,U),1,18) S IBLABEL="" Q:'IBK
- .... S IBAR=$$BILL^RCJIBFN2(IBK)
- .... W ?33,$P($G(^DGCR(399,+IBK,0)),U)
- .... W ?43,$P($$STNO^RCJIBFN2(+$P(IBAR,U,2)),U,2)
- .... W ?47,$J($P(IBAR,U),10,2)
- .... W ?58,$J($P(IBAR,U,4),10,2)
- .... W ?69,$J($P(IBAR,U,3),10,2)
- I +$$IB^IBRUTL(IBIFN,0) W !!,?8,"* There are patient bills on Hold for the date range of this bill."
- W !!
- Q
- ;
- CTCOPY(IBIFN,IBMRA) ; based on the type of bill, copy it without cancelling
- ; IBMRA = 1 if an MRA bill and copy for prof components is desired
- ;
- N IB0,IBCTYPE I +$G(IBCBCOPY) Q
- S IB0=$G(^DGCR(399,+$G(IBIFN),0)),IBCTYPE=+$P(IB0,U,27) Q:'IBCTYPE
- I $S('$G(IBMRA):$P(IB0,U,21)'=$E($$BINS^IBCU3(+$G(IBIFN))),1:0) Q ; don't copy if not first in series, current payer=first payer and not an MRA
- I IBCTYPE=1 D CTCOPY1(IBIFN) Q
- I IBCTYPE=2 D CTCOPY2(IBIFN) Q
- Q
- ;
- CTCOPY1(IBIFN) ; Copy a Reasonable Charges inst bill to create a prof bill:
- ; - Billing Rate must be Reasonable Charges
- ; - Bill being copied must be an inst bill
- ; - Prof bill must not already exist for the event date
- ; - If the bill is outpt at least one CPT must have prof charges
- ; - Procedure codes are copied only if the care is outpt
- ;
- N IB0,IBU,IBBTYPE,IBBCTO,IBBCTN,IBBCTOD,IBBCTND,IBNOCPT,IBCTCOPY,IBX,IBHV,IBNOTC
- ;
- S IBCTCOPY=1 ; flag - the copy function entered to auto copy Inst->Prof
- ;
- S IB0=$G(^DGCR(399,+$G(IBIFN),0)) Q:IB0="" S IBU=$G(^("U")) Q:'IBU
- S IBBTYPE=$S($P(IB0,U,5)<3:"Inpatient",1:"Outpatient")
- ;
- S IBBCTO=$P(IB0,U,27),IBBCTN=0 I 'IBBCTO Q
- I IBBCTO=1 S IBBCTN=2 ; inst defined, create prof
- I 'IBBCTN Q
- ;
- I '$$BILLRATE^IBCRU3($P(IB0,U,7),$P(IB0,U,5),$P(IBU,U,1,2),"RC") Q ; copy only reasonable charges bills
- ;
- S IBBCTOD=$S(IBBCTO=1:"INSTITUTIONAL",2:"PROFESSIONAL"),IBBCTND=$S(IBBCTN=1:"INSTITUTIONAL",2:"PROFESSIONAL")
- ;
- I $P(IB0,U,5)>2,'$$CPTCHG^IBCRCU1(IBIFN,"PROF") W !!!,"There are no Reasonable Charges Outpatient Professional charges for this bill,",!,"second bill not created.",!! Q
- ;
- W !!!,"This ",IBBTYPE," ",IBBCTOD," bill may have corresponding ",IBBCTND," charges."
- ;
- I '$G(^DGCR(399,IBIFN,"U1")) W !!,"The current bill has no charges defined, no second bill created." Q
- ;
- S IBX=$$CTCHK^IBCU41(IBIFN) I +IBX W !!,"There is an existing ",IBBTYPE," ",IBBCTND," bill (",$P($G(^DGCR(399,+IBX,0)),U,1),") that appears",!,"to correspond to this ",IBBCTOD," bill, second bill not created.",!! Q
- ;
- W !,"Creating an ",IBBTYPE," ",IBBCTND," bill.",!!
- ;
- S IBCOB(0,27)=IBBCTN
- S IBIDS(.15)=IBIFN D KVAR^IBCCCB
- ;
- I $P(IB0,U,5)<3 S IBNOCPT=1 ; do not copy inpt facility procedures (ICD) to inpt prof bill
- S IBNOTC=1 ; don't copy TC modifier from inst to prof bill
- D STEP2^IBCCC ; copy/create second bill
- ;
- I $G(IBHV("IBIFN1"))!(IBCTCOPY=1) D FTPRV^IBCEU5(+$G(IBHV("IBIFN1")),1) ; Change att to rend prov if new prof bill added
- S IBV=0,IBAC=1
- ;
- ; DSS QuadraMed Interface: CPT Sequence and Diagnosis Linkage
- I +$G(IBHV("IBIFN1")),$$QMED^IBCU1("CTCOPY^VEJDIBE1",IBHV("IBIFN1")) D CTCOPY^VEJDIBE1(IBHV("IBIFN1"))
- Q
- ;
- CTCOPY2(IBIFN) ; Copy a Reasonable Charges prof bill to create another prof bill if user wants another:
- ; - Billing Rate must be Reasonable Charges
- ; - Bill being copied must be a prof bill
- ; - Procedures are not copied
- ;
- N IB0,IBU,IBBTYPE,IBBCTO,IBNOCPT,IBCTCOPY,IBX,DIR,DIRUT,DUOUT,DTOUT,X,Y
- ;
- S IBCTCOPY=2 ; flag indicating the copy function is entered to auto Copy prof->prof
- ;
- S IB0=$G(^DGCR(399,+$G(IBIFN),0)) Q:IB0="" S IBU=$G(^("U")) Q:'IBU
- S IBBTYPE=$S($P(IB0,U,5)<3:"Inpatient",1:"Outpatient")
- S IBBCTO=$P(IB0,U,27) I IBBCTO'=2 Q ; prof bills only
- ;
- I '$$BILLRATE^IBCRU3($P(IB0,U,7),$P(IB0,U,5),$P(IBU,U,1,2),"RC") Q ; copy only reasonable charges bills
- ;
- I '$G(^DGCR(399,IBIFN,"U1")) Q ; if the current bill has no charges do not allow creation of another one
- ;
- ; ask if they want a second prof bill
- S DIR("?",1)="If answered Yes, the current bill will be copied, without being cancelled,"
- S DIR("?",2)="to create another "_$S($$FT^IBCEF(IBIFN)=7:"Dental",1:"Professional")_" bill for the same dates of care.",DIR("?",3)=" "
- S DIR("?")="Enter Yes if multiple "_$S($$FT^IBCEF(IBIFN)=7:"Dental",1:"Professional")_" bills are needed for the care provided on this date."
- ;JWS;IB*2.0*727
- S DIR("A")="Copy this bill to create another "_$S($$FT^IBCEF(IBIFN)=7:"Dental",1:"Professional")_" bill for this date now"
- W !! S DIR(0)="Y",DIR("B")="No" D ^DIR I $D(DIRUT)!('Y) Q
- ;JWS;IB*2.0*727
- W !,"Creating an ",IBBTYPE,$S($$FT^IBCEF(IBIFN)=7:" Dental",1:" Professional")," bill.",!!
- ;
- S IBIDS(.15)=IBIFN D KVAR^IBCCCB
- ;
- S IBNOCPT=1
- D STEP2^IBCCC ; copy/create second prof bill
- S IBV=0,IBAC=1
- Q
- ;
- ;
- FINALEOB(IBIFN) ; Returns 1 if user indicates final EOB has been received
- ; from prior payer
- N DIR,X,Y,IBOK
- N IBRETSPLT ;WCJ;727
- S IBOK=0
- I '$$MCRONBIL^IBEFUNC(IBIFN) D G FEOBQ
- . S DIR(0)="YA",DIR("B")="NO",DIR("A")="Has the final EOB been received for this claim?: "
- . S DIR("?",1)="COB should not normally be performed until the claim is fully processed by the",DIR("?",2)="prior payer. Enter Y (yes) if the prior payer's final EOB has",DIR("?")="been received"
- . D ^DIR K DIR
- . I Y'=0 S IBOK=$S(Y>0:1,1:0)
- ;
- ; In additon to checking if there is only one split MRA, see if that one contained all the lines (aka is complete).
- ; true story - This is to correct an issue where a complete MRA came in but the medicare processor accidentally said it was split.
- ; that is an extremely rare occurance
- ;I $$SPLTMRA^IBCEMU1(IBIFN)=1 D G FEOBQ ;WCJ;IB727
- I $$SPLTMRA^IBCEMU1(IBIFN,.IBRETSPLT)=1,'$$SPLIT2^IBCEMU1($O(IBRETSPLT("")),1) D G FEOBQ ;WCJ;IB727
- . W !!," Only one MRA has been received for this claim. The MRA on file indicates"
- . W !," that it is a 'split MRA' meaning that additional MRA's are needed."
- . W !," Processing cannot continue until all MRA's have been received for this claim."
- . W ! S DIR(0)="E" D ^DIR K DIR
- . Q
- ;
- ; I $$SPLTMRA^IBCEMU1(IBIFN)>1 D ;WCJ;IB727
- I $$SPLTMRA^IBCEMU1(IBIFN,.IBRETSPLT)>1,$$SPLIT2^IBCEMU1($O(IBRETSPLT("")),2)=0 D
- .; W !!," At least 2 MRA's have been received for this claim." ;WCJ;IB727
- . W !!,$$SPLTMRA^IBCEMU1(IBIFN)," MRA's have been received for this claim." ;WCJ;IB727
- . W !,"Please verify that all possible MRA's have been received for",!,"this claim before processing.",!
- S DIR(0)="YA",DIR("B")="NO",DIR("A")="Are you sure you want to continue to process this COB?: "
- D ^DIR K DIR
- W !
- S IBOK=$S(Y'=1:0,1:1)
- FEOBQ Q IBOK
- ;
- ;
- COBOK(IBIFN) ; Returns 1 if user indicates the COB process should proceed
- ; even though the prior payer's bill is still in ENTERED/NOT REVIEWED
- ; or REQUEST MRA status (1,2)
- N DIR,X,Y,IBOK,IBSTAT
- S IBOK=0,IBSTAT=$P($G(^DGCR(399,IBIFN,0)),U,13)
- I "^1^2"'[(U_IBSTAT_U) S IBOK=1 G COBOKQ
- S DIR(0)="YA",DIR("B")="NO"
- S DIR("A",1)="The bill for the prior ("_$P("primary^secondary",U,+$$COBN^IBCEF(IBIFN))_") payer is still in "_$$EXTERNAL^DILFD(399,.13,,IBSTAT)_" status"
- S DIR("A")="Are you sure you want to continue to process this COB?: "
- D ^DIR K DIR
- W !
- S IBOK=$S(Y'=1:0,1:1)
- COBOKQ Q IBOK
- ;
- --- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBCCCB0 8117 printed Apr 23, 2025@18:23:40 Page 2
- IBCCCB0 ;ALB/ARH - COPY BILL FOR COB (OVERFLOW) ;06-19-97
- +1 ;;2.0;INTEGRATED BILLING;**51,137,155,727**;21-MAR-94;Build 34
- +2 ;;Per VA Directive 6402, this routine should not be modified.
- +3 ;
- DSPRB(IBIFN) ; display related bills
- +1 ;
- +2 NEW IBCOB,IBI,IBLABEL,IBJ,IBK,IBINS,IBAR,IBDS
- if '$GET(IBIFN)
- QUIT
- +3 SET IBDS="------------------------------------------------------------------"
- +4 DO BCOB^IBCU3(IBIFN,.IBCOB)
- IF $ORDER(IBCOB(0))
- Begin DoDot:1
- +5 WRITE !!!,?13,"Payer Responsible",?33,"Bill #",?41,"Status",?49,"Original",?59,"Collected",?72,"Balance",!,?13,IBDS
- +6 SET IBI=0
- FOR
- SET IBI=$ORDER(IBCOB(IBI))
- if 'IBI
- QUIT
- Begin DoDot:2
- +7 SET IBLABEL=$SELECT(IBI=1:"Primary",IBI=2:"Secondary",IBI=3:"Tertiary",1:"Other")_":"
- SET IBLABEL=$JUSTIFY(IBLABEL,10)
- +8 SET IBJ=0
- FOR
- SET IBJ=$ORDER(IBCOB(IBI,IBJ))
- if 'IBJ
- QUIT
- Begin DoDot:3
- +9 SET IBK=""
- FOR
- SET IBK=$ORDER(IBCOB(IBI,IBJ,IBK))
- if IBK=""
- QUIT
- Begin DoDot:4
- +10 SET IBINS=$GET(^DIC(36,+IBJ,0))
- +11 WRITE !," ",IBLABEL,?13,$EXTRACT($PIECE(IBINS,U),1,18)
- SET IBLABEL=""
- if 'IBK
- QUIT
- +12 SET IBAR=$$BILL^RCJIBFN2(IBK)
- +13 WRITE ?33,$PIECE($GET(^DGCR(399,+IBK,0)),U)
- +14 WRITE ?43,$PIECE($$STNO^RCJIBFN2(+$PIECE(IBAR,U,2)),U,2)
- +15 WRITE ?47,$JUSTIFY($PIECE(IBAR,U),10,2)
- +16 WRITE ?58,$JUSTIFY($PIECE(IBAR,U,4),10,2)
- +17 WRITE ?69,$JUSTIFY($PIECE(IBAR,U,3),10,2)
- End DoDot:4
- End DoDot:3
- End DoDot:2
- End DoDot:1
- +18 IF +$$IB^IBRUTL(IBIFN,0)
- WRITE !!,?8,"* There are patient bills on Hold for the date range of this bill."
- +19 WRITE !!
- +20 QUIT
- +21 ;
- CTCOPY(IBIFN,IBMRA) ; based on the type of bill, copy it without cancelling
- +1 ; IBMRA = 1 if an MRA bill and copy for prof components is desired
- +2 ;
- +3 NEW IB0,IBCTYPE
- IF +$GET(IBCBCOPY)
- QUIT
- +4 SET IB0=$GET(^DGCR(399,+$GET(IBIFN),0))
- SET IBCTYPE=+$PIECE(IB0,U,27)
- if 'IBCTYPE
- QUIT
- +5 ; don't copy if not first in series, current payer=first payer and not an MRA
- IF $SELECT('$GET(IBMRA):$PIECE(IB0,U,21)'=$EXTRACT($$BINS^IBCU3(+$GET(IBIFN))),1:0)
- QUIT
- +6 IF IBCTYPE=1
- DO CTCOPY1(IBIFN)
- QUIT
- +7 IF IBCTYPE=2
- DO CTCOPY2(IBIFN)
- QUIT
- +8 QUIT
- +9 ;
- CTCOPY1(IBIFN) ; Copy a Reasonable Charges inst bill to create a prof bill:
- +1 ; - Billing Rate must be Reasonable Charges
- +2 ; - Bill being copied must be an inst bill
- +3 ; - Prof bill must not already exist for the event date
- +4 ; - If the bill is outpt at least one CPT must have prof charges
- +5 ; - Procedure codes are copied only if the care is outpt
- +6 ;
- +7 NEW IB0,IBU,IBBTYPE,IBBCTO,IBBCTN,IBBCTOD,IBBCTND,IBNOCPT,IBCTCOPY,IBX,IBHV,IBNOTC
- +8 ;
- +9 ; flag - the copy function entered to auto copy Inst->Prof
- SET IBCTCOPY=1
- +10 ;
- +11 SET IB0=$GET(^DGCR(399,+$GET(IBIFN),0))
- if IB0=""
- QUIT
- SET IBU=$GET(^("U"))
- if 'IBU
- QUIT
- +12 SET IBBTYPE=$SELECT($PIECE(IB0,U,5)<3:"Inpatient",1:"Outpatient")
- +13 ;
- +14 SET IBBCTO=$PIECE(IB0,U,27)
- SET IBBCTN=0
- IF 'IBBCTO
- QUIT
- +15 ; inst defined, create prof
- IF IBBCTO=1
- SET IBBCTN=2
- +16 IF 'IBBCTN
- QUIT
- +17 ;
- +18 ; copy only reasonable charges bills
- IF '$$BILLRATE^IBCRU3($PIECE(IB0,U,7),$PIECE(IB0,U,5),$PIECE(IBU,U,1,2),"RC")
- QUIT
- +19 ;
- +20 SET IBBCTOD=$SELECT(IBBCTO=1:"INSTITUTIONAL",2:"PROFESSIONAL")
- SET IBBCTND=$SELECT(IBBCTN=1:"INSTITUTIONAL",2:"PROFESSIONAL")
- +21 ;
- +22 IF $PIECE(IB0,U,5)>2
- IF '$$CPTCHG^IBCRCU1(IBIFN,"PROF")
- WRITE !!!,"There are no Reasonable Charges Outpatient Professional charges for this bill,",!,"second bill not created.",!!
- QUIT
- +23 ;
- +24 WRITE !!!,"This ",IBBTYPE," ",IBBCTOD," bill may have corresponding ",IBBCTND," charges."
- +25 ;
- +26 IF '$GET(^DGCR(399,IBIFN,"U1"))
- WRITE !!,"The current bill has no charges defined, no second bill created."
- QUIT
- +27 ;
- +28 SET IBX=$$CTCHK^IBCU41(IBIFN)
- IF +IBX
- WRITE !!,"There is an existing ",IBBTYPE," ",IBBCTND," bill (",$PIECE($GET(^DGCR(399,+IBX,0)),U,1),") that appears",!,"to correspond to this ",IBBCTOD," bill, second bill not created.",!!
- QUIT
- +29 ;
- +30 WRITE !,"Creating an ",IBBTYPE," ",IBBCTND," bill.",!!
- +31 ;
- +32 SET IBCOB(0,27)=IBBCTN
- +33 SET IBIDS(.15)=IBIFN
- DO KVAR^IBCCCB
- +34 ;
- +35 ; do not copy inpt facility procedures (ICD) to inpt prof bill
- IF $PIECE(IB0,U,5)<3
- SET IBNOCPT=1
- +36 ; don't copy TC modifier from inst to prof bill
- SET IBNOTC=1
- +37 ; copy/create second bill
- DO STEP2^IBCCC
- +38 ;
- +39 ; Change att to rend prov if new prof bill added
- IF $GET(IBHV("IBIFN1"))!(IBCTCOPY=1)
- DO FTPRV^IBCEU5(+$GET(IBHV("IBIFN1")),1)
- +40 SET IBV=0
- SET IBAC=1
- +41 ;
- +42 ; DSS QuadraMed Interface: CPT Sequence and Diagnosis Linkage
- +43 IF +$GET(IBHV("IBIFN1"))
- IF $$QMED^IBCU1("CTCOPY^VEJDIBE1",IBHV("IBIFN1"))
- DO CTCOPY^VEJDIBE1(IBHV("IBIFN1"))
- +44 QUIT
- +45 ;
- CTCOPY2(IBIFN) ; Copy a Reasonable Charges prof bill to create another prof bill if user wants another:
- +1 ; - Billing Rate must be Reasonable Charges
- +2 ; - Bill being copied must be a prof bill
- +3 ; - Procedures are not copied
- +4 ;
- +5 NEW IB0,IBU,IBBTYPE,IBBCTO,IBNOCPT,IBCTCOPY,IBX,DIR,DIRUT,DUOUT,DTOUT,X,Y
- +6 ;
- +7 ; flag indicating the copy function is entered to auto Copy prof->prof
- SET IBCTCOPY=2
- +8 ;
- +9 SET IB0=$GET(^DGCR(399,+$GET(IBIFN),0))
- if IB0=""
- QUIT
- SET IBU=$GET(^("U"))
- if 'IBU
- QUIT
- +10 SET IBBTYPE=$SELECT($PIECE(IB0,U,5)<3:"Inpatient",1:"Outpatient")
- +11 ; prof bills only
- SET IBBCTO=$PIECE(IB0,U,27)
- IF IBBCTO'=2
- QUIT
- +12 ;
- +13 ; copy only reasonable charges bills
- IF '$$BILLRATE^IBCRU3($PIECE(IB0,U,7),$PIECE(IB0,U,5),$PIECE(IBU,U,1,2),"RC")
- QUIT
- +14 ;
- +15 ; if the current bill has no charges do not allow creation of another one
- IF '$GET(^DGCR(399,IBIFN,"U1"))
- QUIT
- +16 ;
- +17 ; ask if they want a second prof bill
- +18 SET DIR("?",1)="If answered Yes, the current bill will be copied, without being cancelled,"
- +19 SET DIR("?",2)="to create another "_$SELECT($$FT^IBCEF(IBIFN)=7:"Dental",1:"Professional")_" bill for the same dates of care."
- SET DIR("?",3)=" "
- +20 SET DIR("?")="Enter Yes if multiple "_$SELECT($$FT^IBCEF(IBIFN)=7:"Dental",1:"Professional")_" bills are needed for the care provided on this date."
- +21 ;JWS;IB*2.0*727
- +22 SET DIR("A")="Copy this bill to create another "_$SELECT($$FT^IBCEF(IBIFN)=7:"Dental",1:"Professional")_" bill for this date now"
- +23 WRITE !!
- SET DIR(0)="Y"
- SET DIR("B")="No"
- DO ^DIR
- IF $DATA(DIRUT)!('Y)
- QUIT
- +24 ;JWS;IB*2.0*727
- +25 WRITE !,"Creating an ",IBBTYPE,$SELECT($$FT^IBCEF(IBIFN)=7:" Dental",1:" Professional")," bill.",!!
- +26 ;
- +27 SET IBIDS(.15)=IBIFN
- DO KVAR^IBCCCB
- +28 ;
- +29 SET IBNOCPT=1
- +30 ; copy/create second prof bill
- DO STEP2^IBCCC
- +31 SET IBV=0
- SET IBAC=1
- +32 QUIT
- +33 ;
- +34 ;
- FINALEOB(IBIFN) ; Returns 1 if user indicates final EOB has been received
- +1 ; from prior payer
- +2 NEW DIR,X,Y,IBOK
- +3 ;WCJ;727
- NEW IBRETSPLT
- +4 SET IBOK=0
- +5 IF '$$MCRONBIL^IBEFUNC(IBIFN)
- Begin DoDot:1
- +6 SET DIR(0)="YA"
- SET DIR("B")="NO"
- SET DIR("A")="Has the final EOB been received for this claim?: "
- +7 SET DIR("?",1)="COB should not normally be performed until the claim is fully processed by the"
- SET DIR("?",2)="prior payer. Enter Y (yes) if the prior payer's final EOB has"
- SET DIR("?")="been received"
- +8 DO ^DIR
- KILL DIR
- +9 IF Y'=0
- SET IBOK=$SELECT(Y>0:1,1:0)
- End DoDot:1
- GOTO FEOBQ
- +10 ;
- +11 ; In additon to checking if there is only one split MRA, see if that one contained all the lines (aka is complete).
- +12 ; true story - This is to correct an issue where a complete MRA came in but the medicare processor accidentally said it was split.
- +13 ; that is an extremely rare occurance
- +14 ;I $$SPLTMRA^IBCEMU1(IBIFN)=1 D G FEOBQ ;WCJ;IB727
- +15 ;WCJ;IB727
- IF $$SPLTMRA^IBCEMU1(IBIFN,.IBRETSPLT)=1
- IF '$$SPLIT2^IBCEMU1($ORDER(IBRETSPLT("")),1)
- Begin DoDot:1
- +16 WRITE !!," Only one MRA has been received for this claim. The MRA on file indicates"
- +17 WRITE !," that it is a 'split MRA' meaning that additional MRA's are needed."
- +18 WRITE !," Processing cannot continue until all MRA's have been received for this claim."
- +19 WRITE !
- SET DIR(0)="E"
- DO ^DIR
- KILL DIR
- +20 QUIT
- End DoDot:1
- GOTO FEOBQ
- +21 ;
- +22 ; I $$SPLTMRA^IBCEMU1(IBIFN)>1 D ;WCJ;IB727
- +23 IF $$SPLTMRA^IBCEMU1(IBIFN,.IBRETSPLT)>1
- IF $$SPLIT2^IBCEMU1($ORDER(IBRETSPLT("")),2)=0
- Begin DoDot:1
- +24 ; W !!," At least 2 MRA's have been received for this claim." ;WCJ;IB727
- +25 ;WCJ;IB727
- WRITE !!,$$SPLTMRA^IBCEMU1(IBIFN)," MRA's have been received for this claim."
- +26 WRITE !,"Please verify that all possible MRA's have been received for",!,"this claim before processing.",!
- End DoDot:1
- +27 SET DIR(0)="YA"
- SET DIR("B")="NO"
- SET DIR("A")="Are you sure you want to continue to process this COB?: "
- +28 DO ^DIR
- KILL DIR
- +29 WRITE !
- +30 SET IBOK=$SELECT(Y'=1:0,1:1)
- FEOBQ QUIT IBOK
- +1 ;
- +2 ;
- COBOK(IBIFN) ; Returns 1 if user indicates the COB process should proceed
- +1 ; even though the prior payer's bill is still in ENTERED/NOT REVIEWED
- +2 ; or REQUEST MRA status (1,2)
- +3 NEW DIR,X,Y,IBOK,IBSTAT
- +4 SET IBOK=0
- SET IBSTAT=$PIECE($GET(^DGCR(399,IBIFN,0)),U,13)
- +5 IF "^1^2"'[(U_IBSTAT_U)
- SET IBOK=1
- GOTO COBOKQ
- +6 SET DIR(0)="YA"
- SET DIR("B")="NO"
- +7 SET DIR("A",1)="The bill for the prior ("_$PIECE("primary^secondary",U,+$$COBN^IBCEF(IBIFN))_") payer is still in "_$$EXTERNAL^DILFD(399,.13,,IBSTAT)_" status"
- +8 SET DIR("A")="Are you sure you want to continue to process this COB?: "
- +9 DO ^DIR
- KILL DIR
- +10 WRITE !
- +11 SET IBOK=$SELECT(Y'=1:0,1:1)
- COBOKQ QUIT IBOK
- +1 ;