Skip to main content
Version: 3.0.1

PCR.AI System Design Document (SDD)

Version: 3.0.0 Date: January 2026 Status: Complete


1. Purpose

1.1 Problem Statement

Clinical laboratories running PCR diagnostic tests spend significant time manually reviewing amplification data, classifying results, and performing quality control checks. This manual process is time-consuming, prone to human error, and creates bottlenecks in high-throughput environments.

1.2 Solution Overview

PCR.AI is a cloud-based SaaS platform that automates PCR analysis, quality control, and result classification for clinical diagnostic laboratories. The system:

  • Imports run files from thermocyclers (automated or manual upload)
  • Applies configurable rules to classify results automatically
  • Performs Westgard statistical QC to detect systematic and random errors
  • Provides interactive review, amendment, and audit trail capabilities
  • Exports results to LIMS/LIS systems

1.3 About This Document

This Software Design Document (SDD) describes the architectural and algorithmic design decisions for PCR.AI. It is written according to IEEE Std 1016-1998 with appropriate tailoring for a cloud-based SaaS application.

This SDD documents design decisions that materially affect:

  • System architecture and component relationships
  • Algorithm correctness and execution logic
  • Configuration schemas and behavioral settings
  • Security boundaries and authentication flows
  • Auditability and compliance requirements

2. Audience

ReaderUse Case
Development teamsImplementing features, understanding component interactions
QA engineersValidating system behavior, understanding test boundaries
System architectsReviewing design decisions, planning extensions
Technical leadsCode review context, onboarding new developers
Regulatory reviewersUnderstanding security, audit, and compliance design

3. Scope

3.1 What This SDD Covers

AreaContent
ArchitectureAWS serverless infrastructure (Lambda, Aurora, S3, Cognito, SQS, SES)
AlgorithmsRules engine, Westgard QC, classification logic, import/export processing
ConfigurationEnvironment variables, kit configuration schemas, client settings
SecurityAuthentication flows (native, SAML/SSO), role-based access control
DeploymentVapor deployment, Cognito setup, environment configuration
TestingBehat infrastructure, HTML testability attributes

3.2 What This SDD Excludes

ExclusionRationale
UI presentation detailsStandard Vue.js/Laravel patterns; no custom design decisions
Standard CRUD operationsUser settings, basic forms follow established patterns
Test plans and test casesBelongs in Software Test Description (STD)
Operational runbooksBelongs in Operations Manual

3.3 Coverage vs SRS

This SDD intentionally covers approximately 30% of SRS requirements. This is a deliberate design decision:

  • The SDD documents design decisions, not all implementation details
  • Pure UI behavior, standard CRUD, and test documentation are explicitly out of scope
  • Absence from the SDD does not imply non-implementation

For the complete scope definition and sufficiency criteria, see sdd-references.md.


4. Document Organization

DocumentPurpose
sdd-introduction.mdThis document - overview, scope, navigation
sdd-architecture.mdAWS infrastructure, component diagram, ER model, workflows
sdd-algorithms.mdRules engine, Westgard QC, import/export pipelines, classification logic
sdd-configuration.mdEnvironment variables, Vapor secrets, kit configuration schemas
sdd-security.mdCognito authentication, SAML/SSO, role-based access control
sdd-deployment-operations.mdVapor deployment, Cognito user pool setup, environment URLs
sdd-testing.mdBehat testing infrastructure, test patterns, fixtures
sdd-references.mdIEEE template, coding standards, scope statement, UI references
sdd-glossary.md127 defined terms with variant tracking
sdd-master-index.mdTopic-based navigation with cross-references
sdd-todo.mdDeferred items (5 diagrams not yet created)

5. How to Use This SDD

5.1 Quick Start

  1. Find a topic: Use sdd-master-index.md to locate content by topic
  2. Look up terms: Use sdd-glossary.md for 127 defined terms
  3. Understand scope: See Section 3 above or sdd-references.md

5.2 Reading Paths by Role

RoleRecommended Path
Developersdd-architecture.md → sdd-algorithms.md → domain-specific sections
QA/Testersdd-testing.md → sdd-algorithms.md (for expected behavior)
Architectsdd-architecture.md → sdd-master-index.md (full topology)
Regulatorysdd-security.md → sdd-configuration.md → audit trail sections

Document SetLocationDescription
SRSoutput/srs/350+ requirements across 28 domains + 61 rules
Codecode/app/Laravel/Vue implementation
Glossarysdd-glossary.mdConsolidated terminology

7. Key System Facts

PropertyValue
PlatformAWS serverless (Lambda via Vapor)
FrontendLaravel + Vue.js
DatabaseAurora MySQL 8.0 (Serverless v2)
AuthenticationAWS Cognito (native + SAML/SSO)
File StorageAWS S3
Data PrivacyNo PII/PHI stored; all data anonymized before analysis
ComplianceSupports ISO 15189, UKAS requirements
IEEE Compliance78% IEEE 1016-1998 compliant

8. Version History

VersionDateDescription
3.0.0January 2026Initial SDD from system design specifications conversion