Skip to main content
Version: 2.1

Match Analysis

Match rates between Clear Rates and DPR are generally high, ~80%: analysis sheet

Here, we provide a more granular examples of matches and non-matches. The first two tables each show 40 random samples, filtered to where both pipelines selected a payer rate and where both pipelines selected a hospital rate.

The last two tables zoom into the non-matches to examine how the pipelines differ.

  • For payer MRF data, it seems that Clear Rates selecting the max rate helps by selecting a rate that is higher than ASP
  • For hospital MRF data, the differences are less clear and may require further investigation.

Payer to Payer​

sample_idroidbilling_codeprovider_idpayer_idcanonical_rate_sourcedpr_sourcecanonical_raterateasp_payment_limitdiff
17805887482355888845J750311097payerpayer_nominal5.51.821.8333.68
2-3785167021382683263J0218728242payerpayer_nominal991.22992.11393.823-0.89
36872194306135143436J069152927payerpayer_nominal1.461.460.7240
4-1705520135355671303J960064376payerpayer_nominal23789.523789.53004.740
5298977954765883761J3032544876payerpayer_nominal18.2318.2319.8470
6-7847205829343902329J92254609391payerpayer_nominal4766.634766.635166.290
77254553018103660952Q41216369522payerpayer_nominal90.6315248.851-61.37
8-6304474523111916902906536636643payerpayer_nominal180.32180.3283.490
9-7529191513102218298J1602397842payerpayer_nominal28.7911.111.02917.69
102274771801280105846J9071169176payerpayer_nominal0.870.870.7840
113280486017079825355J0202177476payerpayer_nominal2441.492441.492440.70
12-1331423263018427103J3380553976payerpayer_nominal21.1621.1622.0620
133169788773398705395J90006525522payerpayer_nominal15152.7230
141278697020137346795J347167676payerpayer_nominal0.50.50.4990
158562013374203450036J3489408442payerpayer_nominal20.0411.195.2038.85
16-1592864495033779614J720326707payerpayer_nominal4.364.364.5790
17-3687426840408180009Q511142167payerpayer_nominal163.59163.59136.0440
186331403447192055974J058512787payerpayer_nominal9.079.076.5020
197791467806453095414J718572376payerpayer_nominal1.491.491.540
20-7378664667863523832J230551667payerpayer_nominal2.822.821.4190
21-7685398188784328964J926019657payerpayer_nominal6.46.42.2630
225789752757872399450J751037117payerpayer_nominal0.480.480.2730
23-8439173216162804897J0744280876payerpayer_nominal2.12.12.3190
24477182284488379498690715245776payerpayer_nominal54.654.639.7090
257679312730793223777J18175528169payerpayer_nominal9.749.743.2370
26-1251275895769190794J012137817payerpayer_nominal3.873.874.0110
27-3450953930231750193J279942427payerpayer_nominal38.2438.2425.0750
281152492387463321397J16026350643payerpayer_nominal61.161.111.0290
29-4465226858126124858J0872244242payerpayer_nominal0.110.050.0520.06
30-8825313624177935077J2371129454payerpayer_nominal0.010.010.0020
31-8991582442920328791J93134581454payerpayer_nominal26.7126.7123.3940
32-2881315886327726459J922885276payerpayer_nominal170.01170.01183.4140
33-5965414585304878685J91816500522payerpayer_nominal221.3030
342046822327227787220J1437646642payerpayer_nominal85.9185.9118.9510
35-1078919782956591339J1200591943payerpayer_nominal4.984.280.9040.7
366282477303020140172P9046304149payerpayer_nominal139.39139.3921.2310
37-4549885917615647727J9350309542payerpayer_nominal737.1737.1652.7460
384804868193448574591J05171154111payerpayer_nominal163.3163.3168.130
39-4298428616310310782J30956178643payerpayer_nominal7.097.097.4670
408999681950228944252J2798294749payerpayer_nominal30.8212.4112.13718.41

Hospital to Hospital​

