Query for accounts with particular insurance carrier
Posted: Wed Sep 21, 2022 9:05 am
I am trying to create a list of active accounts which currently have a particular insurance carrier. Unfortunately my query skills aren't good, and the best I can do is (from the query examples) a list of all patients (active and inactive) who have EVER been associated with that carrier. If anyone is willing to help improve my query, I'd be very grateful. My goal is to generate a list of guarantor names and addresses so that I can send a letter to each household. An amazing bonus would be if even active patients could be filtered further by having an option to exclude people not seen since a certain date. Here's what I've got right now:
/*26*/ SELECT c.CarrierName,p.*
FROM patient p
INNER JOIN inssub iss ON iss.Subscriber=p.PatNum
INNER JOIN insplan ip ON ip.PlanNum=iss.PlanNum
INNER JOIN carrier c ON ip.CarrierNum=c.CarrierNum
WHERE c.CarrierName LIKE '%BCBS%'
Thank you all!
/*26*/ SELECT c.CarrierName,p.*
FROM patient p
INNER JOIN inssub iss ON iss.Subscriber=p.PatNum
INNER JOIN insplan ip ON ip.PlanNum=iss.PlanNum
INNER JOIN carrier c ON ip.CarrierNum=c.CarrierNum
WHERE c.CarrierName LIKE '%BCBS%'
Thank you all!