Good day all,
I am using Crystal 2011 with a SQL2008 DB. I will try to explain my problem. I am pulling insurance info on patient accounts using shared string variables to extract the Primary payor ({@primary}) and the secondary payor ({@secondary}). The report is grouped on invoice number and is a summary so the detail section is suppressed and the summary data is displayed in GF1. What I would like to do is suppress the section if 2 conditions are not met... first, if {@primary} <> 'MEDICARE' and second, {@secondary} <> 'MEDICAID' and cannot be blank or null. I only want to see records with Medicare primary having Medicaid secondary. In the section expert for GF1 I have tried a couple of things for the suppression formula. First I tried this:
{@primary} <> 'MEDICARE' and {@secondary} <> 'MEDICAID'
This gets me:
Medicare Medicaid
Medicare
Medicare Medicaid
The problem there is I don't want record 2. So I did some more research and tried this:
({@primary}<>'MEDICARE A AND B' and
isnull({@secondary})or length(trim({@secondary}))=0)
This gets me:
Medicare Medicaid
Blue Cross Medicaid
Medicare Medicaid
Tricare Medicaid
I get all Medicaid secondarys but get primarys that are not Medicare.
It is as if the two variables are in competition with each other or I have not done the suppression formula correctly. Your help is appreciated in advance and please let me know if I can provide any more info.
I am using Crystal 2011 with a SQL2008 DB. I will try to explain my problem. I am pulling insurance info on patient accounts using shared string variables to extract the Primary payor ({@primary}) and the secondary payor ({@secondary}). The report is grouped on invoice number and is a summary so the detail section is suppressed and the summary data is displayed in GF1. What I would like to do is suppress the section if 2 conditions are not met... first, if {@primary} <> 'MEDICARE' and second, {@secondary} <> 'MEDICAID' and cannot be blank or null. I only want to see records with Medicare primary having Medicaid secondary. In the section expert for GF1 I have tried a couple of things for the suppression formula. First I tried this:
{@primary} <> 'MEDICARE' and {@secondary} <> 'MEDICAID'
This gets me:
Medicare Medicaid
Medicare
Medicare Medicaid
The problem there is I don't want record 2. So I did some more research and tried this:
({@primary}<>'MEDICARE A AND B' and
isnull({@secondary})or length(trim({@secondary}))=0)
This gets me:
Medicare Medicaid
Blue Cross Medicaid
Medicare Medicaid
Tricare Medicaid
I get all Medicaid secondarys but get primarys that are not Medicare.
It is as if the two variables are in competition with each other or I have not done the suppression formula correctly. Your help is appreciated in advance and please let me know if I can provide any more info.