Practical articles
How I separate identity, patient records and clinical permissions
A practical sequence for modelling clinic-held records, staff pathways, portal accounts and communication responsibilities without conflating them.
Stefan Rampersad · Principal Strategist, PHNYXPRO · 4 min read ·
- Project:
- Avelonx
- Historical period:
- February to November 2026
Retrospective written 25 November 2026
I would test a clinical coordination model with a patient who has no portal account before testing it with a signed-in patient. That is a practical lesson I take from Avelonx, whose scope includes practices, doctors, staff, patients, laboratories and pharmacies. Clinic-held records and staff pathways need to work without treating registration as a prerequisite for care coordination. The method below is what I recommend now. It separates the meaning of a person, a clinical record and permission to act, rather than claiming that all of these acceptance checks are already complete.
Define three separate concepts
First, write definitions for a patient record, a portal identity and a practice relationship. The record represents information held within the service. The identity represents a means of signing in. The relationship explains why a particular participant may need access or responsibility. Give each concept an explicit meaning in the record model and task language. Test a synthetic journey in which staff coordinate a legitimate task for a patient without a portal account. Acceptance means the task can proceed under the agreed practice relationship without creating an unnecessary identity or sharing somebody else's credentials.
Map permission to the task
Second, list the actual tasks for each participant. Arranging an appointment, reviewing clinical information and passing a request to a laboratory are different activities. For each task, specify the record involved, the responsible practice and the allowed action. Authorisation guidance recommends least privilege and checks on requests. Turn that brief principle into concrete examples rather than granting broad access because a person is described as staff. Acceptance should include both successful authorised work and rejected attempts outside the agreed relationship. [OWASP authorisation guidance]
Third, implement the record boundaries at the data layer and test them independently of navigation. Avelonx's observed Supabase dependency makes row-level security a relevant reference for record access. Use separate example practices and accounts to check that a record visible in one context does not become visible in another merely by changing a request. The interface should offer the permitted action, while the underlying boundary should still hold when that interface is bypassed. Record each expected result, observed result and responsible reviewer so the team can resolve failures without weakening the boundary. [Supabase documentation on row-level security]
Make account linking a deliberate event
Fourth, define how a portal identity can become associated with an existing patient record. Require an explicit, reviewable process rather than assuming that a similar name is enough. The team needs to decide who can establish or correct that association and what the patient can subsequently see. Acceptance includes an unlinked identity, an already linked identity and a disputed association. Preserve the staff-led journey throughout those cases so that account administration does not become an obstacle to ordinary service coordination.
Treat communication as a separate workflow
Fifth, define communication events alongside clinical tasks without allowing a message to silently grant clinical access. Avelonx's November record distinguishes existing outbound templates from proposed receiving, inbox, opt-out and status functions. Meta's webhook documentation explains that incoming messages and outgoing statuses arrive through webhooks. Use a separate event record with channel, provider identity, handling state and assigned staff owner. Require a clear owner for each event, a record of its handling and a visible unresolved state when it cannot be matched safely. [Meta overview of WhatsApp webhooks]
Finally, make the acceptance review distinguish three kinds of completion: the clinical task, the account association and the communication event. A failed communication connection should not be described as a working console, and an account association should not be mistaken for clinical approval. The 12 November Avelonx console was explicitly blocked by an unconnected number, so that limitation belongs in planning rather than being written out of the story.
My release checklist would require understandable ownership, tested record boundaries and honest unresolved states. This would give a practice a model it can manage, while leaving room for portal and communication capabilities to develop on their own verified terms.
References
Stefan Rampersad
Stefan leads PHNYXPRO, writing about brand storytelling, strategy and the business of creative work in the Caribbean and beyond.
Keep reading The Post