Pathology Lab Management System: Class Diagram and Data Model

This class diagram models the core entities and relationships for a pathology laboratory information system (LIS). It supports specimen tracking, test ordering, result management, and quality assurance.

Class Diagram (UML Representation)

+----------------+          +---------------------+          +-----------------+
|    Patient     |          |   TestRequest       |          |   TestResult    |
+----------------+          +---------------------+          +-----------------+
| - patientID    |◄─────────| - requestID         |─────────►| - resultID      |
| - mrn          | 1     *  | - patientID (FK)    | 1     1  | - requestID (FK)|
| - firstName    |          | - orderingProvider  |          | - testID (FK)   |
| - lastName     |          | - specimenID(s)     |          | - value         |
| - dob          |          | - testID (FK)       |          | - unit          |
| - sex          |          | - orderDateTime     |          | - referenceRange|
| - phone        |          | - collectionDateTime|          | - status        |
| - email        |          | - priority          |          | - verifiedBy    |
| - address      |          | - status            |          | - verifiedDate  |
+----------------+          +---------------------+          +-----------------+
        ▲                           ▲       ▲
        │                           │       │
        │                    +----------------+   +------------------+
        │                    |     Test       |   |  LabTechnician   |
        │                    +----------------+   +------------------+
        └──────────────────| - testID       |   | - techID         |
         (via TestRequest) | - name         |   | - name           |
                          | - description  |   | - certification  |
                          | - methodology  |   | - role           |
                          | - cptCode      |   | - shift          |
                          | - loincCode    |   +------------------+
                          | - referenceRange|
                          | - price        |
                          +----------------+

Key Relationships

  • Patient 1:* TestRequest — A patient has multiple orders over time.
  • TestRequest *:1 Test — Each order references a test catalog entry.
  • TestRequest 1:1 TestResult — Each order yields one result set (may have multiple components).
  • LabTechnician 1:* TestRequest — Technician accession/processes orders.
  • TestRequest *:1 OrderingProvider — Physician/NP/PA who ordered.
  • Specimen (implied): TestRequest links to Specimen(s) with type, site, collection details.

Additional Entities for Production LIS

  • Specimen: specimenID, type, source, collection datetime, container, preservative, status (received, processing, stored, disposed).
  • OrderingProvider: providerID, NPI, name, specialty, location, contact.
  • ReferenceRange: age/sex-specific intervals, critical values, delta checks.
  • QualityControl: QC lot, analyte, mean, SD, Levey-Jennings rules, Westgard rules.
  • Instrument: analyzerID, manufacturer, model, last calibration, maintenance log.
  • Billing/Insurance: payer, CPT/ICD-10, prior auth, claim status.
  • AuditLog: immutable trail of all create/read/update/delete actions.

Design Considerations

  • HL7/FHIR integration: ORM (order), ORU (result), ADT (patient admin) messages.
  • LOINC/SNOMED-CT: Standardized test and result coding.
  • Auto-verification rules: Delta checks, critical value flags, panic value notification.
  • Reflex testing: Automated add-on based on initial results (e.g., TSH → reflex FT4).
  • Data retention: CLIA/CAP requirements (typically 10+ years for pathology).

This model provides a foundation for a scalable, standards-compliant LIS supporting anatomic and clinical pathology workflows.

Drug Treatment Centers - Related Articles