The scenario: removing one entry is a scoped write
A patient-facing health screen may combine entries supplied by the household with information supplied by a clinic. A delete control therefore needs more meaning than a row disappearing from a list. It needs a clear target, an applicable actor and a result from the service that owns the data.
Two existing Android JVM cases and one existing portable Swift route case passed against selected Movo-X source with fake HTTP responses. The Android case checks several delete request paths and a local provenance rule. The broader Swift case includes measurement deletion among other synthetic write contracts. No authoritative record mutation or clinical interpretation was performed.
Use provenance for a client affordance, not as permission proof
The selected Android helper treats absent source, patient and household as locally deletable and refuses other values, including clinic. The existing predicate case checks absent, patient and clinic examples. The household branch is visible in source but was not separately asserted by that case. This is a useful distinction between inspected behaviour and the precise executed fixture.
The inspected health screen combines this helper with a separate editable flag for selected measurement and lab-value controls. Other entry types have their own presentation conditions. Do not generalize one helper into a claim that every health surface has identical gating. Actual record ownership and the actor’s current permission remain authoritative service responsibilities.
Address the person and the entry independently
The selected Android path fixture exercises measurement, immunisation, family-history condition, lab-report and lab-value removal. Each request uses DELETE under the selected person path and carries an entry identifier. The fixture checks all six recorded paths, including two immunisation variants, and a selected request-ID header.
A correctly formed path does not establish that the entry belongs to that person. The client can express the intended target; the server must check the relationship under the current account/session context. Isolated authoritative acceptance should include a real synthetic entry under a different person, a missing entry, a changed owner and a refused session rather than relying on UUID shape alone.
Keep country projection distinct from the row being removed
The Android fixture supplies lowercase pk and verifies a normalized country query, then supplies an unsupported synthetic country and verifies its omission. The selected Swift helper similarly emits only its supported uppercase country values. The selected server dispatch validates its country parameter and uses it when constructing the immunisation response view.
The deletion operation itself carries the person and dose-record ID in the inspected dispatch. A country selection is not permission to delete an entry and is not evidence of a clinically complete immunisation history. This batch did not resolve the separate dense-history/completeness question or validate any vaccine schedule. It checks request construction and selected source flow.
Trace dispatch without claiming the database was exercised
The inspected server handler requires a client-supplied request identity for nonread operations and validates selected person/entry path shapes. It forwards growth removal, immunisation removal, condition removal and lab value/report removal as distinct operations. Measurements also use the growth resource’s selected removal path.
Those branches were source-reviewed only in this batch. Their action names do not establish actual transactional effects, row-source enforcement, audit retention or request replay. The selected native calls also return different model shapes: the Swift measurement-delete fixture decodes an empty measurement response, while the Android feature-call helpers do not use a typed updated health model. Reconciliation needs to match the actual contract.
Confirm a specific write and retain identity during uncertainty
The inspected Android confirmation dialog obtains a request identity, invokes its supplied deletion callback and retires that identity only after a successful return. Failure remains visible in the dialog, while cancellation is rethrown. Busy state disables confirmation/dismissal controls in the selected source. These UI branches were not mounted or clicked.
This design supports a reviewable retry intention, but it does not prove exactly-once mutation. A response can be lost after the service commits. Acceptance should retain the same operation identity for an uncertain retry and verify current server replay handling. A busy spinner and a disabled button address user interaction; they do not replace transaction or concurrency guarantees.
Reconcile the displayed health state after acceptance
The inspected callers close the selected confirmation state and reload their health data after the deletion callback succeeds. That is different from immediately removing the visible row before the service responds. The exact installed reload, error and cache behaviour still needs native acceptance. None of the selected fake transports changes a durable history.
Test a refused delete, a successful response followed by a failed refresh and a row that changes while the dialog is open. Keep display recovery distinct from clinical meaning. Removing an app entry does not establish that a clinical event never happened, correct an underlying source document or recall a copy previously included in a shared summary.
Separate report removal from file-retention acceptance
The selected client exposes a lab-report delete route separately from a lab-value delete route. That naming distinction matters: a report attachment, extracted values, derived trends and clinic-authored records may have different owners and retention lifecycles. The native path fixture establishes which endpoint was requested, not a cascade across those objects.
Inspect the current service and storage transaction before promising attachment deletion or dependent-value cleanup. Test object-store failures, retained references and current audit behaviour with generated files in an isolated environment. This batch neither rendered a report nor exercised storage deletion, so it supports no claim that every related byte or medical datum was erased.
A health-entry removal acceptance package
Retain the three scoped cases and their exact request observations. Add authoritative source/ownership checks, replay and concurrent-change cases, then native confirmation, refresh and accessibility acceptance. Verify lab report/value relationships and storage effects independently. Keep the unresolved full-history and clinical-policy work separate from these selected deletion contracts.
For a CTO, the deliverable is a clear chain: the screen offers an applicable action, the user confirms a scoped target, the request carries identity, the service authorizes and commits it, and the client reconciles. The selected tests cover parts of that chain. A complete production acceptance requires evidence for the remaining steps.
Compare the reviewed boundaries
A delete control spans several independent contracts
On smaller screens, scroll across to compare every column. Keyboard users can focus the table and use the arrow keys.
| Boundary | Selected evidence | Separate acceptance |
|---|---|---|
| Local affordance | Absent/patient/clinic source fixture | Every entry surface and current permission |
| Request target | Six Android paths and selected Swift mutation | Entry/person ownership in the service |
| Operation identity | Recorded headers and source confirmation flow | Lost response, durable replay and concurrency |
| Visible result | Source-defined reload callbacks | Native recovery, linked values and storage effects |
Illustrative control flow
Pseudocode summarizing the decision boundary. It is not copied production code or a deployment instruction.
if screen_editable and source_allows_local_delete_offer(entry):
await confirm_specific_target(person_id, entry_id)
await remove_with_request_identity(person_id, entry_id, operation_id)
reload_authoritative_health_state()
# Client eligibility and a valid path do not replace server ownership or retention checks.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 ↗