sample_idroidbilling_codeprovider_idpayer_idcanonical_rate_sourcedpr_sourcecanonical_raterateasp_payment_limitdiff
1-4680545240004768765J2315798174hospitalhospital4.125.364.238-1.24
2-8424486232147733134J7614684243hospitalhospital0.090.090.0880
3881021143243814218J93176727455hospitalhospital43.7243.7236.2580
4-229657013183575367J9359146642hospitalhospital206.38206.38216.7430
51263582894183633882J08854556454hospitalhospital8.598.597.6760
51263582894183633882J08854556454hospitalpayer_nominal8.5910.147.676-1.55
6-8322175451571963196J08993010299hospitalhospital3.983.981.450
71490354106708639663J90176734522hospitalhospital18185.8570
8-6667256743895028744J341049617hospitalhospital31.1131.1116.9280
91675846972015173721J29413180643hospitalhospital163.55163.5551.9610
106736607532248410744Q41101949643hospitalhospital120.96120.9665.4050
112981535935509196780J342083976hospitalhospital2.562.560.9470
12-4770717164359272822J9268587643hospitalhospital7203.767203.762543.890
13-4467980611022781803Q2050163852hospitalhospital429.38429.38109.2840
145528335584084157983J18855234169hospitalhospital0.361.540.346-1.18
15-8911462772454191908J9348474476hospitalhospital1438.751438.75685.9060
16-6618215307773860079J915064187hospitalhospital53.3874.9419.762-21.56
171719674156902640611J9030570976hospitalhospital2.892.893.1230
18-105574931521243614790677509276hospitalhospital372.05372.05312.9020
191453198918369562613J324756817hospitalhospital14.3114.3117.8440
20-2823564268471267204J23601267229hospitalhospital23.9423.949.4480
21-8473025655698250579J73135653383hospitalhospital441441497.7960
22-4272834111922969571J08781164643hospitalhospital0.040.040.030
233664425045804280425J14306588403hospitalhospital518.83518.83519.5160
24-2986215860648717328J23571111354hospitalhospital45.7940.440.5635.39
25-2006206163758869994J0485578476hospitalhospital9.929.923.8880
26-4341328181497803708J732425627hospitalhospital294.98294.9897.6980
279053038351657526085J1572344576hospitalhospital76.1476.1456.1160
28992078022095294121J08344094643hospitalhospital73.4573.4528.0210
29-4962943182150427106J7325156442hospitalhospital18.0318.039.090
304748619980987029378J9360174752hospitalhospital4.884.885.2910
31-4409257255302566944J27656597403hospitalhospital2.242.240.9970
32-1382750651988363218J34111172354hospitalhospital5.042.481.7872.56
33-5295676099234821492J174257607hospitalhospital572.74641.4205.061-68.66
34-304950893294481444J0735266942hospitalhospital212117.6720
35-6310886391479037400J75151237354hospitalhospital1.131.130.7690
365742142133972744717Q42822587643hospitalhospital1105.21105.2336.7630
376957853556960700429J324563007hospitalhospital324.91324.91126.2380
38-108879732997145425Q01386842hospitalhospital0.670.670.3080
396838521763534886311Q429368217hospitalhospital2060.112060.111584.70
40-2204680940971390758J2783688376hospitalhospital1228.741151.52376.4877.22

Non-Matches Only: Payer to Payer​

Only records where the rate difference is greater than 20 percent.

