Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

FDA & EU MDR Medical Device UDI Decoder — Rust Client Crate

Crates.io Documentation License: MIT Stanza API

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.


📦 Installation

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-decoder

🚀 Quickstart

use 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(())
}

📄 Example Response

{
  "success": true,
  "data": {
    "valid": true,
    "issuing_agency": "HIBCC",
    "di": "H12345678901",
    "lot": "3260101"
  }
}

🔗 Useful Links

📄 License

MIT © Stanza — Powered by Stanza.

About

FDA & EU MDR Medical Device UDI Decoder (GS1, HIBCC, ICCBBA) (rust client)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages