docaroo-rs
A Rust SDK for the Docaroo Care Navigation Data API, providing healthcare provider pricing discovery and procedure likelihood analysis.
Features
- In-network Pricing Lookup: Get contracted rates for healthcare providers (NPIs) for specific billing codes and insurance plans
- Procedure Likelihood Scoring: Evaluate the likelihood that providers perform specific medical procedures (0.0 to 1.0 confidence scores)
- Bulk Operations: Support for up to 10 NPIs per pricing request
- Multiple Code Types: Support for CPT, NDC, HCPCS, ICD, DRG variants, and more
- Async/Await: Built with Tokio for efficient async operations
- Type-Safe: Strongly typed request/response models with builder patterns
- Comprehensive Error Handling: Detailed error types with retry support
Installation
Add this to your Cargo.toml
:
[]
= "0.0.1"
Quick Start
use ;
async
API Overview
Pricing API
Look up in-network contracted rates for healthcare providers:
use ;
let request = builder
.npis // Can add multiple NPIs (up to 10)
.condition_code
.plan_id // Optional, defaults to "942404110"
.code_type // Optional, defaults to CPT
.build;
let response = client.pricing.get_in_network_rates.await?;
Procedure Likelihood API
Evaluate the likelihood that providers perform specific procedures:
use LikelihoodRequest;
let request = builder
.npis
.condition_code
.code_type
.build;
let response = client.procedures.get_likelihood.await?;
// Or use the convenience method
let response = client.procedures
.check_providers
.await?;
Configuration
Custom Configuration
use DocarooConfig;
let config = builder
.api_key
.base_url // Optional custom URL
.http_client // Optional custom reqwest client
.build;
let client = with_config;
Environment Variables
The examples use environment variables for API keys:
Error Handling
The SDK provides comprehensive error handling:
use DocarooError;
match client.pricing.get_in_network_rates.await
Medical Code Types
The SDK supports all medical billing code standards used by the API:
- CPT: Current Procedural Terminology
- NDC: National Drug Code
- HCPCS: Healthcare Common Procedure Coding System
- ICD: International Classification of Diseases
- DRG variants: MS-DRG, R-DRG, S-DRG, APS-DRG, AP-DRG, APR-DRG
- APC: Ambulatory Payment Classification
- CDT: Current Dental Terminology
- And more...
Examples
See the examples directory for detailed usage examples:
- pricing.rs - Pricing API usage
- likelihood.rs - Procedure likelihood API usage
- error_handling.rs - Error handling and retry logic
API Documentation
For detailed SDK documentation, run:
For the Docaroo API documentation and details about the API endpoints, visit the official Docaroo documentation.
Author
This Rust client was developed by Nikolas Yanek-Chrones.
- GitHub: @nikothomas
- Email: nik@sunnyhealth.ai
Support
- For API access and questions: support@docaroo.com
- For SDK issues: GitHub Issues
License
This project is licensed under the MIT License - see the LICENSE file for details.