pub struct PricingClient { /* private fields */ }
Expand description
Client for pricing-related operations
Implementations§
Source§impl PricingClient
impl PricingClient
Sourcepub async fn get_in_network_rates(
&self,
request: PricingRequest,
) -> Result<PricingResponse>
pub async fn get_in_network_rates( &self, request: PricingRequest, ) -> Result<PricingResponse>
Get in-network contracted rates for healthcare providers
Retrieve contracted rates for healthcare providers (NPIs) for specific billing codes and insurance plans. This endpoint supports bulk lookups for up to 10 NPIs per request.
§Arguments
request
- The pricing request containing NPIs, billing code, and optional plan ID
§Returns
A PricingResponse
containing rate data organized by NPI and response metadata
§Errors
Returns an error if:
- The request contains invalid parameters (e.g., invalid NPI format)
- Authentication fails (invalid API key)
- Rate limits are exceeded
- The API returns an error response
§Example
use docaroo_rs::{DocarooClient, models::PricingRequest};
let client = DocarooClient::new("your-api-key");
let request = PricingRequest::builder()
.npis(vec!["1043566623".to_string(), "1972767655".to_string()])
.condition_code("99214")
.plan_id("942404110")
.build();
let response = client.pricing().get_in_network_rates(request).await?;
// Process the response
for (npi, rates) in response.data {
println!("NPI {}: {} rates found", npi, rates.len());
for rate in rates {
println!(" - Min: ${:.2}, Max: ${:.2}, Avg: ${:.2}",
rate.min_rate, rate.max_rate, rate.avg_rate);
}
}
Trait Implementations§
Source§impl Clone for PricingClient
impl Clone for PricingClient
Source§fn clone(&self) -> PricingClient
fn clone(&self) -> PricingClient
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 PricingClient
impl !RefUnwindSafe for PricingClient
impl Send for PricingClient
impl Sync for PricingClient
impl Unpin for PricingClient
impl !UnwindSafe for PricingClient
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