sample_idroidbilling_codeprovider_idpayer_idcanonical_rate_sourcedpr_sourcecanonical_raterateasp_payment_limitdiff
13442770939807247619J2679147942payerpayer_nominal12.377.157.4275.22
2-8711223187418504156J922556542payerpayer_nominal15666.84971.345166.2910695.4
34036999270868315285J93256586522payerpayer_nominal228123.1773.547104.83
4-317162380371793570Q42327637payerpayer_nominal335.96431.41130.11-95.45
52708082855851877541Q51036558522payerpayer_nominal15410619.67948
6-6458560222580200267J856075942payerpayer_nominal236.2876.4675.763159.82
7842993207590589178J3486409076payerpayer_nominal5.1810.223.138-5.04
8-5421404036335181480J92696410522payerpayer_nominal794382.45348.616411.55
9-813840554369825845J932460542payerpayer_nominal336.7581.0680.1255.69
10-3540174748366783405Q4236134076payerpayer_nominal482.72613.6483.646-130.88
115035911345685174536J9323154642payerpayer_nominal28.4410.5610.34317.88
124067773002960411059J9229653642payerpayer_nominal3627.822758.442698.05869.38
13-4999227485301809645P9041251842payerpayer_nominal15.9210.6210.6155.3
14-3187198685699586358J2802260442payerpayer_nominal23.6710.5210.99613.15
15-8616383729915695218J268063147payerpayer_nominal27.888.837.53219.05
16-7919507028228110615J92981778168payerpayer_nominal308.47205.02197.648103.45
177219040265346449940J074138697payerpayer_nominal50.8923.1323.62927.76
18-345489201883651931291304266842payerpayer_nominal201.93161.54161.53840.39
195757401257566507148J92056942payerpayer_nominal109.3465.2865.25544.06
20-6850570051323121175J14551208111payerpayer_nominal21.6338.2815.584-16.65
21-1044986740256299410J06996210300payerpayer_nominal9.692.482.47.21
22-6344785341743276429J903277542payerpayer_nominal107.1250.9252.0456.2
23-6715090684309556676Q41416512522payerpayer_nominal66.2749.2364.74617.04
241444816335801755946J25064477390payerpayer_nominal128.320.6658.399107.64
255155333171308303794J91726338522payerpayer_nominal90.3446.4649.07743.88
26-2702152091004230294J935675242payerpayer_nominal99.7862.9262.97336.86
274459022910811737023J18174454390payerpayer_nominal9.232.573.2376.66
287239030578820899240Q42396611522payerpayer_nominal4112.362819.92038.51292.46
297670914969823075792Q022460542payerpayer_nominal27349.86583.5723920766.3
306563492746383898146J120577776payerpayer_nominal32.4860.4640.382-27.98
31-6993070531747163330J059846947payerpayer_nominal118.8263.8865.72554.94
325864104758403467373J9245661642payerpayer_nominal226.22138.74108.0387.48
33-6594207418966623305J2788408042payerpayer_nominal74.4638.1527.85936.31
34-8132696384033905362Q51305400169payerpayer_nominal415186.75149.212228.25
35-487953037626225721290732244642payerpayer_nominal688.71120.12133.472568.59
36144209992783636988J1932310642payerpayer_nominal66.0922.8724.4543.22
37-56095868884881399290376648642payerpayer_nominal1096.02461.62479.719634.4
37-56095868884881399290376648642payerpayer_nominal1096.02554.46479.719541.56
381208288454281888963J9358409342payerpayer_nominal38.7328.8130.0029.92
39-7761972582611790786J93301836168payerpayer_nominal110.3530.3232.28680.03
40-7400274397570217573J9032405642payerpayer_nominal155.1560.8952.0494.26

Non-Matches Only: Hospital to Hospital​

Only records where the rate difference is greater than 20 percent.

