pub struct ProceduresClient { /* private fields */ }
Expand description
Client for procedure likelihood operations
Implementations§
Source§impl ProceduresClient
impl ProceduresClient
Sourcepub async fn get_likelihood(
&self,
request: LikelihoodRequest,
) -> Result<LikelihoodResponse>
pub async fn get_likelihood( &self, request: LikelihoodRequest, ) -> Result<LikelihoodResponse>
Get procedure likelihood scores for healthcare providers
Evaluate the likelihood that healthcare providers (NPIs) perform specific medical procedures or services. The API analyzes historical claims data and provider specialties to generate confidence scores from 0.0 (unlikely) to 1.0 (highly likely).
§Arguments
request
- The likelihood request containing NPIs, billing code, and code type
§Returns
A LikelihoodResponse
containing likelihood scores organized by NPI and metadata
§Errors
Returns an error if:
- The request contains invalid parameters
- Authentication fails (invalid API key)
- Rate limits are exceeded
- The API returns an error response
§Example
use docaroo_rs::{DocarooClient, models::LikelihoodRequest};
let client = DocarooClient::new("your-api-key");
let request = LikelihoodRequest::builder()
.npis(vec!["1487648176".to_string()])
.condition_code("99214")
.code_type("CPT")
.build();
let response = client.procedures().get_likelihood(request).await?;
// Process the response
for (npi, data) in response.data {
println!("NPI {}: Likelihood score = {:.2}", npi, data.likelihood);
}
Sourcepub async fn check_providers(
&self,
npis: &[&str],
condition_code: impl Into<String>,
code_type: impl Into<String>,
) -> Result<LikelihoodResponse>
pub async fn check_providers( &self, npis: &[&str], condition_code: impl Into<String>, code_type: impl Into<String>, ) -> Result<LikelihoodResponse>
Check multiple providers for a procedure at once
This is a convenience method that allows checking multiple providers for the same procedure in a single request.
§Arguments
npis
- List of National Provider Identifierscondition_code
- Medical billing codecode_type
- Medical billing code standard (e.g., “CPT”)
§Example
let client = DocarooClient::new("your-api-key");
let npis = vec!["1487648176", "1234567890"];
let response = client.procedures()
.check_providers(&npis, "99214", "CPT")
.await?;
Trait Implementations§
Source§impl Clone for ProceduresClient
impl Clone for ProceduresClient
Source§fn clone(&self) -> ProceduresClient
fn clone(&self) -> ProceduresClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ProceduresClient
impl !RefUnwindSafe for ProceduresClient
impl Send for ProceduresClient
impl Sync for ProceduresClient
impl Unpin for ProceduresClient
impl !UnwindSafe for ProceduresClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more