Business · Product · Technology · AI

Separate visit-pack link indicators from effective shared access

A Movo-X native sharing case tracing active-link presentation, explicit photo choices, request identities and the separate server checks needed for expiry and revocation.

Work directly with Omer Muneer Qazi · Reviewed 29 November 2026

The scenario: an active-link card is not the access gate

A shared patient summary has at least two important states: what the signed-in app displays about the link, and whether the server will actually release the shared content to a holder of that link. A local active indicator can be useful without enforcing access. Revocation and expiry need to be evaluated at the authoritative boundary.

Three existing Android JVM cases and three supplemental portable Swift cases passed for the selected Movo-X sharing models and fake request contracts. Selected public-route and historical SQL branches were inspected separately. No actual patient summary was shared, no real capability URL was used and no PDF was rendered in this batch.

Prefer the supplied active state when presenting a link

The selected native models first use an explicit active value from the response. The Android fixture checks a list containing active, inactive, revoked and fallback entries and checks the resulting displayed set. A supplemental Swift case supplies an explicit inactive value with a future date and an explicit active value with contradictory local date fields. The explicit value controls the selected local result.

That fixture intentionally isolates precedence. It does not establish that such contradictory records are emitted by the current service or that an expired link can actually be opened. The app’s row model is a presentation contract. The public content route must independently decide whether a request is permitted.

Document the fallback without turning it into a security rule

When active is absent, the selected native code checks revocation and then expiry. The supplemental Swift case checks expiry exactly at the supplied current time, one second later and an explicitly revoked entry. An unparseable optional expiry is also represented as no usable expiry, which leaves the selected fallback active when revocation is absent.

That permissive display fallback is a reason to avoid describing the local list as proof of access. It is not evidence of a current server defect. Include malformed, stale and missing response fields in compatibility acceptance, and use the server’s actual content response to decide whether access remains effective. Device clock changes should not become the authority for medical data release.

Keep the displayed list distinct from a complete link inventory

The Android helper filters selected active rows and sorts their creation strings descending. The existing synthetic dates use a consistent timestamp representation; the fixture does not establish ordering across every timezone-offset representation. The inspected historical list query also has a bounded row limit. A filtered native card is therefore not a complete access inventory by itself.

The inspected card refreshes after revocation and tolerates a failed list load for compatibility. Those source branches were not mounted here. Product acceptance should distinguish no links from unavailable or incomplete link information, and should verify refresh/recovery behaviour rather than inferring successful revocation from an empty or stale card.

Carry the photo decision explicitly through link creation

The selected Android rule permits the photo switch for an owned person with a nonblank photo reference. An existing case checks the owned, missing-photo and managed variants and verifies that changing includePhoto changes the creation request key. The fake Android API case checks a true photo body and the list/create/revoke request methods.

The supplemental Swift request case checks both false and true choices, the one-field body and a supplied request identity. These are serialization and local eligibility checks. They do not load a photograph or establish server ownership. The selected historical SQL additionally combines the requested choice with account ownership and an available photo path; that database branch was inspected only.

Treat request replay and link secrecy as independent contracts

The inspected route derives a share token from a server key, account and request identity, and forwards its digest rather than the raw token to the selected create action. It returns a URL and QR representation after the create result. A deterministic construction helps retry behaviour, but these source facts alone do not establish installed replay semantics or an end-to-end secrecy audit.

The native comments describe showing the returned URL once. That does not prove the URL was absent from every clipboard, share sheet, log, screenshot or recipient device. Review those surfaces independently. Keep real share URLs out of ordinary operational reports and use synthetic values when testing presentation, retries and revoked-link handling.

Keep snapshot, expiry and revocation at the authoritative boundary

The inspected historical create function stores a selected summary snapshot with a default expiry; its revoke branch scopes the share and clears that snapshot. The selected public-read function checks the stored token digest, expiry, revocation and snapshot availability and applies request/view limits. Those are source-defined intentions, not executed current database acceptance.

Do not infer a fresh clinical-record view, perpetual retrieval or recall of already downloaded copies from those definitions. The native card, the stored summary and the recipient’s copy are different objects. Actual installed functions, later wrappers, transaction concurrency and cache behaviour need controlled verification before a broader claim about effective access or retention.

Accept the sharing lifecycle without claiming document quality

Retain the six scoped cases and add authoritative tests for creation/replay, expiry at the boundary, revocation followed by a public read, scope refusal and selected photo handling. Exercise native list failures, clock changes and refresh after an uncertain response. Review content selection and PDF layout in their own package; this batch did not establish summary completeness or visual fidelity.

For a CTO, the valuable separation is explicit: the app displays a link state, creation records a user choice, the service enforces access and recipients may retain copies. The selected local evidence supports the first request and presentation boundaries. A complete sharing acceptance needs the other boundaries verified independently with controlled data.

Compare the reviewed boundaries

Sharing has separate presentation and authority boundaries

On smaller screens, scroll across to compare every column. Keyboard users can focus the table and use the arrow keys.

BoundarySelected evidenceSeparate acceptance
Link indicatorServer-active precedence and expiry fallbackAuthoritative public-read result
Photo choiceOwned-photo rule and explicit false/true requestsServer ownership and actual content
List and revokeFake methods/paths and decoded listDurable mutation, refresh and completeness
Shared contentSelected route/SQL intent onlyInstalled expiry/revocation, caching and document QA

Illustrative control flow

Pseudocode summarizing the decision boundary. It is not copied production code or a deployment instruction.

display_active = response.active ?? local_revocation_and_expiry_fallback()
create_link(person, include_photo=explicit_choice, request_id=stable_choice_identity)
# On each recipient read, the authoritative service must decide access.
# A displayed active row is not an authorization result or a guarantee of retrieval.

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 ↗
WhatsApp Omer about this project ↗