Credit Breakdown by Payor for Service Date Range

Breaks down credits applied to services in a date range groups by insurance payor.

Select
   payorname,
   payornum,
   credtype,
   count(distinct cre_jnum) as "Number",
   sum(crsplamt) as "Paid"
From
   sos.rv_creditsplits
Where
   srv_date between '2001-01-01' and '2001-01-31'
   and payortype = 'I'
   and systranflag not in ('TT','TF')
group by
   credtype,
   payornum,
   payorname

Credit Breakdown by Payor Type for Service Date Range

Breaks down credits applied to services in a date range by type and groups by payor type.

 

Select
   payortype,
   Credtype,
   count(distinct cre_jnum) as "Number",
   sum(crsplamt) as "Paid"
From
   sos.rv_creditsplits
Where
   srv_date between '2001-01-01' and '2001-01-31'
   and systranflag not in ('TT','TF')
group by
   credtype,
   payortype

Payments by Place of Service and Year

SELECT 
   year(c.trandate) as YEAR,
   defcode as POS,
   sum(crsplamt) as "TOTAL PAID"
FROM 
   sos.jcrsplits a
   join sos.jcredits b
   join sos.journal c
   join sos.rv_charges d on a.chgsplnum=d.chgsplnum
   join sos.poscodes e on d.poscodenum=e.poscodenum
WHERE 
   b.credtype <> 'Adjustment'
GROUP BY year,pos
ORDER BY year,pos