HomeCase studiesHigh-Throughput Laboratory Information System for Automated Diagnostic...

Case study · Leeds, United Kingdom

High-Throughput Laboratory Information System for Automated Diagnostic Workflows

Diagnostic Lab Workflow & LIS

Diagnostic laboratories processing thousands of daily blood, tissue, and microbiology samples cannot rely on manual analyzer transcription or disconnected spreadsheets without risking specimen mix-ups and delayed critical results. We built a Laboratory Information System (LIS) using .NET, Angular, and SQL Server that tracks barcoded specimens from courier intake through aliquot splitting, ingests bidirectional HL7 v2 and ASTM analyzer streams, and applies automated Westgard QC and delta checks. Biomedical scientists manage live bench queues via SignalR while clinical pathologists sign off validated reports under full ISO 15189 audit traceability.

Industry
Diagnostic Lab Workflow & LIS
Solution
A web-based Laboratory Information System built on .NET, Angular, and SQL Server automating specimen chain-of-custody, instrument interfacing, quality control validation, and clinical result release.
Platforms
Web & API
Stack
.NET · Angular · SQL Server · ASP.NET Core · SignalR · Entity Framework Core
Location
Leeds, United Kingdom · delivered remotely
Role
Engineering, with the team behind for mobile and QA

Delivered remotely for a business based in Leeds, United Kingdom. Names withheld by agreement.

Project Overview

A high-volume diagnostic laboratory operates like an air-traffic control tower for biological samples. Every morning in Leeds, couriers drop off hundreds of primary blood tubes, swabs, and histology cassettes that must be accessioned, centrifuged, split into barcoded aliquots, routed across automated chemistry and hematology analyzers, and verified before evening clinic rounds. Any mismatch between a tube barcode and an order—or a transcription slip between an analyzer screen and a reporting portal—creates immediate clinical risk.

We engineered a comprehensive Laboratory Information System (LIS) using .NET, Angular, and SQL Server to unify pre-analytical intake, instrument interfacing, analytical quality control, and post-analytical reporting. Biomedical scientists work inside keyboard-driven Angular worklists updated live via SignalR, while resilient .NET worker services manage bidirectional HL7 v2 and ASTM analyzer traffic against an auditable SQL Server core.

Diagnostic Workflow Bottlenecks

Before consolidating onto a unified LIS, multi-discipline laboratories frequently struggle with four operational fractures:

  • Manual analyzer re-keying: Standalone bench instruments lacking bidirectional order download and result upload force technicians to type decimals by hand.
  • Opaque specimen custody: Without scan-enforced aliquot tracking, misplaced racks stall turnaround times and trigger avoidable patient redraws.
  • Noisy exception triage: Sending every normal automated test alongside genuinely abnormal results buries critical pathology findings under routine volume.
  • Fragile compliance evidence: Disconnected instrument logs make proving which calibration lot and QC run backed a given patient report tedious during UKAS / ISO 15189 inspections.

Architectural Strategy

The architecture separates high-speed deterministic instrument I/O from interactive clinical validation. Laboratory analyzers cannot wait on browser sessions or heavy ORM abstractions; they expect immediate ACK/NAK protocol acknowledgments over local TCP sockets.

Accordingly, .NET hosted background services manage raw HL7 v2 and ASTM framing directly at the laboratory LAN edge, persisting unmodified raw frames to SQL Server staging tables before parsing observations. Once parsed, a stateless validation engine evaluates Westgard QC rules, biological plausibility limits, and historical patient delta checks, publishing status updates over SignalR to Angular workbenches.

Core Capabilities

  • Barcode-First Accessioning & Aliquoting: Generates hierarchical parent-child specimen barcodes (e.g., separating serum, EDTA, and urine fractions) with scan-verified rack placement.
  • Bidirectional Analyzer Interfacing: Downloads test worklists to automated chemistry, immunoassay, and hematology lines via HL7 v2 / ASTM and ingests raw quantitative and flag payloads automatically.
  • Configurable Auto-Verification Engine: Evaluates instrument error flags, active QC lot pass status, critical bounds, and patient delta percentages to auto-release clean routine panels while routing anomalies to pathologists.
  • Microbiology Culture Progression: Supports multi-day plate incubation states, organism identification, and antibiotic susceptibility (MIC/zone) sensitivity grids.
  • Critical Value Callback Tracking: Enforces documented phone escalation workflows with timestamps and receiving-clinician names whenever panic thresholds trigger.
  • Turnaround-Time (TAT) Dashboards: Live SignalR bench monitors surface aging urgent stat samples before SLA windows breach.

Technical Architecture

The Angular frontend serves role-tailored views for specimen reception, bench validation, quality control, and consultant authorization, communicating over HTTPS with ASP.NET Core Web APIs and SignalR hubs. Instrument drivers run as isolated .NET worker processes inside the lab network segment, writing raw protocol payloads and structured test observations into SQL Server.

Flow: Barcode Intake / Clinic Order → ASP.NET Core API → SQL Server Worklist → .NET HL7/ASTM Instrument Worker → Bench Analyzer → Raw Frame Staging → Auto-Verification & Delta-Check Engine → SignalR → Angular Pathologist Review & Report Release

Using SQL Server temporal tables alongside Entity Framework Core ensures every edit to a patient demographic, specimen state, or preliminary interpretation automatically records valid-from and valid-to audit history at the database layer.

Technology Stack