sample_idroidbilling_codeprovider_idpayer_idcanonical_rate_sourcedpr_sourcecanonical_raterateasp_payment_limitdiff
17934391813973520564J138054547hospitalhospital30.5213.627.71216.9
28158919683481236159J3000604942hospitalhospital25.5934.131.353-8.51
3-6735052947644998049J341063097hospitalhospital30.0450.9916.928-20.95
4-5233145161398777335J2270241076hospitalhospital16.088.474.5457.61
540232174972364094499074619337hospitalhospital153.43222.6670.376-69.23
68960125874707512556J14303079643hospitalhospital811.22404.96519.516406.26
7-2944789871177132571J279071417hospitalhospital222.35141.3782.42380.98
84028188049377886045907141990643hospitalhospital125.6481.3336.36544.31
96888438034592324385P904560657hospitalhospital92.88115.5453.077-22.66
10-4519454093397716238J0480241242hospitalhospital9270.3712128.34672.47-2857.97
116524361811912189015J2794297376hospitalhospital11.7330.2610.941-18.53
12-8271033648680810411J9264587143hospitalhospital23.1744.812.122-21.63
13-67569190587193554179132252977hospitalhospital402.36277.05161.652125.31
146703473264256606373J34701664643hospitalhospital114.6480.9331.55433.71
15-2338465728440495046J07124304643hospitalhospital7.7213.74.244-5.98
163805045594411494441J21756321403hospitalhospital59.318.615.69440.7
17260959226889775230J1110477676hospitalhospital120.8153.6897.073-32.88
18-2217013366724573711J341058717hospitalhospital37.1429.7116.9287.43
198827238030076259155J22103814643hospitalhospital76.0656.622.05719.46
20-4630087942892232897906711667643hospitalhospital431.67334.79261.14696.88
21-1662338288106475029J93325737643hospitalhospital64.1492.632.396-28.46
22-629322504186211435J2350592043hospitalhospital238.372.0559.704166.25
23-494280277097054195J02212420643hospitalhospital433.53583.984206.615-150.454
24-810501813156163729J02181221643hospitalhospital953.11319.38393.823-366.28
254982120396574141121J9226313442hospitalhospital70618.656211.145560.414407.5
266310697176938114173J286011207hospitalhospital290.58204.19161.95586.39
277265447766792892647J0491317342hospitalhospital27.5517.1818.10410.37
284986985263724597482J1364657576hospitalhospital240.05180.0875.05359.97
29-6828483150075906622A96065728643hospitalhospital780.01428.24nan351.77
30-9188378172914436756J07402661643hospitalhospital9811619.34529.375-638.34
317804304057287688404Q41322177643hospitalhospital160.5879.3389.18281.25
32-7635763866279493965J928060497hospitalhospital81.1197.54228.272-16.432
33-8749251074429170631J7170715876hospitalhospital60.78175.83257.434-115.052
34-3391556859930073596906565773643hospitalhospital21.4328.0222.35-6.59
35-897303083467161462J324017477hospitalhospital2985.015373.022113.24-2388.01
36-7561669746405106709J2357316542hospitalhospital62.8739.4640.56323.41
37-3341966273598968520J2760480628hospitalhospital1035.29827.4436.507207.89
373715863839938073645J2760480628payerhospital1260.99827.4436.507433.59
3889472390779228388J19501282174hospitalhospital4489.722457.831737.12031.89
39-365811989576434368J1325314242hospitalhospital24.9215.9616.28.96
401403571412965325980J751657337hospitalhospital242.2128.8972.688113.31

Hospital Non-Matches Deeper Dive​

DPR / Clear Rates are the same on average

On average, DPR and Clear Rates are the same. Hospital non-matches just have a bit more variance than payer non-matches. There are some outliers (where Clear Rates is way higher or way lower than DPR) but these are rare.

alt text


Zooming into 10 random samples where differences are large, it generally appears that Clear Rates is selecting the ready-as-is fee-schedule facility rate where available.

Sample 1:​

74.01 is ready-as-is

  • Clear Rates: 74.010
  • DPR: 199.280
  • ASP: 53.401
billing_codebilling_code_modifiersrevenue_codesettingbilling_classplan_namepayer_product_networkcontract_methodologydosage_std_dollarnegotiated_dollarparsed_quantityparsed_unit_labelasp_quantityasp_unit_labelasp_payment_limit
J3250250OutpatientFacilityHMOHMOfee schedule7070.04200milligram200MG53.401
J3250250OutpatientFacilityPPOPPOfee schedule7474.01200milligram200MG53.401
J3250250OutpatientFacilityBAVUnsortedpercent of total billed charges168167.39200milligram200MG53.401
J3250250InpatientFacilityBAVUnsortedpercent of total billed charges168167.39200milligram200MG53.401
J3250250InpatientFacilityHMOHMOpercent of total billed charges200199.28200milligram200MG53.401
J3250250InpatientFacilityPPOPPOpercent of total billed charges200199.28200milligram200MG53.401

Sample 2:​

25.53 is ready-as-is

  • Clear Rates: 25.53
  • DPR: 102.12
  • ASP: 28.021
billing_codebilling_code_modifiersrevenue_codesettingbilling_classplan_namepayer_product_networkcontract_methodologydosage_std_dollarnegotiated_dollarparsed_quantityparsed_unit_labelasp_quantityasp_unit_labelasp_payment_limit
J0834636OutpatientFacilityTRADITIONAL/PPO/HMOPPOfee schedule25.5325.530.25milligram0.25MG28.021
J0834636OutpatientFacilityTRADITIONAL/PPO/HMOHMOfee schedule25.5325.530.25milligram0.25MG28.021

Sample 3:​

