Skip to navigation

Predict visit codes

Predicts the procedure codes for an upcoming visit without pricing it. Price the result by sending its id as treatments.trt_id to the create-price endpoint.

Authentication

AuthorizationBearer
Send your Taiga API key as a Bearer token. Create and manage keys in the Taiga developer portal.

Headers

Idempotency-KeystringRequired8-128 characters
Retrying with the same key and body returns the same result.

Request

This endpoint expects an object.
appointmentobjectRequired
billing_provider_npistringRequiredformat: "^\d{10}$"
patientobjectRequired
insuranceobjectOptional
max_candidatesintegerOptional1-10
Defaults to 5.
providerobjectOptional

Response

Prediction
candidateslist of objects
Further likely codes, best first.
created_atdatetime
idstring

Send as treatments.trt_id to price this prediction.

livemodeboolean
objectenum
Allowed values:
predictedlist of objects
The codes expected for the visit.
model_versionstring or nullOptional
selection_modestring or nullOptional

model, route or suppressed.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
502
Bad Gateway Error