Overview

High-level overview of the Molecular feature: purpose, scope, and core concepts.

👤 Mohammad Ashfaque Alam📅 Updated: May 19, 2026📁 Molecular

Overview

Molecular diagnostics in the medical laboratory detects and identifies genetic material, pathogens, and organisms in biological samples using techniques such as PCR. It is used to diagnose infectious diseases, determine antibiotic resistance patterns, and guide treatment decisions.

Molecular

Molecular provides the product foundation for managing molecular-specific master data and report configuration. Before a molecular workflow can be used in billing, report entry, or result interpretation, labs must define the underlying gene catalog, maintain antibiotic records, and build organisms that link genes and antibiotics. This setup ensures that molecular tests use consistent genetic markers, organisms, antibiotic resistance patterns, and reporting behavior across the workflow.

After the prerequisite master data is ready, a molecular report/test is created from Profile & Report Management > Test List. When the test type is selected as Molecular, the report parameter builder exposes molecular components such as Gene, Organism, Antibiotic Resistance, and Molecular Pivot.

Prerequisites

RequirementWhy it mattersWhere it is enforced
Gene master data must existAntibiotic Resistance components require gene records; molecular report configuration cannot be meaningful without gene recordsGene Master module in livehealth-frontend; backend persistence in livehealthapp and crelio-app
Antibiotic master data must exist when resistance-based molecular configuration is neededAn antibiotic record represents a drug used to determine susceptibility patternsAntibiotic Master UI and related backend APIs
Organism master data must exist when organism-based molecular configuration is neededAn organism is a microorganism that may be detected; organisms are linked to antibiotics through antibiogram mappingsOrganism Master UI and related backend APIs
User must have access to Drug Master / Panel Master screensThe master setup for genes, antibiotics, and organisms is managed from the Drug Master / Panel Master area in the application sidebarFrontend route/sidebar permissions and backend authorization
Molecular test/report must be created with test type MolecularMolecular-specific report components are available only after selecting the molecular test typeTest List / Add New Test flow in livehealth-frontend

What Is It For

Frontend perspective

  • Provide Gene Master, Antibiotic Master, and Organism Master screens under Drug Master / Panel Master.
  • Let users create, update, disable, download, and bulk-manage molecular master records.
  • Let users build antibiotic resistance mappings by linking antibiotics to genes.
  • Let users define organism-to-antibiotic relationships (standard antibiogram) and molecular organism-to-antibiotic relationships (molecular antibiogram).
  • Show system default, custom, disabled, and all-record views where applicable.
  • Create a molecular report/test by selecting test type Molecular.
  • Add molecular report components from the report parameter menu.
  • Configure Gene and Organism fields, billing availability, and display ordering metadata.

Backend perspective

  • Persist gene, antibiotic, and organism master data across livehealthapp and crelio-app.
  • Validate required fields such as gene name, antibiotic name/category/code/unit, and organism name/category/code.
  • Maintain relationships between genes and antibiotics through the AntibioticResistance table.
  • Maintain relationships between organisms and antibiotics through the OrganismAntibiotics table.
  • Maintain molecular-specific organism-to-antibiotic ordering and active state through the MolecularOrganismAntibiotics table.
  • Support system default lists and lab/custom records where applicable.
  • Persist molecular report parameter configuration and component metadata for report entry and billing workflows.

Types / Modes

TypeExampleRuntime behaviorNotes
GenemecA, blaCTX-M, rpoBDefines individual genetic markers with name, code, gene type, cut off, description, and CPT codeBase prerequisite for antibiotic resistance configuration; linked to antibiotics through AntibioticResistance
AntibioticCiprofloxacin, Cefotaxime, AmikacinDefines antimicrobial drugs with name, category, code, method, unit, sample type, device name, and dosageShared between Gene and Organism master contexts
OrganismE. coli, S. aureus, K. pneumoniaeDefines microorganisms with name, category, code, cut off, sample type, and description; linked to antibiotics through OrganismAntibiotics and MolecularOrganismAntibioticsBase entity for antibiogram and molecular pivot results
Gene componentGeneFirst-line molecular component for detecting genetic markersConfigured with Cut Off, Result, Interpretation, and Name fields
Organism componentOrganismMolecular component for identifying detected organismsConfigured with Name, Result, Interpretation, Cut Off, and Viral Load fields
Antibiotic Resistance componentAntibiotic ResistanceLinked to a Gene component; shows resistance patterns for detected genesLinked to all Gene components in the test; supports Show All / Only Resistant / Only Sensitive filter; has a Calculate button
Molecular Pivot componentMolecular PivotSummary-style pivot of Antibiotic Resistance findingsLinked to all Antibiotic Resistance components; supports Group By, Sort By, and Order By metadata