5.51 is ready-as-is

  • Clear Rates: 5.51
  • DPR: 16.56
  • ASP: 5.188
billing_codebilling_code_modifiersrevenue_codesettingbilling_classplan_namepayer_product_networkcontract_methodologydosage_std_dollarnegotiated_dollarparsed_quantityparsed_unit_labelasp_quantityasp_unit_labelasp_payment_limit
J0360636OutpatientFacilityBCBS BLUECARDUnsortedfee schedule5.65.5120milligrams per milliliter20MG5.188
J0360636OutpatientFacilityBCBS BLUECARDUnsortedfee schedule5.65.5120milligrams per milliliter20MG5.188
J0360636OutpatientFacilityBCBS BLUECARDUnsortedfee schedule5.65.5120milligrams per milliliter20MG5.188
J0360636InpatientFacilityBCBS BLUECARDUnsortedpercent of total billed charges16.616.5620milligrams per milliliter20MG5.188
J0360636InpatientFacilityBCBS BLUECARDUnsortedpercent of total billed charges16.616.5620milligrams per milliliter20MG5.188
J0360636InpatientFacilityALL PRODUCTSUnsortedpercent of total billed charges34.234.220milligrams per milliliter20MG5.188
J0360636InpatientFacilityALL PRODUCTSUnsortedpercent of total billed charges34.234.220milligrams per milliliter20MG5.188
J0360636OutpatientFacilityALL PRODUCTSUnsortedpercent of total billed charges34.234.220milligrams per milliliter20MG5.188
J0360636OutpatientFacilityALL PRODUCTSUnsortedpercent of total billed charges34.234.220milligrams per milliliter20MG5.188
J0360636InpatientFacilityBCBS BLUECARDUnsortedpercent of total billed charges6161.0320milligrams per milliliter20MG5.188
J0360636InpatientFacilityALL PRODUCTSUnsortedpercent of total billed charges126126.0520milligrams per milliliter20MG5.188
J0360636OutpatientFacilityALL PRODUCTSUnsortedpercent of total billed charges126126.0520milligrams per milliliter20MG5.188

Sample 4:​

24.94 is ready-as-is

  • Clear Rates: 24.94
  • DPR: 73.62
  • ASP: 26.503
billing_codebilling_code_modifiersrevenue_codesettingbilling_classplan_namepayer_product_networkcontract_methodologydosage_std_dollarnegotiated_dollarparsed_quantityparsed_unit_labelasp_quantityasp_unit_labelasp_payment_limit
Q5119636OutpatientFacilityCOMMERCIALUnsortedfee schedule0.524.94500milligram10MG26.503
Q5119636OutpatientFacilityCOMMERCIALUnsortedfee schedule2.524.94100milligram10MG26.503
Q5119636InpatientFacilityCOMMERCIALUnsortedpercent of total billed charges1.573.62500milligram10MG26.503
Q5119636InpatientFacilityCOMMERCIALUnsortedpercent of total billed charges7.473.62100milligram10MG26.503

Sample 5:​

8.09 is ready-as-is

  • Clear Rates: 8.09
  • DPR: 27.84
  • ASP: 7.979
billing_codebilling_code_modifiersrevenue_codesettingbilling_classplan_namepayer_product_networkcontract_methodologydosage_std_dollarnegotiated_dollarparsed_quantityparsed_unit_labelasp_quantityasp_unit_labelasp_payment_limit
J9400OutpatientFacilityCOMMERCIALUnsortedfee schedule8.098.091milligram1MG7.979
J9400Inpatient & OutpatientProfessionalCOMMERCIALUnsortedfee schedule27.8427.841milligram1MG7.979

Sample 6:​

755.6 is ready-as-is

  • Clear Rates: 755.6
  • DPR: 1644.13
  • ASP: 742.895
