All projects
Full-stack clinic software

TorresOCMS

From eye exam to eyewear pickup.

A management system for MM Torres Optical that connects patient visits and prescriptions with orders, inventory, and payments.

  • React
  • TypeScript
  • Fastify
  • PostgreSQL
Clinic workflow
  1. VisitPatient record, eye exam, prescription
  2. OrderProducts, stock, deposit
  3. FulfillPayment, pickup, follow-up

The problem

THE STARTING POINT.

An optical clinic needs to carry information from a patient’s exam through the order, payment, and pickup. Staff also need to track stock, follow-ups, and changes to orders as they handle day-to-day exceptions.

The workflow

INPUT. PROCESS. OUTCOME.

Document the visit

Find the patient’s record, enter eye exam findings and prescriptions, and schedule follow-ups.

Create and fulfill an order

Select products or services, record a deposit or payment, and track the order through fulfillment. The workflow also supports voids and refunds.

Review clinic operations

Track stock batches and expirations, review sales and inventory reports, and export records for reporting.

Engineering decisions

AROUND THE IDEA.

Connect the interface and API

A TypeScript Fastify service serves the React application and its API. PostgreSQL stores clinic records, inventory, and transactions.

Protect clinic records

The API enforces staff roles and encrypts sensitive records and audit entries.

Verify transactions

Integration tests cover stock, payments, and refunds in an isolated PostgreSQL-compatible test database.

Plan for existing data

The TypeScript rewrite includes migration checks for existing databases and an admin workflow for backups and restores.

The engineering challenge is keeping visits, orders, inventory, and payments consistent as staff move between them.

Next project

SuriQ AI

Document intelligence