Delivered remotely for a business based in San Diego, United States. Names withheld by agreement.
Project Overview
Industry: Regulated equipment inspection and compliance services — diagnostic imaging physics and radiation safety.
Solution scope: A web-based equipment register, regulatory inspection scheduler, and deficiency tracking platform built on PHP, MySQL, Bootstrap, and jQuery, containerized with Docker and deployed via Capistrano on Apache.
Context: Diagnostic imaging facilities—spanning hospital radiology departments, mobile imaging vans, and outpatient clinics—must undergo rigorous medical physics testing and radiation safety surveys under strict federal, state, and accreditation schedules. For a physics consultancy managing equipment registers across dozens of client networks, tracking serial numbers, room moves, tube replacements, and overlapping inspection windows in spreadsheets introduces unacceptable compliance risk.
Regulatory Scheduling Bottleneck
Every imaging modality follows distinct testing rules. Mammography, CT, MRI, fluoroscopy, and dental units carry different annual, semi-annual, and post-repair testing cadences. Generic calendar tools cannot compute shifting compliance windows when a clinic replaces a tube or moves a mobile C-arm between locations.
Equipment identity drifts across paper logs. Serial numbers, state registration IDs, room numbers, and asset tags frequently get mistyped between annual visits, making it hard to prove continuous compliance history for a single machine during an accreditation review.
Physicist dispatch lacked workload visibility. Assigning qualified physicists to multi-room hospital visits requires matching modality credentials, geographic proximity, and upcoming due windows—tasks that stalled when schedule data lived across disconnected spreadsheets.
Inconsistent environments delayed maintenance releases. Without standardized container definitions and scripted deployments, server package mismatches between local environments and production Apache hosts slowed down feature rollouts.
Architectural Strategy
Make the equipment unit the permanent anchor of all compliance activity. Every survey, post-repair verification, shielding evaluation, and deficiency record links directly to an immutable equipment ID in MySQL, even as rooms, facility ownership, or attached sub-components change over time.
Compute compliance windows from declarative modality rules. Rather than manually typing next-due dates into calendars, the scheduling engine calculates inspection windows from modality rule tables, last verified survey dates, and regulatory grace tolerances.
Keep the administrative UI fast, dense, and familiar. Pairing Bootstrap with purposeful jQuery AJAX endpoints gives dispatchers instant table filtering, inline modal edits, and clean print-ready compliance schedules without heavy client build pipelines.
Standardize runtimes and releases with Docker and Capistrano. Docker guarantees identical PHP, Apache, and MySQL configurations across every stage, while Capistrano executes repeatable, symlink-switched releases with rapid rollback safety.
Core Capabilities
- Centralized modality register: Detailed inventory per facility tracking manufacturer, model, serial number, room location, state registration ID, installation date, and decommissioning history.
- Modality-aware inspection calendar: Automated projection of annual, semi-annual, and acceptance testing windows with color-coded lead-time alerts before accreditation deadlines expire.
- Physicist dispatch & credential matching: Assigns inspections only to physicists holding active qualifications and dosimetry status for the target imaging modality.
- Equipment event & repair logging: Captures tube swaps, detector upgrades, room relocations, and service shutdowns while triggering required follow-up physics surveys.
- Deficiency & corrective tracking: Logs out-of-spec findings directly from completed surveys and tracks facility remediation confirmations until formally cleared.
- Facility compliance portal: Scoped client views enabling hospital radiation safety officers to download upcoming schedules, inspect unit histories, and verify open action items.
Technical Architecture
Web & application tier. Hosted behind Apache HTTP Server with clean URL routing and strict request validation, PHP domain services manage register CRUD, schedule projection logic, deficiency state machines, and export formatting.
Relational schema. MySQL enforces referential integrity across organizations, facilities, rooms, equipment units, component history, physicists, surveys, and deficiency records. Indexed foreign keys and date columns power rapid multi-filter dashboard queries.
Frontend interaction layer. Bootstrap structures responsive navigation, multi-column asset forms, and status badges, while jQuery coordinates asynchronous table pagination, cascading facility-to-room selectors, and inline modal updates without full page reloads.
Container & deployment pipeline. Docker encapsulates the Apache, PHP, and MySQL services for reproducible local and staging parity. Production deployments execute through Capistrano, pulling tagged releases, linking shared configuration and uploaded artifacts, running schema migrations, and flipping the active release symlink atomically.
Flow: Physicists & coordinators (Bootstrap + jQuery UI) → Apache HTTP Server → containerized PHP application services → MySQL equipment & schedule store → Capistrano atomic release pipeline
Technology Stack
| Category | Technology |
|---|---|
| Application runtime | PHP running inside standardized Linux Docker containers |
| Web server | Apache HTTP Server configured with virtual hosts, TLS, and rewrite rules |
| Database | MySQL maintaining facility hierarchies, modality registers, surveys, and schedules |
| Frontend framework | Bootstrap providing responsive layout grids, modals, and structured data tables |
| Interactive scripting | jQuery driving dynamic register filtering, inline schedule adjustments, and AJAX forms |
| Containerization | Docker defining reproducible development, staging, and production runtime stacks |
| Release automation | Capistrano orchestrating atomic symlinked deployments, migrations, and instant rollbacks |
| Reporting & exports | Server-rendered compliance schedules, survey summaries, and facility audit exports |
| Access & session security | Role-gated authentication with CSRF protection and audit-logged state transitions |
| Infrastructure operations | Linux host administration with automated database snapshots and log rotation |
Engineering Trade-offs & Solutions
| Challenge | Solution |
|---|---|
| Equipment moved between rooms or clinics broke historical audit trails | Modeled location assignments as time-bounded history records linked to a permanent equipment UUID rather than overwriting room fields in place. |
| Calculating due dates differed between fixed accreditation anniversaries and post-repair resets | Parameterized scheduling rules per modality and regulatory body so survey completion triggers the correct window calculation automatically. |
| Rendering large multi-hospital registers bogged down browser DOM performance | Implemented server-side paginated AJAX endpoints consumed by jQuery table controls, fetching only visible slices with debounced search inputs. |
| Production Apache hosts occasionally drifted from developer PHP configurations | Containerized the stack with Docker so Apache modules, PHP extensions, and MySQL versions remain identical across every environment. |
| Risk of partial file states during live mid-day updates | Adopted Capistrano's atomic symlink release structure, keeping previous builds ready on disk for near-instant rollback if a release check fails. |
| Preventing unauthorized edits to signed survey outcomes | Locked finalized survey records to read-only state after QA sign-off, routing any subsequent corrections through an audited addendum workflow. |
Reliability & Deployment Governance
Zero-drift environments. Docker Compose definitions lock PHP extensions, Apache configurations, and MySQL SQL modes in version control, eliminating environment-specific surprises during QA verification.
Controlled release cadence. Capistrano deployments isolate release directories, verify migration status before traffic switches, and retain prior release snapshots so any regression resolves in seconds without manual file copying.
Scoped clinical visibility. Hospital radiation safety officers see only their assigned facilities and equipment registers, while internal quality reviewers retain cross-client oversight with full edit traceability.
Operational Outcomes
- Eliminated missed accreditation windows: Automated modality scheduling surfaces upcoming annual and post-repair surveys well ahead of regulatory deadlines.
- Unbroken equipment lineage: Facilities and inspectors retrieve complete testing, repair, and deficiency histories for every imaging unit regardless of room moves.
- Faster dispatcher coordination: Filterable Bootstrap registers and credential-aware assignments streamline weekly physicist scheduling across multi-site hospital networks.
- Predictable operations: Combining Docker environment parity with Capistrano atomic releases gives the engineering team calm, repeatable production updates.