billing_codebilling_code_modifiersrevenue_codesettingbilling_classplan_namepayer_product_networkcontract_methodologydosage_std_dollarnegotiated_dollarparsed_quantityparsed_unit_labelasp_quantityasp_unit_labelasp_payment_limit
J1212250InpatientFacilityCHS GROUP HEALTH PLAN BCBSTUnsortedpercent of total billed charges712712.0650milliliter50ML742.895
J1212250OutpatientFacilityCHS GROUP HEALTH PLAN BCBSTUnsortedpercent of total billed charges712712.0650milliliter50ML742.895
J1212250OutpatientFacilityBLUE ACCESSUnsortedother755.5755.650milliliter50ML742.895
J1212250OutpatientFacilityBLUE PREFERREDUnsortedother755.5755.650milliliter50ML742.895
J1212250OutpatientFacilityBLUE TRADITIONALUnsortedpercent of total billed charges15721572.1350milliliter50ML742.895
J1212250InpatientFacilityBLUE TRADITIONALUnsortedpercent of total billed charges16441644.1350milliliter50ML742.895
J1212250OutpatientFacilityBLUE PREFERREDUnsortednannan50milliliter50ML742.895
J1212250OutpatientFacilityBLUE ACCESSUnsortednannan50milliliter50ML742.895
J1212250OutpatientFacilityCHS GROUP HEALTH PLAN BCBSTUnsortednannan50milliliter50ML742.895
J1212250InpatientFacilityBLUE PREFERREDUnsortednannan50milliliter50ML742.895
J1212250InpatientFacilityBLUE ACCESSUnsortednannan50milliliter50ML742.895
J1212250OutpatientFacilityBLUE TRADITIONALUnsortednannan50milliliter50ML742.895

Sample 7:​

65.03 is ready-as-is

  • Clear Rates: 65.03
  • DPR: 165.286
  • ASP: 69.835
billing_codebilling_code_modifiersrevenue_codesettingbilling_classplan_namepayer_product_networkcontract_methodologydosage_std_dollarnegotiated_dollarparsed_quantityparsed_unit_labelasp_quantityasp_unit_labelasp_payment_limit
J9145636OutpatientALL PLANSPPOfee schedule32.565.0320milligrams per milliliter10MG69.835
J9145636OutpatientALL PLANSUnsortedfee schedule32.565.0320milligrams per milliliter10MG69.835
J9145636OutpatientALL PLANSUnsortedfee schedule32.565.0320milligrams per milliliter10MG69.835
J9145636OutpatientALL PLANSHMOfee schedule32.565.0320milligrams per milliliter10MG69.835
J9145636OutpatientALL PLANSPPOfee schedule32.565.0320milligrams per milliliter10MG69.835
J9145636OutpatientALL PLANSUnsortedfee schedule32.565.0320milligrams per milliliter10MG69.835
J9145636OutpatientALL PLANSUnsortedfee schedule32.565.0320milligrams per milliliter10MG69.835
J9145636OutpatientALL PLANSHMOfee schedule32.565.0320milligrams per milliliter10MG69.835
J9145636OutpatientALL PLANSPPOfee schedule32.565.0320milligrams per milliliter10MG69.835
J9145636OutpatientALL PLANSUnsortedfee schedule32.565.0320milligrams per milliliter10MG69.835
J9145636OutpatientALL PLANSUnsortedfee schedule32.565.0320milligrams per milliliter10MG69.835
J9145636OutpatientALL PLANSHMOfee schedule32.565.0320milligrams per milliliter10MG69.835
J9145636OutpatientALL PLANSPPOfee schedule32.565.0320milligrams per milliliter10MG69.835
J9145636OutpatientALL PLANSUnsortedfee schedule32.565.0320milligrams per milliliter10MG69.835
J9145636OutpatientALL PLANSUnsortedfee schedule32.565.0320milligrams per milliliter10MG69.835
J9145636OutpatientALL PLANSHMOfee schedule32.565.0320milligrams per milliliter10MG69.835
J9145636OutpatientALL PLANSUnsortedother412.4824.8820milligrams per milliliter10MG69.835
J9145636OutpatientALL PLANSUnsortedother415.6831.1120milligrams per milliliter10MG69.835
J9145636OutpatientALL PLANSUnsortedother1649.73299.4920milligrams per milliliter10MG69.835
J9145636OutpatientALL PLANSUnsortedother1652.93305.7220milligrams per milliliter10MG69.835

Sample 8:​

31.2 is ready-as-is

  • Clear Rates: 31.2
  • DPR: 73.24
  • ASP: 17.226
