mediyap 0.1.1

A library for decoding medical terminology into plain English
Documentation
  • Coverage
  • 25%
    1 out of 4 items documented1 out of 4 items with examples
  • Size
  • Source code size: 13.5 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.4 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 16s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • tpglitch/mediyap
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tpglitch

Mediyap

A Rust library for decoding medical terminology into plain English by breaking down prefixes, suffixes, and root words.

Features

  • Decode complex medical terms into readable explanations
  • (fairly) Extensive dictionary of medical prefixes, suffixes, and roots
  • Zero dependencies
  • Well-tested

Installation

Add this to your Cargo.toml:

[dependencies]
mediyap = "0.1.1"

Usage

use mediyap::MedicalDecoder;

fn main() {
    let decoder = MedicalDecoder::new();

    println!("{}", decoder.decode("hypoglycemia"));
    // Output: low glucose/sugar presence in blood

    println!("{}", decoder.decode("tachycardia"));
    // Output: fast heart

    println!("{}", decoder.decode("nephritis"));
    // Output: kidney inflammation
}

Examples

Medical Term Decoded Meaning
hypoglycemia low glucose/sugar presence in blood
hyperglycemia high glucose/sugar presence in blood
tachycardia fast heart
bradycardia slow heart
leukemia white presence in blood
anemia without blood
thrombocytopenia clot cell deficiency
arthritis joint inflammation
gastritis stomach inflammation
cardiomegaly heart enlargement

Supported Components

Prefixes

  • hypo- (low)
  • hyper- (high)
  • brady- (slow)
  • tachy- (fast)
  • a-/an- (without)
  • poly- (many)
  • oligo- (few)
  • And many more...

Suffixes

  • -emia (presence in blood)
  • -itis (inflammation)
  • -uria (presence in urine)
  • -pathy (disease)
  • -penia (deficiency)
  • -algia (pain)
  • -ectomy (surgical removal)
  • And many more...

Root Words

  • glyc/gluc (glucose/sugar)
  • card/cardi (heart)
  • hem/hemat (blood)
  • nephr/ren (kidney)
  • gastr (stomach)
  • hepat (liver)
  • And many more...

Running Tests

cargo test

Contributing

Contributions are welcome! Feel free to submit pull requests to add more medical terms or improve the decoding logic.

License

This project is licensed under the MIT license. Read the LICENSE file for more info.