Confidential client · Under NDA

Pharma · Global rollout · EU hosted

Engagement portal for a top-50 pharmaceutical company

How I designed and delivered a multi-country portal for healthcare professionals, local administrators and patient interactions, on regulated data, without a client name on this page.

Project facts

My role
Backend lead, architecture to production
Users
Healthcare professionals, local administrators, patient interactions
Team
Engineers, QA and the client's product owner
Stack
Laravel, PostgreSQL, Redis, AWS (EU)

What this page shares

  • The sector, scale and the type of users involved
  • My role, the stack and why it was chosen
  • A conceptual architecture drawn by me
  • The decisions I made and the alternatives I rejected
  • Results as ranges, directions or mechanisms

What stays private

  • The client's name, brand and country list
  • Screens, UI, internal system names and URLs
  • Any personal data about users, customers or patients
  • Internal documents, exact volumes and revenue figures
  • Source code, schemas and configuration

Context and problem

The client ran separate country-level portals for healthcare professionals and local administrators. Each had its own login, its own content workflow and its own way of logging who did what. Support requests crossed time zones and nobody owned a single record of access.

The brief was one global portal with local control: country teams keep authority over their users and content, the central team sees everything, and every action on regulated data leaves a trace. It had to launch in its first wave of countries without re-platforming the identity provider.

Constraints

Regulated data
GDPR across every country, EU data residency, and audit expectations shaped by GxP practice.
Local authority
Country admins must manage their own users and content without seeing other countries.
Existing identity
Corporate SSO stays. The portal can add roles but cannot own accounts.

Architecture, conceptual

Drawn by me from the design. Component names are generic on purpose. This is not the client's documentation.

Key decisions and what I rejected

Key decisions and what I rejected
DecisionAlternative rejectedWhy
One database, tenant scoped by country at the query layerA database per countryCentral reporting needed cross-country reads. Row-level scoping plus a tested policy layer gave isolation without a separate migration for every country.
Append-only audit events, written before the response returnsDatabase triggers on each tableTriggers capture what changed but not who, from where, or why. Explicit events carry actor, scope and reason, and are replayable for audits.
Map SSO claims to portal roles, keep accounts in the corporate IdPA portal-owned user store synced nightlyA second user store means a second place for leavers to linger. Mapping claims kept offboarding immediate and the compliance story short.
Feature flags per country for rolloutSeparate release branches per waveOne build, many switches. The same release could be live in wave 1 and dark in wave 2.

Results

Exact figures are confidential under the client agreement, so the results below are directions and mechanisms rather than numbers.

  • One build

    released country by country

    Per-country feature flags replaced branch-per-wave releases.

  • Every action

    on regulated data is traceable

    Actor, scope, timestamp and reason on each event. Mechanism published in place of the audit outcome.

What I would do differently

I would agree the audit event schema in the first week instead of adding it once the portal was taking shape. Every feature writes audit events, so settling their shape early would have saved rework across the services that produce them.

Not published on this page

  • The client's name and the list of countries
  • Screens of the portal and its content
  • Support ticket volumes behind the admin range
  • Audit and validation documents

Written from my own knowledge of the design. No client documents, screens or data were used.

Walk through this project on a call

30 minutes. I explain the architecture and the trade-offs behind each decision, using the same conceptual diagram. The call covers my engineering reasoning, not additional client details.