billing_codebilling_code_modifiersrevenue_codesettingbilling_classplan_namepayer_product_networkcontract_methodologydosage_std_dollarnegotiated_dollarparsed_quantityparsed_unit_labelasp_quantityasp_unit_labelasp_payment_limit
J1120636OutpatientFacilityHB PCMH UHCUnsortedfee schedule3031.2500milligram500MG17.226
J1120636InpatientFacilityHB PCMH UHCUnsortedothernannan500milligram500MG17.226

Sample 9:​

77.8 is ready-as-is

  • Clear Rates: 77.8
  • DPR: 163.35
  • ASP: 46.911
billing_codebilling_code_modifiersrevenue_codesettingbilling_classplan_namepayer_product_networkcontract_methodologydosage_std_dollarnegotiated_dollarparsed_quantityparsed_unit_labelasp_quantityasp_unit_labelasp_payment_limit
J1000OutpatientProfessionalCIGNA HMO-POSPOSfee schedule24.055MG46.911
J1000OutpatientProfessionalCIGNA HMO-POSHMOfee schedule24.055MG46.911
J1000OutpatientProfessionalCIGNA PPOPPOfee schedule24.055MG46.911
J1000OutpatientProfessionalCIGNA PPO - DHPPPOfee schedule32.675MG46.911
J1000OutpatientProfessionalCIGNA HMO-POS - DHPHMOfee schedule32.675MG46.911
J1000OutpatientProfessionalCIGNA HMO-POS - DHPPOSfee schedule32.675MG46.911
J1000OutpatientFacilityCIGNA HMO-POSPOSfee schedule77.85MG46.911
J1000OutpatientFacilityCIGNA HMO-POSHMOfee schedule77.85MG46.911

Sample 10:​

112.04 is ready-as-is

  • Clear Rates: 112.04
  • DPR: 271.32
  • ASP: 32.085
billing_codebilling_code_modifiersrevenue_codesettingbilling_classplan_namepayer_product_networkcontract_methodologydosage_std_dollarnegotiated_dollarparsed_quantityparsed_unit_labelasp_quantityasp_unit_labelasp_payment_limit
J1190636OutpatientFacilityCOMMERCIALUnsortedfee schedule112.5112.04250milligram250MG32.085
J1190636OutpatientFacilityCOMMERCIALUnsortedfee schedule55112.04500milligram250MG32.085
J1190636InpatientFacilityCOMMERCIALUnsortedpercent of total billed charges135135.66250milligram250MG32.085
J1190636InpatientFacilityCOMMERCIALUnsortedpercent of total billed charges135271.32500milligram250MG32.085
Code

To get payer-payer / hospital-hospital matches and non-matches:

_type = 'hospital-hospital'
if _type == 'payer-payer':
canonical_rate_type = 'raw: payer'
dpr_source = 'payer'
elif _type == 'hospital-hospital':
canonical_rate_type = 'raw: hospital'
dpr_source = 'hospital'

