The scenario: a family card appears before medical history is available
A person can appear in a household interface without the account having permission to read that person’s records at every clinic. Those states may look similar in a simple mockup, but they represent different responsibilities. The account needs a way to describe a household relationship; the clinical system needs a separately authorized link to the relevant record.
The Movo-X household contract explicitly states that a person identifier never grants clinic-record access. This chapter explains that distinction through the reviewed contract, route source and synthetic test definitions. It does not change a household relationship, inspect a real patient account or claim that current production permissions were independently verified during publication.
Model the account, person and clinical record separately
An account is the actor using the application. A household person is an entry in the account’s family-management experience. A clinical record belongs to a facility’s operating data and may have its own identity review and access rules. Treating these as one identifier makes later changes difficult: a person can gain their own account, an account can lose management permission, and a clinic can need to resolve an ambiguous record match.
The inspected contract exposes record links and management state as explicit information rather than inferring them solely from a relationship label. That gives clients a way to show the available journey without claiming that every household entry is an owned or fully linked medical record. The server still needs to decide what each operation is allowed to return.
A matching name and date do not establish record access
The contract distinguishes registration of a new empty record from requests that require staff resolution. A potential name-and-date match is not treated as automatic permission to open existing clinical history. Coincidence in demographic fields is useful context for review, but it is not a substitute for an accepted identity and record-linking workflow.
A synthetic test scenario should include two people with similar demographics and an account that has access to only one record. The intended outcome needs to remain explainable when the application cannot resolve the relationship confidently. A generic “match found” badge is insufficient if it hides whether a link is pending, accepted, rejected or ambiguous. These are proposed acceptance scenarios, not a new production test.
Management transfer changes authority, not only a display label
The reviewed household contract describes a claim and management flow in which the previous relationship does not silently retain all earlier record rights. Continued management becomes an explicit decision in the documented flow. That is an important distinction from simply moving a person card between lists while leaving every old access path usable.
For a product team, the useful model is a state transition with affected permissions. Identify what the old account can still see, which clinic links change, what pending requests survive and how the new account learns about unresolved work. The precise policy should be approved for the product and jurisdiction; this engineering walkthrough does not interpret legal guardianship or establish a universal consent rule.
Revocation must propagate beyond the primary screen
The contract states that withdrawing consent revokes the relevant clinic links and pending requests, and granting consent again does not automatically recreate those links. That makes reauthorization a separate event rather than a toggle that restores historical access without another decision. A client needs to refresh its view after such a transition and present the actual server state.
A complete implementation review follows other access paths too: cached detail views, downloads, background processing, notifications and pending work. A revoked relationship should not be considered handled merely because the family list changed. The required behaviour for already downloaded information needs its own product decision and operating limitations; a server cannot retroactively remove every copy a user may already have made.
Represent restricted and pending states clearly in both clients
The household response includes state that lets the application distinguish restricted sessions and incomplete record links. Android and iOS should express those states without inventing a successful outcome. A visible person card can still lead to a request-for-review journey rather than an available medical-history screen. Error and pending states are part of the feature, not incidental strings added after the happy path works.
Review the wording with the operational owner. Explain what the user can do next, which team owns the decision and whether retrying the same action is useful. Avoid a generic permission error when the actual accepted next step is a staff-assisted identity check. At the same time, do not reveal another person’s record details merely to explain why a request was refused.
What source review and synthetic tests can establish
The inspected test definitions use synthetic account and person structures to exercise selected household behaviour. Reviewing them helps identify the intended invariants and missing cases. This chapter does not report a fresh execution of those TypeScript tests, native-device validation or an authenticated clinical workflow. The isolated tests rerun elsewhere in this series cover migration and recovery policy, not household runtime access.
For a targeted acceptance engagement, build a matrix of actor, person state, clinic link and operation. Include an independent second account, an unrelated clinic, a changed management relationship and a revoked link. Run the approved synthetic cases in a suitable environment and record both server responses and what each client renders. That produces evidence for the actual journey rather than a broad assertion about the whole platform.
A useful first delivery milestone
A focused milestone maps one household-to-clinic journey from person creation through a reviewed record link and a later permission change. Deliver the state diagram, contract fixtures, client behaviour and acceptance evidence for the agreed cases. Keep the people and records synthetic unless the owner explicitly authorizes an appropriate restricted operational test.
The practical outcome for a CTO is an access boundary that another engineer can inspect and maintain. Household relationships remain useful to the customer experience, while clinical-record authority stays explicit and reviewable. That separation supports future family features without turning every new relationship label into an accidental grant of medical-history access.
About this engineering series
Written by Omer Muneer Qazi from a review of Movo-X implementation and dated engineering records. This article explains source behaviour and historical observations; current production, clinical outcomes and store availability require their own verification. Examples are synthetic and proposed test cases are identified as such.
Explore the Movo-X engineering series → · Related implementation experience →
Discuss a similar engineering problem
Send the workflow, current platform and the decision your team needs to make. I can help define an implementation or review scope with concrete acceptance evidence.
Discuss your project on WhatsApp ↗