Document the visit
Find the patient’s record, enter eye exam findings and prescriptions, and schedule follow-ups.
From eye exam to eyewear pickup.
A management system for MM Torres Optical that connects patient visits and prescriptions with orders, inventory, and payments.
The problem
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
Find the patient’s record, enter eye exam findings and prescriptions, and schedule follow-ups.
Select products or services, record a deposit or payment, and track the order through fulfillment. The workflow also supports voids and refunds.
Track stock batches and expirations, review sales and inventory reports, and export records for reporting.
Engineering decisions
A TypeScript Fastify service serves the React application and its API. PostgreSQL stores clinic records, inventory, and transactions.
The API enforces staff roles and encrypts sensitive records and audit entries.
Integration tests cover stock, payments, and refunds in an isolated PostgreSQL-compatible test database.
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.