# %%
df = pd.read_sql(f"""
WITH
asp AS (
SELECT
code as billing_code,
CAST(payment_limit AS DOUBLE) as asp_payment_limit
FROM (
SELECT
code,
payment_limit,
rank() OVER (PARTITION BY code ORDER BY eff_end_dt DESC) as rank
FROM tq_production.reference_legacy.ref_asp_pricing_file
)
WHERE rank = 1
),
matches AS (
SELECT
payer_id,
provider_id,
billing_code,
MAX(
CASE
WHEN ABS(canonical_rate - rate) / canonical_rate < 0.2
OR ABS(canonical_rate - rate) < 5
THEN 1 ELSE 0 END
) AS match
FROM tq_dev.internal_dev_csong_sandbox.dpr_vs_cld_hospitals_2025_08_24
WHERE canonical_rate_type LIKE '{canonical_rate_type}%'
AND dpr_source LIKE '%{dpr_source}%'
AND canonical_rate_type NOT LIKE '%allowed_amount%'
AND roid IN (
SELECT roid
FROM tq_dev.internal_dev_csong_cld_v2_1_0.tmp_int_combined_2025_06
WHERE network_type = 'PPO'
)
AND billing_code IN (
SELECT billing_code
FROM asp
)
GROUP BY 1, 2, 3
),
sample AS (
SELECT
row_number() OVER () AS sample_id,
t.*
FROM (
SELECT payer_id, provider_id, billing_code
FROM matches
WHERE match = 0
ORDER BY RANDOM()
LIMIT 20
) t
)
SELECT
DISTINCT
sample.sample_id,
cld.roid,
cld.billing_code,
cld.provider_id,
cld.payer_id,
cld.canonical_rate_source,
cld.dpr_source,
cld.canonical_rate,
cld.rate,
asp.asp_payment_limit
FROM tq_dev.internal_dev_csong_sandbox.dpr_vs_cld_hospitals_2025_08_24 cld
JOIN sample
ON cld.payer_id = sample.payer_id
AND cld.provider_id = sample.provider_id
AND cld.billing_code = sample.billing_code
LEFT JOIN asp
ON cld.billing_code = asp.billing_code
WHERE roid IN (
SELECT roid
FROM tq_dev.internal_dev_csong_cld_v2_1_0.tmp_int_combined_2025_06
WHERE network_type = 'PPO'
)
ORDER BY sample.sample_id

To get samples from hospital data:

import seaborn as sns
import matplotlib.pyplot as plt
sns.set_theme(style='whitegrid', rc={'figure.figsize': (14, 12)})

# %%
df['diff'].describe(percentiles=[0.01, 0.05, 0.1, 0.25, 0.5, 0.75, 0.9, 0.95, 0.99])

# %%
ax = sns.kdeplot(df['diff'])
plt.title('Distribution of Rate Differences (Canonical - DPR) for hospital-hospital mis-matches only (n=1000)')


# %% [markdown]
"""
Examples
"""
# %%
samples = df.loc[abs(df['diff_percent']) > 100].head(10)

# %%
for sample in samples.itertuples():
check = pd.read_sql(f"""
WITH
asp AS (
SELECT
code as billing_code,
quantity,
unit_label,
CAST(payment_limit AS DOUBLE) as asp_payment_limit
FROM (
SELECT
code,
REPLACE(COALESCE(REGEXP_EXTRACT(dosage, '[0-9.]+'), '1'),',','') as quantity,
COALESCE(REGEXP_REPLACE(dosage, '[0-9.]+', ''), '') as unit_label,
payment_limit,
rank() OVER (PARTITION BY code ORDER BY eff_end_dt DESC) as rank
FROM tq_production.reference_legacy.ref_asp_pricing_file
)
WHERE rank = 1
)
SELECT
hr.billing_code,
hr.billing_code_modifiers,
hr.revenue_code,
hr.setting,
hr.billing_class,
hr.plan_name,
hr.payer_product_network,
contract_methodology,
CASE
WHEN (
dd.parsed_quantity IS NOT NULL AND
CAST(dd.parsed_quantity AS DECIMAL(18, 2)) > 0
)
THEN (
-- dosage standardize
(hr.negotiated_dollar / CAST(dd.parsed_quantity AS DECIMAL(18, 2))) * CAST(asp.quantity as DECIMAL(18, 2))
)
ELSE NULL
END as dosage_std_dollar,
negotiated_dollar,
dd.parsed_quantity,
dd.parsed_unit_label,
asp.quantity as asp_quantity,
asp.unit_label as asp_unit_label,
asp.asp_payment_limit
FROM tq_production.hospital_data.hospital_rates hr
JOIN asp
ON hr.billing_code = asp.billing_code
LEFT JOIN (
SELECT
description,
code,
any_value(parsed_quantity) as parsed_quantity,
any_value(parsed_unit_label) as parsed_unit_label
FROM tq_production.life_sciences.ff_hospital_descriptions_2025_07
WHERE parsed_quantity != ''
GROUP BY description, code
) dd
ON hr.description = dd.description
AND hr.billing_code = dd.code
WHERE
hr.billing_code = '{sample.billing_code}'
AND hr.provider_id = '{sample.provider_id}'
AND hr.payer_id = {sample.payer_id}
AND hr.payer_class_name = 'Commercial'
ORDER BY negotiated_dollar
""", con=trino_conn)

print(f"- Clear Rates: {sample.canonical_rate}")
print(f"- DPR: {sample.rate}")
print(f"- ASP: {sample.asp_payment_limit}")
print('\n')
print(check.to_markdown(index=False))
print('\n\n')