Business · Product · Technology · AI

Treat service-request progress as presentation rather than clinical authority

A Movo-X patient-request walkthrough covering selected progress states, unknown-value fallbacks, scoped list/create requests, account-filtered SQL intent and separate clinic decisions.

Work directly with Omer Muneer Qazi · Reviewed 29 November 2026

The scenario: show a request’s progress without overstating its outcome

A patient may ask a clinic for a laboratory service, a certificate or a repeat-medication review. The application needs to explain whether a request was received, is under review or has reached a recorded end state. That presentation must not turn a friendly progress label into a new clinical decision or imply that a requested document has automatically been issued.

The pinned Movo-X native clients share selected request-progress conventions. Six Android JVM cases, three portable Swift cases and one injected API case passed with synthetic records. Selected server definitions and native view code were inspected separately. The evidence concerns selected mapping and request contracts, not real medical work or actual patient outcomes.

Map statuses deliberately and keep unknown values conservative

Selected native cases map open to received, in_review to in progress, and approved/done to ready. Rejected and cancelled become separate closed presentations. An unrecognized status maps to the initial step rather than an approval. A selected unknown request type receives the generic other representation.

These are client display policies. A new server status might require more precise wording than the fallback, so forward compatibility still needs product review. The helper does not authorize a clinician action, release a result or create a prescription. A ready label should be interpreted with the actual returned request and clinic workflow, not as a universal certificate of clinical completion.

Keep open-count semantics separate from total request history

The selected helpers regard the final ready step, declined and cancelled states as closed for their open-count calculation. Existing fixtures count the remaining rows in a small synthetic list. That supports a badge or navigation cue without reordering the list to put open items ahead of newer completed ones.

An open-count over loaded rows is not an authoritative total across all clinics or all historical requests. The inspected list definition is bounded and account-filtered, and native aggregation depends on successful scope reads. Report coverage and refresh state independently before presenting a local badge as a complete operational workload measure.

Preserve row scope while arranging a readable list

The Android and Swift fixtures arrange selected canonical-timestamp examples newest first and retain group order according to the first appearance of a displayed person name. Each row still carries its own request and clinic context. Group headings are presentation labels rather than authorization keys or proof that two same-named entries represent one person.

The implementations also use different timestamp representations: Android sorts its stored text, while Swift sorts decoded dates. The selected fixtures do not establish equivalent ordering for arbitrary heterogeneous offset strings. Define timestamp normalization and same-name grouping policy separately, preserving stable record/scope identifiers regardless of how headings are arranged.

Require facility and patient context at the API boundary

The selected TypeScript case refuses a list request without the required record scope and forwards a scoped list to the injected requests action. The portable Swift route case inspects facilityId and patientId query fields in its fake transport. These values identify the intended context; they do not grant permission to read it.

The inspected historical SQL resolves record access before listing, filters the selected tenant/facility, canonical patient chain and requesting account, then returns up to 50 ordered rows. That is source-defined intent, not an executed installed-database permission test. A client convenience filter for readable links cannot replace that authoritative decision.

Validate creation as a request rather than an issued result

The selected API fixture accepts the named request categories and refuses an unsupported type, an extra field and an overlong ASCII detail example. It checks that a supplied request identifier reaches the injected create action. The body remains a request for clinic consideration; this route helper does not itself issue the requested clinical artifact.

The inspected create function defines its own field validation, scoped access check, request replay handling, audit record and selected concurrency lock. Those SQL paths were not run. Unicode length, durable replay, stale permission and every later installed wrapper need their own acceptance rather than being inferred from an injected success response.

Treat a limit response as an authoritative result to display

The selected API case injects a rate-limited database-shaped response and checks the uniform 429 result, Retry-After and openRequests field. The historical SQL separately defines a selected five-open-request cap for an account and clinic across its open/in-review rows.

The route fixture proves mapping of a supplied refusal, not actual counting under concurrent submissions. A native open-count badge is not a substitute for the database cap, and the 50-row listing bound is a different limit again. A release package should test those dimensions separately with synthetic accounts and isolated authoritative transactions.

Review partial refresh and actual row presentation independently

The inspected native views request lists across selected linked scopes and use the resulting entries to build grouped rows. Source includes date/clinic context, optional staff notes and selected loading or retry presentation. The iOS aggregation also checks a generation before publishing its result. Those lifecycle and screen branches were not mounted or executed by these local helper cases.

Successful rows from some scopes do not establish that every linked scope refreshed. Test denied or failed scopes, account changes, cancellation, stale results and empty states explicitly. Staff-note rendering, localization and accessibility also need their own controlled UI acceptance; model decoding does not validate their actual screen presentation.

A practical patient-request acceptance package

Retain the ten scoped cases with source and result records. Add isolated database scenarios for account filtering, allowed/denied links, repeat request identity, open caps and the current status-transition authority. Exercise native refresh coverage, unknown statuses and same-name groups using synthetic people and requests.

For a CTO building a patient app, this creates a clear handover: scoped rows carry request identity, a client maps selected states into understandable progress, and the clinic’s authoritative workflow decides what action or document actually exists. The local cases support selected software contracts while leaving clinical decisions, durable access and current installed behaviour to their own evidence.

Compare the reviewed boundaries

Request progress has separate sources of authority

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

BoundarySelected evidenceSeparate acceptance
Status presentationNative selected mapping and unknown fallbackCurrent clinical workflow and wording
List arrangementCanonical fixture ordering/group labelsStable identity, normalized time and coverage
Create/list APIInjected scope/type/refusal caseInstalled access, replay and limits
Rendered rowsNative source inspected onlyReal screens, refresh errors and accessibility

Illustrative control flow

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

rows = fetch_requests_for_authorized_record_scope()
for row in rows:
    show_selected_progress_mapping(row.status)
    retain_request_and_clinic_identity(row)
# A progress label does not issue a document or authorize clinical action.
# Loaded rows and local badges do not establish complete request history.

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 ↗