Structure Of Molecular

LayerWhat it stores or ownsTable / state / fileWhy it exists
Gene master layerIndividual molecular gene definitionsGeneProvides the base gene catalog for genetic marker detection
Antibiotic master layerAntimicrobial drug definitionsAntibioticProvides the base antibiotic catalog shared by gene and organism resistance workflows
Organism master layerMicroorganism definitions with antibiogram and molecular mappingsOrganism with OrganismAntibiotics and MolecularOrganismAntibioticsRepresents detected organisms and their susceptibility patterns
Antibiotic resistance relationship layerGene-to-antibiotic mappingsAntibioticResistance (gene_id, antibiotic_id)Links genes to their associated antibiotics for resistance component behavior
Molecular organism relationship layerOrganism-to-antibiotic mappings with sequence and active stateMolecularOrganismAntibiotics (organism_id, antibiotic_id, sequence, is_active)Maintains ordered, activatable molecular antibiogram entries per organism
Molecular report layerMolecular report/test configuration and componentsProfile & Report Management > Test List > Add New Test > Test Type: Molecular > Report ParametersDefines report-entry behavior for gene detection, organism identification, antibiotic resistance, and pivot views
Frontend UI layerLists, modals, filters, bulk actions, add/update flowsDrug Master / Panel Master screens and Test List > Report Parameters builderLets users manage prerequisite master data and configure molecular report components
Backend service layerAPIs, validation, persistence, permissionsGene, Antibiotic, Organism, AntibioticResistance, OrganismAntibiotics, MolecularOrganismAntibiotics plus molecular handling inside generic report-submit flowsOwns source-of-truth behavior for master data, billing defaults, and report submission

Master Data Model Notes

Genes are stored in the Gene table with a many-to-many relationship to Antibiotic through the AntibioticResistance through-table.

Organisms maintain two relationships to antibiotics:

  • OrganismAntibiotics: standard antibiogram mappings.
  • MolecularOrganismAntibiotics: molecular-specific ordered and activatable mappings with sequence and is_active fields.

Key Gene model fields:

  • name: gene name; unique within a lab (unique_together = (("name", "lab"),)).
  • code: gene code.
  • gene_type: gene type classification.
  • cut_off: numeric cut-off value used for result interpretation.
  • description: optional description.
  • cpt_code: CPT billing code.
  • lab: lab scope for the gene.
  • is_disabled: enables/disables the gene without deleting it.
  • antibiotics: many-to-many mapping to Antibiotic through AntibioticResistance.

Key Antibiotic model fields:

  • name: antibiotic name; unique within a lab.
  • category: antibiotic category (e.g., Third-generation cephalosporins, Fluoroquinolones).
  • code: antibiotic code; commonly uses WHO ATC codes such as J01DD01.
  • method: optional testing method.
  • unit: unit of measurement.
  • sample_type: optional sample type.
  • device_name: optional device name for instrument-specific mapping.
  • dosage: optional dosage field.
  • cpt_code: CPT billing code.
  • is_disabled: enables/disables the antibiotic without deleting it.

Key Organism model fields:

  • name: organism name; unique within a lab.
  • category: organism category.
  • code: organism code.
  • cut_off: numeric cut-off value.
  • sample_type: optional sample type.
  • description: optional description.
  • antibiotics: many-to-many mapping to Antibiotic through OrganismAntibiotics.
  • is_disabled: enables/disables the organism without deleting it.

Key Features

  • Gene Master list with gene name, gene code, description, and type.
  • Antibiotic Master list with antibiotic name, sample type, antibiotic category, antibiotic code, and status.
  • Organism Master list with organism name, sample type, organism category, organism code, and status.
  • System default request actions for new genes, antibiotics, and organisms.
  • Download and bulk-action support from master list pages.
  • Molecular report parameter components for gene detection, organism identification, antibiotic resistance, and molecular pivot.
  • Gene component configuration for report-entry fields, labels, editable and hidden behavior.
  • Organism component configuration with Viral Load field in addition to standard gene fields.
  • Antibiotic Resistance component configuration linked to Gene components with Show All / Only Resistant / Only Sensitive filtering.
  • Molecular Pivot component configuration linked to Antibiotic Resistance components with Group By, Sort By, and Order By metadata.
  • Detection logic uses inverted cut-off semantics: a result value at or below the cut-off means Detected and a value above means Not Detected.
  • Device mapping support for both Gene and Organism through dedicated device-gene and device-organism mapping views.

On this page