Project snapshot
Client / context: Upstream, the main customer behind BenchMark Physical Therapy and other clinic brands, working with North Coast Medical. Pilot scope: all of Upstream's Georgia locations. Delivery: built, tested, and deployed in one day.
Role: Full-stack design engineer
Focus: Patient-facing bundle selection, clinic attribution, permanent QR links, multi-brand administration, and print workflows
Stack: Bundle picker: Next.js 16, React, TypeScript, Node 24, SQLite through node:sqlite, PDF generation, Vitest, Docker, and Coolify. Existing commerce and reporting: PHP, MySQL, and Backbone-based dashboard UI.
One-line version
I built, tested, and deployed a QR-driven bundle-picker pilot in one day for all of Upstream's Georgia locations. It connects each clinic's printed poster to a branded patient storefront, then hands the selected bundle to North Coast Medical's existing ecommerce experience with the clinic attached for attribution.
The challenge
The patient interaction needed to be simple: scan a poster, choose a category such as Knee, and open a relevant product bundle.
Behind that short journey was a much larger operational problem. Upstream was the main customer, with a broader network of about 1,800 locations across multiple clinic brands. The pilot covered all of its Georgia locations—not the entire national network. Each participating location needed the correct poster, the correct branding, and the correct attribution when a patient continued to ncmedical.com.
I built, tested, and deployed the pilot in a single day. That delivery window made the product boundary important: solve clinic discovery, attribution, and print operations while reusing the existing commerce experience.
The system also had to survive changes after printing. A mistyped ship-to number could silently lose attribution. A clinic could be renumbered or deactivated. A customer could stop participating while its posters were still on walls.
The challenge was not just building a mobile menu. It was connecting physical materials, editable business data, existing commerce rules, and an admin workflow without making patients or clinic staff manage that complexity.
My role
I worked across product definition, patient UX, data modeling, implementation, testing, and deployment, taking the pilot from build through testing to deployment in one day. The broader cross-system work also included ncmedical.com's location-parameter support, persistent scan-location capture, and RX Bundle Utilization reporting.
My contributions included:
- designing the scan-to-category-to-bundle patient journey
- integrating bundle links with RX Cart and adding validated location-parameter support to ncmedical.com
- separating permanent printed identity from editable customer and ship-to numbers
- evolving the single-customer pilot into a multi-customer application
- building customer, brand, location, and catalog administration
- creating CSV import previews, bulk brand assignment, and print-link exports
- building template-based poster PDFs and staff reference sheets
- adding readiness checks, activity exports, and program-ended behavior
- extending the RX Bundle Utilization dashboard with location-level views and reporting for account-bundle links without a sharing user
- documenting a single-container deployment and consistent database backups
Selected work
1. A focused patient journey, not another checkout
I built the patient experience around a short list of categories and curated bundle entries. A location's storefront carries its clinic brand, and each category presents the bundles that customer has chosen to offer.
The app deliberately stops short of owning checkout. Selecting a bundle goes through a server-side handoff that records the tap and redirects to the existing ncmedical.com RX Cart experience. Entries can open a bundle page for browsing or send the bundle directly into the cart.
This kept the new product focused on discovery and routing rather than duplicating product pricing, payment, or order management. Product image lookup happens in the admin; patients load the stored images without waiting for a live catalog search.
2. Permanent QR codes backed by correctable data
The most important architecture decision was what to print.
An early URL shape used customer and ship-to numbers. That was easy to understand, but it would have embedded mutable business data into physical posters. Fixing a typo or renumbering a clinic could then mean replacing printed material across the network.
I replaced that structure with a random, eight-character location code. The poster points to that code, and the app resolves the current customer and ship-to number when the patient visits.
That separation means:
- a location's printed URL stays the same
- customer and ship-to numbers can be corrected after printing
- outbound links use the current attribution data
- locations are deactivated rather than deleted
- previously issued codes continue to answer
The code is a durable routing identity, not an authentication mechanism. The design protects the useful life of the poster without pretending the link is private.
3. Attribution as an explicit integration contract
A working redirect was not enough. The existing commerce system expects a specific bundle code, QR source marker, optional page-view parameter, and location value.
I made that contract explicit in the URL builder and redirect resolver. The resolver looks up the location first, then finds categories and bundle entries within that location's customer. It does not allow a URL to jump into another customer's catalog.
For active locations, the handoff includes the current ship-to number. Deactivated locations still have a storefront, but their outbound links omit location attribution. Unknown location codes return the app's own not-found response instead of sending patients to an arbitrary destination.
The integration also has a business constraint: a bundle must belong to the intended customer in North Coast's system, or attribution can be silently dropped downstream. I paired the implementation with admin test links and readiness checks rather than treating URL formatting as proof that the entire purchase path was correct.
4. From one pilot to a multi-customer, multi-brand system
The initial pilot for Upstream's Georgia locations became the first customer use case in a shared application, rather than a separate deployment that would need to be copied for the next program. BenchMark was one of Upstream's clinic brands, not the primary customer identity.
Each customer owns its locations, brands, categories, bundle entries, poster templates, and settings. A customer's catalog is shared across its locations, while each location can use the customer's default brand or an explicitly assigned brand.
I built administration for brand names, logos, primary colors, default selection, and location assignment. Color selection includes a live WCAG AA contrast check. Brands can also have their own poster artwork, falling back to the customer template when no override is supplied.
This separated three concerns that could easily have become tangled: which customer owns the program, which brand a patient recognizes, and which location receives attribution.
5. Location operations designed for network scale
A network of roughly 1,800 locations could not be maintained comfortably through one-record-at-a-time forms.
I built CSV import around a preview that distinguishes new, changed, unchanged, and flagged rows before applying changes. Ship-to numbers remain text so leading zeros are preserved. Imports match within the customer, run as a transaction, and never delete locations that are missing from a file.
The operational UI also supports:
- searchable, paginated location lists
- individual location edits
- brand assignment for selected or filtered locations
- CSV export with storefront and print URLs
- round-trip exports that can be reimported without regenerating codes
This made the existing location spreadsheet a practical input to the system while giving operators a chance to catch mistakes before they affected patients or posters.
6. Print production as part of the product
The physical poster was the entry point, so printing could not be an afterthought.
I built a workflow where an admin uploads a Letter-size PDF template and positions its QR and location-label boxes using a preview. The app fills that template for each location with the correct code, name, ship-to number, and optional address.
Each active location has a print page for its poster and a one-page staff sheet listing categories and bundle names. Headquarters can export print links and distribute them to locations rather than manually producing and emailing a separate PDF for every clinic.
Brand-specific templates preserve distinct clinic identities without creating a separate print process for each brand. Poster downloads are also recorded in the raw activity log.
7. Designing for the program's end, not just its launch
Printed materials do not disappear when a pilot ends.
I built a customer-level program-ended state that can show a branded ended page or send visitors to a chosen URL. It affects that customer's patient and print routes without interrupting other customers, and it can be reversed. Logging continues so operators can see whether old posters are still generating traffic.
I also documented the obligation beyond the application's lifetime: the printed domain must keep answering issued codes even if the app is retired. Temporary redirects preserve the ability to change the eventual destination rather than leaving clinics with dead QR codes.
8. A deliberately small operational footprint
The app uses a single Node process, SQLite, and local uploads. That keeps the core storefront independent of additional hosted data services, while making the single-instance constraint explicit.
I added tests around the behaviors most likely to cause silent operational failures: outbound links, customer scoping, location codes, CSV handling, brands, poster generation, readiness, and program-ended routing.
The deployment setup uses a non-root Docker runtime and persistent storage, with a documented Coolify workflow. The backup script uses SQLite's online backup mechanism, checks the resulting database, and retains recent copies. These choices keep the infrastructure proportionate to the product without treating persistence or recovery as someone else's problem.
9. Extending ncmedical.com to capture the location
The pilot was not only a new app pointing at an unchanged ecommerce site. I also changed ncmedical.com so the location query parameter became validated, persistent reporting context inside RX Cart.
The receiving system validates the ship-to against the sharing user's customer when a valid share token exists, or against the bundle's customer for an account-bundle link without one. Invalid values are excluded from cart attribution but retained as raw values in the view-event log for diagnosis.
I carried that context through the different entry paths:
- direct cart openings record the first valid scan location on the cart's bundle source
- bundle pages record a location-aware view before a cart exists, then pass the location through Add to Cart
- product links accept the same location context
- Stripe's cancellation return preserves the cart's scan location on the patient-cart URL
A later opening does not overwrite a cart's first valid scan location, while the view log still records the context of each counted opening. I added the database migration, event logging, and regression tests for valid and invalid locations, first-valid-location behavior, bundle-page handoff, and cancellation returns.
This is reporting attribution, not a change to who earns a commission. The location parameter does not change reward-provider selection.
10. Closing the loop in the RX Bundle Utilization dashboard
Capturing a location would not help Upstream evaluate the pilot if its activity disappeared from the reporting system.
The bundle picker uses account-bundle links without a share token: there is no individual clinic user sharing each poster. The existing user-based report scope therefore dropped those views and carts. I extended the report to include this unshared activity in the customer's admin view, placed against the validated scan location.
The dashboard work included:
- location-level Views totals and QR-versus-link breakdowns
- a views → opened → purchased funnel for each bundle and Ship-To
- date-range and Ship-To filtering for location-level views
- combined shared and unshared activity at the same location, with revenue and item performance following the same reporting rows
- all customer account bundles in the admin overview, including a No activity state for unused bundles
- an All Users default for admins so the pilot's unshared activity is visible
- separate lifetime bundle-view totals and an indication of when location-level view tracking began
I kept the access boundaries explicit. Customer admins see their customer's unshared activity; location-restricted admins see only permitted ship-tos. Single-user filters and non-admin reports retain their user-sharing scope. Unshared activity without a valid location appears as Unknown location only for unrestricted admins without a location filter.
That distinction makes the dashboard answer two different questions without mixing them: what did an individual user share, and what happened at a clinic? Location-level view history starts when event tracking was introduced; lifetime totals are not presented as location-filtered history.
Together, the new app and the ncmedical.com changes connect the physical entry point to downstream utilization reporting—not just to a successful redirect.
Design engineering approach
Keep the patient path short; put the complexity in operations
Patients need categories, recognizable bundles, and a clear next step. Administrators need validation, branding, import previews, print controls, and visibility into setup. I designed those as different experiences rather than exposing the underlying data model to everyone.
Treat print as a long-lived interface
A printed QR code is a commitment. Separating location identity from mutable business identifiers made that commitment maintainable after distribution.
Extend existing commerce instead of rebuilding it
The bundle picker owns selection, routing, and the handoff of attribution data. North Coast's existing commerce system owns the downstream bundle and purchase experience. I extended that receiving system to validate and retain the location and make the activity visible in utilization reporting, rather than duplicating checkout in the new app. That boundary kept the product focused while still solving the end-to-end clinic workflow.
Delivered outcome
I built, tested, and deployed the pilot in one day for all of Upstream's Georgia locations. The delivered application supports multiple customers and connects:
- permanent location QR codes
- branded patient storefronts and curated bundle categories
- existing RX Cart bundle pages and cart handoffs
- current location attribution data
- customer and brand administration
- bulk location import and maintenance
- template-based posters, staff sheets, and print-link distribution
- readiness checks and exportable activity logs
- customer-specific program-ended behavior
- validated location capture in ncmedical.com's bundle and cart flows
- location-level RX Bundle Utilization reporting with customer and user access boundaries
The approximately 1,800-location figure describes Upstream's broader network, not the size of the Georgia pilot. The pilot scope was all of Upstream's Georgia locations. The one-day delivery covers building, testing, and deployment; it is not a claim about patient adoption, conversion, or revenue lift.
What made this hard
The difficult part was preserving correctness across things that change at different speeds:
- patients expect an immediate, simple mobile journey
- customer and ship-to data can change at any time
- posters may stay in circulation for years
- brands need distinct presentation without separate applications
- existing commerce rules can silently discard attribution
- programs can end while physical links remain active
The solution had to make those constraints work together, not simply produce a convincing storefront screen.
Why it matters
This project shows full-stack design engineering across a physical-to-digital service. The visible experience is a few patient-facing screens, but the product includes the identity model, commerce handoff, changes to the receiving ecommerce system, location-level reporting, admin tools, print production, and retirement path that make those screens dependable.
The key design move was simple: print a stable identity, not a piece of business data that might be wrong tomorrow.