I have a list of procedures on my report. I'm using the below formulas, with a running total formula placed in the report footer (with labels). The data looks like this:
CathID Proc Name Billing Code
28563 Procedure 1 6452
28569 Procedure 1 6452
28570 Procedure 2 6791
28570 Procedure 3 6445
28575 Procedure 1 6452
28575 Procedure 4 7959
The report footer looks like this:
Procedure 1: 3
Procedure 2: 1
Procedure 3: 1
Procedure 4: 1
I'd like it to look like this:
Procedure 1: 2
Procedure 2: 0
Procedure 3: 1
Procedure 4: 1
If procedure 1 or 2 also has procedure 3 or 4 within the same case (cathID), I don't want to count procedure 1 or 2. Only procedure 3 or 4.
The formulas look like this:
//{@Procedure1}:
if {BILLING_CODES_PROC.BILLING_CODE} in ["6452"] then
{BILLING_CODES_PROC.BILLING_CODE} else
{@null}
//{@Procedure1/Procedure4}:
if {BILLING_CODES_PROC.BILLING_CODE} in ["6452", "7959"] then
{BILLING_CODES_PROC.BILLING_CODE} else
{@null}
Running Total for Procedure1 and Procedure 4:
Distinct Count on cathID with a formula in the evaluate section of distinctcount({@LHC/DEStent},{CATH.CATHID}) >1, reset never.
Any ideas on how to make sure if there is a combination of procedure 1 or 2 with procedures 3 or 4, that the counts are reflected accurately?
Thanks!
CJ
CathID Proc Name Billing Code
28563 Procedure 1 6452
28569 Procedure 1 6452
28570 Procedure 2 6791
28570 Procedure 3 6445
28575 Procedure 1 6452
28575 Procedure 4 7959
The report footer looks like this:
Procedure 1: 3
Procedure 2: 1
Procedure 3: 1
Procedure 4: 1
I'd like it to look like this:
Procedure 1: 2
Procedure 2: 0
Procedure 3: 1
Procedure 4: 1
If procedure 1 or 2 also has procedure 3 or 4 within the same case (cathID), I don't want to count procedure 1 or 2. Only procedure 3 or 4.
The formulas look like this:
//{@Procedure1}:
if {BILLING_CODES_PROC.BILLING_CODE} in ["6452"] then
{BILLING_CODES_PROC.BILLING_CODE} else
{@null}
//{@Procedure1/Procedure4}:
if {BILLING_CODES_PROC.BILLING_CODE} in ["6452", "7959"] then
{BILLING_CODES_PROC.BILLING_CODE} else
{@null}
Running Total for Procedure1 and Procedure 4:
Distinct Count on cathID with a formula in the evaluate section of distinctcount({@LHC/DEStent},{CATH.CATHID}) >1, reset never.
Any ideas on how to make sure if there is a combination of procedure 1 or 2 with procedures 3 or 4, that the counts are reflected accurately?
Thanks!
CJ