Category Technology detail
Backend API & Workers .NET 8 ASP.NET Core Web API and hosted background worker services
Laboratory Workbench Angular SPA with keyboard-first barcode scanning and multi-pane validation grids
Transactional Database SQL Server with temporal audit tables, row-version concurrency, and filtered indexes
Instrument Middleware .NET TCP/MLLP and serial socket listeners parsing HL7 v2 and ASTM E1381/E1394 frames
Real-Time Bench Sync ASP.NET Core SignalR pushing live sample statuses and critical-value alerts
Data Access Layer Entity Framework Core paired with Dapper stored-procedure queries for heavy worklists
Queue & Ephemeral Cache Redis coordinating instrument message buffering and QC rule evaluation state
Report Rendering Server-side PDF diagnostic report generator with electronic pathologist signatures
Access & Compliance Role-based clinical sign-off permissions aligned with ISO 15189 audit expectations

Engineering Trade-offs & Solutions

Engineering Challenge Solution & Trade-off
Analyzer TCP drops or malformed ASTM checksums risk silent data loss Persisted raw socket frames to an immutable staging table prior to domain parsing and implemented automatic NAK/retry handshakes; increases disk footprint slightly for complete replayability.
Large pending-worklist grids degrade under Entity Framework Core tracking overhead Used Dapper with targeted SQL Server filtered indexes (WHERE Status IN ('Pending', 'Exception')) for read-heavy Angular worklists while keeping EF Core for transactional mutations; mixes two data-access idioms to preserve sub-second bench responsiveness.
Auto-verification rules vary sharply across hematology, biochemistry, and serology Built a declarative rule table linking assay codes, reagent lots, and delta-check windows evaluated in deterministic priority order rather than hardcoding C# branches; requires structured rule governance by senior scientists.
Multiple scientists opening urgent samples can overwrite manual reflex-test additions Combined SQL Server rowversion optimistic locking with ephemeral Redis bench presence locks over SignalR; prevents silent collisions while displaying who holds a specimen.

Security & Traceability

Medical laboratory records carry strict regulatory and patient-safety obligations. Authentication integrates with institutional directory SSO and role-based clinical authorizations distinguishing trainees, state-registered biomedical scientists, and consultant pathologists permitted to issue final diagnostic amendments.

Every specimen scan, rack transfer, QC override, reflex test addition, and amended report stamps a non-repudiable user ID, workstation identifier, and UTC timestamp into SQL Server temporal audit history. Once a clinical report is authorized, its content hash locks permanently; subsequent corrections generate formal versioned addenda preserving the original released text alongside clear amendment reasons.

Performance & Bench Scale

Morning courier surges concentrate thousands of barcode scans and analyzer messages into short two-hour windows. Partitioned SQL Server indexes keep active-day sample lookups crisp even across multi-year diagnostic archives, while Redis absorbs transient SignalR fan-out across dozens of laboratory workstations.

Keyboard-wedge barcode scanner listeners inside Angular bypass unnecessary mouse clicks, allowing reception staff to accession continuous racks of tubes without focus loss. Heavy cumulative PDF report batches and billing/EHR HL7 outbound transmissions execute in asynchronous .NET background queues so bench validation never stalls waiting on downstream network links.

Operational Outcomes

Replacing fragmented bench tools with an integrated .NET, Angular, and SQL Server LIS elevated laboratory reliability and clinical clarity across every department:

  • End-to-end specimen accountability: Barcoded custody from intake through freezer archiving eliminates guesswork over sample whereabouts.
  • Focused expert attention: Automated QC checks and delta-check filtering let biomedical scientists and pathologists concentrate immediately on abnormal and urgent cases.
  • Zero-transcription analyzer flow: Direct HL7 v2 and ASTM integration removes manual keyboard entry errors between instruments and final reports.
  • Inspection-ready governance: Complete versioned histories linking reagent lots, QC runs, and sign-off identities simplify ISO 15189 quality audits.

01 — Questions

asked about this kind of project

How does the LIS integrate reliably with heterogeneous bench analyzers that speak HL7 v2 or legacy ASTM?

Dedicated .NET background worker services maintain persistent TCP/MLLP or serial-bridge connections to each analyzer rack, framing raw messages into a durable Redis/SQL Server staging log before parsing. Even if the Angular UI or web tier restarts, analyzer results buffer safely and replay without losing a single sample reading.

How do you prevent two biomedical scientists from accidentally validating or editing the same test batch simultaneously?

SQL Server row-version (`rowversion`) optimistic concurrency tokens guard every specimen and result record, supplemented by soft Redis bench locks broadcast over SignalR. When a scientist opens a specimen for manual review, peers see an active lock badge immediately.

How does automated validation handle delta checks and quality-control failures?

Incoming analyzer readings execute through a deterministic rule pipeline comparing values against reference ranges, patient-specific historical results (delta checks), and active analyzer Westgard QC status. Normal results matching clean QC auto-verify, whereas flagged anomalies route straight to the exception worklist.

Why choose Angular and SQL Server for a clinical diagnostic laboratory environment?

Angular's reactive forms, strong TypeScript typing, and keyboard-centric grid workflows excel for high-speed accessioning desks handling continuous barcode input, while SQL Server offers native temporal history tables, transactional integrity, and mature enterprise backup tooling favored by hospital IT teams.

What happens when a life-threatening critical panic value arrives from an analyzer?

Critical threshold breaches bypass routine batch queues immediately. SignalR raises an audible and visual banner on the duty pathologist's Angular console, opens a mandatory clinician-callback log with SLA countdowns, and prevents case closure until phone notification is documented.

03 — Similar project?

describe what is different about yours

Build yours.

Tell me what exists, what you need and the deadline. Fixed price for a defined scope, or $55/day (8–9 hours work) with a written plan first.

Solitaire Corporate Park, Makarba, Ahmedabad, Gujarat 380015, India · IST (UTC+5:30) · --:-- IST · Mon–Fri 09:00–18:00 IST · US & EU overlap daily

No newsletter, no CRM. Just a reply.