Parse GS1-128, HIBCC Modulo-43, and ICCBBA ISBT 128 medical device barcodes for FDA 21 CFR 801 & EU MDR compliance.
Official high-performance, asynchronous Rust client library for FDA & EU MDR Medical Device UDI Decoder, built on the Stanza Micro-API Network. Uses pure Rustls TLS (zero C/OpenSSL dependencies) and Tokio for maximum concurrency and safety.
- 🌐 Online Interactive Sandbox: Test your inputs live
- 📚 API Reference & Schemas: View documentation on Stanza
- ⚡ Platform Overview: Explore the Stanza Developer Network
Add to your Cargo.toml:
[dependencies]
stanzaapi-udi-decoder = "1.0.0"
tokio = { version = "1.0", features = ["full"] }Or use cargo add:
cargo add stanzaapi-udi-decoderuse stanzaapi_udi_decoder::UdiDecoderClient;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Reads STANZA_API_KEY from environment automatically
// Public edge default: https://api.stanzaapi.com/udi-decoder
let client = UdiDecoderClient::new(None, None);
let response = client.validate("+H12345678901/$$3260101").await?;
if response.success {
println!("Verification Success: {:?}", response.data);
} else {
eprintln!("Validation Error: {:?}", response.error);
}
Ok(())
}{
"success": true,
"data": {
"valid": true,
"issuing_agency": "HIBCC",
"di": "H12345678901",
"lot": "3260101"
}
}- FDA & EU MDR Medical Device UDI Decoder Interactive Sandbox
- Stanza Developer Directory
- Source Code & Issue Tracker
MIT © Stanza — Powered by Stanza.