API Specifications – ICD Analysis

Comp Analytics API is structured around REST and specifically the POST method. The API accepts json-encoded request bodies and return JSON encoded responses. Standard HTTP response codes are returned.

Provider Analysis

REQUEST

Endpoint: https://comp-analytics.com/compapp/api/request_icd.php
Method: POST
Content-Type: application/json
Parameters:

jwtstringLogin Token
icd1stringICD10 code
icd2stringICD10 code
icd3stringICD10 code
icd4stringICD10 code
icd5stringICD10 code

RESPONSE

Returns JSON encoded dictionary with the following values:

messagestringInformational Message
icd_responsedictionary with results
minchargestringMinimum Provider Charge
maxchargestringMaximum Provider Charge
avgchargestringAverage Provider Charge
minpaidstringMinimum Provider Payment
maxpaidstringMaximum Provider Payment
avgpaidstringAverage Provider Payment
minbillsstringMinimum Number of Bills per Injury
maxbillsstringMaximum Number of Bills per Injury
avgbillsstringAverage Number of Bills per Injury
medianchargestringMedian Provider Charge
medianpaidstringMedian Provider Payment
medianbillcountstringMedian Number of Bills per Injury
trendarraydictionary with per injury detail
AVG_ChargestringAverage Charge for Injury
AVG_PaidstringAverage Paid for Injury
AgeMonthsstringAge for Injury
Date_of_InjurystringDate of Injury
Claim_NumberstringInjury Identifier

{
     "message":"Procedure request was updated.",
     "icd_response":{
         "mincharge":"75",
         "maxcharge":"2337962.5",
         "avgcharge":"18613.629306027065",
         "minpaid":"0",
         "maxpaid":"208098.265625",
         "avgpaid":"4103.81906372549",
         "minbills":"1",
         "maxbills":"268",
         "avgbills":"10.701717490361023",
         "mediancharge":"4483.2",
         "medianpaid":"1163.91",
         "medianbillcount":"4",
         "trendarray":[
             {"AVG_Charge":"5785",
             "AVG_Paid":"1838",
             "AgeMonths":"5",
             "Date_of_Injury":"201905",
             "Claim_Number":"Claim1"
             },
             {"AVG_Charge":"5974",
             "AVG_Paid":"1260",
             "AgeMonths":"6",
             "Date_of_Injury":"201904",
             "Claim_Number":"Claim1"
             }
         ]
     }
 }