You are currently viewing How to design a Medical Lab Test Software

How to design a Medical Lab Test Software

In this article, let’s focus on modelling lab tests in a typical laboratory management software.

A lab test is a medical procedure that involves the analysis of a sample of blood, urine, or other bodily fluids or tissues. The results of lab tests can help diagnose diseases, monitor the progress of a treatment, or assess a person’s overall health. Lab tests are often accompanied by reference ranges, which are numerical values that represent the normal or expected range of a particular component in a given population.

Components Diagram: The components of a lab test may vary depending on the type of test being performed, but some common components include:

  1. Analyte: The substance being measured in the sample, such as glucose, cholesterol, or hemoglobin.
  2. Methodology: The method or technique used to measure the analyte, such as enzymatic or immunoassay methods.
  3. Units of measurement: The unit in which the analyte is expressed, such as milligrams per deciliter (mg/dL) or micromoles per liter (umol/L).
  4. Reference ranges: The range of normal or expected values for the analyte, which may vary depending on age, sex, and other factors.

Example of Lab Test and Reference Range:

Lab Test: Complete Blood Count (CBC)


  • Analytes: Red blood cells (RBC), white blood cells (WBC), hemoglobin (Hb), hematocrit (Hct), platelets.
  • Methodology: Automated hematology analyzer.
  • Units of measurement: RBC, WBC, and platelets are measured in cells per microliter (cells/ul), while Hb and Hct are measured in grams per deciliter (g/dL).
  • Reference ranges:
    • RBC: 4.5-5.5 million cells/ul (male), 4.0-5.0 million cells/ul (female)
    • WBC: 4,500-11,000 cells/ul
    • Hb: 13.5-17.5 g/dL (male), 12.0-15.5 g/dL (female)
    • Hct: 38.8-50.0% (male), 34.9-44.5% (female)
    • Platelets: 150,000-450,000 cells/ul

Sharing test components between multiple tests

It is possible for lab test components to be shared between multiple tests, especially if the tests are designed to measure similar or related aspects of a biological sample. For example, a blood test for liver function may measure multiple components such as alanine transaminase (ALT), aspartate transaminase (AST), and alkaline phosphatase (ALP). These components may also be measured in other liver function tests or metabolic panels.

Similarly, in microbiology, some tests may use similar components to identify different bacterial species. For instance, the Gram stain is a commonly used test that involves the use of crystal violet, iodine, and safranin to differentiate between gram-positive and gram-negative bacteria.

However, it is important to note that not all lab test components are shared between tests, and different tests may require different components or procedures to yield accurate results. The specific components and methods used in a lab test depend on the purpose of the test and the characteristics of the biological sample being analyzed.

It’s important to note that lab tests and their reference ranges can vary depending on the laboratory performing the analysis, the specific methodology used, and the population being tested. It’s always best to consult with a healthcare provider to interpret lab test results and their implications for an individual’s health.


Overall, this database is designed to store detailed information about lab tests, their components, and the normal reference ranges for each component. It also includes information about the patients who undergo the tests and their actual test results. This information can be used by healthcare professionals to diagnose and treat medical conditions more effectively.